{
  "resourceType": "Bundle",
  "id": "hello-world-bundle",
  "type": "transaction",
  "entry": [
    {
      "resource": {
        "resourceType": "PlanDefinition",
        "id": "hello-world",
        "url": "http://fhir.org/guides/cdc/opioid-cds/PlanDefinition/hello-world",
        "identifier": [
          {
            "use": "official",
            "value": "cdc-opioid-guidance"
          }
        ],
        "version": "2022.1.0",
        "name": "HELLO_WORLD",
        "title": "PlanDefinition - Hello World example to test CDS Service deployment",
        "type": {
          "coding": [
            {
              "system": "http://terminology.hl7.org/CodeSystem/plan-definition-type",
              "code": "eca-rule",
              "display": "ECA Rule"
            }
          ]
        },
        "status": "draft",
        "experimental": true,
        "date": "2023-11-06",
        "publisher": "Centers for Disease Control and Prevention (CDC)",
        "contact": [
          {
            "telecom": [
              {
                "system": "url",
                "value": "https://www.cdc.gov"
              }
            ]
          }
        ],
        "description": "Example CDS service used for testing purposes",
        "jurisdiction": [
          {
            "coding": [
              {
                "system": "urn:iso:std:iso:3166",
                "code": "US",
                "display": "United States of America"
              }
            ]
          }
        ],
        "purpose": "Example CDS service used for testing purposes",
        "usage": "Example CDS service used for testing purposes",
        "copyright": "© CDC 2016+.",
        "topic": [
          {
            "text": "Testing"
          }
        ],
        "author": [
          {
            "name": "Kensaku Kawamoto, MD, PhD, MHS"
          },
          {
            "name": "Bryn Rhodes"
          },
          {
            "name": "Floyd Eisenberg, MD, MPH"
          },
          {
            "name": "Robert McClure, MD, MPH"
          }
        ],
        "library": [
          "http://fhir.org/guides/cdc/opioid-cds/Library/HelloWorld"
        ],
        "action": [
          {
            "title": "Hello World!",
            "description": "The CDS Service is alive and communicating successfully!",
            "priority": "routine",
            "trigger": [
              {
                "type": "named-event",
                "name": "patient-view"
              }
            ],
            "condition": [
              {
                "kind": "applicability",
                "expression": {
                  "description": "Call the conditional expression for the action",
                  "language": "text/cql.identifier",
                  "expression": "Main Action Condition Expression Is True"
                }
              }
            ],
            "groupingBehavior": "visual-group",
            "selectionBehavior": "any"
          }
        ]
      },
      "request": {
        "method": "PUT",
        "url": "PlanDefinition/hello-world"
      }
    },
    {
      "resource": {
        "resourceType": "Library",
        "id": "HelloWorld",
        "extension": [
          {
            "url": "http://hl7.org/fhir/us/cqfmeasures/StructureDefinition/cqfm-softwaresystem",
            "valueReference": {
              "reference": "Device/cqf-tooling"
            }
          },
          {
            "url": "http://hl7.org/fhir/us/cqfmeasures/StructureDefinition/cqfm-softwaresystem",
            "valueReference": {
              "reference": "Device/cqf-tooling"
            }
          }
        ],
        "url": "http://fhir.org/guides/cdc/opioid-cds/Library/HelloWorld",
        "version": "1.0.0",
        "name": "HelloWorld",
        "status": "draft",
        "type": {
          "coding": [
            {
              "system": "http://terminology.hl7.org/CodeSystem/library-type",
              "code": "logic-library"
            }
          ]
        },
        "relatedArtifact": [
          {
            "type": "depends-on",
            "display": "FHIR model information",
            "resource": "http://fhir.org/guides/cqf/common/Library/FHIR-ModelInfo|4.0.1"
          },
          {
            "type": "depends-on",
            "display": "Library FHIRHelpers",
            "resource": "http://fhir.org/guides/cdc/opioid-cds/Library/FHIRHelpers|4.0.1"
          }
        ],
        "parameter": [
          {
            "name": "Patient",
            "use": "out",
            "min": 0,
            "max": "1",
            "type": "Patient"
          },
          {
            "name": "Info",
            "use": "out",
            "min": 0,
            "max": "1",
            "type": "string"
          },
          {
            "name": "Warning",
            "use": "out",
            "min": 0,
            "max": "1",
            "type": "string"
          },
          {
            "name": "Critical",
            "use": "out",
            "min": 0,
            "max": "1",
            "type": "string"
          },
          {
            "name": "Main Action Condition Expression Is True",
            "use": "out",
            "min": 0,
            "max": "1",
            "type": "boolean"
          },
          {
            "name": "Get Title",
            "use": "out",
            "min": 0,
            "max": "1",
            "type": "string"
          },
          {
            "name": "Get Description",
            "use": "out",
            "min": 0,
            "max": "1",
            "type": "string"
          },
          {
            "name": "Get Indicator",
            "use": "out",
            "min": 0,
            "max": "1",
            "type": "string"
          }
        ],
        "dataRequirement": [
          {
            "type": "Patient",
            "profile": [
              "http://hl7.org/fhir/StructureDefinition/Patient"
            ]
          }
        ],
        "content": [
          {
            "contentType": "text/cql",
            "data": "bGlicmFyeSBIZWxsb1dvcmxkIHZlcnNpb24gJzEuMC4wJw0KDQp1c2luZyBGSElSIHZlcnNpb24gJzQuMC4xJw0KDQppbmNsdWRlIEZISVJIZWxwZXJzIHZlcnNpb24gJzQuMC4xJw0KDQpjb250ZXh0IFBhdGllbnQNCg0KZGVmaW5lICJJbmZvIjoNCiAgJ2luZm8nDQoNCmRlZmluZSAiV2FybmluZyI6DQogICd3YXJuaW5nJw0KDQpkZWZpbmUgIkNyaXRpY2FsIjoNCiAgJ2NyaXRpY2FsJw0KDQpkZWZpbmUgIk1haW4gQWN0aW9uIENvbmRpdGlvbiBFeHByZXNzaW9uIElzIFRydWUiOg0KICB0cnVlDQoNCmRlZmluZSAiR2V0IFRpdGxlIjoNCiAgJ0hlbGxvIFdvcmxkIScNCg0KZGVmaW5lICJHZXQgRGVzY3JpcHRpb24iOg0KICAnVGhlIENEUyBTZXJ2aWNlIGlzIGFsaXZlIGFuZCBjb21tdW5pY2F0aW5nIHN1Y2Nlc3NmdWxseSEnDQoNCmRlZmluZSAiR2V0IEluZGljYXRvciI6DQogICdpbmZvJw0K"
          },
          {
            "contentType": "application/elm+xml",
            "data": "[encoded data, 7556 characters]"
          },
          {
            "contentType": "application/elm+json",
            "data": "[encoded data, 12116 characters]"
          }
        ]
      },
      "request": {
        "method": "PUT",
        "url": "Library/HelloWorld"
      }
    },
    {
      "resource": {
        "resourceType": "Library",
        "id": "FHIRHelpers",
        "meta": {
          "versionId": "7",
          "lastUpdated": "2020-12-02T18:49:07.746-07:00",
          "source": "#0oUvNjasVR8PueaB"
        },
        "extension": [
          {
            "url": "http://hl7.org/fhir/us/cqfmeasures/StructureDefinition/cqfm-softwaresystem",
            "valueReference": {
              "reference": "Device/cqf-tooling"
            }
          }
        ],
        "url": "http://fhir.org/guides/cdc/opioid-cds/Library/FHIRHelpers",
        "version": "4.0.1",
        "name": "FHIRHelpers",
        "title": "FHIR Helpers",
        "status": "draft",
        "type": {
          "coding": [
            {
              "system": "http://terminology.hl7.org/CodeSystem/library-type",
              "code": "logic-library"
            }
          ]
        },
        "jurisdiction": [
          {
            "coding": [
              {
                "system": "urn:iso:std:iso:3166",
                "code": "US",
                "display": "United States of America"
              }
            ],
            "text": "United States of America"
          }
        ],
        "relatedArtifact": [
          {
            "type": "depends-on",
            "display": "FHIR model information",
            "resource": "http://fhir.org/guides/cqf/common/Library/FHIR-ModelInfo|4.0.1"
          }
        ],
        "content": [
          {
            "contentType": "text/cql",
            "data": "[encoded data, 27452 characters]"
          },
          {
            "contentType": "application/elm+xml",
            "data": "[encoded data, 539424 characters]"
          },
          {
            "contentType": "application/elm+json",
            "data": "[encoded data, 978572 characters]"
          }
        ]
      },
      "request": {
        "method": "PUT",
        "url": "Library/FHIRHelpers"
      }
    }
  ]
}