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

Content Detailed Descriptions Mappings XML JSON

Example MedicationDispense/meddisp0328 (Turtle)

Extension: SOPClass URL for this extension: http://hl7.org/fhir/StructureDefinition/auditevent-SOPClass Status: draft. Extension maintained by: Health Level Seven, Inc. - Security WG Required if ParticipantObjectIDTypeCode is (110180, DCM, "Study Instance UID") and any of the optional fields (AccessionNumber, ContainsMPPS, NumberOfInstances, ContainsSOPInstances,Encrypted,Anonymized) are present in this Participant Object. May be present if ParticipantObjectIDTypeCode is (110180, DCM, "Study Instance UID") even though none of the optional fields are present. Context of Use: Use on Element ID AuditEvent.entity Extension Content
Security Pharmacy Work Group   Maturity Level : 1 N/A Standards Status : Informative Use Context Compartments : Any Encounter , Patient , Practitioner

Summary Name Flags Card. Type Description & Constraints SOPClass 0..* Reference Raw Turtle ( ImagingStudy (+ also see Turtle/RDF Format Specification ) URL = http://hl7.org/fhir/StructureDefinition/auditevent-SOPClass SOPClass: Required if ParticipantObjectIDTypeCode is (110180, DCM, "Study Instance UID") and any of the optional fields (AccessionNumber, ContainsMPPS, NumberOfInstances, ContainsSOPInstances,Encrypted,Anonymized) are present in this Participant Object. May be present if ParticipantObjectIDTypeCode is (110180, DCM, "Study Instance UID") even though none of the optional fields are present. Use on Element ID AuditEvent.entity Documentation for this format Full Structure

Name Flags Card. Type Description & Constraints extension 0..* Extension URL = http://hl7.org/fhir/StructureDefinition/auditevent-SOPClass SOPClass: Required if ParticipantObjectIDTypeCode is (110180, DCM, "Study Instance UID") and any of the optional fields (AccessionNumber, ContainsMPPS, NumberOfInstances, ContainsSOPInstances,Encrypted,Anonymized) are present in this Participant Object. May be present if ParticipantObjectIDTypeCode is (110180, DCM, "Study Instance UID") even though none of the optional fields are present. Use on Element ID AuditEvent.entity extension I 0..0 url 1..1 uri "http://hl7.org/fhir/StructureDefinition/auditevent-SOPClass" value[x] I 1..1 Reference ( ImagingStudy ) Value of extension Documentation for this format

XML Template Dispense for Nasonex Inhaler (RxNorm Code) - in progress with additionalInstructions as text

<!-- SOPClass -->
@prefix fhir: <http://hl7.org/fhir/> .
@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#> .

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

[a fhir:MedicationDispense ;
  fhir:nodeRole fhir:treeRoot ;
  fhir:id [ fhir:v "meddisp0328"] ; # 
  fhir:text [
     fhir:status [ fhir:v "generated" ] ;
     fhir:div "<div xmlns=\"http://www.w3.org/1999/xhtml\"><p><b>Generated Narrative: MedicationDispense</b><a name=\"meddisp0328\"> </a></p><div style=\"display: inline-block; background-color: #d9e0e7; padding: 6px; margin: 4px; border: 1px solid #8da1b4; border-radius: 5px; line-height: 60%\"><p style=\"margin-bottom: 0px\">Resource MedicationDispense &quot;meddisp0328&quot; </p></div><p><b>status</b>: in-progress</p><h3>Medications</h3><table class=\"grid\"><tr><td>-</td><td><b>Concept</b></td></tr><tr><td>*</td><td>Nasonex 0.05mg/ACTUAT Nasal Inhaler <span style=\"background: LightGoldenRodYellow; margin: 4px; border: 1px solid khaki\"> (<a href=\"http://terminology.hl7.org/4.0.0/CodeSystem-v3-rxNorm.html\">RxNorm</a>#1797870)</span></td></tr></table><p><b>subject</b>: <a href=\"patient-example-a.html\">Patient/pat1: Donald Duck</a> &quot;Donald DUCK&quot;</p><h3>Performers</h3><table class=\"grid\"><tr><td>-</td><td><b>Actor</b></td></tr><tr><td>*</td><td><a href=\"practitioner-example-f006-rvdb.html\">Practitioner/f006</a> &quot;Rob VAN DEN BERK&quot;</td></tr></table><p><b>authorizingPrescription</b>: <a href=\"medicationrequest0321.html\">MedicationRequest/medrx0321</a></p><p><b>type</b>: Emergency Supply <span style=\"background: LightGoldenRodYellow; margin: 4px; border: 1px solid khaki\"> (<a href=\"http://terminology.hl7.org/4.0.0/CodeSystem-v3-ActCode.html\">ActCode</a>#EM)</span></p><p><b>quantity</b>: 30 ml<span style=\"background: LightGoldenRodYellow\"> (Details: UCUM code ml = 'ml')</span></p><p><b>daysSupply</b>: 30 Day<span style=\"background: LightGoldenRodYellow\"> (Details: UCUM code d = 'd')</span></p><p><b>whenPrepared</b>: 2015-01-15T10:20:00Z</p><blockquote><p><b>dosageInstruction</b></p><p><b>sequence</b>: 1</p><p><b>text</b>: Use two sprays twice daily</p><p><b>additionalInstruction</b>: Shake Well <span style=\"background: LightGoldenRodYellow; margin: 4px; border: 1px solid khaki\"> ()</span></p><p><b>timing</b>: 2 per 1 days</p><blockquote><p><b>doseAndRate</b></p></blockquote></blockquote></div>"
  ] ; # 
  fhir:status [ fhir:v "in-progress"] ; # 
  fhir:medication [
     fhir:concept [
       fhir:coding ( [
         fhir:system [ fhir:v "http://www.nlm.nih.gov/research/umls/rxnorm"^^xsd:anyURI ] ;
         fhir:code [ fhir:v "1797870" ] ;
         fhir:display [ fhir:v "Nasonex 0.05mg/ACTUAT Nasal Inhaler" ]
       ] )
     ]
  ] ; # 
  fhir:subject [
     fhir:reference [ fhir:v "Patient/pat1" ] ;
     fhir:display [ fhir:v "Donald Duck" ]
  ] ; # 
  fhir:performer ( [
     fhir:actor [
       fhir:reference [ fhir:v "Practitioner/f006" ]
     ]
  ] ) ; # 
  fhir:authorizingPrescription ( [
     fhir:reference [ fhir:v "MedicationRequest/medrx0321" ]
  ] ) ; # 
  fhir:type [
     fhir:coding ( [
       fhir:system [ fhir:v "http://terminology.hl7.org/CodeSystem/v3-ActCode"^^xsd:anyURI ] ;
       fhir:code [ fhir:v "EM" ] ;
       fhir:display [ fhir:v "Emergency Supply" ]
     ] )
  ] ; # 
  fhir:quantity [
     fhir:value [ fhir:v "30"^^xsd:decimal ] ;
     fhir:system [ fhir:v "http://unitsofmeasure.org"^^xsd:anyURI ] ;
     fhir:code [ fhir:v "ml" ]
  ] ; # 
  fhir:daysSupply [
     fhir:value [ fhir:v "30"^^xsd:decimal ] ;
     fhir:unit [ fhir:v "Day" ] ;
     fhir:system [ fhir:v "http://unitsofmeasure.org"^^xsd:anyURI ] ;
     fhir:code [ fhir:v "d" ]
  ] ; # 
  fhir:whenPrepared [ fhir:v "2015-01-15T10:20:00Z"^^xsd:dateTime] ; # 
  fhir:dosageInstruction ( [
     fhir:sequence [ fhir:v "1"^^xsd:integer ] ;
     fhir:text [ fhir:v "Use two sprays twice daily" ] ;
     fhir:additionalInstruction ( [
       fhir:text [ fhir:v "Shake Well" ]
     ] ) ;
     fhir:timing [
       fhir:repeat [
         fhir:frequency [ fhir:v "2"^^xsd:positiveInteger ] ;
         fhir:period [ fhir:v "1"^^xsd:decimal ] ;
         fhir:periodUnit [ fhir:v "d" ]
       ]
     ] ;
     fhir:doseAndRate ( [
       fhir:type [
         fhir:coding ( [
           fhir:system [ fhir:v "http://terminology.hl7.org/CodeSystem/dose-rate-type"^^xsd:anyURI ] ;
           fhir:code [ fhir:v "ordered" ] ;
           fhir:display [ fhir:v "Ordered" ]
         ] )
       ] ;
       fhir:dose [
         a fhir:Quantity ;
         fhir:value [ fhir:v "1"^^xsd:decimal ] ;
         fhir:unit [ fhir:v "ea" ] ;
         fhir:system [ fhir:v "http://terminology.hl7.org/CodeSystem/v3-orderableDrugForm"^^xsd:anyURI ] ;
         fhir:code [ fhir:v "NASINHL" ]
       ]
     ] )
  ] )] . # 

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



< xmlns="http://hl7.org/fhir"
     url="" >
  <!-- from Element: 
 <</valueReference>
</extension>

JSON Template { // // from Element: " ] " " } Summary Name Flags Card. Type Description & Constraints SOPClass 0..* Reference ( ImagingStudy ) URL = http://hl7.org/fhir/StructureDefinition/auditevent-SOPClass SOPClass: Required if ParticipantObjectIDTypeCode is (110180, DCM, &quot;Study Instance UID&quot;) and any of the optional fields (AccessionNumber, ContainsMPPS, NumberOfInstances, ContainsSOPInstances,Encrypted,Anonymized) are present in this Participant Object. May be present if ParticipantObjectIDTypeCode is (110180, DCM, &quot;Study Instance UID&quot;) even though none of Usage note: every effort has been made to ensure that the optional fields examples are present. Use on Element ID AuditEvent.entity Documentation for this format Full Structure Name Flags Card. Type Description & Constraints extension 0..* Extension URL = http://hl7.org/fhir/StructureDefinition/auditevent-SOPClass SOPClass: Required if ParticipantObjectIDTypeCode is (110180, DCM, &quot;Study Instance UID&quot;) correct and any of the optional fields (AccessionNumber, ContainsMPPS, NumberOfInstances, ContainsSOPInstances,Encrypted,Anonymized) useful, but they are present in this Participant Object. May be present if ParticipantObjectIDTypeCode is (110180, DCM, &quot;Study Instance UID&quot;) even though none not a normative part of the optional fields are present. Use on Element ID AuditEvent.entity extension I 0..0 url 1..1 uri "http://hl7.org/fhir/StructureDefinition/auditevent-SOPClass" value[x] I 1..1 Reference ( ImagingStudy ) Value of extension Documentation for this format XML Template specification.

<!-- SOPClass --> < xmlns="http://hl7.org/fhir" url="" > <!-- from Element: <</valueReference> </extension>
JSON Template { // // from Element: " ] " " }   Constraints ele-1 : All FHIR elements must have a @value or children (xpath: @value|f:*|h:div ) ext-1 : Must have either extensions or value[x], not both (xpath: exists(f:extension)!=exists(f:*[starts-with(local-name(.), 'value')]) ) ele-1 : On Extension.extension: All FHIR elements must have a @value or children (xpath on Extension.extension: @value|f:*|h:div ) ext-1 : On Extension.extension: Must have either extensions or value[x], not both (xpath on Extension.extension: exists(f:extension)!=exists(f:*[starts-with(local-name(.), "value")]) ) ele-1 : On Extension.value[x]: All FHIR elements must have a @value or children (xpath on Extension.value[x]: @value|f:*|h:div )