This is the Continuous Integration Build of FHIR (will be incorrect/inconsistent at times).
See the Directory of published versions
Personalrelationship.shex
Raw ShEx
ShEx statement for personalrelationship
PREFIX fhir: <http://hl7.org/fhir/>
PREFIX fhirvs: <http://hl7.org/fhir/ValueSet/>
PREFIX xsd: <http://www.w3.org/2001/XMLSchema#>
PREFIX rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#>
IMPORT <Group.shex>
IMPORT <Person.shex>
IMPORT <Period.shex>
IMPORT <Patient.shex>
IMPORT <Reference.shex>
IMPORT <Organization.shex>
IMPORT <Practitioner.shex>
IMPORT <RelatedPerson.shex>
IMPORT <DomainResource.shex>
IMPORT <CodeableConcept.shex>
start=@<PersonalRelationship> AND {fhir:nodeRole [fhir:treeRoot]}
# A relationship between two indiduals
<PersonalRelationship> EXTENDS @<DomainResource> CLOSED {
a [fhir:PersonalRelationship]?;fhir:nodeRole [fhir:treeRoot]?;
fhir:source @<Reference> AND {fhir:link
@<Patient> OR
@<Person> OR
@<RelatedPerson> ? }; # The individual that is the the
# source of the relationship
fhir:relationshipType @<CodeableConcept>; # The relationship between the
# source and the target individuals
fhir:target @<Reference> AND {fhir:link
@<Patient> OR
@<Person> OR
@<RelatedPerson> ? }; # The individual that is the the
# target of the relationship
fhir:period @<OneOrMore_Period>?; # The period of time during which
# the relationship is active
fhir:confidence @<CodeableConcept>?; # The confidence level of this
# relationship
fhir:asserter @<Reference> AND {fhir:link
@<Organization> OR
@<Patient> OR
@<Practitioner> OR
@<RelatedPerson> ? }?; # Who has asserted the details of
# the relationship
fhir:group @<OneOrMore_Reference_Group>?; # This relationship is applicable to
# the referenced group(s)
}
#---------------------- Cardinality Types (OneOrMore) -------------------
<OneOrMore_Period> CLOSED {
rdf:first @<Period> ;
rdf:rest [rdf:nil] OR @<OneOrMore_Period>
}
<OneOrMore_Reference_Group> CLOSED {
rdf:first @<Reference> AND {fhir:link
@<Group> } ;
rdf:rest [rdf:nil] OR @<OneOrMore_Reference_Group>
}
Usage note: every effort has been made to ensure that the
ShEx files are correct and useful, but they are not a normative part
of the specification.