@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 xsd: <http://www.w3.org/2001/XMLSchema#> .

# - resource -------------------------------------------------------------------

<http://hl7.org/fhir/us/quality-core/Patient/example> a fhir:Patient ;
  fhir:nodeRole fhir:treeRoot ;
  fhir:Resource.id [ fhir:value "example"] ;
  fhir:Resource.meta [
     fhir:Meta.profile [
       fhir:value "http://hl7.org/fhir/us/quality-core/StructureDefinition/us-quality-core-patient" ;
       fhir:index -1 ;
       fhir:link <http://hl7.org/fhir/us/quality-core/StructureDefinition/us-quality-core-patient>
     ]
  ] ;
  fhir:Resource.language [ fhir:value "en"] ;
  fhir:DomainResource.text [
     fhir:Narrative.status [ fhir:value "generated" ] ;
     fhir:Narrative.div "<div xmlns=\"http://www.w3.org/1999/xhtml\"><p class=\"res-header-id\"><b>Generated Narrative: Patient example</b></p><a name=\"example\"> </a><a name=\"hcexample\"> </a><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\"/><p style=\"margin-bottom: 0px\">Profile: <a href=\"StructureDefinition-us-quality-core-patient.html\">US Quality Core Patient</a></p></div><p style=\"border: 1px #661aff solid; background-color: #e6e6ff; padding: 10px;\">Example Patient  Male, DoB: 1974-12-25 ( Medical record number (use: usual, period: 2001-05-06 --&gt; (ongoing)))</p><hr/><table class=\"grid\"><tr><td style=\"background-color: #f3f5da\" title=\"Record is active\">Active:</td><td>true</td><td style=\"background-color: #f3f5da\" title=\"Known status of Patient\">Deceased:</td><td colspan=\"3\">false</td></tr><tr><td style=\"background-color: #f3f5da\" title=\"Ways to contact the Patient\">Contact Detail</td><td colspan=\"3\"><ul><li><a href=\"tel:+1-555-555-0120\">+1-555-555-0120</a></li><li><a href=\"tel:+1-555-555-0121\">+1-555-555-0121</a></li><li><a href=\"tel:+1-555-555-0122\">+1-555-555-0122</a></li><li>100 Example Street, Example City, VA 99999(home)</li></ul></td></tr><tr><td style=\"background-color: #f3f5da\" title=\"Nominated Contact: Next-of-Kin\">Next-of-Kin:</td><td colspan=\"3\"><ul><li>Example Emergency Contact  (Female)</li><li>101 Example Street Example City VA 99999 (home)</li><li><a href=\"tel:+1-555-555-0123\">+1-555-555-0123</a></li><li>Valid Period:2012 --&gt; (ongoing)</li></ul></td></tr><tr><td style=\"background-color: #f3f5da\" title=\"Patient Links\">Links:</td><td colspan=\"3\"><ul><li>Managing Organization: <a href=\"Organization-example.html\">Organization Example Organization</a></li></ul></td></tr></table></div>"
  ] ;
  fhir:Patient.identifier [
     fhir:index -1 ;
     fhir:Identifier.use [ fhir:value "usual" ] ;
     fhir:Identifier.type [
       fhir:CodeableConcept.coding [
         fhir:index -1 ;
         fhir:Coding.system [ fhir:value "http://terminology.hl7.org/CodeSystem/v2-0203" ] ;
         fhir:Coding.code [ fhir:value "MR" ]
       ]
     ] ;
     fhir:Identifier.system [ fhir:value "http://example.org/patient/identifiers" ] ;
     fhir:Identifier.value [ fhir:value "12345" ] ;
     fhir:Identifier.period [
       fhir:Period.start [ fhir:value "2001-05-06"^^xsd:date ]
     ] ;
     fhir:Identifier.assigner [
       fhir:Reference.display [ fhir:value "Example Healthcare Organization" ]
     ]
  ] ;
  fhir:Patient.active [ fhir:value "true"^^xsd:boolean] ;
  fhir:Patient.name [
     fhir:index -1 ;
     fhir:HumanName.use [ fhir:value "official" ] ;
     fhir:HumanName.family [ fhir:value "Patient" ] ;
     fhir:HumanName.given [
       fhir:value "Example" ;
       fhir:index -1
     ]
  ], [
     fhir:index -1 ;
     fhir:HumanName.use [ fhir:value "usual" ] ;
     fhir:HumanName.family [ fhir:value "Patient" ] ;
     fhir:HumanName.given [
       fhir:value "Example" ;
       fhir:index -1
     ]
  ], [
     fhir:index -1 ;
     fhir:HumanName.use [ fhir:value "maiden" ] ;
     fhir:HumanName.family [ fhir:value "Previous Patient" ] ;
     fhir:HumanName.given [
       fhir:value "Example" ;
       fhir:index -1
     ] ;
     fhir:HumanName.period [
       fhir:Period.end [ fhir:value "2002"^^xsd:gYear ]
     ]
  ] ;
  fhir:Patient.telecom [
     fhir:index -1 ;
     fhir:ContactPoint.system [ fhir:value "phone" ] ;
     fhir:ContactPoint.value [ fhir:value "+1-555-555-0120" ] ;
     fhir:ContactPoint.use [ fhir:value "work" ] ;
     fhir:ContactPoint.rank [ fhir:value "1"^^xsd:positiveInteger ]
  ], [
     fhir:index -1 ;
     fhir:ContactPoint.system [ fhir:value "phone" ] ;
     fhir:ContactPoint.value [ fhir:value "+1-555-555-0121" ] ;
     fhir:ContactPoint.use [ fhir:value "mobile" ] ;
     fhir:ContactPoint.rank [ fhir:value "2"^^xsd:positiveInteger ]
  ], [
     fhir:index -1 ;
     fhir:ContactPoint.system [ fhir:value "phone" ] ;
     fhir:ContactPoint.value [ fhir:value "+1-555-555-0122" ] ;
     fhir:ContactPoint.use [ fhir:value "old" ] ;
     fhir:ContactPoint.period [
       fhir:Period.end [ fhir:value "2014"^^xsd:gYear ]
     ]
  ] ;
  fhir:Patient.gender [ fhir:value "male"] ;
  fhir:Patient.birthDate [
     fhir:value "1974-12-25"^^xsd:date ;
     fhir:Element.extension [
       fhir:index -1 ;
       fhir:Extension.url [ fhir:value "http://hl7.org/fhir/StructureDefinition/patient-birthTime" ] ;
       fhir:Extension.valueDateTime [ fhir:value "1974-12-25T14:35:45-05:00"^^xsd:dateTime ]
     ]
  ] ;
  fhir:Patient.deceasedBoolean [ fhir:value "false"^^xsd:boolean] ;
  fhir:Patient.address [
     fhir:index -1 ;
     fhir:Address.use [ fhir:value "home" ] ;
     fhir:Address.type [ fhir:value "both" ] ;
     fhir:Address.text [ fhir:value "100 Example Street, Example City, VA 99999" ] ;
     fhir:Address.line [
       fhir:value "100 Example Street" ;
       fhir:index -1
     ] ;
     fhir:Address.city [ fhir:value "Example City" ] ;
     fhir:Address.district [ fhir:value "Example District" ] ;
     fhir:Address.state [ fhir:value "VA" ] ;
     fhir:Address.postalCode [ fhir:value "99999" ] ;
     fhir:Address.period [
       fhir:Period.start [ fhir:value "1974-12-25"^^xsd:date ]
     ]
  ] ;
  fhir:Patient.contact [
     fhir:index -1 ;
     fhir:Patient.contact.relationship [
       fhir:index -1 ;
       fhir:CodeableConcept.coding [
         fhir:index -1 ;
         fhir:Coding.system [ fhir:value "http://terminology.hl7.org/CodeSystem/v2-0131" ] ;
         fhir:Coding.code [ fhir:value "N" ]
       ]
     ] ;
     fhir:Patient.contact.name [
       fhir:HumanName.family [ fhir:value "Emergency Contact" ] ;
       fhir:HumanName.given [
         fhir:value "Example" ;
         fhir:index -1
       ]
     ] ;
     fhir:Patient.contact.telecom [
       fhir:index -1 ;
       fhir:ContactPoint.system [ fhir:value "phone" ] ;
       fhir:ContactPoint.value [ fhir:value "+1-555-555-0123" ]
     ] ;
     fhir:Patient.contact.address [
       fhir:Address.use [ fhir:value "home" ] ;
       fhir:Address.type [ fhir:value "both" ] ;
       fhir:Address.line [
         fhir:value "101 Example Street" ;
         fhir:index -1
       ] ;
       fhir:Address.city [ fhir:value "Example City" ] ;
       fhir:Address.district [ fhir:value "Example District" ] ;
       fhir:Address.state [ fhir:value "VA" ] ;
       fhir:Address.postalCode [ fhir:value "99999" ] ;
       fhir:Address.period [
         fhir:Period.start [ fhir:value "1974-12-25"^^xsd:date ]
       ]
     ] ;
     fhir:Patient.contact.gender [ fhir:value "female" ] ;
     fhir:Patient.contact.period [
       fhir:Period.start [ fhir:value "2012"^^xsd:gYear ]
     ]
  ] ;
  fhir:Patient.managingOrganization [
     fhir:link <http://hl7.org/fhir/us/quality-core/Organization/example> ;
     fhir:Reference.reference [ fhir:value "Organization/example" ]
  ] .

<http://hl7.org/fhir/us/quality-core/Organization/example> a fhir:us .

# - ontology header ------------------------------------------------------------

<http://hl7.org/fhir/us/quality-core/Patient/example.ttl> a owl:Ontology ;
  owl:imports fhir:fhir.ttl ;
  owl:versionIRI <http://build.fhir.org/us/quality-core/Patient/example.ttl> .

# -------------------------------------------------------------------------------------

