@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-primary-first> a fhir:Patient ;
  fhir:nodeRole fhir:treeRoot ;
  fhir:id [ fhir:v "patient-healthcare-agent-primary-first"] ; # 
  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 Primary And First Alternate Healthcare Agents 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 repeating `Patient.contact` elements to record both a primary Healthcare Agent and a first alternate Healthcare Agent for the patient."
       ]
     ] ) ;
     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-primary-first</b></p><a name=\"patient-healthcare-agent-primary-first\"> </a><a name=\"hcpatient-healthcare-agent-primary-first\"> </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;\">Walter Carter  (no stated gender), DoB: 1938-11-04 ( Medical Record Number: 1099502 (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-3301(Home)</li><li>78 SYCAMORE LN EVERYTOWN OK 74047 US </li></ul></td></tr><tr><td style=\"background-color: #f3f5da\" title=\"Nominated Contact: Primary healthcare agent [Reported]\">Primary healthcare agent [Reported]:</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><tr><td style=\"background-color: #f3f5da\" title=\"Nominated Contact: First alternate healthcare agent [Reported]\">First alternate healthcare agent [Reported]:</td><td colspan=\"3\"><ul><li>Ethan Baxter (Official)</li><li>ph: 555-555-2150(Mobile)</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 "1099502" ]
  ] ) ; # 
  fhir:active [ fhir:v true] ; # 
  fhir:name ( [
     fhir:use [ fhir:v "usual" ] ;
     fhir:family [ fhir:v "Carter" ] ;
     fhir:given ( [ fhir:v "Walter" ] )
  ] ) ; # 
  fhir:telecom ( [
     fhir:system [ fhir:v "phone" ] ;
     fhir:value [ fhir:v "555-555-3301" ] ;
     fhir:use [ fhir:v "home" ]
  ] ) ; # 
  fhir:birthDate [ fhir:v "1938-11-04"^^xsd:date] ; # 
  fhir:address ( [
     fhir:line ( [ fhir:v "78 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:75783-1 ;
         fhir:system [
           fhir:v "http://loinc.org"^^xsd:anyURI ;
           fhir:l <http://loinc.org>
         ] ;
         fhir:code [ fhir:v "75783-1" ] ;
         fhir:display [ fhir:v "Primary healthcare agent [Reported]" ]
       ] ) ;
       fhir:text [ fhir:v "75783-1 (LOINC): Primary healthcare agent [Reported]" ]
     ] ) ;
     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" ]
     ] )
  ] [
     fhir:relationship ( [
       fhir:coding ( [
         a loinc:75784-9 ;
         fhir:system [
           fhir:v "http://loinc.org"^^xsd:anyURI ;
           fhir:l <http://loinc.org>
         ] ;
         fhir:code [ fhir:v "75784-9" ] ;
         fhir:display [ fhir:v "First alternate healthcare agent [Reported]" ]
       ] ) ;
       fhir:text [ fhir:v "75784-9 (LOINC): First alternate healthcare agent [Reported]" ]
     ] ) ;
     fhir:name [
       fhir:use [ fhir:v "official" ] ;
       fhir:family [ fhir:v "Baxter" ] ;
       fhir:given ( [ fhir:v "Ethan" ] )
     ] ;
     fhir:telecom ( [
       fhir:system [ fhir:v "phone" ] ;
       fhir:value [ fhir:v "555-555-2150" ] ;
       fhir:use [ fhir:v "mobile" ]
     ] )
  ] ) . # 

# -------------------------------------------------------------------------------------

