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

#   
#One common use of Group is to track the members of a family. Families 
#can act collectively e.g. jointly monitor their health. Of course,
#the actions are likely actually performed by a single individual, but the tracking
#system only considers the family's joint accountability
#
#Note that it's not usual to refer to the members of a family that are of interest
#to am e.g. public health system as 'Patients', but the resource type *Patient* is the appropriate 
#resource to use in this case. This should not be understood as taking some sort of position about
#the use of the word 'Patient', but a reflection on the limitations of a Typing system as 
#compared to real world language usage
# 

<http://hl7.org/fhir/Group/Family> a fhir:Group ;
  fhir:nodeRole fhir:treeRoot ;
  fhir:id [ fhir:v "Family"] ; # 
  fhir:extension ( [
     fhir:url [
       fhir:v "http://hl7.org/fhir/StructureDefinition/structuredefinition-wg"^^xsd:anyURI ;
       fhir:l <http://hl7.org/fhir/StructureDefinition/structuredefinition-wg>
     ] ;
     fhir:value [
       a fhir:Code ;
       fhir:v "fhir"
     ]
  ] ) ; # 
  fhir:publisher [ fhir:v "HL7 International / FHIR Infrastructure"] ; # 
  fhir:contact ( [
     fhir:telecom ( [
       fhir:system [ fhir:v "url" ] ;
       fhir:value [ fhir:v "http://www.hl7.org/Special/committees/fiwg" ]
     ] )
  ] ) ; # 
  fhir:type [ fhir:v "person"] ; # 
  fhir:membership [ fhir:v "enumerated"] ; # 
  fhir:code [
     fhir:coding ( [
       fhir:system [
         fhir:v "http://hl7.org/fhir/ValueSet/group-code"^^xsd:anyURI ;
         fhir:l <http://hl7.org/fhir/ValueSet/group-code>
       ] ;
       fhir:code [ fhir:v "family" ]
     ] )
  ] ; # 
  fhir:member ( [
     fhir:entity [
       fhir:l <http://hl7.org/fhir/Patient/xcda> ;
       fhir:reference [ fhir:v "Patient/xcda" ]
     ] ;
     fhir:involvement ( [
       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 "FTH" ]
       ] )
     ] )
  ] [
     fhir:entity [
       fhir:l <http://hl7.org/fhir/Patient/pat3> ;
       fhir:reference [ fhir:v "Patient/pat3" ]
     ] ;
     fhir:involvement ( [
       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 "SON" ]
       ] )
     ] )
  ] [
     fhir:entity [
       fhir:l <http://hl7.org/fhir/Patient/pat4> ;
       fhir:reference [ fhir:v "Patient/pat4" ]
     ] ;
     fhir:involvement ( [
       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 "DAUINLAW" ]
       ] )
     ] )
  ] [
     fhir:entity [
       fhir:l <http://hl7.org/fhir/Patient/pat1> ;
       fhir:reference [ fhir:v "Patient/pat1" ]
     ] ;
     fhir:involvement ( [
       fhir:coding ( [
         fhir:system [
           fhir:v "http://hl7.org/fhir/group-involvement"^^xsd:anyURI ;
           fhir:l <http://hl7.org/fhir/group-involvement>
         ] ;
         fhir:code [ fhir:v "pet" ]
       ] )
     ] )
  ] ) . # 

<http://hl7.org/fhir/Patient/xcda> a fhir:Patient .

<http://hl7.org/fhir/Patient/pat3> a fhir:Patient .

<http://hl7.org/fhir/Patient/pat4> a fhir:Patient .

<http://hl7.org/fhir/Patient/pat1> a fhir:Patient .

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

