FoundationThis page is part of the FHIR Specification v6.0.0-ballot2: Release 6 Ballot (2nd Draft) (see Ballot Notes). The current version is 5.0.0. For a full list of available versions, see the Directory of published versions 
| Patient Care Work Group | Maturity Level: N/A | Standards Status: Informative | Compartments: Device, Encounter, Patient, Practitioner, RelatedPerson |
ShEx statement for communication
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 <uri.shex>
IMPORT <code.shex>
IMPORT <Task.shex>
IMPORT <Group.shex>
IMPORT <Device.shex>
IMPORT <Patient.shex>
IMPORT <dateTime.shex>
IMPORT <CareTeam.shex>
IMPORT <Endpoint.shex>
IMPORT <Resource.shex>
IMPORT <CarePlan.shex>
IMPORT <Location.shex>
IMPORT <canonical.shex>
IMPORT <Reference.shex>
IMPORT <Encounter.shex>
IMPORT <Identifier.shex>
IMPORT <Annotation.shex>
IMPORT <Attachment.shex>
IMPORT <Organization.shex>
IMPORT <Practitioner.shex>
IMPORT <RelatedPerson.shex>
IMPORT <DeviceRequest.shex>
IMPORT <DomainResource.shex>
IMPORT <NutritionOrder.shex>
IMPORT <ServiceRequest.shex>
IMPORT <CodeableConcept.shex>
IMPORT <BackboneElement.shex>
IMPORT <PractitionerRole.shex>
IMPORT <HealthcareService.shex>
IMPORT <CodeableReference.shex>
IMPORT <MedicationRequest.shex>
IMPORT <VisionPrescription.shex>
IMPORT <ImmunizationRecommendation.shex>
start=@<Communication> AND {fhir:nodeRole [fhir:treeRoot]}
# A clinical or business level record of information being transmitted or shared
<Communication> EXTENDS @<DomainResource> CLOSED {
a [fhir:Communication]?;
fhir:nodeRole [fhir:treeRoot]?;
fhir:identifier @<OneOrMore_Identifier>?; # Unique identifier
fhir:instantiatesCanonical @<OneOrMore_canonical>?; # Instantiates FHIR protocol or
# definition
fhir:instantiatesUri @<OneOrMore_uri>?; # Instantiates external protocol or
# definition
fhir:basedOn @<OneOrMore_Reference_CarePlan_OR_CommunicationRequest_OR_DeviceRequest_OR_ImmunizationRecommendation_OR_MedicationRequest_OR_NutritionOrder_OR_ServiceRequest_OR_Task_OR_VisionPrescription>?; # Request fulfilled by this
# communication
fhir:partOf @<OneOrMore_Reference_Resource>?; # Part of referenced event (e.g.
# Communication, Procedure)
fhir:inResponseTo @<OneOrMore_Reference_Communication>?; # Reply to
fhir:status @<code> AND
{fhir:v @fhirvs:event-status}; # preparation | in-progress |
# not-done | on-hold | stopped |
# completed | entered-in-error |
# unknown
fhir:statusReason @<CodeableConcept>?; # Reason for current status
fhir:category @<OneOrMore_CodeableConcept>?; # Message category
fhir:priority @<code> AND
{fhir:v @fhirvs:request-priority}?; # routine | urgent | asap | stat
fhir:medium @<OneOrMore_CodeableConcept>?; # A channel of communication
fhir:subject @<Reference> AND {fhir:link
@<Group> OR
@<Patient> ? }?; # Focus of message
fhir:topic @<CodeableConcept>?; # Description of the purpose/content
fhir:about @<OneOrMore_Reference_Resource>?; # Resources that pertain to this
# communication
fhir:encounter @<Reference> AND {fhir:link
@<Encounter> ? }?; # The Encounter during which this
# Communication was created
fhir:sent @<dateTime>?; # When sent
fhir:received @<dateTime>?; # When received
fhir:recipient @<OneOrMore_Reference_CareTeam_OR_Device_OR_Endpoint_OR_Group_OR_HealthcareService_OR_Location_OR_Organization_OR_Patient_OR_Practitioner_OR_PractitionerRole_OR_RelatedPerson>?; # Who the information is shared with
fhir:sender @<Reference> AND {fhir:link
@<CareTeam> OR
@<Device> OR
@<Endpoint> OR
@<HealthcareService> OR
@<Organization> OR
@<Patient> OR
@<Practitioner> OR
@<PractitionerRole> OR
@<RelatedPerson> ? }?; # Who shares the information
fhir:reason @<OneOrMore_CodeableReference>?; # Indication for message
fhir:payload @<OneOrMore_Communication.payload>?; # Message payload
fhir:note @<OneOrMore_Annotation>?; # Comments made about the
# communication
}
# Message payload
<Communication.payload> EXTENDS @<BackboneElement> CLOSED {
fhir:content @<Attachment> OR
(@<Reference> AND {fhir:link @<Resource> }) OR
@<CodeableConcept> ; # Message part content
}
#---------------------- Cardinality Types (OneOrMore) -------------------
<OneOrMore_Identifier> CLOSED {
rdf:first @<Identifier> ;
rdf:rest [rdf:nil] OR @<OneOrMore_Identifier>
}
<OneOrMore_canonical> CLOSED {
rdf:first @<canonical> ;
rdf:rest [rdf:nil] OR @<OneOrMore_canonical>
}
<OneOrMore_uri> CLOSED {
rdf:first @<uri> ;
rdf:rest [rdf:nil] OR @<OneOrMore_uri>
}
<OneOrMore_Reference_CarePlan_OR_CommunicationRequest_OR_DeviceRequest_OR_ImmunizationRecommendation_OR_MedicationRequest_OR_NutritionOrder_OR_ServiceRequest_OR_Task_OR_VisionPrescription> CLOSED {
rdf:first @<Reference> AND {fhir:link
@<CarePlan> OR
@<CommunicationRequest> OR
@<DeviceRequest> OR
@<ImmunizationRecommendation> OR
@<MedicationRequest> OR
@<NutritionOrder> OR
@<ServiceRequest> OR
@<Task> OR
@<VisionPrescription> } ;
rdf:rest [rdf:nil] OR @<OneOrMore_Reference_CarePlan_OR_CommunicationRequest_OR_DeviceRequest_OR_ImmunizationRecommendation_OR_MedicationRequest_OR_NutritionOrder_OR_ServiceRequest_OR_Task_OR_VisionPrescription>
}
<OneOrMore_Reference_Resource> CLOSED {
rdf:first @<Reference> AND {fhir:link
@<Resource> } ;
rdf:rest [rdf:nil] OR @<OneOrMore_Reference_Resource>
}
<OneOrMore_Reference_Communication> CLOSED {
rdf:first @<Reference> AND {fhir:link
@<Communication> } ;
rdf:rest [rdf:nil] OR @<OneOrMore_Reference_Communication>
}
<OneOrMore_CodeableConcept> CLOSED {
rdf:first @<CodeableConcept> ;
rdf:rest [rdf:nil] OR @<OneOrMore_CodeableConcept>
}
<OneOrMore_Reference_CareTeam_OR_Device_OR_Endpoint_OR_Group_OR_HealthcareService_OR_Location_OR_Organization_OR_Patient_OR_Practitioner_OR_PractitionerRole_OR_RelatedPerson> CLOSED {
rdf:first @<Reference> AND {fhir:link
@<CareTeam> OR
@<Device> OR
@<Endpoint> OR
@<Group> OR
@<HealthcareService> OR
@<Location> OR
@<Organization> OR
@<Patient> OR
@<Practitioner> OR
@<PractitionerRole> OR
@<RelatedPerson> } ;
rdf:rest [rdf:nil] OR @<OneOrMore_Reference_CareTeam_OR_Device_OR_Endpoint_OR_Group_OR_HealthcareService_OR_Location_OR_Organization_OR_Patient_OR_Practitioner_OR_PractitionerRole_OR_RelatedPerson>
}
<OneOrMore_CodeableReference> CLOSED {
rdf:first @<CodeableReference> ;
rdf:rest [rdf:nil] OR @<OneOrMore_CodeableReference>
}
<OneOrMore_Communication.payload> CLOSED {
rdf:first @<Communication.payload> ;
rdf:rest [rdf:nil] OR @<OneOrMore_Communication.payload>
}
<OneOrMore_Annotation> CLOSED {
rdf:first @<Annotation> ;
rdf:rest [rdf:nil] OR @<OneOrMore_Annotation>
}
#---------------------- Value Sets ------------------------
# Codes identifying the lifecycle stage of an event.
fhirvs:event-status ["preparation" "in-progress" "not-done" "on-hold" "stopped" "completed" "entered-in-error" "unknown"]
# Identifies the level of importance to be assigned to actioning the request.
fhirvs:request-priority ["routine" "urgent" "asap" "stat"]
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-ballot2 generated on Mon, Aug 12, 2024 16:58+0800.
Links: Search |
Version History |
Contents |
Glossary |
QA |
Compare to R5 |
|
Propose a change