@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/CRPatientWithContactSpouse> a fhir:Patient ;
  fhir:nodeRole fhir:treeRoot ;
  fhir:id [ fhir:v "CRPatientWithContactSpouse"] ; # 
  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 CRPatientWithContactSpouse</b></p><a name=\"CRPatientWithContactSpouse\"> </a><a name=\"hcCRPatientWithContactSpouse\"> </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;\">David Ramírez Solís (official) Male, DoB: 1988-11-14 ( Cédula Nacional: 7-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=\"Ways to contact the Patient\">Contact Detail</td><td colspan=\"3\">Avenida Central 456 Casa 28 Alajuela Alajuela (home)</td></tr><tr><td style=\"background-color: #f3f5da\" title=\"Nominated Contact: Spouse\">Spouse:</td><td colspan=\"3\"><ul><li>Patricia Torres Vargas (Official) (Female)</li><li>Avenida Central 456 Casa 28 (home)</li><li><a href=\"tel:+50676543210\">+506 7654 3210</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 "7-1234-5678" ]
  ] ) ; # 
  fhir:active [ fhir:v true] ; # 
  fhir:name ( [
     fhir:use [ fhir:v "official" ] ;
     fhir:family [ fhir:v "Ramírez Solís" ] ;
     fhir:given ( [ fhir:v "David" ] )
  ] ) ; # 
  fhir:gender [ fhir:v "male"] ; # 
  fhir:birthDate [ fhir:v "1988-11-14"^^xsd:date] ; # 
  fhir:address ( [
     fhir:use [ fhir:v "home" ] ;
     fhir:type [ fhir:v "both" ] ;
     fhir:line ( [ fhir:v "Avenida Central 456" ] [ fhir:v "Casa 28" ] ) ;
     fhir:city [
       fhir:v "Alajuela" ;
       fhir:extension ( [
         fhir:url [
           fhir:v "https://hl7.or.cr/fhir/core/StructureDefinition/cr-city-ext"^^xsd:anyURI ;
           fhir:l <https://hl7.or.cr/fhir/core/StructureDefinition/cr-city-ext>
         ] ;
         fhir:value [
           a fhir:CodeableConcept ;
           fhir:coding ( [
             fhir:system [
               fhir:v "https://hl7.or.cr/fhir/terminology/CodeSystem/city-codes"^^xsd:anyURI ;
               fhir:l <https://hl7.or.cr/fhir/terminology/CodeSystem/city-codes>
             ] ;
             fhir:code [ fhir:v "201" ] ;
             fhir:display [ fhir:v "Alajuela" ]
           ] )
         ]
       ] )
     ] ;
     fhir:state [
       fhir:v "Alajuela" ;
       fhir:extension ( [
         fhir:url [
           fhir:v "https://hl7.or.cr/fhir/core/StructureDefinition/cr-state-ext"^^xsd:anyURI ;
           fhir:l <https://hl7.or.cr/fhir/core/StructureDefinition/cr-state-ext>
         ] ;
         fhir:value [
           a fhir:CodeableConcept ;
           fhir:coding ( [
             fhir:system [
               fhir:v "https://hl7.or.cr/fhir/terminology/CodeSystem/province-codes"^^xsd:anyURI ;
               fhir:l <https://hl7.or.cr/fhir/terminology/CodeSystem/province-codes>
             ] ;
             fhir:code [ fhir:v "CR-A" ] ;
             fhir:display [ fhir:v "Alajuela" ]
           ] )
         ]
       ] )
     ]
  ] ) ; # 
  fhir:contact ( [
     fhir:relationship ( [
       fhir:coding ( [
         a sct:127848009 ;
         fhir:system [
           fhir:v "http://snomed.info/sct"^^xsd:anyURI ;
           fhir:l <http://snomed.info/sct>
         ] ;
         fhir:code [ fhir:v "127848009" ]
       ] )
     ] ) ;
     fhir:name [
       fhir:use [ fhir:v "official" ] ;
       fhir:family [ fhir:v "Torres Vargas" ] ;
       fhir:given ( [ fhir:v "Patricia" ] )
     ] ;
     fhir:telecom ( [
       fhir:system [ fhir:v "phone" ] ;
       fhir:value [ fhir:v "+506 7654 3210" ] ;
       fhir:use [ fhir:v "home" ]
     ] ) ;
     fhir:address [
       fhir:use [ fhir:v "home" ] ;
       fhir:type [ fhir:v "both" ] ;
       fhir:line ( [ fhir:v "Avenida Central 456" ] [ fhir:v "Casa 28" ] )
     ] ;
     fhir:gender [ fhir:v "female" ]
  ] ) . # 

# -------------------------------------------------------------------------------------

