Foundation
This
page
is
part
of
the
Continuous
Integration
Build
of
FHIR
Specification
(v4.0.1:
R4
-
Mixed
Normative
and
STU
)
in
it's
permanent
home
(it
will
always
(will
be
available
incorrect/inconsistent
at
this
URL).
The
current
version
which
supercedes
this
version
is
5.0.0
.
For
a
full
list
of
available
versions,
see
times).
See
the
Directory
of
published
versions
.
Page
versions:
R5
R4B
R4
R3
R2
|
|
Standards Status : Informative |
|
ShEx statement for documentreference
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 <Uri.shex> IMPORT <Code.shex> IMPORT <Group.shex> IMPORT <Claim.shex> IMPORT <String.shex> IMPORT <Period.shex> IMPORT <Coding.shex> IMPORT <Device.shex> IMPORT <Patient.shex> IMPORT <Resource.shex> IMPORT <DateTime.shex> IMPORT <Markdown.shex> IMPORT <CarePlan.shex> IMPORT <Contract.shex> IMPORT <CareTeam.shex> IMPORT <Reference.shex> IMPORT <Canonical.shex> IMPORT <Encounter.shex> IMPORT <Identifier.shex> IMPORT <Attachment.shex> IMPORT <Appointment.shex> IMPORT <Organization.shex> IMPORT <Practitioner.shex> IMPORT <RelatedPerson.shex> IMPORT <DeviceRequest.shex> IMPORT <EpisodeOfCare.shex> IMPORT <DomainResource.shex> IMPORT <NutritionOrder.shex> IMPORT <ServiceRequest.shex> IMPORT <CodeableConcept.shex> IMPORT <BackboneElement.shex> IMPORT <PractitionerRole.shex> IMPORT <CodeableReference.shex> IMPORT <EnrollmentRequest.shex> IMPORT <MedicationRequest.shex> IMPORT <VisionPrescription.shex> IMPORT <AppointmentResponse.shex> IMPORT <CommunicationRequest.shex> IMPORT <RequestOrchestration.shex> IMPORT <CoverageEligibilityRequest.shex>JSONstart=@<DocumentReference> AND {fhir:nodeRole [fhir:treeRoot]} # A reference to a document <DocumentReference> EXTENDS @<DomainResource> CLOSED { a [fhir:DocumentReference]?;fhir:nodeRole [fhir:treeRoot]?; fhir:identifier @<OneOrMore_Identifier>?; # Business identifiers for the # document fhir:version @<String>?; # An explicitly assigned identifier # of a variation of the content in # the DocumentReference fhir:basedOn @<OneOrMore_Reference_Appointment_OR_AppointmentResponse_OR_CarePlan_OR_Claim_OR_CommunicationRequest_OR_Contract_OR_CoverageEligibilityRequest_OR_DeviceRequest_OR_EnrollmentRequest_OR_MedicationRequest_OR_NutritionOrder_OR_RequestOrchestration_OR_ServiceRequest_OR_VisionPrescription>?; # Procedure that caused this media # to be created fhir:status @<Code> AND {fhir:v @fhirvs:document-reference-status}; # current | superseded | # entered-in-error fhir:docStatus @<Code> AND {fhir:v @fhirvs:composition-status}?; # registered | partial | preliminary # | final | amended | corrected | # appended | cancelled | # entered-in-error | deprecated | # unknown fhir:modality @<OneOrMore_CodeableConcept>?; # Imaging modality used fhir:type @<CodeableConcept>?; # Kind of document (LOINC if # possible) fhir:category @<OneOrMore_CodeableConcept>?; # Categorization of document fhir:subject @<Reference> AND {fhir:l @<Resource> ? }?; # Who/what is the subject of the # document fhir:context @<OneOrMore_Reference_Appointment_OR_Encounter_OR_EpisodeOfCare>?; # Encounter the document reference # is part of fhir:event @<OneOrMore_CodeableReference>?; # Main clinical acts documented fhir:related @<OneOrMore_Reference_Resource>?; # Related identifiers or resources # associated with the document # reference fhir:bodyStructure @<OneOrMore_CodeableReference>?; # Body structure included fhir:facilityType @<CodeableConcept>?; # Kind of facility where patient was # seen fhir:practiceSetting @<CodeableConcept>?; # Additional details about where the # content was created (e.g. clinical # specialty) fhir:period @<Period>?; # Time of service that is being # documented fhir:date @<DateTime>?; # When this document reference was # created fhir:author @<OneOrMore_Reference_CareTeam_OR_Device_OR_Group_OR_Organization_OR_Patient_OR_Practitioner_OR_PractitionerRole_OR_RelatedPerson>?; # Who and/or what authored the # document fhir:attester @<OneOrMore_DocumentReference.attester>?; # Attests to accuracy of the document fhir:custodian @<Reference> AND {fhir:l @<Organization> ? }?; # Organization which maintains the # document fhir:relatesTo @<OneOrMore_DocumentReference.relatesTo>?; # Relationships to other documents fhir:description @<Markdown>?; # Human-readable description fhir:securityLabel @<OneOrMore_CodeableConcept>?; # Document security-tags fhir:content @<OneOrMore_DocumentReference.content>; # Document referenced }Turtle# Content profile rules for the document <DocumentReference.content.profile> EXTENDS @<BackboneElement> CLOSED { fhir:value @<Coding> OR @<Uri> OR @<Canonical> ; # Code|uri|canonical } # Attests to accuracy of the document <DocumentReference.attester> EXTENDS @<BackboneElement> CLOSED { fhir:mode @<CodeableConcept>; # personal | professional | legal | # official fhir:time @<DateTime>?; # When the document was attested fhir:party @<Reference> AND {fhir:l @<Group> OR @<Organization> OR @<Patient> OR @<Practitioner> OR @<PractitionerRole> OR @<RelatedPerson> ? }?; # Who attested the document } # Relationships to other documents <DocumentReference.relatesTo> EXTENDS @<BackboneElement> CLOSED { fhir:code @<CodeableConcept>; # The relationship type with another # document fhir:target @<Reference> AND {fhir:l @<DocumentReference> ? }; # Target of the relationship } # Document referenced <DocumentReference.content> EXTENDS @<BackboneElement> CLOSED { fhir:attachment @<Attachment>; # Where to access the document fhir:profile @<OneOrMore_DocumentReference.content.profile>?; # Content profile rules for the # document } #---------------------- Cardinality Types (OneOrMore) ------------------- <OneOrMore_Identifier> CLOSED { rdf:first @<Identifier> ; rdf:rest [rdf:nil] OR @<OneOrMore_Identifier> } <OneOrMore_Reference_Appointment_OR_AppointmentResponse_OR_CarePlan_OR_Claim_OR_CommunicationRequest_OR_Contract_OR_CoverageEligibilityRequest_OR_DeviceRequest_OR_EnrollmentRequest_OR_MedicationRequest_OR_NutritionOrder_OR_RequestOrchestration_OR_ServiceRequest_OR_VisionPrescription> CLOSED { rdf:first @<Reference> AND {fhir:l @<Appointment> OR @<AppointmentResponse> OR @<CarePlan> OR @<Claim> OR @<CommunicationRequest> OR @<Contract> OR @<CoverageEligibilityRequest> OR @<DeviceRequest> OR @<EnrollmentRequest> OR @<MedicationRequest> OR @<NutritionOrder> OR @<RequestOrchestration> OR @<ServiceRequest> OR @<VisionPrescription> } ; rdf:rest [rdf:nil] OR @<OneOrMore_Reference_Appointment_OR_AppointmentResponse_OR_CarePlan_OR_Claim_OR_CommunicationRequest_OR_Contract_OR_CoverageEligibilityRequest_OR_DeviceRequest_OR_EnrollmentRequest_OR_MedicationRequest_OR_NutritionOrder_OR_RequestOrchestration_OR_ServiceRequest_OR_VisionPrescription> } <OneOrMore_CodeableConcept> CLOSED { rdf:first @<CodeableConcept> ; rdf:rest [rdf:nil] OR @<OneOrMore_CodeableConcept> } <OneOrMore_Reference_Appointment_OR_Encounter_OR_EpisodeOfCare> CLOSED { rdf:first @<Reference> AND {fhir:l @<Appointment> OR @<Encounter> OR @<EpisodeOfCare> } ; rdf:rest [rdf:nil] OR @<OneOrMore_Reference_Appointment_OR_Encounter_OR_EpisodeOfCare> } <OneOrMore_CodeableReference> CLOSED { rdf:first @<CodeableReference> ; rdf:rest [rdf:nil] OR @<OneOrMore_CodeableReference> } <OneOrMore_Reference_Resource> CLOSED { rdf:first @<Reference> AND {fhir:l @<Resource> } ; rdf:rest [rdf:nil] OR @<OneOrMore_Reference_Resource> } <OneOrMore_Reference_CareTeam_OR_Device_OR_Group_OR_Organization_OR_Patient_OR_Practitioner_OR_PractitionerRole_OR_RelatedPerson> CLOSED { rdf:first @<Reference> AND {fhir:l @<CareTeam> OR @<Device> OR @<Group> OR @<Organization> OR @<Patient> OR @<Practitioner> OR @<PractitionerRole> OR @<RelatedPerson> } ; rdf:rest [rdf:nil] OR @<OneOrMore_Reference_CareTeam_OR_Device_OR_Group_OR_Organization_OR_Patient_OR_Practitioner_OR_PractitionerRole_OR_RelatedPerson> } <OneOrMore_DocumentReference.attester> CLOSED { rdf:first @<DocumentReference.attester> ; rdf:rest [rdf:nil] OR @<OneOrMore_DocumentReference.attester> } <OneOrMore_DocumentReference.relatesTo> CLOSED { rdf:first @<DocumentReference.relatesTo> ; rdf:rest [rdf:nil] OR @<OneOrMore_DocumentReference.relatesTo> } <OneOrMore_DocumentReference.content> CLOSED { rdf:first @<DocumentReference.content> ; rdf:rest [rdf:nil] OR @<OneOrMore_DocumentReference.content> } <OneOrMore_DocumentReference.content.profile> CLOSED { rdf:first @<DocumentReference.content.profile> ; rdf:rest [rdf:nil] OR @<OneOrMore_DocumentReference.content.profile> } #---------------------- Value Sets ------------------------# The workflow/clinical status of the composition. fhirvs:composition-status ["registered" "partial" "preliminary" "final" "amended" "corrected" "appended" "cancelled" "entered-in-error" "deprecated" "unknown"] # The status of the document reference. fhirvs:document-reference-status ["current" "superseded" "entered-in-error"]
Usage
note:
every
effort
has
been
made
to
ensure
that
the
examples
ShEx
files
are
correct
and
useful,
but
they
are
not
a
normative
part
of
the
specification.
®©
FHIR
®©
HL7.org
2011+.
FHIR
Release
4
(Technical
Correction
#1)
(v4.0.1)
R6
hl7.fhir.core#6.0.0-ballot3
generated
on
Fri,
Nov
1,
2019
09:36+1100.
QA
Page
Wed,
Dec
17,
2025
09:54+0000.
Links:
Search
|
Version
History
|
Table
of
Contents
|
Credits
Glossary
|
QA
|
Compare
to
R3
R4
|
Compare
to
R5
|
Compare
to
Last
Ballot
|
|
Propose
a
change