@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 -------------------------------------------------------------------

<http://hl7.org/fhir/DeviceAssociation/wheelchair-association> a fhir:DeviceAssociation ;
  fhir:nodeRole fhir:treeRoot ;
  fhir:id [ fhir:v "wheelchair-association"] ; # 
  fhir:contained ( [
     a fhir:Patient ;
     fhir:id [ fhir:v "example-patient" ] ;
     fhir:name ( [
       fhir:family [ fhir:v "Doe" ] ;
       fhir:given ( [ fhir:v "John" ] )
     ] )
  ] [
     a fhir:Device ;
     fhir:id [ fhir:v "wheelchair-device" ] ;
     fhir:status [ fhir:v "active" ] ;
     fhir:name ( [
       fhir:value [ fhir:v "Quickie Q500" ] ;
       fhir:type [
         fhir:coding ( [
           fhir:code [ fhir:v "model-name" ]
         ] )
       ]
     ] ) ;
     fhir:type ( [
       a sct:58938008 ;
       fhir:coding ( [
         fhir:system [
           fhir:v "http://snomed.info/sct"^^xsd:anyURI ;
           fhir:l <http://snomed.info/sct>
         ] ;
         fhir:code [ fhir:v "58938008" ] ;
         fhir:display [ fhir:v "Wheelchair" ]
       ] )
     ] )
  ] ) ; # 
  fhir:device [
     fhir:l <#wheelchair-device> ;
     fhir:reference [ fhir:v "#wheelchair-device" ]
  ] ; # 
  fhir:relationship [
     fhir:coding ( [
       fhir:system [
         fhir:v "http://terminology.hl7.org/CodeSystem/deviceassociation-relationship"^^xsd:anyURI ;
         fhir:l <http://terminology.hl7.org/CodeSystem/deviceassociation-relationship>
       ] ;
       fhir:code [ fhir:v "used-by" ] ;
       fhir:display [ fhir:v "Used By" ]
     ] )
  ] ; # 
  fhir:status [ fhir:v "active"] ; # 
  fhir:relationshipStatus [
     fhir:coding ( [
       fhir:system [
         fhir:v "http://terminology.hl7.org/CodeSystem/deviceassociation-relationship-status"^^xsd:anyURI ;
         fhir:l <http://terminology.hl7.org/CodeSystem/deviceassociation-relationship-status>
       ] ;
       fhir:code [ fhir:v "ended" ] ;
       fhir:display [ fhir:v "Ended" ]
     ] )
  ] ; # 
  fhir:subject [
     fhir:l <#example-patient> ;
     fhir:reference [ fhir:v "#example-patient" ]
  ] ; # 
  fhir:period [
     fhir:start [ fhir:v "2024-01-01"^^xsd:date ] ;
     fhir:end [ fhir:v "2025-12-31"^^xsd:date ]
  ] . # 

# -------------------------------------------------------------------------------------

