EMIS Web Adapter for QuickFHIR
2.0.0 - draft

Publish Box goes here

: How to write a Condition - 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:Bundle;
  fhir:nodeRole fhir:treeRoot;
  fhir:Resource.id [ fhir:value "write-condition.example"]; # 
  fhir:Bundle.type [ fhir:value "transaction"]; # 
  fhir:Bundle.entry [
     fhir:index 0;
     fhir:Bundle.entry.resource [
       a fhir:Encounter;
       fhir:DomainResource.text [
         fhir:Narrative.status [ fhir:value "empty" ];
         fhir:Narrative.div "<b>narrative not required</b>"       ];
       fhir:Encounter.status [ fhir:value "finished" ];
       fhir:Encounter.class [
         fhir:Coding.system [ fhir:value "http://terminology.hl7.org/CodeSystem/v3-ActCode" ];
         fhir:Coding.code [ fhir:value "AMB" ];
         fhir:Coding.display [ fhir:value "ambulatory" ]       ];
       fhir:Encounter.subject [
         fhir:Reference.reference [ fhir:value "Patient/1714" ]       ];
       fhir:Encounter.period [
         fhir:Period.end [ fhir:value "2021-02-15"^^xsd:date ]       ]     ];
     fhir:Bundle.entry.request [
       fhir:Bundle.entry.request.method [ fhir:value "POST" ];
       fhir:Bundle.entry.request.url [ fhir:value "Encounter" ]     ]
  ], [
     fhir:index 1;
     fhir:Bundle.entry.resource [
       a fhir:Condition;
       fhir:DomainResource.text [
         fhir:Narrative.status [ fhir:value "generated" ];
         fhir:Narrative.div "<div xmlns=\"http://www.w3.org/1999/xhtml\"><p><b>Generated Narrative: Condition</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><b>code</b>: Persistent cough <span style=\"background: LightGoldenRodYellow; margin: 4px; border: 1px solid khaki\"> (<a href=\"https://browser.ihtsdotools.org/\">SNOMED CT</a>#284523002)</span></p><p><b>subject</b>: <a href=\"Patient/1714\">Patient/1714</a></p><p><b>recordedDate</b>: 2021-02-15</p><p><b>note</b>: Data entered to test posting via QF</p></div>"       ];
       fhir:Condition.code [
         fhir:CodeableConcept.coding [
           fhir:index 0;
           a sct:284523002;
           fhir:Coding.system [ fhir:value "http://snomed.info/sct" ];
           fhir:Coding.code [ fhir:value "284523002" ];
           fhir:Coding.display [ fhir:value "Persistent cough" ]         ]       ];
       fhir:Condition.subject [
         fhir:Reference.reference [ fhir:value "Patient/1714" ]       ];
       fhir:Condition.recordedDate [ fhir:value "2021-02-15"^^xsd:date ];
       fhir:Condition.note [
         fhir:index 0;
         fhir:Annotation.text [ fhir:value "Data entered to test posting via QF" ]       ]     ];
     fhir:Bundle.entry.request [
       fhir:Bundle.entry.request.method [ fhir:value "POST" ];
       fhir:Bundle.entry.request.url [ fhir:value "Condition" ]     ]
  ]. # 

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

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