Release 4 R5 Final QA

This page is part of the FHIR Specification (v4.0.1: R4 (v5.0.0-draft-final: Final QA Preview for R5 - Mixed Normative and STU see ballot notes ) in it's permanent home (it will always be available at this URL). ). The current version which supercedes this version is 5.0.0 . For a full list of available versions, see the Directory of published versions . Page versions: R5 R4B R4 R3

Devicerequest-right-lens.ttl Immunization.shex

Orders Public Health and Observations Emergency Response Work Group Maturity Level : N/A Standards Status : Informative Compartments : Device , Encounter , Patient , Practitioner

Raw Turtle (+ also see Turtle/RDF Format Specification ShEx )

Right Lens prescription using the parameters element ShEx statement for immunization

@prefix fhir: <http://hl7.org/fhir/> . @prefix loinc: <http://loinc.org/rdf#> . @prefix owl: <http://www.w3.org/2002/07/owl#> . @prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#> . @prefix xsd: <http://www.w3.org/2001/XMLSchema#> .
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#> 


# - resource -------------------------------------------------------------------

IMPORT <code.shex>
IMPORT <date.shex>
IMPORT <string.shex>
IMPORT <Patient.shex>
IMPORT <boolean.shex>
IMPORT <dateTime.shex>
IMPORT <Location.shex>
IMPORT <Quantity.shex>
IMPORT <CarePlan.shex>
IMPORT <Resource.shex>
IMPORT <Reference.shex>
IMPORT <Encounter.shex>
IMPORT <Identifier.shex>
IMPORT <Annotation.shex>
IMPORT <Organization.shex>
IMPORT <Practitioner.shex>
IMPORT <RelatedPerson.shex>
IMPORT <DomainResource.shex>
IMPORT <ServiceRequest.shex>
IMPORT <CodeableConcept.shex>
IMPORT <BackboneElement.shex>
IMPORT <PractitionerRole.shex>
IMPORT <CodeableReference.shex>
IMPORT <MedicationRequest.shex>


<http://hl7.org/fhir/DeviceRequest/right-lens> a fhir:DeviceRequest;
  fhir:nodeRole fhir:treeRoot;
  fhir:Resource.id [ fhir:value "right-lens"];
  fhir:DomainResource.text [
     fhir:Narrative.status [ fhir:value "generated" ];
     fhir:Narrative.div "<div xmlns=\"http://www.w3.org/1999/xhtml\"><p><b>Generated Narrative with Details</b></p><p><b>id</b>: right-lens</p><p><b>identifier</b>: 15013R</p><p><b>groupIdentifier</b>: 15013</p><p><b>status</b>: completed</p><p><b>intent</b>: original-order</p><p><b>code</b>: Lens <span>(Details : {http://terminology.hl7.org/CodeSystem/ex-visionprescriptionproduct code 'lens' = 'Lens)</span></p><blockquote><p><b>parameter</b></p><p><b>code</b>: sphere, right lens <span>(Details : {LOINC code '28826-6' = 'Sphere distance Glasses prescription.lens - right', given as 'Sphere distance Glasses prescription.lens - right'})</span></p><p><b>value</b>: -2.00 Diopter<span> (Details: UCUM code [diop] = 'diop')</span></p></blockquote><blockquote><p><b>parameter</b></p><p><b>code</b>: prisms, right lens <span>(Details : {LOINC code '28829-0' = 'Prism base distance Glasses prescription.lens - right', given as 'Prism base distance Glasses prescription.lens - right'})</span></p><p><b>value</b>: -2.00 Diopter<span> (Details: UCUM code [diop] = 'diop')</span></p></blockquote><blockquote><p><b>parameter</b></p><p><b>code</b>: add, right lens <span>(Details : {LOINC code '28810-0' = 'Add 1 LM glasses lens - right', given as 'Add 1 LM glasses lens - right'})</span></p><p><b>value</b>: 2.00 Diopter<span> (Details: UCUM code [diop] = 'diop')</span></p></blockquote><p><b>subject</b>: <a>Patient/example</a></p><p><b>occurrence</b>: 15/06/2014</p><p><b>requester</b>: <a>Practitioner/example</a></p></div>"
  ];
  fhir:DeviceRequest.identifier [
     fhir:index 0;
     fhir:Identifier.system [ fhir:value "http://www.happysight.com/prescription" ];
     fhir:Identifier.value [ fhir:value "15013R" ]
  ];
  fhir:DeviceRequest.groupIdentifier [
     fhir:Identifier.system [ fhir:value "http://acme.org" ];
     fhir:Identifier.value [ fhir:value "15013" ]
  ];
  fhir:DeviceRequest.status [ fhir:value "completed"];
  fhir:DeviceRequest.intent [ fhir:value "original-order"];
  fhir:DeviceRequest.codeCodeableConcept [
     fhir:CodeableConcept.coding [
       fhir:index 0;
       fhir:Coding.system [ fhir:value "http://terminology.hl7.org/CodeSystem/ex-visionprescriptionproduct" ];
       fhir:Coding.code [ fhir:value "lens" ]
     ]
  ];
  fhir:DeviceRequest.parameter [
     fhir:index 0;
     fhir:DeviceRequest.parameter.code [
       fhir:CodeableConcept.coding [
         fhir:index 0;
         a loinc:28826-6;
         fhir:Coding.system [ fhir:value "http://loinc.org" ];
         fhir:Coding.code [ fhir:value "28826-6" ];
         fhir:Coding.display [ fhir:value "Sphere distance Glasses prescription.lens - right" ]
       ];
       fhir:CodeableConcept.text [ fhir:value "sphere, right lens" ]
     ];
     fhir:DeviceRequest.parameter.valueQuantity [
       fhir:Quantity.value [ fhir:value "-2.00"^^xsd:decimal ];
       fhir:Quantity.unit [ fhir:value "Diopter" ];
       fhir:Quantity.system [ fhir:value "http://unitsofmeasure.org" ];
       fhir:Quantity.code [ fhir:value "[diop]" ]
     ]
  ], [
     fhir:index 1;
     fhir:DeviceRequest.parameter.code [
       fhir:CodeableConcept.coding [
         fhir:index 0;
         a loinc:28829-0;
         fhir:Coding.system [ fhir:value "http://loinc.org" ];
         fhir:Coding.code [ fhir:value "28829-0" ];
         fhir:Coding.display [ fhir:value "Prism base distance Glasses prescription.lens - right" ]
       ];
       fhir:CodeableConcept.text [ fhir:value "prisms, right lens" ]
     ];
     fhir:DeviceRequest.parameter.valueQuantity [
       fhir:Quantity.value [ fhir:value "-2.00"^^xsd:decimal ];
       fhir:Quantity.unit [ fhir:value "Diopter" ];
       fhir:Quantity.system [ fhir:value "http://unitsofmeasure.org" ];
       fhir:Quantity.code [ fhir:value "[diop]" ]
     ]
  ], [
     fhir:index 2;
     fhir:DeviceRequest.parameter.code [
       fhir:CodeableConcept.coding [
         fhir:index 0;
         a loinc:28810-0;
         fhir:Coding.system [ fhir:value "http://loinc.org" ];
         fhir:Coding.code [ fhir:value "28810-0" ];
         fhir:Coding.display [ fhir:value "Add 1 LM glasses lens - right" ]
       ];
       fhir:CodeableConcept.text [ fhir:value "add, right lens" ]
     ];
     fhir:DeviceRequest.parameter.valueQuantity [
       fhir:Quantity.value [ fhir:value "2.00"^^xsd:decimal ];
       fhir:Quantity.unit [ fhir:value "Diopter" ];
       fhir:Quantity.system [ fhir:value "http://unitsofmeasure.org" ];
       fhir:Quantity.code [ fhir:value "[diop]" ]
     ]
  ];
  fhir:DeviceRequest.subject [
     fhir:link <http://hl7.org/fhir/Patient/example>;
     fhir:Reference.reference [ fhir:value "Patient/example" ]
  ];
  fhir:DeviceRequest.occurrenceDateTime [ fhir:value "2014-06-15"^^xsd:date];
  fhir:DeviceRequest.requester [
     fhir:link <http://hl7.org/fhir/Practitioner/example>;
     fhir:Reference.reference [ fhir:value "Practitioner/example" ]
  ] .


<http://hl7.org/fhir/Patient/example> a fhir:Patient .

start=@<Immunization> AND {fhir:nodeRole [fhir:treeRoot]}


<http://hl7.org/fhir/Practitioner/example> a fhir:Practitioner .

# Immunization event information
<Immunization> EXTENDS @<DomainResource> CLOSED {   


# - ontology header ------------------------------------------------------------

    a [fhir:Immunization]?;
    fhir:nodeRole [fhir:treeRoot]?;


<http://hl7.org/fhir/DeviceRequest/right-lens.ttl> a owl:Ontology;
  owl:imports fhir:fhir.ttl;
  owl:versionIRI <http://build.fhir.org/DeviceRequest/right-lens.ttl> .

    fhir:identifier @<OneOrMore_Identifier>?;  # Business identifier
    fhir:basedOn @<OneOrMore_Reference_CarePlan_OR_ImmunizationRecommendation_OR_MedicationRequest_OR_ServiceRequest>?;  # Authority that the immunization 
                                            # event is based on 
    fhir:status @<code> AND
    	{fhir:v @fhirvs:immunization-status};  # completed | entered-in-error | 
                                            # not-done 
    fhir:statusReason @<CodeableConcept>?;  # Reason for current status
    fhir:vaccineCode @<CodeableConcept>;    # Vaccine administered
    fhir:administeredProduct @<CodeableReference>?;  # Product that was administered
    fhir:manufacturer @<CodeableReference>?;  # Vaccine manufacturer
    fhir:lotNumber @<string>?;              # Vaccine lot number
    fhir:expirationDate @<date>?;           # Vaccine expiration date
    fhir:patient @<Reference> AND {fhir:link 
    			@<Patient> ? };  # Who was immunized
    fhir:encounter @<Reference> AND {fhir:link 
    			@<Encounter> ? }?;  # Encounter immunization was part of
    fhir:supportingInformation @<OneOrMore_Reference_Resource>?;  # Additional information in support 
                                            # of the immunization 
    fhir:occurrence @<dateTime>  OR 
    			@<string>  ;  # Vaccine administration date
    fhir:primarySource @<boolean>?;         # Indicates context the data was 
                                            # captured in 
    fhir:informationSource @<CodeableReference>?;  # Indicates the source of a  
                                            # reported record 
    fhir:location @<Reference> AND {fhir:link 
    			@<Location> ? }?;  # Where immunization occurred
    fhir:site @<CodeableConcept>?;          # Body site vaccine  was administered
    fhir:route @<CodeableConcept>?;         # How vaccine entered body
    fhir:doseQuantity @<Quantity>?;         # Amount of vaccine administered
    fhir:performer @<OneOrMore_Immunization.performer>?;  # Who performed event
    fhir:note @<OneOrMore_Annotation>?;     # Additional immunization notes
    fhir:reason @<OneOrMore_CodeableReference>?;  # Why immunization occurred
    fhir:isSubpotent @<boolean>?;           # Dose potency
    fhir:subpotentReason @<OneOrMore_CodeableConcept>?;  # Reason for being subpotent
    fhir:programEligibility @<OneOrMore_Immunization.programEligibility>?;  # Patient eligibility for a specific 
                                            # vaccination program 
    fhir:fundingSource @<CodeableConcept>?;  # Funding source for the vaccine
    fhir:reaction @<OneOrMore_Immunization.reaction>?;  # Details of a reaction that follows 
                                            # immunization 
    fhir:protocolApplied @<OneOrMore_Immunization.protocolApplied>?;  # Protocol followed by the provider
}  


# -------------------------------------------------------------------------------------

# Patient eligibility for a specific vaccination program
<Immunization.programEligibility> EXTENDS @<BackboneElement> CLOSED {   
    fhir:program @<CodeableConcept>;        # The program that eligibility is 
                                            # declared for 
    fhir:programStatus @<CodeableConcept>;  # The patient's eligibility status 
                                            # for the program 
}  

# Details of a reaction that follows immunization
<Immunization.reaction> EXTENDS @<BackboneElement> CLOSED {   
    fhir:date @<dateTime>?;                 # When reaction started
    fhir:manifestation @<CodeableReference>?;  # Additional information on reaction
    fhir:reported @<boolean>?;              # Indicates self-reported reaction
}  

# Protocol followed by the provider
<Immunization.protocolApplied> EXTENDS @<BackboneElement> CLOSED {   
    fhir:series @<string>?;                 # Name of vaccine series
    fhir:authority @<Reference> AND {fhir:link 
    			@<Organization> ? }?;  # Who is responsible for publishing 
                                            # the recommendations 
    fhir:targetDisease @<OneOrMore_CodeableConcept>?;  # Vaccine preventatable disease 
                                            # being targeted 
    fhir:doseNumber @<string>;              # Dose number within series
    fhir:seriesDoses @<string>?;            # Recommended number of doses for 
                                            # immunity 
}  

# Who performed event
<Immunization.performer> EXTENDS @<BackboneElement> CLOSED {   
    fhir:function @<CodeableConcept>?;      # What type of performance was done
    fhir:actor @<Reference> AND {fhir:link 
    			@<Organization> OR 
    			@<Patient> OR 
    			@<Practitioner> OR 
    			@<PractitionerRole> OR 
    			@<RelatedPerson> ? };  # Individual or organization who was 
                                            # performing 
}  

#---------------------- Cardinality Types (OneOrMore) -------------------

<OneOrMore_Identifier> CLOSED {
    rdf:first @<Identifier>  ;
    rdf:rest [rdf:nil] OR @<OneOrMore_Identifier> 
}

<OneOrMore_Reference_CarePlan_OR_ImmunizationRecommendation_OR_MedicationRequest_OR_ServiceRequest> CLOSED {
    rdf:first @<Reference> AND {fhir:link 
			@<CarePlan> OR 
			@<ImmunizationRecommendation> OR 
			@<MedicationRequest> OR 
			@<ServiceRequest> } ;
    rdf:rest [rdf:nil] OR @<OneOrMore_Reference_CarePlan_OR_ImmunizationRecommendation_OR_MedicationRequest_OR_ServiceRequest> 
}

<OneOrMore_Reference_Resource> CLOSED {
    rdf:first @<Reference> AND {fhir:link 
			@<Resource> } ;
    rdf:rest [rdf:nil] OR @<OneOrMore_Reference_Resource> 
}

<OneOrMore_Immunization.performer> CLOSED {
    rdf:first @<Immunization.performer>  ;
    rdf:rest [rdf:nil] OR @<OneOrMore_Immunization.performer> 
}

<OneOrMore_Annotation> CLOSED {
    rdf:first @<Annotation>  ;
    rdf:rest [rdf:nil] OR @<OneOrMore_Annotation> 
}

<OneOrMore_CodeableReference> CLOSED {
    rdf:first @<CodeableReference>  ;
    rdf:rest [rdf:nil] OR @<OneOrMore_CodeableReference> 
}

<OneOrMore_CodeableConcept> CLOSED {
    rdf:first @<CodeableConcept>  ;
    rdf:rest [rdf:nil] OR @<OneOrMore_CodeableConcept> 
}

<OneOrMore_Immunization.programEligibility> CLOSED {
    rdf:first @<Immunization.programEligibility>  ;
    rdf:rest [rdf:nil] OR @<OneOrMore_Immunization.programEligibility> 
}

<OneOrMore_Immunization.reaction> CLOSED {
    rdf:first @<Immunization.reaction>  ;
    rdf:rest [rdf:nil] OR @<OneOrMore_Immunization.reaction> 
}

<OneOrMore_Immunization.protocolApplied> CLOSED {
    rdf:first @<Immunization.protocolApplied>  ;
    rdf:rest [rdf:nil] OR @<OneOrMore_Immunization.protocolApplied> 
}

#---------------------- Value Sets ------------------------

# The value set to instantiate this attribute should be drawn from a terminologically robust code system that consists of or contains concepts to support describing the current status of the administered dose of vaccine.
fhirvs:immunization-status ["completed" "entered-in-error" "not-done"]



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.