Retention Implementation Guide
1.0.0 - ci-build

Retention Implementation Guide - Local Development build (v1.0.0). See the Directory of published versions

: Patient 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:Patient;
  fhir:nodeRole fhir:treeRoot;
  fhir:Resource.id [ fhir:value "P001"]; # 
  fhir:Resource.meta [
     fhir:Meta.profile [
       fhir:value "https://www.retention-project.eu/ig/StructureDefinition/PatientRetention";
       fhir:index 0;
       fhir:link <https://www.retention-project.eu/ig/StructureDefinition/PatientRetention>     ]
  ]; # 
  fhir:DomainResource.text [
     fhir:Narrative.status [ fhir:value "generated" ];
     fhir:Narrative.div "<div xmlns=\"http://www.w3.org/1999/xhtml\"><p style=\"border: 1px #661aff solid; background-color: #e6e6ff; padding: 10px;\"><b>Anonymous Patient</b> (no stated gender), DoB: 1971-01-27</p><hr/><table class=\"grid\"><tr><td style=\"background-color: #f3f5da\" title=\"Record is active\">Active:</td><td colspan=\"3\">true</td></tr><tr><td style=\"background-color: #f3f5da\" title=\"Ways to contact the Patient\">Contact Detail:</td><td colspan=\"3\">Amalias, 42 Athens 12321 </td></tr><tr><td style=\"background-color: #f3f5da\" title=\"Patient Highest level of education for Retention project\"><a href=\"StructureDefinition-PatientHighestLevelOfEducation.html\">Patient Highest level of education:</a></td><td colspan=\"3\"><ul><li>No display for UsageContext</li></ul></td></tr><tr><td style=\"background-color: #f3f5da\" title=\"Patient Employment status for Retention project\"><a href=\"StructureDefinition-PatientEmploymentStatus.html\">Patient Employment status:</a></td><td colspan=\"3\"><ul><li>No display for UsageContext</li></ul></td></tr><tr><td style=\"background-color: #f3f5da\" title=\"Patient Country of residence for Retention project\"><a href=\"StructureDefinition-PatientCountryOfResidence.html\">Patient Country of residence:</a></td><td colspan=\"3\"><ul><li>No display for UsageContext</li></ul></td></tr><tr><td style=\"background-color: #f3f5da\" title=\"Patient Height for Retention project\"><a href=\"StructureDefinition-PatientHeight.html\">Patient Height:</a></td><td colspan=\"3\"><ul><li>No display for UsageContext</li></ul></td></tr><tr><td style=\"background-color: #f3f5da\" title=\"Patient Ethnicity for Retention project\"><a href=\"StructureDefinition-PatientEthnicity.html\">Patient Ethnicity:</a></td><td colspan=\"3\"><ul><li>No display for UsageContext</li></ul></td></tr><tr><td style=\"background-color: #f3f5da\" title=\"Patient ABO blood group for Retention project\"><a href=\"StructureDefinition-PatientAboBloodGroup.html\">Patient ABO blood group:</a></td><td colspan=\"3\"><ul><li>No display for UsageContext</li></ul></td></tr><tr><td style=\"background-color: #f3f5da\" title=\"Patient Marital Status for Retention project\"><a href=\"StructureDefinition-PatientMaritalStatus.html\">Patient Marital Status:</a></td><td colspan=\"3\"><ul><li>No display for UsageContext</li></ul></td></tr><tr><td style=\"background-color: #f3f5da\" title=\"Patient Sex for Retention project\"><a href=\"StructureDefinition-PatientSex.html\">Patient Sex:</a></td><td colspan=\"3\"><ul><li>No display for UsageContext</li></ul></td></tr></table></div>"
  ]; # 
  fhir:DomainResource.extension [
     fhir:index 0;
     fhir:Extension.url [ fhir:value "https://www.retention-project.eu/ig/StructureDefinition/PatientSex" ];
     fhir:Extension.valueUsageContext [
       fhir:UsageContext.code [
         a sct:263495000;
         fhir:Coding.system [ fhir:value "http://snomed.info/sct" ];
         fhir:Coding.code [ fhir:value "263495000" ];
         fhir:Coding.display [ fhir:value "Gender" ]       ];
       fhir:UsageContext.valueCodeableConcept [
         fhir:CodeableConcept.coding [
           fhir:index 0;
           fhir:Coding.system [ fhir:value "https://www.retention-project.eu/ig/CodeSystem/Sex" ];
           fhir:Coding.code [ fhir:value "1" ];
           fhir:Coding.display [ fhir:value "Female" ]         ]       ]     ]
  ], [
     fhir:index 1;
     fhir:Extension.url [ fhir:value "https://www.retention-project.eu/ig/StructureDefinition/PatientEthnicity" ];
     fhir:Extension.valueUsageContext [
       fhir:UsageContext.code [
         a sct:397731000;
         fhir:Coding.system [ fhir:value "http://snomed.info/sct" ];
         fhir:Coding.code [ fhir:value "397731000" ];
         fhir:Coding.display [ fhir:value "Ethnic group finding" ]       ];
       fhir:UsageContext.valueCodeableConcept [
         fhir:CodeableConcept.coding [
           fhir:index 0;
           fhir:Coding.system [ fhir:value "https://www.retention-project.eu/ig/CodeSystem/Ethnicity" ];
           fhir:Coding.code [ fhir:value "7" ];
           fhir:Coding.display [ fhir:value "Pacific Islands" ]         ]       ]     ]
  ], [
     fhir:index 2;
     fhir:Extension.url [ fhir:value "https://www.retention-project.eu/ig/StructureDefinition/PatientCountryOfResidence" ];
     fhir:Extension.valueUsageContext [
       fhir:UsageContext.code [
         a sct:416647007;
         fhir:Coding.system [ fhir:value "http://snomed.info/sct" ];
         fhir:Coding.code [ fhir:value "416647007" ];
         fhir:Coding.display [ fhir:value "Country of residence" ]       ];
       fhir:UsageContext.valueCodeableConcept [
         fhir:CodeableConcept.coding [
           fhir:index 0;
           fhir:Coding.system [ fhir:value "https://www.retention-project.eu/ig/CodeSystem/CountryOfResidence" ];
           fhir:Coding.code [ fhir:value "2" ];
           fhir:Coding.display [ fhir:value "Greece" ]         ]       ]     ]
  ], [
     fhir:index 3;
     fhir:Extension.url [ fhir:value "https://www.retention-project.eu/ig/StructureDefinition/PatientMaritalStatus" ];
     fhir:Extension.valueUsageContext [
       fhir:UsageContext.code [
         a sct:125680007;
         fhir:Coding.system [ fhir:value "http://snomed.info/sct" ];
         fhir:Coding.code [ fhir:value "125680007" ];
         fhir:Coding.display [ fhir:value "Marital status" ]       ];
       fhir:UsageContext.valueCodeableConcept [
         fhir:CodeableConcept.coding [
           fhir:index 0;
           fhir:Coding.system [ fhir:value "https://www.retention-project.eu/ig/CodeSystem/MaritalStatus" ];
           fhir:Coding.code [ fhir:value "2" ];
           fhir:Coding.display [ fhir:value "living with a partner/spouse" ]         ]       ]     ]
  ], [
     fhir:index 4;
     fhir:Extension.url [ fhir:value "https://www.retention-project.eu/ig/StructureDefinition/PatientHeight" ];
     fhir:Extension.valueUsageContext [
       fhir:UsageContext.code [
         a sct:1153637007;
         fhir:Coding.system [ fhir:value "http://snomed.info/sct" ];
         fhir:Coding.code [ fhir:value "1153637007" ];
         fhir:Coding.display [ fhir:value "Body height" ]       ];
       fhir:UsageContext.valueQuantity [
         fhir:Quantity.value [ fhir:value "184"^^xsd:decimal ];
         fhir:Quantity.unit [ fhir:value "cm" ]       ]     ]
  ], [
     fhir:index 5;
     fhir:Extension.url [ fhir:value "https://www.retention-project.eu/ig/StructureDefinition/PatientAboBloodGroup" ];
     fhir:Extension.valueUsageContext [
       fhir:UsageContext.code [
         a sct:365637002;
         fhir:Coding.system [ fhir:value "http://snomed.info/sct" ];
         fhir:Coding.code [ fhir:value "365637002" ];
         fhir:Coding.display [ fhir:value "Finding of ABO blood group" ]       ];
       fhir:UsageContext.valueCodeableConcept [
         fhir:CodeableConcept.coding [
           fhir:index 0;
           fhir:Coding.system [ fhir:value "https://www.retention-project.eu/ig/CodeSystem/AboBloodGroup" ];
           fhir:Coding.code [ fhir:value "3" ];
           fhir:Coding.display [ fhir:value "AB" ]         ]       ]     ]
  ], [
     fhir:index 6;
     fhir:Extension.url [ fhir:value "https://www.retention-project.eu/ig/StructureDefinition/PatientHighestLevelOfEducation" ];
     fhir:Extension.valueUsageContext [
       fhir:UsageContext.code [
         a sct:105421008;
         fhir:Coding.system [ fhir:value "http://snomed.info/sct" ];
         fhir:Coding.code [ fhir:value "105421008" ];
         fhir:Coding.display [ fhir:value "Educational achievement" ]       ];
       fhir:UsageContext.valueCodeableConcept [
         fhir:CodeableConcept.coding [
           fhir:index 0;
           fhir:Coding.system [ fhir:value "https://www.retention-project.eu/ig/CodeSystem/HighestLevelOfEducation" ];
           fhir:Coding.code [ fhir:value "0" ];
           fhir:Coding.display [ fhir:value "up to and including high school" ]         ]       ]     ]
  ], [
     fhir:index 7;
     fhir:Extension.url [ fhir:value "https://www.retention-project.eu/ig/StructureDefinition/PatientEmploymentStatus" ];
     fhir:Extension.valueUsageContext [
       fhir:UsageContext.code [
         a sct:224362002;
         fhir:Coding.system [ fhir:value "http://snomed.info/sct" ];
         fhir:Coding.code [ fhir:value "224362002" ];
         fhir:Coding.display [ fhir:value "Employment status" ]       ];
       fhir:UsageContext.valueCodeableConcept [
         fhir:CodeableConcept.coding [
           fhir:index 0;
           fhir:Coding.system [ fhir:value "https://www.retention-project.eu/ig/CodeSystem/EmploymentStatus" ];
           fhir:Coding.code [ fhir:value "5" ];
           fhir:Coding.display [ fhir:value "other" ]         ]       ]     ]
  ]; # 
  fhir:Patient.active [ fhir:value "true"^^xsd:boolean]; # 
  fhir:Patient.birthDate [ fhir:value "1971-01-27"^^xsd:date]; # 
  fhir:Patient.address [
     fhir:index 0;
     fhir:Address.line [
       fhir:value "Amalias, 42";
       fhir:index 0     ];
     fhir:Address.city [ fhir:value "Athens" ];
     fhir:Address.postalCode [ fhir:value "12321" ]
  ]. # 

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

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