PREFIX fhir:
PREFIX fhirvs:
PREFIX xsd:
PREFIX rdf:
IMPORT
IMPORT
IMPORT
IMPORT
IMPORT
IMPORT
IMPORT
IMPORT
IMPORT
IMPORT
IMPORT
IMPORT
IMPORT
IMPORT
IMPORT
IMPORT
IMPORT
IMPORT
IMPORT
IMPORT
IMPORT
IMPORT
IMPORT
start=@ AND {fhir:nodeRole [fhir:treeRoot]}
# Group of multiple entities
EXTENDS @ CLOSED {
a [fhir:Group]?;
fhir:nodeRole [fhir:treeRoot]?;
fhir:identifier @?; # Business Identifier for this Group
fhir:active @?; # Whether this group's record is in
# active use
fhir:type @ AND
{fhir:v @fhirvs:group-type}; # person | animal | practitioner |
# device | careteam |
# healthcareservice | location |
# organization | relatedperson |
# specimen
fhir:membership @ AND
{fhir:v @fhirvs:group-membership-basis}; # definitional | enumerated
fhir:code @?; # Kind of Group members
fhir:name @?; # Label for Group
fhir:description @?; # Natural language description of
# the group
fhir:quantity @?; # Number of members
fhir:managingEntity @ AND {fhir:link
@ OR
@ OR
@ OR
@ ? }?; # Entity that is the custodian of
# the Group's definition
fhir:characteristic @?; # Include / Exclude group members by
# Trait
fhir:member @?; # Who or what is in group
}
# Who or what is in group
EXTENDS @ CLOSED {
fhir:entity @ AND {fhir:link
@ OR
@ OR
@ OR
@ OR
@ OR
@ OR
@ OR
@ OR
@ OR
@ OR
@ ? }; # Reference to the group member
fhir:period @?; # Period member belonged to the group
fhir:inactive @?; # If member is no longer in group
}
# Include / Exclude group members by Trait
EXTENDS @ CLOSED {
fhir:code @; # Kind of characteristic
fhir:value @ OR
@ OR
@ OR
@ OR
@ ; # Value held by characteristic
fhir:exclude @; # Group includes or excludes
fhir:period @?; # Period over which characteristic
# is tested
}
#---------------------- Cardinality Types (OneOrMore) -------------------
CLOSED {
rdf:first @ ;
rdf:rest [rdf:nil] OR @
}
CLOSED {
rdf:first @ ;
rdf:rest [rdf:nil] OR @
}
CLOSED {
rdf:first @ ;
rdf:rest [rdf:nil] OR @
}
#---------------------- Value Sets ------------------------
# Basis for membership in a group
fhirvs:group-membership-basis ["definitional" "enumerated"]
# Types of resources that are part of group.
fhirvs:group-type ["person" "animal" "practitioner" "device" "careteam" "healthcareservice" "location" "organization" "relatedperson" "specimen"]