@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 xsd: <http://www.w3.org/2001/XMLSchema#> .

# - resource -------------------------------------------------------------------

<urn://example.com/ph-ereferral/fhir/RelatedPerson/ExampleERefRelatedPersonAccompanying> a fhir:RelatedPerson ;
  fhir:nodeRole fhir:treeRoot ;
  fhir:id [ fhir:v "ExampleERefRelatedPersonAccompanying"] ; # 
  fhir:meta [
     fhir:profile ( [
       fhir:v "urn://example.com/ph-ereferral/fhir/StructureDefinition/ereferral-related-person"^^xsd:anyURI ;
       fhir:l <urn://example.com/ph-ereferral/fhir/StructureDefinition/ereferral-related-person>
     ] )
  ] ; # 
  fhir:language [ fhir:v "en"] ; # 
  fhir:text [
     fhir:status [ fhir:v "generated" ] ;
     fhir:div [ fhir:v "<div xmlns=\"http://www.w3.org/1999/xhtml\">Maria Dela Cruz is the patient's spouse and emergency contact accompanying the patient during referral. Contact: +639171112222.</div>"^^rdf:XMLLiteral ]
  ] ; # 
  fhir:active [ fhir:v true] ; # 
  fhir:patient [
     fhir:l <urn://example.com/ph-ereferral/fhir/Patient/ERefPatientExample> ;
     fhir:reference [ fhir:v "Patient/ERefPatientExample" ]
  ] ; # 
  fhir:relationship ( [
     fhir:coding ( [
       fhir:system [
         fhir:v "http://terminology.hl7.org/CodeSystem/v3-RoleCode"^^xsd:anyURI ;
         fhir:l <http://terminology.hl7.org/CodeSystem/v3-RoleCode>
       ] ;
       fhir:code [ fhir:v "ECON" ] ;
       fhir:display [ fhir:v "emergency contact" ]
     ] )
  ] [
     fhir:coding ( [
       fhir:system [
         fhir:v "http://terminology.hl7.org/CodeSystem/v3-RoleCode"^^xsd:anyURI ;
         fhir:l <http://terminology.hl7.org/CodeSystem/v3-RoleCode>
       ] ;
       fhir:code [ fhir:v "SPS" ] ;
       fhir:display [ fhir:v "spouse" ]
     ] )
  ] ) ; # 
  fhir:name ( [
     fhir:use [ fhir:v "official" ] ;
     fhir:family [ fhir:v "Dela Cruz" ] ;
     fhir:given ( [ fhir:v "Maria" ] )
  ] ) ; # 
  fhir:telecom ( [
     fhir:system [ fhir:v "phone" ] ;
     fhir:value [ fhir:v "+639171112222" ] ;
     fhir:use [ fhir:v "mobile" ]
  ] ) ; # 
  fhir:gender [ fhir:v "female"] ; # 
  fhir:period [
     fhir:start [ fhir:v "2025-03-15"^^xsd:date ]
  ] . # 

# -------------------------------------------------------------------------------------

