QI-Core Implementation Guide
4.1.0 - release

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

## : Encounter example - TTL Representation

Raw ttl | Download

    @prefix fhir: <http://hl7.org/fhir/> .
    @prefix owl: <http://www.w3.org/2002/07/owl#> .
    @prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#> .
    @prefix sct: <http://snomed.info/id/> .
    @prefix xsd: <http://www.w3.org/2001/XMLSchema#> .

    # - resource -------------------------------------------------------------------

     a fhir:Encounter;
      fhir:nodeRole fhir:treeRoot;
      fhir:Resource.id [ fhir:value "example"];
      fhir:Resource.meta [
         fhir:Meta.profile [
           fhir:value "http://hl7.org/fhir/us/qicore/StructureDefinition/qicore-encounter";
           fhir:index 0;
           fhir:link <http://hl7.org/fhir/us/qicore/StructureDefinition/qicore-encounter>     ]
      ];
      fhir:DomainResource.text [
         fhir:Narrative.status [ fhir:value "extensions" ];
         fhir:Narrative.div "<div xmlns=\"http://www.w3.org/1999/xhtml\"><p><b>Generated Narrative</b></p><div style=\"display: inline-block; background-color: #d9e0e7; padding: 6px; margin: 4px; border: 1px solid #8da1b4; border-radius: 5px; line-height: 60%\"><p style=\"margin-bottom: 0px\">Resource \"example\" </p><p style=\"margin-bottom: 0px\">Profile: <a href=\"StructureDefinition-qicore-encounter.html\">QICoreEncounter</a></p></div><blockquote><p><b>EncounterProcedureExtension</b></p><p><b>value</b>: Excision of appendix (procedure) <span style=\"background: LightGoldenRodYellow; margin: 4px; border: 1px solid khaki\"> (<a href=\"https://browser.ihtsdotools.org/\">SNOMED CT</a>#80146002)</span></p><p><b>value</b>: 1</p><p><b>value</b>: <a href=\"Procedure-example.html\">Procedure/example</a></p></blockquote><p><b>status</b>: in-progress</p><p><b>class</b>: inpatient encounter (Details: http://terminology.hl7.org/CodeSystem/v3-ActCode code IMP = 'inpatient encounter', stated as 'inpatient encounter')</p><p><b>type</b>: Inpatient Hospital Care <span style=\"background: LightGoldenRodYellow; margin: 4px; border: 1px solid khaki\"> (<a href=\"http://terminology.hl7.org/3.0.0/CodeSystem-CPT.html\">Current Procedural Terminology (CPT&reg;)</a>#99223)</span></p><p><b>subject</b>: <a href=\"Patient-example.html\">Patient/example</a> \" CHALMERS\"</p><h3>Diagnoses</h3><table class=\"grid\"><tr><td>-</td><td><b>Extension</b></td><td><b>Condition</b></td></tr><tr><td>*</td><td></td><td><a href=\"Condition-appendicitis-example.html\">Condition/appendicitis-example</a></td></tr></table></div>"
      ];
      fhir:DomainResource.extension [
         fhir:index 0;
         fhir:Extension.url [ fhir:value "http://hl7.org/fhir/us/qicore/StructureDefinition/qicore-encounter-procedure" ];
         fhir:Element.extension [
           fhir:index 0;
           fhir:Extension.url [ fhir:value "type" ];
           fhir:Extension.valueCodeableConcept [
             fhir:CodeableConcept.coding [
               fhir:index 0;
               a sct:80146002;
               fhir:Coding.system [ fhir:value "http://snomed.info/sct" ];
               fhir:Coding.code [ fhir:value "80146002" ];
               fhir:Coding.display [ fhir:value "Excision of appendix (procedure)" ]         ];
             fhir:CodeableConcept.text [ fhir:value "Excision of appendix (procedure)" ]       ]     ], [
           fhir:index 1;
           fhir:Extension.url [ fhir:value "rank" ];
           fhir:Extension.valuePositiveInt [ fhir:value "1"^^xsd:positiveInteger ]     ], [
           fhir:index 2;
           fhir:Extension.url [ fhir:value "procedure" ];
           fhir:Extension.valueReference [
             fhir:Reference.reference [ fhir:value "Procedure/example" ]       ]     ]
      ];
      fhir:Encounter.status [ fhir:value "in-progress"];
      fhir:Encounter.class [
         fhir:Coding.system [ fhir:value "http://terminology.hl7.org/CodeSystem/v3-ActCode" ];
         fhir:Coding.code [ fhir:value "IMP" ];
         fhir:Coding.display [ fhir:value "inpatient encounter" ]
      ];
      fhir:Encounter.type [
         fhir:index 0;
         fhir:CodeableConcept.coding [
           fhir:index 0;
           fhir:Coding.system [ fhir:value "http://www.ama-assn.org/go/cpt" ];
           fhir:Coding.code [ fhir:value "99223" ];
           fhir:Coding.display [ fhir:value "Inpatient Hospital Care" ]     ]
      ];
      fhir:Encounter.subject [
         fhir:Reference.reference [ fhir:value "Patient/example" ]
      ];
      fhir:Encounter.diagnosis [
         fhir:index 0;
         fhir:Element.extension [
           fhir:index 0;
           fhir:Extension.url [ fhir:value "http://hl7.org/fhir/us/qicore/StructureDefinition/qicore-encounter-diagnosisPresentOnAdmission" ];
           fhir:Extension.valueCodeableConcept [
             fhir:CodeableConcept.coding [
               fhir:index 0;
               fhir:Coding.system [ fhir:value "https://www.cms.gov/Medicare/Medicare-Fee-for-Service-Payment/HospitalAcqCond/Coding" ];
               fhir:Coding.code [ fhir:value "Y" ];
               fhir:Coding.display [ fhir:value "Yes" ]         ]       ]     ];
         fhir:Encounter.diagnosis.condition [
           fhir:Reference.reference [ fhir:value "Condition/appendicitis-example" ]     ]
      ].

    # - ontology header ------------------------------------------------------------

     a owl:Ontology;
      owl:imports fhir:fhir.ttl.