@prefix fhir: <http://hl7.org/fhir/> .
@prefix loinc: <https://loinc.org/rdf/> .
@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 -------------------------------------------------------------------

<http://hl7.org/fhir/us/healthedata1-sandbox/Patient/patient-healthcare-agent> a fhir:Patient ;
  fhir:nodeRole fhir:treeRoot ;
  fhir:id [ fhir:v "patient-healthcare-agent"] ; # 
  fhir:meta [
     fhir:extension ( [
       fhir:url [
         fhir:v "http://hl7.org/fhir/StructureDefinition/instance-name"^^xsd:anyURI ;
         fhir:l <http://hl7.org/fhir/StructureDefinition/instance-name>
       ] ;
       fhir:value [
         a fhir:String ;
         fhir:v "Patient With Healthcare Agent Contact Example"
       ]
     ] [
       fhir:url [
         fhir:v "http://hl7.org/fhir/StructureDefinition/instance-description"^^xsd:anyURI ;
         fhir:l <http://hl7.org/fhir/StructureDefinition/instance-description>
       ] ;
       fhir:value [
         a fhir:Markdown ;
         fhir:v "This example of a *US Core Patient Profile* illustrates the use of `Patient.contact` to record the patient's Healthcare Agent - the related person legally authorized to make healthcare decisions on behalf of the patient if the patient cannot do so."
       ]
     ] ) ;
     fhir:profile ( [
       fhir:v "http://hl7.org/fhir/us/core/StructureDefinition/us-core-patient"^^xsd:anyURI ;
       fhir:l <http://hl7.org/fhir/us/core/StructureDefinition/us-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 patient-healthcare-agent</b></p><a name=\"patient-healthcare-agent\"> </a><a name=\"hcpatient-healthcare-agent\"> </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=\"http://hl7.org/fhir/us/core/2026Jan/StructureDefinition-us-core-patient.html\">US Core Patient Profile</a></p></div><p style=\"border: 1px #661aff solid; background-color: #e6e6ff; padding: 10px;\">Helen Carter  (no stated gender), DoB: 1942-03-22 ( Medical Record Number: 1099501 (use: usual, ))</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\"><ul><li>ph: 555-555-3300(Home)</li><li>56 SYCAMORE LN EVERYTOWN OK 74047 US </li></ul></td></tr><tr><td style=\"background-color: #f3f5da\" title=\"Nominated Contact: Patient Healthcare agent\">Patient Healthcare agent:</td><td colspan=\"3\"><ul><li>Sarah van Putten (Official)</li><li>ph: 555-555-5555(Home)</li><li><a href=\"mailto:sarah.vanputten@example.com\">sarah.vanputten@example.com</a></li></ul></td></tr></table></div>"^^rdf:XMLLiteral ]
  ] ; # 
  fhir:identifier ( [
     fhir:use [ fhir:v "usual" ] ;
     fhir:type [
       fhir:coding ( [
         fhir:system [
           fhir:v "http://terminology.hl7.org/CodeSystem/v2-0203"^^xsd:anyURI ;
           fhir:l <http://terminology.hl7.org/CodeSystem/v2-0203>
         ] ;
         fhir:code [ fhir:v "MR" ] ;
         fhir:display [ fhir:v "Medical Record Number" ]
       ] )
     ] ;
     fhir:system [
       fhir:v "http://example.org/patient/identifiers"^^xsd:anyURI ;
       fhir:l <http://example.org/patient/identifiers>
     ] ;
     fhir:value [ fhir:v "1099501" ]
  ] ) ; # 
  fhir:active [ fhir:v true] ; # 
  fhir:name ( [
     fhir:use [ fhir:v "usual" ] ;
     fhir:family [ fhir:v "Carter" ] ;
     fhir:given ( [ fhir:v "Helen" ] )
  ] ) ; # 
  fhir:telecom ( [
     fhir:system [ fhir:v "phone" ] ;
     fhir:value [ fhir:v "555-555-3300" ] ;
     fhir:use [ fhir:v "home" ]
  ] ) ; # 
  fhir:birthDate [ fhir:v "1942-03-22"^^xsd:date] ; # 
  fhir:address ( [
     fhir:line ( [ fhir:v "56 SYCAMORE LN" ] ) ;
     fhir:city [ fhir:v "EVERYTOWN" ] ;
     fhir:state [ fhir:v "OK" ] ;
     fhir:postalCode [ fhir:v "74047" ] ;
     fhir:country [ fhir:v "US" ]
  ] ) ; # 
  fhir:contact ( [
     fhir:relationship ( [
       fhir:coding ( [
         a loinc:81335-2 ;
         fhir:system [
           fhir:v "http://loinc.org"^^xsd:anyURI ;
           fhir:l <http://loinc.org>
         ] ;
         fhir:code [ fhir:v "81335-2" ] ;
         fhir:display [ fhir:v "Patient Healthcare agent" ]
       ] ) ;
       fhir:text [ fhir:v "81335-2 (lLOINC): Patient Healthcare agent" ]
     ] ) ;
     fhir:name [
       fhir:use [ fhir:v "official" ] ;
       fhir:family [ fhir:v "van Putten" ] ;
       fhir:given ( [ fhir:v "Sarah" ] )
     ] ;
     fhir:telecom ( [
       fhir:system [ fhir:v "phone" ] ;
       fhir:value [ fhir:v "555-555-5555" ] ;
       fhir:use [ fhir:v "home" ]
     ] [
       fhir:system [ fhir:v "email" ] ;
       fhir:value [ fhir:v "sarah.vanputten@example.com" ] ;
       fhir:use [ fhir:v "home" ]
     ] )
  ] ) . # 

# -------------------------------------------------------------------------------------

