@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 sct: <http://snomed.info/id/> .
@prefix xsd: <http://www.w3.org/2001/XMLSchema#> .

# - resource -------------------------------------------------------------------

<https://hl7.or.cr/fhir/core/Patient/CRPatientWithContactEmergency> a fhir:Patient ;
  fhir:nodeRole fhir:treeRoot ;
  fhir:id [ fhir:v "CRPatientWithContactEmergency"] ; # 
  fhir:meta [
     fhir:profile ( [
       fhir:v "https://hl7.or.cr/fhir/core/StructureDefinition/cr-core-patient"^^xsd:anyURI ;
       fhir:l <https://hl7.or.cr/fhir/core/StructureDefinition/cr-core-patient>
     ] )
  ] ; # 
  fhir:text [
     fhir:status [ fhir:v "generated" ] ;
     fhir:div [ fhir:v "<div xmlns=\"http://www.w3.org/1999/xhtml\"><p class=\"res-header-id\"><b>Generated Narrative: Patient CRPatientWithContactEmergency</b></p><a name=\"CRPatientWithContactEmergency\"> </a><a name=\"hcCRPatientWithContactEmergency\"> </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-cr-core-patient.html\">Paciente</a></p></div><p style=\"border: 1px #661aff solid; background-color: #e6e6ff; padding: 10px;\">Carlos Alberto Fernández Arias (official) Male, DoB: 1995-07-10 ( Cédula Nacional: 6-1234-5678 (use: official, ))</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=\"Nominated Contact: Mother\">Mother:</td><td colspan=\"3\"><ul><li>Rosa Arias Méndez (Official) (Female)</li><li><a href=\"tel:+50623456789\">+506 2345 6789</a></li></ul></td></tr><tr><td style=\"background-color: #f3f5da\" title=\"Nominated Contact: Marital status\">Marital status:</td><td colspan=\"3\"><ul><li>Juan Morales Campos (Official) (Male)</li><li><a href=\"tel:+50698765432\">+506 9876 5432</a></li><li><a href=\"mailto:juan.morales@example.cr\">juan.morales@example.cr</a></li></ul></td></tr></table></div>"^^rdf:XMLLiteral ]
  ] ; # 
  fhir:identifier ( [
     fhir:use [ fhir:v "official" ] ;
     fhir:type [
       fhir:coding ( [
         fhir:system [
           fhir:v "https://hl7.or.cr/fhir/terminology/CodeSystem/identifier-type"^^xsd:anyURI ;
           fhir:l <https://hl7.or.cr/fhir/terminology/CodeSystem/identifier-type>
         ] ;
         fhir:code [ fhir:v "cedula-nacional" ] ;
         fhir:display [ fhir:v "Cédula Nacional" ]
       ] )
     ] ;
     fhir:system [
       fhir:v "https://hl7.or.cr/fhir/identifier/client-registry"^^xsd:anyURI ;
       fhir:l <https://hl7.or.cr/fhir/identifier/client-registry>
     ] ;
     fhir:value [ fhir:v "6-1234-5678" ]
  ] ) ; # 
  fhir:active [ fhir:v true] ; # 
  fhir:name ( [
     fhir:use [ fhir:v "official" ] ;
     fhir:family [ fhir:v "Fernández Arias" ] ;
     fhir:given ( [ fhir:v "Carlos" ] [ fhir:v "Alberto" ] )
  ] ) ; # 
  fhir:gender [ fhir:v "male"] ; # 
  fhir:birthDate [ fhir:v "1995-07-10"^^xsd:date] ; # 
  fhir:contact ( [
     fhir:relationship ( [
       fhir:coding ( [
         a sct:72705000 ;
         fhir:system [
           fhir:v "http://snomed.info/sct"^^xsd:anyURI ;
           fhir:l <http://snomed.info/sct>
         ] ;
         fhir:code [ fhir:v "72705000" ]
       ] )
     ] ) ;
     fhir:name [
       fhir:use [ fhir:v "official" ] ;
       fhir:family [ fhir:v "Arias Méndez" ] ;
       fhir:given ( [ fhir:v "Rosa" ] )
     ] ;
     fhir:telecom ( [
       fhir:system [ fhir:v "phone" ] ;
       fhir:value [ fhir:v "+506 2345 6789" ] ;
       fhir:use [ fhir:v "home" ]
     ] ) ;
     fhir:gender [ fhir:v "female" ]
  ] [
     fhir:relationship ( [
       fhir:coding ( [
         a sct:125680007 ;
         fhir:system [
           fhir:v "http://snomed.info/sct"^^xsd:anyURI ;
           fhir:l <http://snomed.info/sct>
         ] ;
         fhir:code [ fhir:v "125680007" ]
       ] )
     ] ) ;
     fhir:name [
       fhir:use [ fhir:v "official" ] ;
       fhir:family [ fhir:v "Morales Campos" ] ;
       fhir:given ( [ fhir:v "Juan" ] )
     ] ;
     fhir:telecom ( [
       fhir:system [ fhir:v "phone" ] ;
       fhir:value [ fhir:v "+506 9876 5432" ] ;
       fhir:use [ fhir:v "mobile" ]
     ] [
       fhir:system [ fhir:v "email" ] ;
       fhir:value [ fhir:v "juan.morales@example.cr" ]
     ] ) ;
     fhir:gender [ fhir:v "male" ]
  ] ) . # 

# -------------------------------------------------------------------------------------

