HL7 FHIR® Implementation Guide: Electronic Case Reporting (eCR) - US Realm, published by HL7 International / Public Health. This guide is not an authorized publication; it is the continuous build for version 2.1.2 built by the FHIR (HL7® FHIR® Standard) CI Build. This version is based on the current content of https://github.com/HL7/case-reporting/ and changes regularly. See the Directory of published versions
Active as of 2020-07-31 |
@prefix fhir: <http://hl7.org/fhir/> . @prefix owl: <http://www.w3.org/2002/07/owl#> . @prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> . @prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#> . @prefix xsd: <http://www.w3.org/2001/XMLSchema#> . # - resource ------------------------------------------------------------------- a fhir:PlanDefinition ; fhir:nodeRole fhir:treeRoot ; fhir:id [ fhir:v "plandefinition-ersd-instance-simple-example"] ; # fhir:meta [ ( fhir:profile [ fhir:v "http://hl7.org/fhir/us/ecr/StructureDefinition/ersd-plandefinition"^^xsd:anyURI ; fhir:link <http://hl7.org/fhir/us/ecr/StructureDefinition/ersd-plandefinition> ] ) ] ; # fhir:text [ fhir:status [ fhir:v "extensions" ] ; fhir:div "<div xmlns=\"http://www.w3.org/1999/xhtml\">\n<div>\n <table class=\"grid dict\">\n \n <tr>\n <th scope=\"row\"><b>Id: </b></th>\n <td style=\"padding-left: 4px;\">plandefinition-ersd-instance-simple-example</td>\n </tr>\n \n\n \n <tr>\n <th scope=\"row\"><b>Url: </b></th>\n <td style=\"padding-left: 4px;\"><a href=\"PlanDefinition-plandefinition-ersd-instance-simple-example.html\">eRSD PlanDefinition Instance Simple Example</a></td>\n </tr>\n \n\n \n <tr>\n <th scope=\"row\"><b>Version: </b></th>\n <td style=\"padding-left: 4px;\">2.1.2</td>\n </tr>\n \n\n \n <tr>\n <th scope=\"row\">\n <b>\n \n \n \n </b>\n </th>\n <td style=\"padding-left: 4px;\">\n \n <p style=\"margin-bottom: 5px;\">\n <span>urn:oid:2.16.840.1.113883.4.642.40.46.34.4</span>\n </p>\n \n </td>\n </tr>\n \n\n \n <tr>\n <th scope=\"row\"><b>Title: </b></th>\n <td style=\"padding-left: 4px;\">eRSD PlanDefinition Instance Simple Example</td>\n </tr>\n \n\n \n\n \n\n \n <tr>\n <th scope=\"row\"><b>Experimental: </b></th>\n <td style=\"padding-left: 4px;\">true</td>\n </tr>\n \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><a href=\"http://terminology.hl7.org/6.2.0/CodeSystem-plan-definition-type.html\">http://terminology.hl7.org/CodeSystem/plan-definition-type</a></span>\n </p>\n \n \n <p style=\"margin-bottom: 5px;\">\n <b>code: </b> <span>workflow-definition</span>\n </p>\n \n \n <p style=\"margin-bottom: 5px;\">\n <b>display: </b> <span>Workflow Definition</span>\n </p>\n \n \n \n \n </td>\n </tr>\n \n\n \n\n \n <tr>\n <th scope=\"row\"><b>Date: </b></th>\n <td style=\"padding-left: 4px;\">2020-07-31 12:32:29-0500</td>\n </tr>\n \n\n \n <tr>\n <th scope=\"row\"><b>Publisher: </b></th>\n <td style=\"padding-left: 4px;\">HL7 International / Public Health</td>\n </tr>\n \n\n \n <tr>\n <th scope=\"row\"><b>Description: </b></th>\n <td style=\"padding-left: 4px;\"><div><p>An example ersd PlanDefinition</p>\n</div></td>\n </tr>\n \n\n \n\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\n \n\n \n\n \n\n \n\n \n\n \n\n \n <tr>\n <th scope=\"row\"><b>Actions: </b></th>\n <td style=\"padding-left: 4px;\">\n <table class=\"grid-dict\">\n \n <tr>\n <td>\n \n Start the reporting workflow in response to an encounter-start event\n \n <br/>\n \n <b>When:</b>\n \n <i>Named Event:</i> encounter-start\n <br/>\n \n \n \n \n \n \n </td>\n </tr>\n \n <tr>\n <td>\n \n Check suspected disorders for immediate reportability and setup jobs for future reportability checks.\n \n <br/>\n \n \n \n <b>Then:</b>\n <table class=\"grid-dict\">\n \n <tr>\n <td>\n \n Check Trigger Codes based on Suspected Reportable Value set.\n \n <br/>\n \n \n <b>If:</b>\n \n <i>Applicability:</i>\n \n <i>(%modifiedConditions.exists() or %modifiedLabResults.exists() or %modifiedMedicationOrders.exists())</i>\n <br/>\n \n \n \n \n \n </td>\n </tr>\n \n <tr>\n <td>\n \n <b> :</b>\n \n \n <br/>\n \n \n <b>If:</b>\n \n <i>Applicability:</i>\n \n <i>(%encounter.where((status = 'in-progress' and period.start + %normalReportingDuration < now()) or status = 'finished' and period.end <= now() - 72 hours))</i>\n <br/>\n \n \n \n \n \n </td>\n </tr>\n \n </table>\n \n </td>\n </tr>\n \n <tr>\n <td>\n \n Check Reportability and setup jobs for future reportability checks.\n \n <br/>\n \n \n \n <b>Then:</b>\n <table class=\"grid-dict\">\n \n <tr>\n <td>\n \n Check Trigger Codes based on RCTC Value sets.\n \n <br/>\n \n \n <b>If:</b>\n \n <i>Applicability:</i>\n \n <i>(%encounter.where(period.start + %normalReportingDuration >= now()) and (%conditions.exists() or %encounters.exists() or %immunizations.exists() or %procedures.exists() or %procedureOrders.exists() or %labOrders.exists() or %labTests.exists() or %labResults.exists() or %medicationAdministrations.exists() or %medicationOrders.exists() or %medicationDispenses.exists()))</i>\n <br/>\n \n \n \n \n \n </td>\n </tr>\n \n <tr>\n <td>\n \n <b> :</b>\n \n \n <br/>\n \n \n <b>If:</b>\n \n <i>Applicability:</i>\n \n <i>(%last-eicr.last().entry.first().resource.date < now() - 72 hours)</i>\n <br/>\n \n \n \n \n \n </td>\n </tr>\n \n <tr>\n <td>\n \n <b> :</b>\n \n \n <br/>\n \n \n <b>If:</b>\n \n <i>Applicability:</i>\n \n <i>(%`inprogress-encounter`.where(status = 'in-progress' and period.start + %normalReportingDuration >= now() and period.end <= now() - 72 hours))</i>\n <br/>\n \n \n \n \n \n </td>\n </tr>\n \n <tr>\n <td>\n \n <b> :</b>\n \n \n <br/>\n \n \n <b>If:</b>\n \n <i>Applicability:</i>\n \n <i>(%completedEncounter.exists(status = 'finished'))</i>\n <br/>\n \n \n \n \n \n </td>\n </tr>\n \n </table>\n \n </td>\n </tr>\n \n <tr>\n <td>\n \n Create eICR\n \n <br/>\n \n \n \n \n \n </td>\n </tr>\n \n <tr>\n <td>\n \n Validate eICR\n \n <br/>\n \n \n \n \n \n </td>\n </tr>\n \n <tr>\n <td>\n \n Route and send eICR\n \n <br/>\n \n \n \n \n \n </td>\n </tr>\n \n <tr>\n <td>\n \n Start the reporting workflow in response to an encounter-modified event\n \n <br/>\n \n <b>When:</b>\n \n <i>Named Event:</i> encounter-modified\n <br/>\n \n \n \n <b>If:</b>\n \n <i>Applicability:</i>\n \n <i>(%encounter.where(period.start + %normalReportingDuration < now()))</i>\n <br/>\n \n \n \n \n \n </td>\n </tr>\n \n </table>\n </td>\n </tr>\n \n </table>\n</div>\n</div>"^^rdf:XMLLiteral ] ; # fhir:extension ( [ fhir:url [ fhir:v "http://hl7.org/fhir/StructureDefinition/variable"^^xsd:anyURI ] ; fhir:value [ a fhir:Expression ; fhir:name [ fhir:v "normalReportingDuration" ] ; fhir:language [ fhir:v "text/fhirpath" ] ; fhir:expression [ fhir:v "2 weeks" ] ] ] ) ; # fhir:url [ fhir:v "http://hl7.org/fhir/us/ecr/PlanDefinition/plandefinition-ersd-instance-simple-example"^^xsd:anyURI] ; # fhir:identifier ( [ fhir:system [ fhir:v "urn:ietf:rfc:3986"^^xsd:anyURI ] ; fhir:value [ fhir:v "urn:oid:2.16.840.1.113883.4.642.40.46.34.4" ] ] ) ; # fhir:version [ fhir:v "2.1.2"] ; # fhir:name [ fhir:v "PlanDefinition_eRSD_Instance_Simple_Example"] ; # fhir:title [ fhir:v "eRSD PlanDefinition Instance Simple Example"] ; # fhir:type [ ( fhir:coding [ fhir:system [ fhir:v "http://terminology.hl7.org/CodeSystem/plan-definition-type"^^xsd:anyURI ] ; fhir:code [ fhir:v "workflow-definition" ] ; fhir:display [ fhir:v "Workflow Definition" ] ] ) ] ; # fhir:status [ fhir:v "active"] ; # fhir:experimental [ fhir:v true] ; # fhir:date [ fhir:v "2020-07-31T12:32:29.858-05:00"^^xsd:dateTime] ; # fhir:publisher [ fhir:v "HL7 International / Public Health"] ; # fhir:contact ( [ fhir:name [ fhir:v "HL7 International / Public Health" ] ; ( fhir:telecom [ fhir:system [ fhir:v "url" ] ; fhir:value [ fhir:v "http://www.hl7.org/Special/committees/pher" ] ] ) ] ) ; # fhir:description [ fhir:v "An example ersd PlanDefinition"] ; # fhir:jurisdiction ( [ ( fhir:coding [ fhir:system [ fhir:v "urn:iso:std:iso:3166"^^xsd:anyURI ] ; fhir:code [ fhir:v "US" ] ; fhir:display [ fhir:v "United States of America" ] ] ) ; fhir:text [ fhir:v "United States of America" ] ] ) ; # fhir:action ( [ fhir:id [ fhir:v "start-workflow" ] ; fhir:description [ fhir:v "This action represents the start of the reporting workflow in response to the encounter-start event." ] ; fhir:textEquivalent [ fhir:v "Start the reporting workflow in response to an encounter-start event" ] ; ( fhir:code [ ( fhir:coding [ fhir:system [ fhir:v "http://hl7.org/fhir/us/ecr/CodeSystem/us-ph-plandefinition-actions"^^xsd:anyURI ] ; fhir:code [ fhir:v "initiate-reporting-workflow" ] ; fhir:display [ fhir:v "Initiate a reporting workflow" ] ] ) ] ) ; ( fhir:trigger [ fhir:id [ fhir:v "encounter-start" ] ; ( fhir:extension [ fhir:url [ fhir:v "http://hl7.org/fhir/us/ecr/StructureDefinition/us-ph-named-eventtype-extension"^^xsd:anyURI ] ; fhir:value [ a fhir:CodeableConcept ; ( fhir:coding [ fhir:system [ fhir:v "http://hl7.org/fhir/us/ecr/CodeSystem/us-ph-triggerdefinition-namedevents"^^xsd:anyURI ] ; fhir:code [ fhir:v "encounter-start" ] ; fhir:display [ fhir:v "Indicates the start of an encounter" ] ] ) ] ] ) ; fhir:type [ fhir:v "named-event" ] ; fhir:name [ fhir:v "encounter-start" ] ] ) ; ( fhir:input [ fhir:id [ fhir:v "patient" ] ; ( fhir:extension [ fhir:url [ fhir:v "http://hl7.org/fhir/us/ecr/StructureDefinition/us-ph-fhirquerypattern-extension"^^xsd:anyURI ] ; fhir:value [ a fhir:string ; fhir:v "Patient/{{context.patientId}}" ] ] ) ; fhir:type [ fhir:v "Patient" ] ] [ fhir:id [ fhir:v "encounter" ] ; ( fhir:extension [ fhir:url [ fhir:v "http://hl7.org/fhir/us/ecr/StructureDefinition/us-ph-fhirquerypattern-extension"^^xsd:anyURI ] ; fhir:value [ a fhir:string ; fhir:v "Encounter/{{context.encounterId}}" ] ] ) ; fhir:type [ fhir:v "Encounter" ] ] ) ; ( fhir:relatedAction [ fhir:actionId [ fhir:v "check-suspected-disorder" ] ; fhir:relationship [ fhir:v "before-start" ] ; fhir:offset [ a fhir:Duration ; fhir:value [ fhir:v "1"^^xsd:decimal ] ; fhir:system [ fhir:v "http://unitsofmeasure.org"^^xsd:anyURI ] ; fhir:code [ fhir:v "h" ] ] ] ) ] [ fhir:id [ fhir:v "check-suspected-disorder" ] ; fhir:description [ fhir:v "This action represents the start of the check suspected disorder reporting workflow in response to the encounter-start event." ] ; fhir:textEquivalent [ fhir:v "Check suspected disorders for immediate reportability and setup jobs for future reportability checks." ] ; ( fhir:code [ ( fhir:coding [ fhir:system [ fhir:v "http://hl7.org/fhir/us/ecr/CodeSystem/us-ph-plandefinition-actions"^^xsd:anyURI ] ; fhir:code [ fhir:v "execute-reporting-workflow" ] ] ) ] ) ; ( fhir:action [ fhir:id [ fhir:v "is-encounter-suspected-disorder" ] ; fhir:description [ fhir:v "This action represents the check for suspected disorder reportability to create the patients eICR." ] ; fhir:textEquivalent [ fhir:v "Check Trigger Codes based on Suspected Reportable Value set." ] ; ( fhir:code [ ( fhir:coding [ fhir:system [ fhir:v "http://hl7.org/fhir/us/ecr/CodeSystem/us-ph-plandefinition-actions"^^xsd:anyURI ] ; fhir:code [ fhir:v "check-trigger-codes" ] ] ) ] ) ; ( fhir:condition [ fhir:kind [ fhir:v "applicability" ] ; fhir:expression [ fhir:language [ fhir:v "text/fhirpath" ] ; fhir:expression [ fhir:v "%modifiedConditions.exists() or %modifiedLabResults.exists() or %modifiedMedicationOrders.exists()" ] ] ] ) ; ( fhir:input [ fhir:id [ fhir:v "modifiedConditions" ] ; ( fhir:extension [ fhir:url [ fhir:v "http://hl7.org/fhir/us/ecr/StructureDefinition/us-ph-fhirquerypattern-extension"^^xsd:anyURI ] ; fhir:value [ a fhir:string ; fhir:v "Condition?patient=Patient/{{context.patientId}}" ] ] ) ; fhir:type [ fhir:v "Condition" ] ; ( fhir:codeFilter [ fhir:path [ fhir:v "code" ] ; fhir:valueSet [ fhir:v "http://hl7.org/fhir/us/ecr/ValueSet/valueset-sdtc-example"^^xsd:anyURI ; fhir:link <http://hl7.org/fhir/us/ecr/ValueSet/valueset-sdtc-example> ] ] ) ] [ fhir:id [ fhir:v "modifiedLabResults" ] ; ( fhir:extension [ fhir:url [ fhir:v "http://hl7.org/fhir/us/ecr/StructureDefinition/us-ph-fhirquerypattern-extension"^^xsd:anyURI ] ; fhir:value [ a fhir:string ; fhir:v "Observation?patient=Patient/{{context.patientId}}" ] ] ) ; fhir:type [ fhir:v "Observation" ] ; ( fhir:codeFilter [ fhir:path [ fhir:v "value" ] ; fhir:valueSet [ fhir:v "http://hl7.org/fhir/us/ecr/ValueSet/valueset-lotc-example"^^xsd:anyURI ; fhir:link <http://hl7.org/fhir/us/ecr/ValueSet/valueset-lotc-example> ] ] ) ] [ fhir:id [ fhir:v "modifiedMedicationOrders" ] ; ( fhir:extension [ fhir:url [ fhir:v "http://hl7.org/fhir/us/ecr/StructureDefinition/us-ph-fhirquerypattern-extension"^^xsd:anyURI ] ; fhir:value [ a fhir:string ; fhir:v "MedicationRequest?patient=Patient/{{context.patientId}}" ] ] ) ; fhir:type [ fhir:v "MedicationRequest" ] ; ( fhir:codeFilter [ fhir:path [ fhir:v "medication" ] ; fhir:valueSet [ fhir:v "http://hl7.org/fhir/us/ecr/ValueSet/valueset-mrtc-example"^^xsd:anyURI ; fhir:link <http://hl7.org/fhir/us/ecr/ValueSet/valueset-mrtc-example> ] ] ) ] ) ; ( fhir:relatedAction [ fhir:actionId [ fhir:v "create-eicr" ] ; fhir:relationship [ fhir:v "before-start" ] ] ) ] [ fhir:id [ fhir:v "continue-check-reportable" ] ; ( fhir:code [ ( fhir:coding [ fhir:system [ fhir:v "http://hl7.org/fhir/us/ecr/CodeSystem/us-ph-plandefinition-actions"^^xsd:anyURI ] ; fhir:code [ fhir:v "evaluate-condition" ] ] ) ] ) ; ( fhir:condition [ fhir:kind [ fhir:v "applicability" ] ; fhir:expression [ fhir:language [ fhir:v "text/fhirpath" ] ; fhir:expression [ fhir:v "%encounter.where((status = 'in-progress' and period.start + %normalReportingDuration < now()) or status = 'finished' and period.end <= now() - 72 hours)" ] ] ] ) ; ( fhir:relatedAction [ fhir:actionId [ fhir:v "check-reportable" ] ; fhir:relationship [ fhir:v "before-start" ] ; fhir:offset [ a fhir:Duration ; fhir:value [ fhir:v "6"^^xsd:decimal ] ; fhir:comparator [ fhir:v "<=" ] ; fhir:system [ fhir:v "http://unitsofmeasure.org"^^xsd:anyURI ] ; fhir:code [ fhir:v "h" ] ] ] ) ] ) ] [ fhir:id [ fhir:v "check-reportable" ] ; fhir:description [ fhir:v "This action represents the check for suspected reportability of the eICR." ] ; fhir:textEquivalent [ fhir:v "Check Reportability and setup jobs for future reportability checks." ] ; ( fhir:code [ ( fhir:coding [ fhir:system [ fhir:v "http://hl7.org/fhir/us/ecr/CodeSystem/us-ph-plandefinition-actions"^^xsd:anyURI ] ; fhir:code [ fhir:v "execute-reporting-workflow" ] ] ) ] ) ; ( fhir:action [ fhir:id [ fhir:v "is-encounter-reportable" ] ; fhir:description [ fhir:v "This action represents the check for reportability to create the patients eICR." ] ; fhir:textEquivalent [ fhir:v "Check Trigger Codes based on RCTC Value sets." ] ; ( fhir:code [ ( fhir:coding [ fhir:system [ fhir:v "http://hl7.org/fhir/us/ecr/CodeSystem/us-ph-plandefinition-actions"^^xsd:anyURI ] ; fhir:code [ fhir:v "check-trigger-codes" ] ] ) ] ) ; ( fhir:condition [ fhir:kind [ fhir:v "applicability" ] ; fhir:expression [ fhir:language [ fhir:v "text/fhirpath" ] ; fhir:expression [ fhir:v "%encounter.where(period.start + %normalReportingDuration >= now()) and (%conditions.exists() or %encounters.exists() or %immunizations.exists() or %procedures.exists() or %procedureOrders.exists() or %labOrders.exists() or %labTests.exists() or %labResults.exists() or %medicationAdministrations.exists() or %medicationOrders.exists() or %medicationDispenses.exists())" ] ] ] ) ; ( fhir:input [ fhir:id [ fhir:v "conditions" ] ; ( fhir:extension [ fhir:url [ fhir:v "http://hl7.org/fhir/us/ecr/StructureDefinition/us-ph-fhirquerypattern-extension"^^xsd:anyURI ] ; fhir:value [ a fhir:string ; fhir:v "Condition?patient=Patient/{{context.patientId}}" ] ] ) ; fhir:type [ fhir:v "Condition" ] ; ( fhir:codeFilter [ fhir:path [ fhir:v "code" ] ; fhir:valueSet [ fhir:v "http://hl7.org/fhir/us/ecr/ValueSet/valueset-dxtc-example"^^xsd:anyURI ; fhir:link <http://hl7.org/fhir/us/ecr/ValueSet/valueset-dxtc-example> ] ] ) ] [ fhir:id [ fhir:v "encounters" ] ; ( fhir:extension [ fhir:url [ fhir:v "http://hl7.org/fhir/us/ecr/StructureDefinition/us-ph-relateddata-extension"^^xsd:anyURI ] ; fhir:value [ a fhir:string ; fhir:v "encounter" ] ] ) ; fhir:type [ fhir:v "Encounter" ] ; ( fhir:codeFilter [ fhir:path [ fhir:v "reasonCode" ] ; fhir:valueSet [ fhir:v "http://hl7.org/fhir/us/ecr/ValueSet/valueset-dxtc-example"^^xsd:anyURI ; fhir:link <http://hl7.org/fhir/us/ecr/ValueSet/valueset-dxtc-example> ] ] ) ] [ fhir:id [ fhir:v "immunizations" ] ; ( fhir:extension [ fhir:url [ fhir:v "http://hl7.org/fhir/us/ecr/StructureDefinition/us-ph-fhirquerypattern-extension"^^xsd:anyURI ] ; fhir:value [ a fhir:string ; fhir:v "Immunization?patient=Patient/{{context.patientId}}" ] ] ) ; fhir:type [ fhir:v "Immunization" ] ; ( fhir:codeFilter [ fhir:path [ fhir:v "vaccineCode" ] ; fhir:valueSet [ fhir:v "http://hl7.org/fhir/us/ecr/ValueSet/valueset-mrtc-example"^^xsd:anyURI ; fhir:link <http://hl7.org/fhir/us/ecr/ValueSet/valueset-mrtc-example> ] ] ) ] [ fhir:id [ fhir:v "labOrders" ] ; ( fhir:extension [ fhir:url [ fhir:v "http://hl7.org/fhir/us/ecr/StructureDefinition/us-ph-fhirquerypattern-extension"^^xsd:anyURI ] ; fhir:value [ a fhir:string ; fhir:v "ServiceRequest?patient=Patient/{{context.patientId}}" ] ] ) ; fhir:type [ fhir:v "ServiceRequest" ] ; ( fhir:codeFilter [ fhir:path [ fhir:v "code" ] ; fhir:valueSet [ fhir:v "http://hl7.org/fhir/us/ecr/ValueSet/valueset-lotc-example"^^xsd:anyURI ; fhir:link <http://hl7.org/fhir/us/ecr/ValueSet/valueset-lotc-example> ] ] ) ] [ fhir:id [ fhir:v "labTests" ] ; ( fhir:extension [ fhir:url [ fhir:v "http://hl7.org/fhir/us/ecr/StructureDefinition/us-ph-fhirquerypattern-extension"^^xsd:anyURI ] ; fhir:value [ a fhir:string ; fhir:v "Observation?patient=Patient/{{context.patientId}}" ] ] ) ; fhir:type [ fhir:v "Observation" ] ; ( fhir:codeFilter [ fhir:path [ fhir:v "code" ] ; fhir:valueSet [ fhir:v "http://hl7.org/fhir/us/ecr/ValueSet/valueset-lotc-example"^^xsd:anyURI ; fhir:link <http://hl7.org/fhir/us/ecr/ValueSet/valueset-lotc-example> ] ] ) ] [ fhir:id [ fhir:v "diagnosticOrders" ] ; ( fhir:extension [ fhir:url [ fhir:v "http://hl7.org/fhir/us/ecr/StructureDefinition/us-ph-fhirquerypattern-extension"^^xsd:anyURI ] ; fhir:value [ a fhir:string ; fhir:v "DiagnosticReport?patient=Patient/{{context.patientId}}" ] ] ) ; fhir:type [ fhir:v "DiagnosticReport" ] ; ( fhir:codeFilter [ fhir:path [ fhir:v "code" ] ; fhir:valueSet [ fhir:v "http://hl7.org/fhir/us/ecr/ValueSet/valueset-lotc-example"^^xsd:anyURI ; fhir:link <http://hl7.org/fhir/us/ecr/ValueSet/valueset-lotc-example> ] ] ) ] [ fhir:id [ fhir:v "procedureOrders" ] ; ( fhir:extension [ fhir:url [ fhir:v "http://hl7.org/fhir/us/ecr/StructureDefinition/us-ph-fhirquerypattern-extension"^^xsd:anyURI ] ; fhir:value [ a fhir:string ; fhir:v "ServiceRequest?patient=Patient/{{context.patientId}}" ] ] ) ; fhir:type [ fhir:v "ServiceRequest" ] ; ( fhir:codeFilter [ fhir:path [ fhir:v "code" ] ; fhir:valueSet [ fhir:v "http://hl7.org/fhir/us/ecr/ValueSet/valueset-pctc-example"^^xsd:anyURI ; fhir:link <http://hl7.org/fhir/us/ecr/ValueSet/valueset-pctc-example> ] ] ) ] [ fhir:id [ fhir:v "procedures" ] ; ( fhir:extension [ fhir:url [ fhir:v "http://hl7.org/fhir/us/ecr/StructureDefinition/us-ph-fhirquerypattern-extension"^^xsd:anyURI ] ; fhir:value [ a fhir:string ; fhir:v "Procedure?patient=Patient/{{context.patientId}}" ] ] ) ; fhir:type [ fhir:v "Procedure" ] ; ( fhir:codeFilter [ fhir:path [ fhir:v "code" ] ; fhir:valueSet [ fhir:v "http://hl7.org/fhir/us/ecr/ValueSet/valueset-pctc-example"^^xsd:anyURI ; fhir:link <http://hl7.org/fhir/us/ecr/ValueSet/valueset-pctc-example> ] ] ) ] [ fhir:id [ fhir:v "medicationOrders" ] ; ( fhir:extension [ fhir:url [ fhir:v "http://hl7.org/fhir/us/ecr/StructureDefinition/us-ph-fhirquerypattern-extension"^^xsd:anyURI ] ; fhir:value [ a fhir:string ; fhir:v "MedicationRequest?patient=Patient/{{context.patientId}}" ] ] ) ; fhir:type [ fhir:v "MedicationRequest" ] ; ( fhir:codeFilter [ fhir:path [ fhir:v "medication" ] ; fhir:valueSet [ fhir:v "http://hl7.org/fhir/us/ecr/ValueSet/valueset-mrtc-example"^^xsd:anyURI ; fhir:link <http://hl7.org/fhir/us/ecr/ValueSet/valueset-mrtc-example> ] ] ) ] [ fhir:id [ fhir:v "medicationDispenses" ] ; ( fhir:extension [ fhir:url [ fhir:v "http://hl7.org/fhir/us/ecr/StructureDefinition/us-ph-fhirquerypattern-extension"^^xsd:anyURI ] ; fhir:value [ a fhir:string ; fhir:v "MedicationDispense?patient=Patient/{{context.patientId}}" ] ] ) ; fhir:type [ fhir:v "MedicationDispense" ] ; ( fhir:codeFilter [ fhir:path [ fhir:v "medication" ] ; fhir:valueSet [ fhir:v "http://hl7.org/fhir/us/ecr/ValueSet/valueset-mrtc-example"^^xsd:anyURI ; fhir:link <http://hl7.org/fhir/us/ecr/ValueSet/valueset-mrtc-example> ] ] ) ] [ fhir:id [ fhir:v "medicationAdministrations" ] ; ( fhir:extension [ fhir:url [ fhir:v "http://hl7.org/fhir/us/ecr/StructureDefinition/us-ph-fhirquerypattern-extension"^^xsd:anyURI ] ; fhir:value [ a fhir:string ; fhir:v "MedicationAdministration?patient=Patient/{{context.patientId}}" ] ] ) ; fhir:type [ fhir:v "MedicationAdministration" ] ; ( fhir:codeFilter [ fhir:path [ fhir:v "medication" ] ; fhir:valueSet [ fhir:v "http://hl7.org/fhir/us/ecr/ValueSet/valueset-mrtc-example"^^xsd:anyURI ; fhir:link <http://hl7.org/fhir/us/ecr/ValueSet/valueset-mrtc-example> ] ] ) ] [ fhir:id [ fhir:v "labResults" ] ; ( fhir:extension [ fhir:url [ fhir:v "http://hl7.org/fhir/us/ecr/StructureDefinition/us-ph-relateddata-extension"^^xsd:anyURI ] ; fhir:value [ a fhir:string ; fhir:v "labTests" ] ] ) ; fhir:type [ fhir:v "Observation" ] ; ( fhir:codeFilter [ fhir:path [ fhir:v "value" ] ; fhir:valueSet [ fhir:v "http://hl7.org/fhir/us/ecr/ValueSet/valueset-ostc-example"^^xsd:anyURI ; fhir:link <http://hl7.org/fhir/us/ecr/ValueSet/valueset-ostc-example> ] ] ) ] [ fhir:id [ fhir:v "diagnosticResults" ] ; ( fhir:extension [ fhir:url [ fhir:v "http://hl7.org/fhir/us/ecr/StructureDefinition/us-ph-relateddata-extension"^^xsd:anyURI ] ; fhir:value [ a fhir:string ; fhir:v "diagnosticOrders" ] ] ) ; fhir:type [ fhir:v "DiagnosticReport" ] ; ( fhir:codeFilter [ fhir:path [ fhir:v "code" ] ; fhir:valueSet [ fhir:v "http://hl7.org/fhir/us/ecr/ValueSet/valueset-ostc-example"^^xsd:anyURI ; fhir:link <http://hl7.org/fhir/us/ecr/ValueSet/valueset-ostc-example> ] ] ) ] ) ; ( fhir:relatedAction [ fhir:actionId [ fhir:v "create-eicr" ] ; fhir:relationship [ fhir:v "before-start" ] ] ) ] [ fhir:id [ fhir:v "check-update-eicr" ] ; ( fhir:code [ ( fhir:coding [ fhir:system [ fhir:v "http://hl7.org/fhir/us/ecr/CodeSystem/us-ph-plandefinition-actions"^^xsd:anyURI ] ; fhir:code [ fhir:v "evaluate-condition" ] ] ) ] ) ; ( fhir:condition [ fhir:kind [ fhir:v "applicability" ] ; fhir:expression [ fhir:language [ fhir:v "text/fhirpath" ] ; fhir:expression [ fhir:v "%last-eicr.last().entry.first().resource.date < now() - 72 hours" ] ] ] ) ; ( fhir:input [ fhir:id [ fhir:v "last-eicr" ] ; ( fhir:extension [ fhir:url [ fhir:v "http://hl7.org/fhir/us/ecr/StructureDefinition/us-ph-relateddata-extension"^^xsd:anyURI ] ; fhir:value [ a fhir:string ; fhir:v "eicr-report" ] ] ) ; fhir:type [ fhir:v "Bundle" ] ; ( fhir:profile [ fhir:v "http://hl7.org/fhir/us/ecr/StructureDefinition/eicr-document-bundle"^^xsd:anyURI ; fhir:link <http://hl7.org/fhir/us/ecr/StructureDefinition/eicr-document-bundle> ] ) ] ) ; ( fhir:relatedAction [ fhir:actionId [ fhir:v "create-eicr" ] ; fhir:relationship [ fhir:v "before-start" ] ] ) ] [ fhir:id [ fhir:v "is-encounter-in-progress" ] ; ( fhir:code [ ( fhir:coding [ fhir:system [ fhir:v "http://hl7.org/fhir/us/ecr/CodeSystem/us-ph-plandefinition-actions"^^xsd:anyURI ] ; fhir:code [ fhir:v "evaluate-condition" ] ] ) ] ) ; ( fhir:condition [ fhir:kind [ fhir:v "applicability" ] ; fhir:expression [ fhir:language [ fhir:v "text/fhirpath" ] ; fhir:expression [ fhir:v "%`inprogress-encounter`.where(status = 'in-progress' and period.start + %normalReportingDuration >= now() and period.end <= now() - 72 hours)" ] ] ] ) ; ( fhir:input [ fhir:id [ fhir:v "inprogress-encounter" ] ; ( fhir:extension [ fhir:url [ fhir:v "http://hl7.org/fhir/us/ecr/StructureDefinition/us-ph-relateddata-extension"^^xsd:anyURI ] ; fhir:value [ a fhir:string ; fhir:v "encounter" ] ] ) ; fhir:type [ fhir:v "Encounter" ] ] ) ; ( fhir:relatedAction [ fhir:actionId [ fhir:v "check-reportable" ] ; fhir:relationship [ fhir:v "before-start" ] ; fhir:offset [ a fhir:Duration ; fhir:value [ fhir:v "6"^^xsd:decimal ] ; fhir:comparator [ fhir:v "<=" ] ; fhir:system [ fhir:v "http://unitsofmeasure.org"^^xsd:anyURI ] ; fhir:code [ fhir:v "h" ] ] ] ) ] [ fhir:id [ fhir:v "is-encounter-completed" ] ; ( fhir:code [ ( fhir:coding [ fhir:system [ fhir:v "http://hl7.org/fhir/us/ecr/CodeSystem/us-ph-plandefinition-actions"^^xsd:anyURI ] ; fhir:code [ fhir:v "complete-reporting" ] ] ) ] ) ; ( fhir:condition [ fhir:kind [ fhir:v "applicability" ] ; fhir:expression [ fhir:language [ fhir:v "text/fhirpath" ] ; fhir:expression [ fhir:v "%completedEncounter.exists(status = 'finished')" ] ] ] ) ; ( fhir:input [ fhir:id [ fhir:v "completedEncounter" ] ; ( fhir:extension [ fhir:url [ fhir:v "http://hl7.org/fhir/us/ecr/StructureDefinition/us-ph-relateddata-extension"^^xsd:anyURI ] ; fhir:value [ a fhir:string ; fhir:v "encounter" ] ] ) ; fhir:type [ fhir:v "Encounter" ] ] ) ] ) ] [ fhir:id [ fhir:v "create-eicr" ] ; fhir:description [ fhir:v "This action represents the creation of the eICR. It subsequently calls validate." ] ; fhir:textEquivalent [ fhir:v "Create eICR" ] ; ( fhir:code [ ( fhir:coding [ fhir:system [ fhir:v "http://hl7.org/fhir/us/ecr/CodeSystem/us-ph-plandefinition-actions"^^xsd:anyURI ] ; fhir:code [ fhir:v "create-report" ] ] ) ] ) ; ( fhir:input [ fhir:id [ fhir:v "patient-data" ] ; ( fhir:extension [ fhir:url [ fhir:v "http://hl7.org/fhir/us/ecr/StructureDefinition/us-ph-relateddata-extension"^^xsd:anyURI ] ; fhir:value [ a fhir:string ; fhir:v "patient" ] ] ) ; fhir:type [ fhir:v "Patient" ] ; ( fhir:profile [ fhir:v "http://hl7.org/fhir/us/core/StructureDefinition/us-core-patient"^^xsd:anyURI ; fhir:link <http://hl7.org/fhir/us/core/StructureDefinition/us-core-patient> ] ) ] [ fhir:id [ fhir:v "condition-data" ] ; ( fhir:extension [ fhir:url [ fhir:v "http://hl7.org/fhir/us/ecr/StructureDefinition/us-ph-relateddata-extension"^^xsd:anyURI ] ; fhir:value [ a fhir:string ; fhir:v "conditions" ] ] ) ; fhir:type [ fhir:v "Condition" ] ; ( fhir:profile [ fhir:v "http://hl7.org/fhir/us/core/StructureDefinition/us-core-condition"^^xsd:anyURI ; fhir:link <http://hl7.org/fhir/us/core/StructureDefinition/us-core-condition> ] ) ] [ fhir:id [ fhir:v "encounter-data" ] ; ( fhir:extension [ fhir:url [ fhir:v "http://hl7.org/fhir/us/ecr/StructureDefinition/us-ph-relateddata-extension"^^xsd:anyURI ] ; fhir:value [ a fhir:string ; fhir:v "encounters" ] ] ) ; fhir:type [ fhir:v "Encounter" ] ; ( fhir:profile [ fhir:v "http://hl7.org/fhir/us/core/StructureDefinition/us-core-encounter"^^xsd:anyURI ; fhir:link <http://hl7.org/fhir/us/core/StructureDefinition/us-core-encounter> ] ) ] [ fhir:id [ fhir:v "mr-data" ] ; ( fhir:extension [ fhir:url [ fhir:v "http://hl7.org/fhir/us/ecr/StructureDefinition/us-ph-relateddata-extension"^^xsd:anyURI ] ; fhir:value [ a fhir:string ; fhir:v "medicationOrders" ] ] ) ; fhir:type [ fhir:v "MedicationRequest" ] ; ( fhir:profile [ fhir:v "http://hl7.org/fhir/us/core/StructureDefinition/us-core-medicationrequest"^^xsd:anyURI ; fhir:link <http://hl7.org/fhir/us/core/StructureDefinition/us-core-medicationrequest> ] ) ] [ fhir:id [ fhir:v "immz-data" ] ; ( fhir:extension [ fhir:url [ fhir:v "http://hl7.org/fhir/us/ecr/StructureDefinition/us-ph-relateddata-extension"^^xsd:anyURI ] ; fhir:value [ a fhir:string ; fhir:v "immunizations" ] ] ) ; fhir:type [ fhir:v "Immunization" ] ; ( fhir:profile [ fhir:v "http://hl7.org/fhir/us/core/StructureDefinition/us-core-immunization"^^xsd:anyURI ; fhir:link <http://hl7.org/fhir/us/core/StructureDefinition/us-core-immunization> ] ) ] [ fhir:id [ fhir:v "proc-data" ] ; ( fhir:extension [ fhir:url [ fhir:v "http://hl7.org/fhir/us/ecr/StructureDefinition/us-ph-relateddata-extension"^^xsd:anyURI ] ; fhir:value [ a fhir:string ; fhir:v "procedures" ] ] ) ; fhir:type [ fhir:v "Procedure" ] ; ( fhir:profile [ fhir:v "http://hl7.org/fhir/us/core/StructureDefinition/us-core-procedure"^^xsd:anyURI ; fhir:link <http://hl7.org/fhir/us/core/StructureDefinition/us-core-procedure> ] ) ] [ fhir:id [ fhir:v "labResult-data" ] ; ( fhir:extension [ fhir:url [ fhir:v "http://hl7.org/fhir/us/ecr/StructureDefinition/us-ph-relateddata-extension"^^xsd:anyURI ] ; fhir:value [ a fhir:string ; fhir:v "labResults" ] ] ) ; fhir:type [ fhir:v "Observation" ] ; ( fhir:profile [ fhir:v "http://hl7.org/fhir/us/core/StructureDefinition/us-core-observation-lab"^^xsd:anyURI ; fhir:link <http://hl7.org/fhir/us/core/StructureDefinition/us-core-observation-lab> ] ) ] [ fhir:id [ fhir:v "labOrder-data" ] ; ( fhir:extension [ fhir:url [ fhir:v "http://hl7.org/fhir/us/ecr/StructureDefinition/us-ph-relateddata-extension"^^xsd:anyURI ] ; fhir:value [ a fhir:string ; fhir:v "labOrders" ] ] ) ; fhir:type [ fhir:v "ServiceRequest" ] ; ( fhir:profile [ fhir:v "http://hl7.org/fhir/StructureDefinition/ServiceRequest"^^xsd:anyURI ; fhir:link <http://hl7.org/fhir/StructureDefinition/ServiceRequest> ] ) ] [ fhir:id [ fhir:v "diagnosticResult-data" ] ; ( fhir:extension [ fhir:url [ fhir:v "http://hl7.org/fhir/us/ecr/StructureDefinition/us-ph-relateddata-extension"^^xsd:anyURI ] ; fhir:value [ a fhir:string ; fhir:v "diagnosticResults" ] ] ) ; fhir:type [ fhir:v "DiagnosticReport" ] ; ( fhir:profile [ fhir:v "http://hl7.org/fhir/us/core/StructureDefinition/us-core-diagnosticreport-lab"^^xsd:anyURI ; fhir:link <http://hl7.org/fhir/us/core/StructureDefinition/us-core-diagnosticreport-lab> ] ) ] [ fhir:id [ fhir:v "diagnosticOrder-data" ] ; ( fhir:extension [ fhir:url [ fhir:v "http://hl7.org/fhir/us/ecr/StructureDefinition/us-ph-relateddata-extension"^^xsd:anyURI ] ; fhir:value [ a fhir:string ; fhir:v "diagnosticOrders" ] ] ) ; fhir:type [ fhir:v "DiagnosticReport" ] ; ( fhir:profile [ fhir:v "http://hl7.org/fhir/us/core/StructureDefinition/us-core-diagnosticreport-lab"^^xsd:anyURI ; fhir:link <http://hl7.org/fhir/us/core/StructureDefinition/us-core-diagnosticreport-lab> ] ) ] ) ; ( fhir:output [ fhir:id [ fhir:v "eicr-report" ] ; fhir:type [ fhir:v "Bundle" ] ; ( fhir:profile [ fhir:v "http://hl7.org/fhir/us/ecr/StructureDefinition/eicr-document-bundle"^^xsd:anyURI ; fhir:link <http://hl7.org/fhir/us/ecr/StructureDefinition/eicr-document-bundle> ] ) ] ) ; ( fhir:relatedAction [ fhir:actionId [ fhir:v "validate-eicr" ] ; fhir:relationship [ fhir:v "before-start" ] ] ) ] [ fhir:id [ fhir:v "validate-eicr" ] ; fhir:description [ fhir:v "This action represents the validation of the eICR. It subsequently calls route-and-send." ] ; fhir:textEquivalent [ fhir:v "Validate eICR" ] ; ( fhir:code [ ( fhir:coding [ fhir:system [ fhir:v "http://hl7.org/fhir/us/ecr/CodeSystem/us-ph-plandefinition-actions"^^xsd:anyURI ] ; fhir:code [ fhir:v "validate-report" ] ] ) ] ) ; ( fhir:input [ fhir:id [ fhir:v "generated-eicr-report" ] ; ( fhir:extension [ fhir:url [ fhir:v "http://hl7.org/fhir/us/ecr/StructureDefinition/us-ph-relateddata-extension"^^xsd:anyURI ] ; fhir:value [ a fhir:string ; fhir:v "eicr-report" ] ] ) ; fhir:type [ fhir:v "Bundle" ] ; ( fhir:profile [ fhir:v "http://hl7.org/fhir/us/ecr/StructureDefinition/eicr-document-bundle"^^xsd:anyURI ; fhir:link <http://hl7.org/fhir/us/ecr/StructureDefinition/eicr-document-bundle> ] ) ] ) ; ( fhir:output [ fhir:id [ fhir:v "valid-eicr-report" ] ; fhir:type [ fhir:v "Bundle" ] ; ( fhir:profile [ fhir:v "http://hl7.org/fhir/us/ecr/StructureDefinition/eicr-document-bundle"^^xsd:anyURI ; fhir:link <http://hl7.org/fhir/us/ecr/StructureDefinition/eicr-document-bundle> ] ) ] ) ; ( fhir:relatedAction [ fhir:actionId [ fhir:v "route-and-send-eicr" ] ; fhir:relationship [ fhir:v "before-start" ] ] ) ] [ fhir:id [ fhir:v "route-and-send-eicr" ] ; fhir:description [ fhir:v "This action represents the routing and sending of the eICR." ] ; fhir:textEquivalent [ fhir:v "Route and send eICR" ] ; ( fhir:code [ ( fhir:coding [ fhir:system [ fhir:v "http://hl7.org/fhir/us/ecr/CodeSystem/us-ph-plandefinition-actions"^^xsd:anyURI ] ; fhir:code [ fhir:v "submit-report" ] ] ) ] ) ; ( fhir:input [ fhir:id [ fhir:v "validated-eicr-report" ] ; ( fhir:extension [ fhir:url [ fhir:v "http://hl7.org/fhir/us/ecr/StructureDefinition/us-ph-relateddata-extension"^^xsd:anyURI ] ; fhir:value [ a fhir:string ; fhir:v "valid-eicr-report" ] ] ) ; fhir:type [ fhir:v "Bundle" ] ; ( fhir:profile [ fhir:v "http://hl7.org/fhir/us/ecr/StructureDefinition/eicr-document-bundle"^^xsd:anyURI ; fhir:link <http://hl7.org/fhir/us/ecr/StructureDefinition/eicr-document-bundle> ] ) ] ) ; ( fhir:output [ fhir:id [ fhir:v "submitted-eicr-report" ] ; fhir:type [ fhir:v "Bundle" ] ; ( fhir:profile [ fhir:v "http://hl7.org/fhir/us/ecr/StructureDefinition/eicr-document-bundle"^^xsd:anyURI ; fhir:link <http://hl7.org/fhir/us/ecr/StructureDefinition/eicr-document-bundle> ] ) ] ) ] [ fhir:id [ fhir:v "encounter-modified" ] ; fhir:description [ fhir:v "This action represents the start of the reporting workflow in response to the encounter-modified event" ] ; fhir:textEquivalent [ fhir:v "Start the reporting workflow in response to an encounter-modified event" ] ; ( fhir:code [ ( fhir:coding [ fhir:system [ fhir:v "http://hl7.org/fhir/us/ecr/CodeSystem/us-ph-plandefinition-actions"^^xsd:anyURI ] ; fhir:code [ fhir:v "initiate-reporting-workflow" ] ; fhir:display [ fhir:v "Initiate a reporting workflow" ] ] ) ] ) ; ( fhir:trigger [ fhir:id [ fhir:v "encounter-modified-trigger" ] ; ( fhir:extension [ fhir:url [ fhir:v "http://hl7.org/fhir/us/ecr/StructureDefinition/us-ph-named-eventtype-extension"^^xsd:anyURI ] ; fhir:value [ a fhir:CodeableConcept ; ( fhir:coding [ fhir:system [ fhir:v "http://hl7.org/fhir/us/ecr/CodeSystem/us-ph-triggerdefinition-namedevents"^^xsd:anyURI ] ; fhir:code [ fhir:v "encounter-modified" ] ; fhir:display [ fhir:v "Indicates modifications to data elements of an encounter" ] ] ) ] ] ) ; fhir:type [ fhir:v "named-event" ] ; fhir:name [ fhir:v "encounter-modified" ] ] ) ; ( fhir:condition [ fhir:kind [ fhir:v "applicability" ] ; fhir:expression [ fhir:language [ fhir:v "text/fhirpath" ] ; fhir:expression [ fhir:v "%encounter.where(period.start + %normalReportingDuration < now())" ] ] ] ) ; ( fhir:relatedAction [ fhir:actionId [ fhir:v "create-eicr" ] ; fhir:relationship [ fhir:v "before-start" ] ] ) ] ) . #
IG © 2020+ HL7 International / Public Health. Package hl7.fhir.us.ecr#2.1.2 based on FHIR 4.0.1. Generated 2025-03-24
Links: Table of Contents |
QA Report
| Version History |
|
Propose a change