QI-Core Implementation Guide
4.1.0 - release

Publication Build: This will be filled in by the publication tooling

## : QICore Common Tests - JSON Representation

Raw json | Download

    {
      "resourceType" : "Library",
      "id" : "QICoreCommonTests",
      "text" : {
        "status" : "extensions",
        "div" : "<div xmlns=\"http://www.w3.org/1999/xhtml\">\n    <table class=\"grid dict\">\n        \n        <tr>\n            <th scope=\"row\"><b>Id: </b></th>\n            <td style=\"padding-left: 4px;\">QICoreCommonTests</td>\n        </tr>\n        \n        \n        <tr>\n            <th scope=\"row\"><b>Url: </b></th>\n            <td style=\"padding-left: 4px;\">http://hl7.org/fhir/us/qicore/Library/QICoreCommonTests</td>\n        </tr>\n        \n        \n        <tr>\n            <th scope=\"row\"><b>Version: </b></th>\n            <td style=\"padding-left: 4px;\">4.1.0</td>\n        </tr>\n        \n        \n        \n        <tr>\n            <th scope=\"row\"><b>Name: </b></th>\n            <td style=\"padding-left: 4px;\">QICoreCommonTests</td>\n        </tr>\n        \n        \n        <tr>\n            <th scope=\"row\"><b>Title: </b></th>\n            <td style=\"padding-left: 4px;\">QICore Common Tests</td>\n        </tr>\n        \n        \n        \n        <tr>\n            <th scope=\"row\"><b>Status: </b></th>\n            <td style=\"padding-left: 4px;\">active</td>\n        </tr>\n        \n        \n        <tr>\n            <th scope=\"row\"><b>Experimental: </b></th>\n            <td style=\"padding-left: 4px;\">false</td>\n        </tr>\n        \n        \n        <tr>\n            <th scope=\"row\"><b>Type: </b></th>\n            <td style=\"padding-left: 4px;\">\n                \n                    \n                        \n                        <p style=\"margin-bottom: 5px;\">\n                            <b>system: </b> <span>http://terminology.hl7.org/CodeSystem/library-type</span>\n                        </p>\n                        \n                        \n                        <p style=\"margin-bottom: 5px;\">\n                            <b>code: </b> <span>logic-library</span>\n                        </p>\n                        \n                        \n                    \n                \n                \n            </td>\n        </tr>\n        \n        \n        \n        <tr>\n            <th scope=\"row\"><b>Date: </b></th>\n            <td style=\"padding-left: 4px;\">2020-11-29T15:54:22-07:00</td>\n        </tr>\n        \n        \n        <tr>\n            <th scope=\"row\"><b>Publisher: </b></th>\n            <td style=\"padding-left: 4px;\">http://www.hl7.org/Special/committees/cqi/index.cfm</td>\n        </tr>\n        \n        \n        <tr>\n            <th scope=\"row\"><b>Description: </b></th>\n            <td style=\"padding-left: 4px;\">This library defines tests for the QICoreCommon library.</td>\n        </tr>\n        \n        \n        \n        \n        \n        <tr>\n            <th scope=\"row\"><b>Jurisdiction: </b></th>\n            <td style=\"padding-left: 4px;\">US</td>\n        </tr>\n        \n        \n        \n        \n        \n        <tr>\n            <th scope=\"row\"><b>Approval Date: </b></th>\n            <td style=\"padding-left: 4px;\">2021-11-06</td>\n        </tr>\n        \n        \n        <tr>\n            <th scope=\"row\"><b>Last Review Date: </b></th>\n            <td style=\"padding-left: 4px;\">2021-11-06</td>\n        </tr>\n        \n        \n        \n        <tr>\n          <th scope=\"row\"><b>Related Artifacts: </b></th>\n          <td style=\"padding-left: 4px;\">\n            \n            \n            \n            <p><b>Dependencies</b></p>\n            <ul>\n              \n                <li>http://hl7.org/fhir/us/qicore/Library/QICoreCommon</li>\n              \n                <li>http://terminology.hl7.org/CodeSystem/v3-MaritalStatus</li>\n              \n                <li>urn:oid:2.16.840.1.113883.6.238</li>\n              \n                <li>http://loinc.org</li>\n              \n                <li>http://hl7.org/fhir/ValueSet/marital-status</li>\n              \n            </ul>\n            \n            \n            \n            \n            \n          </td>\n        </tr>\n        \n        \n        <tr>\n          <th scope=\"row\"><b>Parameters: </b></th>\n          <td style=\"padding-left: 4px;\">\n            <table class=\"grid-dict\">\n              <tr><th><b>Name</b></th><th><b>Type</b></th><th><b>Min</b></th><th><b>Max</b></th><th><b>In/Out</b></th></tr>\n              \n                <tr><th>Patient</th><th>Patient</th><th>0</th><th>1</th><th>out</th></tr>\n              \n                <tr><th>AdverseEvent</th><th>AdverseEvent</th><th>0</th><th>*</th><th>out</th></tr>\n              \n                <tr><th>AllergyIntolerance</th><th>AllergyIntolerance</th><th>0</th><th>*</th><th>out</th></tr>\n              \n                <tr><th>BodyStructure</th><th>BodyStructure</th><th>0</th><th>*</th><th>out</th></tr>\n              \n                <tr><th>CarePlan</th><th>CarePlan</th><th>0</th><th>*</th><th>out</th></tr>\n              \n                <tr><th>CareTeam</th><th>CareTeam</th><th>0</th><th>*</th><th>out</th></tr>\n              \n                <tr><th>Claim</th><th>Claim</th><th>0</th><th>*</th><th>out</th></tr>\n              \n                <tr><th>Communication</th><th>Communication</th><th>0</th><th>*</th><th>out</th></tr>\n              \n                <tr><th>CommunicationNotDone</th><th>Communication</th><th>0</th><th>*</th><th>out</th></tr>\n              \n                <tr><th>CommunicationRequest</th><th>CommunicationRequest</th><th>0</th><th>*</th><th>out</th></tr>\n              \n                <tr><th>Condition</th><th>Condition</th><th>0</th><th>*</th><th>out</th></tr>\n              \n                <tr><th>Coverage</th><th>Coverage</th><th>0</th><th>*</th><th>out</th></tr>\n              \n                <tr><th>Device</th><th>Device</th><th>0</th><th>*</th><th>out</th></tr>\n              \n                <tr><th>DeviceNotRequested</th><th>DeviceRequest</th><th>0</th><th>*</th><th>out</th></tr>\n              \n                <tr><th>DeviceRequest</th><th>DeviceRequest</th><th>0</th><th>*</th><th>out</th></tr>\n              \n                <tr><th>DiagnosticReportLab</th><th>DiagnosticReport</th><th>0</th><th>*</th><th>out</th></tr>\n              \n                <tr><th>DiagnosticReportNote</th><th>DiagnosticReport</th><th>0</th><th>*</th><th>out</th></tr>\n              \n                <tr><th>Encounter</th><th>Encounter</th><th>0</th><th>*</th><th>out</th></tr>\n              \n                <tr><th>EncounterPerformed</th><th>Encounter</th><th>0</th><th>*</th><th>out</th></tr>\n              \n                <tr><th>FamilyMemberHistory</th><th>FamilyMemberHistory</th><th>0</th><th>*</th><th>out</th></tr>\n              \n                <tr><th>Flag</th><th>Flag</th><th>0</th><th>*</th><th>out</th></tr>\n              \n                <tr><th>Goal</th><th>Goal</th><th>0</th><th>*</th><th>out</th></tr>\n              \n                <tr><th>ImagingStudy</th><th>ImagingStudy</th><th>0</th><th>*</th><th>out</th></tr>\n              \n                <tr><th>Immunization</th><th>Immunization</th><th>0</th><th>*</th><th>out</th></tr>\n              \n                <tr><th>ImmunizationEvaluation</th><th>ImmunizationEvaluation</th><th>0</th><th>*</th><th>out</th></tr>\n              \n                <tr><th>ImmunizationNotDone</th><th>Immunization</th><th>0</th><th>*</th><th>out</th></tr>\n              \n                <tr><th>ImmunizationRecommendation</th><th>ImmunizationRecommendation</th><th>0</th><th>*</th><th>out</th></tr>\n              \n                <tr><th>ImplantableDevice</th><th>Device</th><th>0</th><th>*</th><th>out</th></tr>\n              \n                <tr><th>Location</th><th>Location</th><th>0</th><th>*</th><th>out</th></tr>\n              \n                <tr><th>Medication</th><th>Medication</th><th>0</th><th>*</th><th>out</th></tr>\n              \n                <tr><th>MedicationAdministration</th><th>MedicationAdministration</th><th>0</th><th>*</th><th>out</th></tr>\n              \n                <tr><th>MedicationAdministrationNotDone</th><th>MedicationAdministration</th><th>0</th><th>*</th><th>out</th></tr>\n              \n                <tr><th>MedicationDispense</th><th>MedicationDispense</th><th>0</th><th>*</th><th>out</th></tr>\n              \n                <tr><th>MedicationDispenseNotDone</th><th>MedicationDispense</th><th>0</th><th>*</th><th>out</th></tr>\n              \n                <tr><th>MedicationNotRequested</th><th>MedicationRequest</th><th>0</th><th>*</th><th>out</th></tr>\n              \n                <tr><th>MedicationRequest</th><th>MedicationRequest</th><th>0</th><th>*</th><th>out</th></tr>\n              \n                <tr><th>NutritionOrder</th><th>NutritionOrder</th><th>0</th><th>*</th><th>out</th></tr>\n              \n                <tr><th>Observation</th><th>Observation</th><th>0</th><th>*</th><th>out</th></tr>\n              \n                <tr><th>ObservationNotDone</th><th>Observation</th><th>0</th><th>*</th><th>out</th></tr>\n              \n                <tr><th>Organization</th><th>Organization</th><th>0</th><th>*</th><th>out</th></tr>\n              \n                <tr><th>Practitioner</th><th>Practitioner</th><th>0</th><th>*</th><th>out</th></tr>\n              \n                <tr><th>PractitionerRole</th><th>PractitionerRole</th><th>0</th><th>*</th><th>out</th></tr>\n              \n                <tr><th>Procedure</th><th>Procedure</th><th>0</th><th>*</th><th>out</th></tr>\n              \n                <tr><th>ProcedurePerformed</th><th>Procedure</th><th>0</th><th>*</th><th>out</th></tr>\n              \n                <tr><th>ProcedureNotDone</th><th>Procedure</th><th>0</th><th>*</th><th>out</th></tr>\n              \n                <tr><th>RelatedPerson</th><th>RelatedPerson</th><th>0</th><th>*</th><th>out</th></tr>\n              \n                <tr><th>ServiceNotRequested</th><th>ServiceRequest</th><th>0</th><th>*</th><th>out</th></tr>\n              \n                <tr><th>ServiceRequest</th><th>ServiceRequest</th><th>0</th><th>*</th><th>out</th></tr>\n              \n                <tr><th>Specimen</th><th>Specimen</th><th>0</th><th>*</th><th>out</th></tr>\n              \n                <tr><th>Substance</th><th>Substance</th><th>0</th><th>*</th><th>out</th></tr>\n              \n                <tr><th>Task</th><th>Task</th><th>0</th><th>*</th><th>out</th></tr>\n              \n                <tr><th>TaskNotDone</th><th>Task</th><th>0</th><th>*</th><th>out</th></tr>\n              \n                <tr><th>TestPatientGender</th><th>Patient</th><th>0</th><th>1</th><th>out</th></tr>\n              \n                <tr><th>TestPatientActive</th><th>Patient</th><th>0</th><th>1</th><th>out</th></tr>\n              \n                <tr><th>TestPatientBirthDate</th><th>Patient</th><th>0</th><th>1</th><th>out</th></tr>\n              \n                <tr><th>TestPatientMaritalStatusMembership</th><th>Patient</th><th>0</th><th>1</th><th>out</th></tr>\n              \n                <tr><th>TestPatientMartialStatusComparison</th><th>Patient</th><th>0</th><th>1</th><th>out</th></tr>\n              \n                <tr><th>TestPatientDeceasedAsBoolean</th><th>Patient</th><th>0</th><th>1</th><th>out</th></tr>\n              \n                <tr><th>TestPatientDeceasedAsDateTime</th><th>Patient</th><th>0</th><th>1</th><th>out</th></tr>\n              \n                <tr><th>TestSlices</th><th>Observation</th><th>0</th><th>*</th><th>out</th></tr>\n              \n                <tr><th>TestSimpleExtensions</th><th>Patient</th><th>0</th><th>1</th><th>out</th></tr>\n              \n                <tr><th>TestComplexExtensions</th><th>Patient</th><th>0</th><th>1</th><th>out</th></tr>\n              \n            </table>\n          </td>\n        </tr>\n        \n        \n        <tr>\n          <th scope=\"row\"><b>Data Requirements:</b></th>\n          <td style=\"padding-left: 4px;\">\n            <table class=\"grid-dict\">\n              <tr><th><b>Type</b></th><th><b>Profile</b></th><th><b>MS</b></th><th><b>Code Filter</b></th></tr>\n              \n                <tr>\n                  <th>Patient</th>\n                  <th>http://hl7.org/fhir/StructureDefinition/Patient</th>\n                  <th>;;;;;</th>\n                  <th>\n                    \n                  </th>\n                </tr>\n              \n                <tr>\n                  <th>AdverseEvent</th>\n                  <th>http://hl7.org/fhir/StructureDefinition/AdverseEvent</th>\n                  <th></th>\n                  <th>\n                    \n                  </th>\n                </tr>\n              \n                <tr>\n                  <th>AllergyIntolerance</th>\n                  <th>http://hl7.org/fhir/StructureDefinition/AllergyIntolerance</th>\n                  <th></th>\n                  <th>\n                    \n                  </th>\n                </tr>\n              \n                <tr>\n                  <th>BodyStructure</th>\n                  <th>http://hl7.org/fhir/StructureDefinition/BodyStructure</th>\n                  <th></th>\n                  <th>\n                    \n                  </th>\n                </tr>\n              \n                <tr>\n                  <th>CarePlan</th>\n                  <th>http://hl7.org/fhir/StructureDefinition/CarePlan</th>\n                  <th></th>\n                  <th>\n                    \n                  </th>\n                </tr>\n              \n                <tr>\n                  <th>CareTeam</th>\n                  <th>http://hl7.org/fhir/StructureDefinition/CareTeam</th>\n                  <th></th>\n                  <th>\n                    \n                  </th>\n                </tr>\n              \n                <tr>\n                  <th>Claim</th>\n                  <th>http://hl7.org/fhir/StructureDefinition/Claim</th>\n                  <th></th>\n                  <th>\n                    \n                  </th>\n                </tr>\n              \n                <tr>\n                  <th>Communication</th>\n                  <th>http://hl7.org/fhir/StructureDefinition/Communication</th>\n                  <th>;</th>\n                  <th>\n                    \n                  </th>\n                </tr>\n              \n                <tr>\n                  <th>CommunicationRequest</th>\n                  <th>http://hl7.org/fhir/StructureDefinition/CommunicationRequest</th>\n                  <th></th>\n                  <th>\n                    \n                  </th>\n                </tr>\n              \n                <tr>\n                  <th>Condition</th>\n                  <th>http://hl7.org/fhir/StructureDefinition/Condition</th>\n                  <th></th>\n                  <th>\n                    \n                  </th>\n                </tr>\n              \n                <tr>\n                  <th>Coverage</th>\n                  <th>http://hl7.org/fhir/StructureDefinition/Coverage</th>\n                  <th></th>\n                  <th>\n                    \n                  </th>\n                </tr>\n              \n                <tr>\n                  <th>Device</th>\n                  <th>http://hl7.org/fhir/StructureDefinition/Device</th>\n                  <th></th>\n                  <th>\n                    \n                  </th>\n                </tr>\n              \n                <tr>\n                  <th>DeviceRequest</th>\n                  <th>http://hl7.org/fhir/StructureDefinition/DeviceRequest</th>\n                  <th>;</th>\n                  <th>\n                    \n                  </th>\n                </tr>\n              \n                <tr>\n                  <th>DiagnosticReport</th>\n                  <th>http://hl7.org/fhir/StructureDefinition/DiagnosticReport</th>\n                  <th></th>\n                  <th>\n                    \n                  </th>\n                </tr>\n              \n                <tr>\n                  <th>Encounter</th>\n                  <th>http://hl7.org/fhir/StructureDefinition/Encounter</th>\n                  <th>;</th>\n                  <th>\n                    \n                  </th>\n                </tr>\n              \n                <tr>\n                  <th>FamilyMemberHistory</th>\n                  <th>http://hl7.org/fhir/StructureDefinition/FamilyMemberHistory</th>\n                  <th></th>\n                  <th>\n                    \n                  </th>\n                </tr>\n              \n                <tr>\n                  <th>Flag</th>\n                  <th>http://hl7.org/fhir/StructureDefinition/Flag</th>\n                  <th></th>\n                  <th>\n                    \n                  </th>\n                </tr>\n              \n                <tr>\n                  <th>Goal</th>\n                  <th>http://hl7.org/fhir/StructureDefinition/Goal</th>\n                  <th></th>\n                  <th>\n                    \n                  </th>\n                </tr>\n              \n                <tr>\n                  <th>ImagingStudy</th>\n                  <th>http://hl7.org/fhir/StructureDefinition/ImagingStudy</th>\n                  <th></th>\n                  <th>\n                    \n                  </th>\n                </tr>\n              \n                <tr>\n                  <th>Immunization</th>\n                  <th>http://hl7.org/fhir/StructureDefinition/Immunization</th>\n                  <th>;</th>\n                  <th>\n                    \n                  </th>\n                </tr>\n              \n                <tr>\n                  <th>ImmunizationEvaluation</th>\n                  <th>http://hl7.org/fhir/StructureDefinition/ImmunizationEvaluation</th>\n                  <th></th>\n                  <th>\n                    \n                  </th>\n                </tr>\n              \n                <tr>\n                  <th>ImmunizationRecommendation</th>\n                  <th>http://hl7.org/fhir/StructureDefinition/ImmunizationRecommendation</th>\n                  <th></th>\n                  <th>\n                    \n                  </th>\n                </tr>\n              \n                <tr>\n                  <th>Location</th>\n                  <th>http://hl7.org/fhir/StructureDefinition/Location</th>\n                  <th></th>\n                  <th>\n                    \n                  </th>\n                </tr>\n              \n                <tr>\n                  <th>Medication</th>\n                  <th>http://hl7.org/fhir/StructureDefinition/Medication</th>\n                  <th></th>\n                  <th>\n                    \n                  </th>\n                </tr>\n              \n                <tr>\n                  <th>MedicationAdministration</th>\n                  <th>http://hl7.org/fhir/StructureDefinition/MedicationAdministration</th>\n                  <th>;</th>\n                  <th>\n                    \n                  </th>\n                </tr>\n              \n                <tr>\n                  <th>MedicationDispense</th>\n                  <th>http://hl7.org/fhir/StructureDefinition/MedicationDispense</th>\n                  <th>;</th>\n                  <th>\n                    \n                  </th>\n                </tr>\n              \n                <tr>\n                  <th>MedicationRequest</th>\n                  <th>http://hl7.org/fhir/StructureDefinition/MedicationRequest</th>\n                  <th>;;</th>\n                  <th>\n                    \n                  </th>\n                </tr>\n              \n                <tr>\n                  <th>NutritionOrder</th>\n                  <th>http://hl7.org/fhir/StructureDefinition/NutritionOrder</th>\n                  <th></th>\n                  <th>\n                    \n                  </th>\n                </tr>\n              \n                <tr>\n                  <th>Observation</th>\n                  <th>http://hl7.org/fhir/StructureDefinition/Observation</th>\n                  <th>;</th>\n                  <th>\n                    \n                  </th>\n                </tr>\n              \n                <tr>\n                  <th>Observation</th>\n                  <th>http://hl7.org/fhir/StructureDefinition/Observation</th>\n                  <th>;;;</th>\n                  <th>\n                    \n                      <b>code filter: </b>\n                      \n                      <br/>\n                      \n                      \n                      <span style=\"padding-left: 4px;\">\n                          <b>path: </b><span>code</span>\n                      </span>\n                      \n                      <br/>\n                      \n                      \n                      \n                      \n                          \n                          <p style=\"margin-bottom: 5px;\">\n                              <b>system: </b> <span>http://loinc.org</span>\n                          </p>\n                          \n                          \n                          <p style=\"margin-bottom: 5px;\">\n                              <b>code: </b> <span>85354-9</span>\n                          </p>\n                          \n                          \n                          <p style=\"margin-bottom: 5px;\">\n                              <b>display: </b> <span>Blood pressure panel with all children optional</span>\n                          </p>\n                          \n                      \n                    \n                  </th>\n                </tr>\n              \n                <tr>\n                  <th>Organization</th>\n                  <th>http://hl7.org/fhir/StructureDefinition/Organization</th>\n                  <th></th>\n                  <th>\n                    \n                  </th>\n                </tr>\n              \n                <tr>\n                  <th>Practitioner</th>\n                  <th>http://hl7.org/fhir/StructureDefinition/Practitioner</th>\n                  <th></th>\n                  <th>\n                    \n                  </th>\n                </tr>\n              \n                <tr>\n                  <th>PractitionerRole</th>\n                  <th>http://hl7.org/fhir/StructureDefinition/PractitionerRole</th>\n                  <th></th>\n                  <th>\n                    \n                  </th>\n                </tr>\n              \n                <tr>\n                  <th>Procedure</th>\n                  <th>http://hl7.org/fhir/StructureDefinition/Procedure</th>\n                  <th>;</th>\n                  <th>\n                    \n                  </th>\n                </tr>\n              \n                <tr>\n                  <th>RelatedPerson</th>\n                  <th>http://hl7.org/fhir/StructureDefinition/RelatedPerson</th>\n                  <th></th>\n                  <th>\n                    \n                  </th>\n                </tr>\n              \n                <tr>\n                  <th>ServiceRequest</th>\n                  <th>http://hl7.org/fhir/StructureDefinition/ServiceRequest</th>\n                  <th>;;</th>\n                  <th>\n                    \n                  </th>\n                </tr>\n              \n                <tr>\n                  <th>Specimen</th>\n                  <th>http://hl7.org/fhir/StructureDefinition/Specimen</th>\n                  <th></th>\n                  <th>\n                    \n                  </th>\n                </tr>\n              \n                <tr>\n                  <th>Substance</th>\n                  <th>http://hl7.org/fhir/StructureDefinition/Substance</th>\n                  <th></th>\n                  <th>\n                    \n                  </th>\n                </tr>\n              \n                <tr>\n                  <th>Task</th>\n                  <th>http://hl7.org/fhir/StructureDefinition/Task</th>\n                  <th>;</th>\n                  <th>\n                    \n                  </th>\n                </tr>\n              \n            </table>\n          </td>\n        </tr>\n        \n        \n        \n        <tr>\n          <td colspan=\"2\">\n            <table>\n              <tr><th><a id=\"cql-content\"><b>Content: </b></a> text/cql</th></tr>\n              <tr><td><pre><code class=\"language-cql\">library QICoreCommonTests\r\n\r\nusing FHIR version '4.0.1'\r\n\r\ninclude FHIRHelpers version '4.0.1'\r\n\r\ninclude QICoreCommon called Common\r\n\r\ncodesystem \"Marital Status Codes\": 'http://terminology.hl7.org/CodeSystem/v3-MaritalStatus'\r\ncodesystem \"CDC Race and Ethnicity Codes\": 'urn:oid:2.16.840.1.113883.6.238'\r\n\r\nvalueset \"Marital Status\": 'http://hl7.org/fhir/ValueSet/marital-status'\r\n\r\ncode \"Marital Status - Married\": 'M' from \"Marital Status Codes\"\r\ncode \"American Indian or Alaska Native\": '1002-5' from \"CDC Race and Ethnicity Codes\"\r\ncode \"Alaska Native\": '1735-0' from \"CDC Race and Ethnicity Codes\"\r\ncode \"Blood pressure\": '85354-9' from Common.\"LOINC\" display 'Blood pressure panel with all children optional'\r\ncode \"Diastolic blood pressure\": '8462-4' from Common.\"LOINC\" display 'Diastolic blood pressure'\r\ncode \"Systolic blood pressure\": '8480-6' from Common.\"LOINC\" display 'Systolic blood pressure'\r\n\r\ncontext Patient\r\n\r\n// QICoreAdverseEvent\r\n// @profile: http://hl7.org/fhir/us/qicore/StructureDefinition/qicore-adverseevent\r\ndefine AdverseEvent:\r\n  [AdverseEvent]\r\n\r\n// QICoreAllergyIntolerance\r\n// @profile: http://hl7.org/fhir/us/qicore/StructureDefinition/qicore-allergyintolerance\r\ndefine AllergyIntolerance:\r\n  [AllergyIntolerance]\r\n\r\n// QICoreBodyStructure\r\n// @profile: http://hl7.org/fhir/us/qicore/StructureDefinition/qicore-bodystructure\r\ndefine BodyStructure:\r\n  [BodyStructure]\r\n\r\n// QICoreCarePlan\r\n// @profile: http://hl7.org/fhir/us/qicore/StructureDefinition/qicore-careplan\r\ndefine CarePlan:\r\n  [CarePlan]\r\n\r\n// QICoreCareTeam\r\n// @profile: http://hl7.org/fhir/us/qicore/StructureDefinition/qicore-careteam\r\ndefine CareTeam:\r\n  [CareTeam]\r\n\r\n// QICoreClaim\r\n// @profile: http://hl7.org/fhir/us/qicore/StructureDefinition/qicore-claim\r\ndefine Claim:\r\n  [Claim]\r\n\r\n// QICoreCommunication\r\n// @profile: http://hl7.org/fhir/us/qicore/StructureDefinition/qicore-communication\r\ndefine Communication:\r\n  [Communication] C\r\n    where C.status in { 'preparation', 'in-progress', 'on-hold', 'completed' }\r\n\r\n// QICoreCommunicationNotDone\r\n// @profile: http://hl7.org/fhir/us/qicore/StructureDefinition/qicore-communicationnotdone\r\ndefine CommunicationNotDone:\r\n  [Communication] C\r\n    where C.status = 'not-done'\r\n\r\n// QICoreCommunicationRequest\r\n// @profile: \thttp://hl7.org/fhir/us/qicore/StructureDefinition/qicore-communicationrequest\r\ndefine CommunicationRequest:\r\n  [CommunicationRequest]\r\n\r\n// QICoreCondition\r\n// @profile: http://hl7.org/fhir/us/qicore/StructureDefinition/qicore-condition\r\ndefine Condition:\r\n  [Condition]\r\n\r\n// QICoreCoverage\r\n// @profile: http://hl7.org/fhir/us/qicore/StructureDefinition/qicore-coverage\r\ndefine Coverage:\r\n  [Coverage]\r\n\r\n// QICoreDevice\r\n// @profile: http://hl7.org/fhir/us/qicore/StructureDefinition/qicore-device\r\ndefine Device:\r\n  [Device]\r\n\r\n// QICoreDeviceNotRequested\r\n// @profile: http://hl7.org/fhir/us/qicore/StructureDefinition/qicore-devicenotrequested\r\ndefine DeviceNotRequested:\r\n  [DeviceRequest] D\r\n    where D.status = 'completed'\r\n      and D.doNotPerform() is true\r\n\r\n// QICoreDeviceRequest\r\n// @profile: http://hl7.org/fhir/us/qicore/StructureDefinition/qicore-devicerequest\r\ndefine DeviceRequest:\r\n  [DeviceRequest] D\r\n    where D.status in { 'draft', 'active', 'on-hold', 'revoked', 'completed' }\r\n      and D.doNotPerform() is not true\r\n\r\n// QICoreDeviceUseStatement\r\n// @profile: http://hl7.org/fhir/us/qicore/StructureDefinition/qicore-deviceusestatement\r\ndefine DeviceUseStatement:\r\n  [DeviceUseStatement]\r\n\r\n// QICoreDiagnosticReportLab\r\n// @profile: http://hl7.org/fhir/us/qicore/StructureDefinition/qicore-diagnosticreport-lab\r\ndefine DiagnosticReportLab:\r\n  [DiagnosticReport] D\r\n    //where D.category ~ \"http://terminology.hl7.org/CodeSystem/v2-0074#LAB\"\r\n\r\n// QICoreDiagnosticReportNote\r\n// @profile: http://hl7.org/fhir/us/qicore/StructureDefinition/qicore-diagnosticreport-note\r\ndefine DiagnosticReportNote:\r\n  [DiagnosticReport] D\r\n\r\n// QICoreEncounter\r\n// @profile: http://hl7.org/fhir/us/qicore/StructureDefinition/qicore-encounter\r\ndefine Encounter:\r\n  [Encounter]\r\n\r\ndefine EncounterPerformed:\r\n  Encounter E\r\n    where E.status = 'finished'\r\n\r\n// QICoreFamilyMemberHistory\r\n// @profile: http://hl7.org/fhir/us/qicore/StructureDefinition/qicore-familymemberhistory\r\ndefine FamilyMemberHistory:\r\n  [FamilyMemberHistory]\r\n\r\n// QICoreFlag\r\n// @profile: http://hl7.org/fhir/us/qicore/StructureDefinition/qicore-flag\r\ndefine Flag:\r\n  [Flag]\r\n\r\n// QICoreGoal\r\n// @profile: http://hl7.org/fhir/us/qicore/StructureDefinition/qicore-goal\r\ndefine Goal:\r\n  [Goal]\r\n\r\n// QICoreImagingStudy\r\n// @profile: http://hl7.org/fhir/us/qicore/StructureDefinition/qicore-imagingstudy\r\ndefine ImagingStudy:\r\n  [ImagingStudy]\r\n\r\n// QICoreImmunization\r\n// @profile: http://hl7.org/fhir/us/qicore/StructureDefinition/qicore-immunization\r\ndefine Immunization:\r\n  [Immunization] I\r\n    where I.status = 'completed'\r\n\r\n// QICoreImmunizationEvaluation\r\n// @profile: http://hl7.org/fhir/us/qicore/StructureDefinition/qicore-immunizationevaluation\r\ndefine ImmunizationEvaluation:\r\n  [ImmunizationEvaluation]\r\n\r\n// QICoreImmunizationNotDone\r\n// @profile: http://hl7.org/fhir/us/qicore/StructureDefinition/qicore-immunizationnotdone\r\ndefine ImmunizationNotDone:\r\n  [Immunization] I\r\n    where I.status = 'not-done'\r\n\r\n// QICoreImmunizationRecommendation\r\n// @profile: http://hl7.org/fhir/us/qicore/StructureDefinition/qicore-immunizationrec\r\ndefine ImmunizationRecommendation:\r\n  [ImmunizationRecommendation]\r\n\r\n// USCoreImplantableDevice\r\n// @profile: http://hl7.org/fhir/us/core/StructureDefinition/us-core-implantable-device\r\ndefine ImplantableDevice:\r\n  [Device]\r\n\r\n// QICoreLocation\r\n// @profile: http://hl7.org/fhir/us/qicore/StructureDefinition/qicore-location\r\ndefine Location:\r\n  [Location]\r\n\r\n// QICoreMedication\r\n// @profile: http://hl7.org/fhir/us/qicore/StructureDefinition/qicore-medication\r\ndefine Medication:\r\n  [Medication]\r\n\r\n// QICoreMedicationAdministration\r\n// @profile: http://hl7.org/fhir/us/qicore/StructureDefinition/qicore-medicationadministration\r\ndefine MedicationAdministration:\r\n  [MedicationAdministration] M\r\n    where M.status in { 'in-progress', 'on-hold', 'completed' }\r\n\r\n// QICoreMedicationAdministrationNotDone\r\n// @profile: http://hl7.org/fhir/us/qicore/StructureDefinition/qicore-mednotadministered\r\ndefine MedicationAdministrationNotDone:\r\n  [MedicationAdministration] M\r\n    where M.status = 'not-done'\r\n\r\n// QICoreMedicationDispense\r\n// @profile: http://hl7.org/fhir/us/qicore/StructureDefinition/qicore-medicationdispense\r\ndefine MedicationDispense:\r\n  [MedicationDispense] D\r\n    where D.status in { 'preparation', 'in-progress', 'on-hold', 'completed' }\r\n\r\n// QICoreMedicationDispenseNotDone\r\n// @profile: http://hl7.org/fhir/us/qicore/StructureDefinition/qicore-mednotdispensed\r\ndefine MedicationDispenseNotDone:\r\n  [MedicationDispense] D\r\n    where D.status in { 'cancelled', 'declined' }\r\n\r\n// QICoreMedicationNotRequested\r\n// @profile: http://hl7.org/fhir/us/qicore/StructureDefinition/qicore-mednotrequested\r\ndefine MedicationNotRequested:\r\n  [MedicationRequest] R\r\n    where R.status = 'completed'\r\n      and R.doNotPerform is true\r\n\r\n/*\r\ndefine \"Antithrombotic Not Given at Discharge\":\r\n  [\"MedicationRequest\": medication in \"Antithrombotic Therapy\"] NoAntithromboticDischarge\r\n    where NoAntithromboticDischarge.doNotPerform is true\r\n\t\t\tand (NoAntithromboticDischarge.reasonCode in \"Medical Reason\"\r\n\t\t\t\tor NoAntithromboticDischarge.reasonCode in \"Patient Refusal\")\r\n      and exists (NoAntithromboticDischarge.category C where FHIRHelpers.ToConcept(C) ~ FC.\"Community\" or FHIRHelpers.ToConcept(C) ~ FC.\"Discharge\")\r\n      and NoAntithromboticDischarge.status = 'completed'\r\n      and NoAntithromboticDischarge.intent = 'order'\r\n\r\ndefine \"Antithrombotic Not Given at Discharge\":\r\n  QICore.MedicationNotRequested NoAntithromboticDischarge\r\n    where NoAntithromboticDischarge.medication in \"Antithrombotic Therapy\"\r\n      and (NoAntithromboticDischarge.reasonCode in \"Medical Reason\"\r\n        or NoAntithromboticDischarge.reasonCode in \"Patient Refusal\")\r\n      and (NoAntithromboticDischarge.isCommunity() or NoAntithromboticDischarge.isDischarge())\r\n      and NoAntithromboticDischarge.intent = 'order'\r\n\r\ndefine \"Antithrombotic Not Given at Discharge\":\r\n  [\"MedicationNotRequested\": medication in \"Antithrombotic Therapy\"] NoAntithromboticDischarge\r\n    where (NoAntithromboticDischarge.reasonCode in \"Medical Reason\"\r\n        or NoAntithromboticDischarge.reasonCode in \"Patient Refusal\")\r\n      and (NoAntithromboticDischarge.isCommunity() or NoAntithromboticDischarge.isDischarge())\r\n      and NoAntithromboticDischarge.intent = 'order'\r\n*/\r\n\r\n// QICoreMedicationRequest\r\n// @profile: http://hl7.org/fhir/us/qicore/StructureDefinition/qicore-medicationrequest\r\ndefine MedicationRequest:\r\n  [MedicationRequest] R\r\n    where R.status in { 'active', 'on-hold', 'completed', 'draft' }\r\n      and R.doNotPerform is not true\r\n\r\n/*\r\ndefine \"Antithrombotic Therapy at Discharge\":\r\n  [\"MedicationRequest\": medication in \"Antithrombotic Therapy\"] Antithrombotic\r\n    where exists (Antithrombotic.category C where FHIRHelpers.ToConcept(C) in { Global.\"Community\", Global.\"Discharge\" })\r\n      and Antithrombotic.status in { 'active', 'completed' }\r\n      and Antithrombotic.intent.value = 'order'\r\n\r\ndefine \"Antithrombotic Therapy at Discharge\":\r\n  QICore.MedicationRequest Antithrombotic\r\n    where Antithrombotic.medication in \"Antithrombotic Therapy\"\r\n      and (Antithrombotic.isCommunity() or Antithrombotic.isDischarge())\r\n      and Antithrombotic.status in { 'active', 'completed' }\r\n      and Antithrombotic.intent = 'order'\r\n\r\ndefine \"Antithrombotic Therapy at Discharge\":\r\n  [MedicationRequest: medication in \"Antithrombotic Therapy\"] Antithrombotic\r\n    where (Antithrombotic.isCommunity() or Antithrombotic.isDischarge())\r\n      and Antithrombotic.status in { 'active', 'completed' }\r\n      and Antithrombotic.intent = 'order'\r\n*/\r\n\r\n// QICoreMedicationStatement\r\n// @profile: http://hl7.org/fhir/us/qicore/StructureDefinition/qicore-medicationstatement\r\ndefine MedicationStatement:\r\n  [MedicationStatement]\r\n\r\n// QICoreNutritionOrder\r\n// @profile: http://hl7.org/fhir/us/qicore/StructureDefinition/qicore-nutritionorder\r\ndefine NutritionOrder:\r\n  [NutritionOrder]\r\n\r\n// QICoreObservation\r\n// @profile: http://hl7.org/fhir/us/qicore/StructureDefinition/qicore-observation\r\ndefine Observation:\r\n  [Observation] O\r\n    where O.status in { 'registered', 'preliminary', 'final', 'amended', 'corrected' }\r\n\r\n// QICoreObservationNotDone\r\n// @profile: http://hl7.org/fhir/us/qicore/StructureDefinition/qicore-observationnotdone\r\ndefine ObservationNotDone:\r\n  [Observation] O\r\n    where O.status = 'cancelled'\r\n\r\n// FHIR Vital Signs\r\n\r\n// USCore Smoking Status\r\n\r\n// USCore Laboratory Result\r\n\r\n// USCore Pediatric BMI for Age\r\n\r\n// USCore Pediatric Weight for Height\r\n\r\n// USCore Pulse Oximetry\r\n\r\n// QICoreOrganization\r\n// @profile: http://hl7.org/fhir/us/qicore/StructureDefinition/qicore-organization\r\ndefine Organization:\r\n  [Organization]\r\n\r\n// QICorePatient\r\n// @profile: http://hl7.org/fhir/us/qicore/StructureDefinition/qicore-patient\r\n//define Patient:\r\n//  [Patient]\r\n\r\n// QICorePractitioner\r\n// @profile: http://hl7.org/fhir/us/qicore/StructureDefinition/qicore-practitioner\r\ndefine Practitioner:\r\n  [Practitioner]\r\n\r\n// QICorePractitionerRole\r\n// @profile: http://hl7.org/fhir/us/qicore/StructureDefinition/qicore-practitionerrole\r\ndefine PractitionerRole:\r\n  [PractitionerRole]\r\n\r\n// QICoreProcedure\r\n// @profile: http://hl7.org/fhir/us/qicore/StructureDefinition/qicore-procedure\r\ndefine Procedure:\r\n  [Procedure] P\r\n    where P.status in { 'preparation', 'in-progress', 'on-hold', 'completed' }\r\n\r\ndefine ProcedurePerformed:\r\n  Procedure P\r\n    where P.status = 'completed'\r\n\r\n/*\r\ndefine \"Flexible Sigmoidoscopy Performed\":\r\n [Procedure: \"Flexible Sigmoidoscopy\"] FlexibleSigmoidoscopy\r\n\t where FlexibleSigmoidoscopy.status = 'completed'\r\n\t\t and Global.\"Normalize Interval\"(FlexibleSigmoidoscopy.performed) ends 5 years or less on or before end of \"Measurement Period\"\r\n\r\ndefine \"Flexible Sigmoidoscopy Performed\":\r\n  QICore.ProcedurePerformed FlexibleSigmoidoscopy\r\n    where FlexibleSigmoidoscopy.code in \"Flexible Sigmoidoscopy\"\r\n      and FlexibleSigmoidoscopy.performed.toInterval() ends 5 years or less on or before end of \"Measurement Period\"\r\n*/\r\n\r\n// QICoreProcedureNotDone\r\n// @profile: http://hl7.org/fhir/us/qicore/StructureDefinition/qicore-procedurenotdone\r\ndefine ProcedureNotDone:\r\n  [Procedure] P\r\n    where P.status = 'not-done'\r\n\r\n/*\r\ndefine \"No VTE Prophylaxis Device Applied\":\r\n  [\"Procedure\": \"Device Application\"] DeviceApplied\r\n    let DeviceNotDoneTiming: Global.GetExtension(DeviceApplied, 'qicore-recorded').value\r\n    where (DeviceApplied.usedCode in \"Intermittent pneumatic compression devices (IPC)\"\r\n      or DeviceApplied.usedCode in \"Venous foot pumps (VFP)\"\r\n      or DeviceApplied.usedCode in \"Graduated compression stockings (GCS)\"\r\n    )\r\n      and  DeviceApplied.status = 'not-done'\r\n    return {id: DeviceApplied.id, requestStatusReason: DeviceApplied.statusReason, authoredOn: DeviceNotDoneTiming}\r\n\r\ndefine \"No VTE Prophylaxis Device Applied\":\r\n  QICore.ProcedureNotDone DeviceApplied\r\n    where DeviceApplied.code in \"Device Application\"\r\n      and (DeviceApplied.usedCode in \"Intermittent pneumatic compression devices (IPC)\"\r\n        or DeviceApplied.usedCode in \"Venous foot pumps (VFP)\"\r\n        or DeviceApplied.usedCode in \"Graduated compression stockings (GCS)\")\r\n    return {\r\n      id: DeviceApplied.id,\r\n      requestStatusReason: DeviceApplied.statusReason,\r\n      authoredOn: DeviceApplied.recorded()\r\n    }\r\n\r\n*/\r\n\r\n// QICoreRelatedPerson\r\n// @profile: http://hl7.org/fhir/us/qicore/StructureDefinition/qicore-relatedperson\r\ndefine RelatedPerson:\r\n  [RelatedPerson]\r\n\r\n// QICoreServiceNotRequested\r\n// @profile: http://hl7.org/fhir/us/qicore/StructureDefinition/qicore-servicenotrequested\r\ndefine ServiceNotRequested:\r\n  [ServiceRequest] SR\r\n    where SR.status = 'completed'\r\n      and SR.doNotPerform is true\r\n\r\n/*\r\ndefine \"No VTE Prophylaxis Device Order\":\r\n  ([\"ServiceRequest\": \"Venous foot pumps (VFP)\"]\r\n    union [\"ServiceRequest\": \"Intermittent pneumatic compression devices (IPC)\"]\r\n    union [\"ServiceRequest\": \"Graduated compression stockings (GCS)\"]\r\n  ) DeviceOrder\r\n    where DeviceOrder.status = 'completed'\r\n      and DeviceOrder.doNotPerform is true\r\n\r\ndefine \"No VTE Prophylaxis Device Order\":\r\n  QICore.ServiceNotRequested DeviceOrder\r\n    where DeviceOrder.code in \"Venous foot pumps (VFP)\"\r\n      or DeviceOrder.code in \"Intermittent pneumatic compression devices (IPC)\"\r\n      or DeviceOrder.code in \"Graduated compression stockings (GCS)\"\r\n*/\r\n\r\n// QICoreServiceRequest\r\n// @profile: http://hl7.org/fhir/us/qicore/StructureDefinition/qicore-servicerequest\r\ndefine ServiceRequest:\r\n  [ServiceRequest] SR\r\n    where SR.status in { 'draft', 'active', 'on-hold', 'completed' }\r\n      and SR.doNotPerform is not true\r\n\r\n/*\r\ndefine \"Intervention Comfort Measures\":\r\n  ([\"ServiceRequest\": \"Comfort Measures\"] P\r\n    where P.intent = 'order'\r\n  )\r\n    union ([\"Procedure\": \"Comfort Measures\"] InterventionPerformed\r\n      where InterventionPerformed.status in {'completed', 'in-progress'}\r\n    )\r\n\r\ndefine \"Intervention Comfort Measures\":\r\n  (QICore.ServiceRequest SR\r\n    where SR.code in \"Comfort Measures\"\r\n      and SR.intent = 'order'\r\n  )\r\n    union (\r\n      QICore.Procedure InterventionPerformed\r\n        where InterventionPerformed.code in \"Comfort Measures\"\r\n          and InterventionPerformed.status in { 'completed', 'in-progress' }\r\n    )\r\n*/\r\n\r\n// QICoreSpecimen\r\n// @profile: http://hl7.org/fhir/us/qicore/StructureDefinition/qicore-specimen\r\ndefine Specimen:\r\n  [Specimen]\r\n\r\n// QICoreSubstance\r\n// @profile: http://hl7.org/fhir/us/qicore/StructureDefinition/qicore-substance\r\ndefine Substance:\r\n  [Substance]\r\n\r\n// QICoreTask\r\n// @profile: http://hl7.org/fhir/us/qicore/StructureDefinition/qicore-task\r\ndefine Task:\r\n  [Task] T\r\n    where T.status in { 'draft', 'requested', 'received', 'accepted', 'ready', 'in-progress', 'on-hold', 'completed' }\r\n\r\n// QICoreTaskNotDone\r\n// @profile: http://hl7.org/fhir/us/qicore/StructureDefinition/qicore-tasknotdone\r\n// TODO: What about cancelled and failed?\r\ndefine TaskNotDone:\r\n  [Task] T\r\n    where T.status = 'rejected'\r\n\r\ndefine TestPatientGender:\r\n  Patient P\r\n    where P.gender = 'male'\r\n\r\ndefine TestPatientActive:\r\n  Patient P\r\n    where P.active is true\r\n\r\ndefine TestPatientBirthDate:\r\n  Patient P\r\n    where P.birthDate before Today()\r\n\r\ndefine TestPatientMaritalStatusMembership:\r\n  Patient P\r\n    where P.maritalStatus in \"Marital Status\"\r\n\r\ndefine TestPatientMartialStatusComparison:\r\n  Patient P\r\n    where P.maritalStatus ~ \"Marital Status - Married\"\r\n\r\ndefine TestPatientDeceasedAsBoolean:\r\n  Patient P\r\n    where P.deceased is false\r\n\r\ndefine TestPatientDeceasedAsDateTime:\r\n  Patient P\r\n    where P.deceased before Today()\r\n\r\ndefine TestSlices:\r\n  [Observation: \"Blood pressure\"] O\r\n    let\r\n      systolicBP: singleton from (O.component SBP where SBP.code ~ \"Systolic blood pressure\"),\r\n      diastolicBP: singleton from (O.component DBP where DBP.code ~ \"Diastolic blood pressure\")\r\n    where O.status in { 'registered', 'preliminary', 'final', 'amended', 'corrected' }\r\n      and systolicBP.value &lt; 140 'mm[Hg]'\r\n      and diastolicBP.value &lt; 90 'mm[Hg]'\r\n\r\ndefine TestSimpleExtensions:\r\n  Patient P\r\n    where P.birthsex() = 'M'\r\n\r\ndefine TestComplexExtensions:\r\n  Patient P\r\n    where exists ((P.race().ombCategory) C where C ~ \"American Indian or Alaska Native\")\r\n      and exists ((P.race().detailed) C where C ~ \"Alaska Native\")\r\n</code></pre></td></tr>\n            </table>\n          </td>\n        </tr>\n        \n        \n        \n        \n        \n        <tr>\n          <td colspan=\"2\">\n            <table>\n              <tr><th><b>Content: </b> application/elm+xml</th></tr>\n              <tr><td><pre><code>Encoded data (205164 characters)</code></pre></td></tr>\n            </table>\n          </td>\n        </tr>\n        \n        \n        \n        \n        <tr>\n          <td colspan=\"2\">\n            <table>\n              <tr><th><b>Content: </b> application/elm+json</th></tr>\n              <tr><td><pre><code>Encoded data (360476 characters)</code></pre></td></tr>\n            </table>\n          </td>\n        </tr>\n        \n        \n    </table>\n</div>"
      },
      "url" : "http://hl7.org/fhir/us/qicore/Library/QICoreCommonTests",
      "version" : "4.1.0",
      "name" : "QICoreCommonTests",
      "title" : "QICore Common Tests",
      "status" : "active",
      "experimental" : false,
      "type" : {
        "coding" : [
          {
            "system" : "http://terminology.hl7.org/CodeSystem/library-type",
            "code" : "logic-library"
          }
        ]
      },
      "date" : "2020-11-29T15:54:22-07:00",
      "publisher" : "http://www.hl7.org/Special/committees/cqi/index.cfm",
      "contact" : [
        {
          "name" : "Clinical Quality Information WG",
          "telecom" : [
            {
              "system" : "url",
              "value" : "http://www.hl7.org/Special/committees/cqi"
            }
          ]
        }
      ],
      "description" : "This library defines tests for the QICoreCommon library.",
      "jurisdiction" : [
        {
          "coding" : [
            {
              "system" : "urn:iso:std:iso:3166",
              "code" : "US"
            }
          ]
        }
      ],
      "approvalDate" : "2021-11-06",
      "lastReviewDate" : "2021-11-06",
      "topic" : [
        {
          "text" : "FHIR"
        },
        {
          "text" : "CQL"
        },
        {
          "text" : "QICore"
        }
      ],
      "relatedArtifact" : [
        {
          "type" : "depends-on",
          "display" : "Library Common",
          "resource" : "http://hl7.org/fhir/us/qicore/Library/QICoreCommon"
        },
        {
          "type" : "depends-on",
          "display" : "Code system Marital Status Codes",
          "resource" : "http://terminology.hl7.org/CodeSystem/v3-MaritalStatus"
        },
        {
          "type" : "depends-on",
          "display" : "Code system CDC Race and Ethnicity Codes",
          "resource" : "urn:oid:2.16.840.1.113883.6.238"
        },
        {
          "type" : "depends-on",
          "display" : "Code system LOINC",
          "resource" : "http://loinc.org"
        },
        {
          "type" : "depends-on",
          "display" : "Value set Marital Status",
          "resource" : "http://hl7.org/fhir/ValueSet/marital-status"
        }
      ],
      "parameter" : [
        {
          "name" : "Patient",
          "use" : "out",
          "min" : 0,
          "max" : "1",
          "type" : "Patient"
        },
        {
          "name" : "AdverseEvent",
          "use" : "out",
          "min" : 0,
          "max" : "*",
          "type" : "AdverseEvent"
        },
        {
          "name" : "AllergyIntolerance",
          "use" : "out",
          "min" : 0,
          "max" : "*",
          "type" : "AllergyIntolerance"
        },
        {
          "name" : "BodyStructure",
          "use" : "out",
          "min" : 0,
          "max" : "*",
          "type" : "BodyStructure"
        },
        {
          "name" : "CarePlan",
          "use" : "out",
          "min" : 0,
          "max" : "*",
          "type" : "CarePlan"
        },
        {
          "name" : "CareTeam",
          "use" : "out",
          "min" : 0,
          "max" : "*",
          "type" : "CareTeam"
        },
        {
          "name" : "Claim",
          "use" : "out",
          "min" : 0,
          "max" : "*",
          "type" : "Claim"
        },
        {
          "name" : "Communication",
          "use" : "out",
          "min" : 0,
          "max" : "*",
          "type" : "Communication"
        },
        {
          "name" : "CommunicationNotDone",
          "use" : "out",
          "min" : 0,
          "max" : "*",
          "type" : "Communication"
        },
        {
          "name" : "CommunicationRequest",
          "use" : "out",
          "min" : 0,
          "max" : "*",
          "type" : "CommunicationRequest"
        },
        {
          "name" : "Condition",
          "use" : "out",
          "min" : 0,
          "max" : "*",
          "type" : "Condition"
        },
        {
          "name" : "Coverage",
          "use" : "out",
          "min" : 0,
          "max" : "*",
          "type" : "Coverage"
        },
        {
          "name" : "Device",
          "use" : "out",
          "min" : 0,
          "max" : "*",
          "type" : "Device"
        },
        {
          "name" : "DeviceNotRequested",
          "use" : "out",
          "min" : 0,
          "max" : "*",
          "type" : "DeviceRequest"
        },
        {
          "name" : "DeviceRequest",
          "use" : "out",
          "min" : 0,
          "max" : "*",
          "type" : "DeviceRequest"
        },
        {
          "name" : "DiagnosticReportLab",
          "use" : "out",
          "min" : 0,
          "max" : "*",
          "type" : "DiagnosticReport"
        },
        {
          "name" : "DiagnosticReportNote",
          "use" : "out",
          "min" : 0,
          "max" : "*",
          "type" : "DiagnosticReport"
        },
        {
          "name" : "Encounter",
          "use" : "out",
          "min" : 0,
          "max" : "*",
          "type" : "Encounter"
        },
        {
          "name" : "EncounterPerformed",
          "use" : "out",
          "min" : 0,
          "max" : "*",
          "type" : "Encounter"
        },
        {
          "name" : "FamilyMemberHistory",
          "use" : "out",
          "min" : 0,
          "max" : "*",
          "type" : "FamilyMemberHistory"
        },
        {
          "name" : "Flag",
          "use" : "out",
          "min" : 0,
          "max" : "*",
          "type" : "Flag"
        },
        {
          "name" : "Goal",
          "use" : "out",
          "min" : 0,
          "max" : "*",
          "type" : "Goal"
        },
        {
          "name" : "ImagingStudy",
          "use" : "out",
          "min" : 0,
          "max" : "*",
          "type" : "ImagingStudy"
        },
        {
          "name" : "Immunization",
          "use" : "out",
          "min" : 0,
          "max" : "*",
          "type" : "Immunization"
        },
        {
          "name" : "ImmunizationEvaluation",
          "use" : "out",
          "min" : 0,
          "max" : "*",
          "type" : "ImmunizationEvaluation"
        },
        {
          "name" : "ImmunizationNotDone",
          "use" : "out",
          "min" : 0,
          "max" : "*",
          "type" : "Immunization"
        },
        {
          "name" : "ImmunizationRecommendation",
          "use" : "out",
          "min" : 0,
          "max" : "*",
          "type" : "ImmunizationRecommendation"
        },
        {
          "name" : "ImplantableDevice",
          "use" : "out",
          "min" : 0,
          "max" : "*",
          "type" : "Device"
        },
        {
          "name" : "Location",
          "use" : "out",
          "min" : 0,
          "max" : "*",
          "type" : "Location"
        },
        {
          "name" : "Medication",
          "use" : "out",
          "min" : 0,
          "max" : "*",
          "type" : "Medication"
        },
        {
          "name" : "MedicationAdministration",
          "use" : "out",
          "min" : 0,
          "max" : "*",
          "type" : "MedicationAdministration"
        },
        {
          "name" : "MedicationAdministrationNotDone",
          "use" : "out",
          "min" : 0,
          "max" : "*",
          "type" : "MedicationAdministration"
        },
        {
          "name" : "MedicationDispense",
          "use" : "out",
          "min" : 0,
          "max" : "*",
          "type" : "MedicationDispense"
        },
        {
          "name" : "MedicationDispenseNotDone",
          "use" : "out",
          "min" : 0,
          "max" : "*",
          "type" : "MedicationDispense"
        },
        {
          "name" : "MedicationNotRequested",
          "use" : "out",
          "min" : 0,
          "max" : "*",
          "type" : "MedicationRequest"
        },
        {
          "name" : "MedicationRequest",
          "use" : "out",
          "min" : 0,
          "max" : "*",
          "type" : "MedicationRequest"
        },
        {
          "name" : "NutritionOrder",
          "use" : "out",
          "min" : 0,
          "max" : "*",
          "type" : "NutritionOrder"
        },
        {
          "name" : "Observation",
          "use" : "out",
          "min" : 0,
          "max" : "*",
          "type" : "Observation"
        },
        {
          "name" : "ObservationNotDone",
          "use" : "out",
          "min" : 0,
          "max" : "*",
          "type" : "Observation"
        },
        {
          "name" : "Organization",
          "use" : "out",
          "min" : 0,
          "max" : "*",
          "type" : "Organization"
        },
        {
          "name" : "Practitioner",
          "use" : "out",
          "min" : 0,
          "max" : "*",
          "type" : "Practitioner"
        },
        {
          "name" : "PractitionerRole",
          "use" : "out",
          "min" : 0,
          "max" : "*",
          "type" : "PractitionerRole"
        },
        {
          "name" : "Procedure",
          "use" : "out",
          "min" : 0,
          "max" : "*",
          "type" : "Procedure"
        },
        {
          "name" : "ProcedurePerformed",
          "use" : "out",
          "min" : 0,
          "max" : "*",
          "type" : "Procedure"
        },
        {
          "name" : "ProcedureNotDone",
          "use" : "out",
          "min" : 0,
          "max" : "*",
          "type" : "Procedure"
        },
        {
          "name" : "RelatedPerson",
          "use" : "out",
          "min" : 0,
          "max" : "*",
          "type" : "RelatedPerson"
        },
        {
          "name" : "ServiceNotRequested",
          "use" : "out",
          "min" : 0,
          "max" : "*",
          "type" : "ServiceRequest"
        },
        {
          "name" : "ServiceRequest",
          "use" : "out",
          "min" : 0,
          "max" : "*",
          "type" : "ServiceRequest"
        },
        {
          "name" : "Specimen",
          "use" : "out",
          "min" : 0,
          "max" : "*",
          "type" : "Specimen"
        },
        {
          "name" : "Substance",
          "use" : "out",
          "min" : 0,
          "max" : "*",
          "type" : "Substance"
        },
        {
          "name" : "Task",
          "use" : "out",
          "min" : 0,
          "max" : "*",
          "type" : "Task"
        },
        {
          "name" : "TaskNotDone",
          "use" : "out",
          "min" : 0,
          "max" : "*",
          "type" : "Task"
        },
        {
          "name" : "TestPatientGender",
          "use" : "out",
          "min" : 0,
          "max" : "1",
          "type" : "Patient"
        },
        {
          "name" : "TestPatientActive",
          "use" : "out",
          "min" : 0,
          "max" : "1",
          "type" : "Patient"
        },
        {
          "name" : "TestPatientBirthDate",
          "use" : "out",
          "min" : 0,
          "max" : "1",
          "type" : "Patient"
        },
        {
          "name" : "TestPatientMaritalStatusMembership",
          "use" : "out",
          "min" : 0,
          "max" : "1",
          "type" : "Patient"
        },
        {
          "name" : "TestPatientMartialStatusComparison",
          "use" : "out",
          "min" : 0,
          "max" : "1",
          "type" : "Patient"
        },
        {
          "name" : "TestPatientDeceasedAsBoolean",
          "use" : "out",
          "min" : 0,
          "max" : "1",
          "type" : "Patient"
        },
        {
          "name" : "TestPatientDeceasedAsDateTime",
          "use" : "out",
          "min" : 0,
          "max" : "1",
          "type" : "Patient"
        },
        {
          "name" : "TestSlices",
          "use" : "out",
          "min" : 0,
          "max" : "*",
          "type" : "Observation"
        },
        {
          "name" : "TestSimpleExtensions",
          "use" : "out",
          "min" : 0,
          "max" : "1",
          "type" : "Patient"
        },
        {
          "name" : "TestComplexExtensions",
          "use" : "out",
          "min" : 0,
          "max" : "1",
          "type" : "Patient"
        }
      ],
      "dataRequirement" : [
        {
          "type" : "Patient",
          "profile" : [
            "http://hl7.org/fhir/StructureDefinition/Patient"
          ],
          "mustSupport" : [
            "deceased",
            "gender",
            "active",
            "birthDate",
            "maritalStatus"
          ]
        },
        {
          "type" : "AdverseEvent",
          "profile" : [
            "http://hl7.org/fhir/StructureDefinition/AdverseEvent"
          ]
        },
        {
          "type" : "AllergyIntolerance",
          "profile" : [
            "http://hl7.org/fhir/StructureDefinition/AllergyIntolerance"
          ]
        },
        {
          "type" : "BodyStructure",
          "profile" : [
            "http://hl7.org/fhir/StructureDefinition/BodyStructure"
          ]
        },
        {
          "type" : "CarePlan",
          "profile" : [
            "http://hl7.org/fhir/StructureDefinition/CarePlan"
          ]
        },
        {
          "type" : "CareTeam",
          "profile" : [
            "http://hl7.org/fhir/StructureDefinition/CareTeam"
          ]
        },
        {
          "type" : "Claim",
          "profile" : [
            "http://hl7.org/fhir/StructureDefinition/Claim"
          ]
        },
        {
          "type" : "Communication",
          "profile" : [
            "http://hl7.org/fhir/StructureDefinition/Communication"
          ],
          "mustSupport" : [
            "status"
          ]
        },
        {
          "type" : "CommunicationRequest",
          "profile" : [
            "http://hl7.org/fhir/StructureDefinition/CommunicationRequest"
          ]
        },
        {
          "type" : "Condition",
          "profile" : [
            "http://hl7.org/fhir/StructureDefinition/Condition"
          ]
        },
        {
          "type" : "Coverage",
          "profile" : [
            "http://hl7.org/fhir/StructureDefinition/Coverage"
          ]
        },
        {
          "type" : "Device",
          "profile" : [
            "http://hl7.org/fhir/StructureDefinition/Device"
          ]
        },
        {
          "type" : "DeviceRequest",
          "profile" : [
            "http://hl7.org/fhir/StructureDefinition/DeviceRequest"
          ],
          "mustSupport" : [
            "status"
          ]
        },
        {
          "type" : "DiagnosticReport",
          "profile" : [
            "http://hl7.org/fhir/StructureDefinition/DiagnosticReport"
          ]
        },
        {
          "type" : "Encounter",
          "profile" : [
            "http://hl7.org/fhir/StructureDefinition/Encounter"
          ],
          "mustSupport" : [
            "status"
          ]
        },
        {
          "type" : "FamilyMemberHistory",
          "profile" : [
            "http://hl7.org/fhir/StructureDefinition/FamilyMemberHistory"
          ]
        },
        {
          "type" : "Flag",
          "profile" : [
            "http://hl7.org/fhir/StructureDefinition/Flag"
          ]
        },
        {
          "type" : "Goal",
          "profile" : [
            "http://hl7.org/fhir/StructureDefinition/Goal"
          ]
        },
        {
          "type" : "ImagingStudy",
          "profile" : [
            "http://hl7.org/fhir/StructureDefinition/ImagingStudy"
          ]
        },
        {
          "type" : "Immunization",
          "profile" : [
            "http://hl7.org/fhir/StructureDefinition/Immunization"
          ],
          "mustSupport" : [
            "status"
          ]
        },
        {
          "type" : "ImmunizationEvaluation",
          "profile" : [
            "http://hl7.org/fhir/StructureDefinition/ImmunizationEvaluation"
          ]
        },
        {
          "type" : "ImmunizationRecommendation",
          "profile" : [
            "http://hl7.org/fhir/StructureDefinition/ImmunizationRecommendation"
          ]
        },
        {
          "type" : "Location",
          "profile" : [
            "http://hl7.org/fhir/StructureDefinition/Location"
          ]
        },
        {
          "type" : "Medication",
          "profile" : [
            "http://hl7.org/fhir/StructureDefinition/Medication"
          ]
        },
        {
          "type" : "MedicationAdministration",
          "profile" : [
            "http://hl7.org/fhir/StructureDefinition/MedicationAdministration"
          ],
          "mustSupport" : [
            "status"
          ]
        },
        {
          "type" : "MedicationDispense",
          "profile" : [
            "http://hl7.org/fhir/StructureDefinition/MedicationDispense"
          ],
          "mustSupport" : [
            "status"
          ]
        },
        {
          "type" : "MedicationRequest",
          "profile" : [
            "http://hl7.org/fhir/StructureDefinition/MedicationRequest"
          ],
          "mustSupport" : [
            "doNotPerform",
            "status"
          ]
        },
        {
          "type" : "NutritionOrder",
          "profile" : [
            "http://hl7.org/fhir/StructureDefinition/NutritionOrder"
          ]
        },
        {
          "type" : "Observation",
          "profile" : [
            "http://hl7.org/fhir/StructureDefinition/Observation"
          ],
          "mustSupport" : [
            "status"
          ]
        },
        {
          "type" : "Observation",
          "profile" : [
            "http://hl7.org/fhir/StructureDefinition/Observation"
          ],
          "mustSupport" : [
            "component",
            "code",
            "status"
          ],
          "codeFilter" : [
            {
              "path" : "code",
              "code" : [
                {
                  "system" : "http://loinc.org",
                  "code" : "85354-9",
                  "display" : "Blood pressure panel with all children optional"
                }
              ]
            }
          ]
        },
        {
          "type" : "Organization",
          "profile" : [
            "http://hl7.org/fhir/StructureDefinition/Organization"
          ]
        },
        {
          "type" : "Practitioner",
          "profile" : [
            "http://hl7.org/fhir/StructureDefinition/Practitioner"
          ]
        },
        {
          "type" : "PractitionerRole",
          "profile" : [
            "http://hl7.org/fhir/StructureDefinition/PractitionerRole"
          ]
        },
        {
          "type" : "Procedure",
          "profile" : [
            "http://hl7.org/fhir/StructureDefinition/Procedure"
          ],
          "mustSupport" : [
            "status"
          ]
        },
        {
          "type" : "RelatedPerson",
          "profile" : [
            "http://hl7.org/fhir/StructureDefinition/RelatedPerson"
          ]
        },
        {
          "type" : "ServiceRequest",
          "profile" : [
            "http://hl7.org/fhir/StructureDefinition/ServiceRequest"
          ],
          "mustSupport" : [
            "doNotPerform",
            "status"
          ]
        },
        {
          "type" : "Specimen",
          "profile" : [
            "http://hl7.org/fhir/StructureDefinition/Specimen"
          ]
        },
        {
          "type" : "Substance",
          "profile" : [
            "http://hl7.org/fhir/StructureDefinition/Substance"
          ]
        },
        {
          "type" : "Task",
          "profile" : [
            "http://hl7.org/fhir/StructureDefinition/Task"
          ],
          "mustSupport" : [
            "status"
          ]
        }
      ],
      "content" : [
        {
          "contentType" : "text/cql",
          "data" : "[encoded data, 23644 characters]"
        },
        {
          "contentType" : "application/elm+xml",
          "data" : "[encoded data, 205164 characters]"
        },
        {
          "contentType" : "application/elm+json",
          "data" : "[encoded data, 360476 characters]"
        }
      ]
    }