Foundation
Publish-box
(todo)
This
is
the
Continuous
Integration
Build
of
FHIR
(will
be
incorrect/inconsistent
at
times).
See
the
Directory
of
published
versions
| Responsible Owner: Orders and Observations Work Group | Standards Status : Informative | Compartments : Device , Group , Patient , Practitioner , RelatedPerson |
ShEx statement for deviceassociation
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#> # ShEx Version 2.2 IMPORT <Code.shex> IMPORT <Group.shex> IMPORT <Device.shex> IMPORT <Period.shex> IMPORT <Patient.shex> IMPORT <CareTeam.shex> IMPORT <Location.shex> IMPORT <Specimen.shex> IMPORT <Reference.shex> IMPORT <Substance.shex> IMPORT <Identifier.shex> IMPORT <Medication.shex> IMPORT <Organization.shex> IMPORT <Practitioner.shex> IMPORT <RelatedPerson.shex> IMPORT <BodyStructure.shex> IMPORT <DomainResource.shex> IMPORT <CodeableConcept.shex>IMPORT <BackboneElement.shex>IMPORT <NutritionProduct.shex> IMPORT <PractitionerRole.shex> IMPORT <BiologicallyDerivedProduct.shex> start=@<DeviceAssociation> AND {fhir:nodeRole [fhir:treeRoot]}# A record of association or dissociation of a device with a patient# A record of association or dissociation of a device with a subject (e.g. patient) and/or operator <DeviceAssociation> EXTENDS @<DomainResource> CLOSED { a [fhir:DeviceAssociation]?;fhir:nodeRole [fhir:treeRoot]?; fhir:identifier @<OneOrMore_Identifier>?; # Instance identifierfhir:device @<Reference> AND {fhir:link @<Device> ? }; # Reference to the devices # associated with the patient or # groupfhir:device @<Reference> AND {fhir:l @<Device> ? }; # Reference to the device that is # being associated fhir:relationship @<OneOrMore_CodeableConcept>?; # Describes the relationship between # the device and subjectfhir:status @<CodeableConcept>; # implanted | explanted | attached |fhir:status @<Code> AND {fhir:v @fhirvs:deviceassociation-status}; # active | inactive | # entered-in-error | unknown fhir:statusReason @<OneOrMore_CodeableConcept>?; # The reasons given for the current # association statusfhir:subject @<Reference> AND {fhir:linkfhir:associationStatus @<CodeableConcept>?; # State of the device’s association fhir:subject @<Reference> AND {fhir:l @<BiologicallyDerivedProduct> OR @<CareTeam> OR @<Device> OR @<Group> OR @<Location> OR @<Medication> OR @<NutritionProduct> OR @<Organization> OR @<Patient> OR @<Practitioner> OR @<PractitionerRole> OR@<RelatedPerson> ? }?; # The individual, group of # individuals or device that the # device is on or associated with fhir:bodyStructure @<Reference> AND {fhir:link@<RelatedPerson> OR @<Specimen> OR @<Substance> ? }?; # The entity(ies) that the device is # on or associated with fhir:focus @<Reference> AND {fhir:l @<BiologicallyDerivedProduct> OR @<CareTeam> OR @<Device> OR @<Group> OR @<Location> OR @<Medication> OR @<NutritionProduct> OR @<Organization> OR @<Patient> OR @<Practitioner> OR @<PractitionerRole> OR @<RelatedPerson> OR @<Specimen> OR @<Substance> ? }?; # The target of the association fhir:bodyStructure @<Reference> AND {fhir:l @<BodyStructure> ? }?; # Current anatomical location of the # device in/on subject fhir:period @<Period>?; # Begin and end dates and times for # the device associationfhir:operation @<OneOrMore_DeviceAssociation.operation>?; # The details about the device when # it is in use to describe its # operation } # The details about the device when it is in use to describe its operation <DeviceAssociation.operation> EXTENDS @<BackboneElement> CLOSED { fhir:status @<CodeableConcept>; # Device operational condition fhir:operator @<OneOrMore_Reference_Patient_OR_Practitioner_OR_RelatedPerson>?; # The individual performing the # action enabled by the device fhir:period @<Period>?; # Begin and end dates and times for # the device's operation} #---------------------- Cardinality Types (OneOrMore) ------------------- <OneOrMore_Identifier> CLOSED { rdf:first @<Identifier> ; rdf:rest [rdf:nil] OR @<OneOrMore_Identifier> } <OneOrMore_CodeableConcept> CLOSED { rdf:first @<CodeableConcept> ; rdf:rest [rdf:nil] OR @<OneOrMore_CodeableConcept> }<OneOrMore_DeviceAssociation.operation> CLOSED { rdf:first @<DeviceAssociation.operation> ; rdf:rest [rdf:nil] OR @<OneOrMore_DeviceAssociation.operation> } <OneOrMore_Reference_Patient_OR_Practitioner_OR_RelatedPerson> CLOSED { rdf:first @<Reference> AND {fhir:link @<Patient> OR @<Practitioner> OR @<RelatedPerson> } ; rdf:rest [rdf:nil] OR @<OneOrMore_Reference_Patient_OR_Practitioner_OR_RelatedPerson> }#---------------------- Value Sets ------------------------ # DeviceAssociation Status Codes fhirvs:deviceassociation-status ["active" "inactive" "entered-in-error" "unknown"]
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.
FHIR
®©
HL7.org
2011+.
FHIR
R6
hl7.fhir.core#6.0.0-ballot3
generated
on
Tue,
Apr
1,
Fri,
Nov
14,
2025
12:24+1100.
20:58+0000.
Links:
Search
|
Version
History
|
Contents
|
Glossary
|
QA
|
Compare
to
R4
|
Compare
to
R5
|
Compare
to
Last
Ballot
|
|
Propose
a
change