Release 4 5 Ballot

This page is part of the FHIR Specification (v4.0.1: R4 (v5.0.0-ballot: R5 Ballot - 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

Medicationdispenseexample8.ttl

Example StructureDefinition/questionnaire-signatureRequired (XML)

Pharmacy FHIR Infrastructure Work Group Maturity Level : N/A Standards Status : Informative Compartments : Patient , Practitioner

Raw Turtle XML (+ ( canonical form + also see Turtle/RDF XML Format Specification )

Dispense for Oral Chemotherapy - Capecitabine (RxNorm code) signatureRequired

@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 sct: <http://snomed.info/id/> . @prefix xsd: <http://www.w3.org/2001/XMLSchema#> . # - resource ------------------------------------------------------------------- <http://hl7.org/fhir/MedicationDispense/meddisp008> a fhir:MedicationDispense; fhir:nodeRole fhir:treeRoot; fhir:Resource.id [ fhir:value "meddisp008"]; 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>: meddisp008</p><p><b>contained</b>: </p><p><b>status</b>: completed</p><p><b>medication</b>: id: medexample015; Capecitabine 500mg oral tablet (Xeloda) <span>(Details : {RxNorm code '213293' = 'Xeloda 500 MG Oral Tablet', given as 'Capecitabine 500mg oral tablet (Xeloda)'})</span></p><p><b>subject</b>: <a>Donald Duck</a></p><h3>Performers</h3><table><tr><td>-</td><td><b>Actor</b></td></tr><tr><td>*</td><td><a>Practitioner/f006</a></td></tr></table><p><b>authorizingPrescription</b>: <a>MedicationRequest/medrx0309</a></p><p><b>dosageInstruction</b>: </p></div>" ]; fhir:DomainResource.contained [ a fhir:Medication; fhir:index 0; fhir:Resource.id [ fhir:value "medexample015" ]; fhir:Medication.code [ fhir:CodeableConcept.coding [ fhir:index 0; fhir:Coding.system [ fhir:value "http://www.nlm.nih.gov/research/umls/rxnorm" ]; fhir:Coding.code [ fhir:value "213293" ]; fhir:Coding.display [ fhir:value "Capecitabine 500mg oral tablet (Xeloda)" ] ] ] ]; fhir:MedicationDispense.status [ fhir:value "completed"]; fhir:MedicationDispense.medicationReference [ fhir:Reference.reference [ fhir:value "#medexample015" ] ]; fhir:MedicationDispense.subject [ fhir:link <http://hl7.org/fhir/Patient/pat1>; fhir:Reference.reference [ fhir:value "Patient/pat1" ]; fhir:Reference.display [ fhir:value "Donald Duck" ] ]; fhir:MedicationDispense.performer [ fhir:index 0; fhir:MedicationDispense.performer.actor [ fhir:link <http://hl7.org/fhir/Practitioner/f006>; fhir:Reference.reference [ fhir:value "Practitioner/f006" ] ] ]; fhir:MedicationDispense.authorizingPrescription [ fhir:index 0; fhir:link <http://hl7.org/fhir/MedicationRequest/medrx0309>; fhir:Reference.reference [ fhir:value "MedicationRequest/medrx0309" ] ]; fhir:MedicationDispense.dosageInstruction [ fhir:index 0; fhir:Dosage.sequence [ fhir:value "1"^^xsd:integer ]; fhir:Dosage.timing [ fhir:Timing.repeat [ fhir:Timing.repeat.frequency [ fhir:value "2"^^xsd:positiveInteger ]; fhir:Timing.repeat.period [ fhir:value "21"^^xsd:decimal ]; fhir:Timing.repeat.periodUnit [ fhir:value "d" ] ] ]; fhir:Dosage.route [ fhir:CodeableConcept.coding [ fhir:index 0; a sct:394899003; fhir:Coding.system [ fhir:value "http://snomed.info/sct" ]; fhir:Coding.code [ fhir:value "394899003" ]; fhir:Coding.display [ fhir:value "oral administration of treatment" ] ] ]; fhir:Dosage.doseAndRate [ fhir:index 0; fhir:Dosage.doseAndRate.type [ fhir:CodeableConcept.coding [ fhir:index 0; fhir:Coding.system [ fhir:value "http://terminology.hl7.org/CodeSystem/dose-rate-type" ]; fhir:Coding.code [ fhir:value "ordered" ]; fhir:Coding.display [ fhir:value "Ordered" ] ] ]; fhir:Dosage.doseAndRate.doseQuantity [ fhir:Quantity.value [ fhir:value "500"^^xsd:decimal ]; fhir:Quantity.unit [ fhir:value "mg" ]; fhir:Quantity.system [ fhir:value "http://unitsofmeasure.org" ]; fhir:Quantity.code [ fhir:value "mg" ] ] ] ] . <http://hl7.org/fhir/Patient/pat1> a fhir:Patient . <http://hl7.org/fhir/Practitioner/f006> a fhir:Practitioner . <http://hl7.org/fhir/MedicationRequest/medrx0309> a fhir:MedicationRequest . # - ontology header ------------------------------------------------------------ <http://hl7.org/fhir/MedicationDispense/meddisp008.ttl> a owl:Ontology; owl:imports fhir:fhir.ttl; owl:versionIRI <http://build.fhir.org/MedicationDispense/meddisp008.ttl> .
<?xml version="1.0" encoding="UTF-8"?>


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

<StructureDefinition xmlns="http://hl7.org/fhir">
  <id value="questionnaire-signatureRequired"/> 
  <extension url="http://hl7.org/fhir/StructureDefinition/structuredefinition-wg">
    <valueCode value="fhir"/> 
  </extension> 
  <extension url="http://hl7.org/fhir/StructureDefinition/structuredefinition-fmm">
    <valueInteger value="1"/> 
  </extension> 
  <url value="http://hl7.org/fhir/StructureDefinition/questionnaire-signatureRequired"/> 
  <identifier> 
    <system value="urn:ietf:rfc:3986"/> 
    <value value="urn:oid:2.16.840.1.113883.4.642.5.1246"/> 
  </identifier> 
  <version value="5.0.0-ballot"/> 
  <name value="signatureRequired"/> 
  <status value="draft"/> 
  <experimental value="false"/> 
  <date value="2013-07-04"/> 
  <publisher value="HL7"/> 
  <contact> 
    <telecom> 
      <system value="url"/> 
      <value value="http://www.hl7.org"/> 
    </telecom> 
  </contact> 
  <description value="Indicates that a signature (of the specified type) is needed when completing the
   QuestionnaireResponse."/> 
  <fhirVersion value="5.0.0"/> 
  <mapping> 
    <identity value="rim"/> 
    <uri value="http://hl7.org/v3"/> 
    <name value="RIM Mapping"/> 
  </mapping> 
  <kind value="complex-type"/> 
  <abstract value="false"/> 
  <context> 
    <type value="element"/> 
    <expression value="Questionnaire"/> 
  </context> 
  <context> 
    <type value="element"/> 
    <expression value="Questionnaire.item"/> 
  </context> 
  <context> 
    <type value="element"/> 
    <expression value="ElementDefinition"/> 
  </context> 
  <type value="Extension"/> 
  <baseDefinition value="http://hl7.org/fhir/StructureDefinition/Extension"/> 
  <derivation value="constraint"/> 
  <snapshot> 
    <element id="Extension">
      <path value="Extension"/> 
      <short value="Is signature needed?"/> 
      <definition value="Indicates that a signature (of the specified type) is needed when completing the

       QuestionnaireResponse."/> 
      <comment value="If this appears at the Questionnaire level, then the signature will be gathered

       for the entire form when it is marked complete.  If it appears on a particular
       item, then it will be gathered on that question or group when it is filled in.
        (E.g. seeking the user's initials beside certain questions.)


The signature can be captured using the http://hl7.org/fhir/StructureDefinition/questionnaire
      response-signature extension.  See additional guidance and examples in the [SDC
       implementation guide](http://hl7.org/fhir/2022Sep/ig/HL7/sdc/behavior.html#signatureRequired)."/> 
      <min value="0"/> 
      <max value="*"/> 
      <base> 
        <path value="Extension"/> 
        <min value="0"/> 
        <max value="*"/> 
      </base> 
      <constraint> 
        <key value="ele-1"/> 
        <severity value="error"/> 
        <human value="All FHIR elements must have a @value or children"/> 
        <expression value="hasValue() or (children().count() &gt; id.count())"/> 
        <xpath value="@value|f:*|h:div"/> 
        <source value="http://hl7.org/fhir/StructureDefinition/Element"/> 
      </constraint> 
      <constraint> 
        <key value="ext-1"/> 
        <severity value="error"/> 
        <human value="Must have either extensions or value[x], not both"/> 
        <expression value="extension.exists() != value.exists()"/> 
        <xpath value="exists(f:extension)!=exists(f:*[starts-with(local-name(.), 'value')])"/> 
        <source value="http://hl7.org/fhir/StructureDefinition/Extension"/> 
      </constraint> 
      <isModifier value="false"/> 
    </element> 
    <element id="Extension.id">
      <path value="Extension.id"/> 
      <representation value="xmlAttr"/> 
      <short value="Unique id for inter-element referencing"/> 
      <definition value="Unique id for the element within a resource (for internal references). This may

       be any string value that does not contain spaces."/> 
      <min value="0"/> 
      <max value="1"/> 
      <base> 
        <path value="Element.id"/> 
        <min value="0"/> 
        <max value="1"/> 
      </base> 
      <type> 
        <extension url="http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type">
          <valueUrl value="id"/> 
        </extension> 
        <code value="http://hl7.org/fhirpath/System.String"/> 
      </type> 
      <isModifier value="false"/> 
      <isSummary value="false"/> 
      <mapping> 
        <identity value="rim"/> 
        <map value="n/a"/> 
      </mapping> 
    </element> 
    <element id="Extension.extension">
      <path value="Extension.extension"/> 
      <slicing> 
        <discriminator> 
          <type value="value"/> 
          <path value="url"/> 
        </discriminator> 
        <description value="Extensions are always sliced by (at least) url"/> 
        <rules value="open"/> 
      </slicing> 
      <short value="Extension"/> 
      <definition value="An Extension"/> 
      <min value="0"/> 
      <max value="0"/> 
      <base> 
        <path value="Element.extension"/> 
        <min value="0"/> 
        <max value="*"/> 
      </base> 
      <type> 
        <code value="Extension"/> 
      </type> 
      <constraint> 
        <key value="ele-1"/> 
        <severity value="error"/> 
        <human value="All FHIR elements must have a @value or children"/> 
        <expression value="hasValue() or (children().count() &gt; id.count())"/> 
        <xpath value="@value|f:*|h:div"/> 
        <source value="http://hl7.org/fhir/StructureDefinition/Element"/> 
      </constraint> 
      <constraint> 
        <key value="ext-1"/> 
        <severity value="error"/> 
        <human value="Must have either extensions or value[x], not both"/> 
        <expression value="extension.exists() != value.exists()"/> 
        <xpath value="exists(f:extension)!=exists(f:*[starts-with(local-name(.), &quot;value&quot;)])"/> 
        <source value="http://hl7.org/fhir/StructureDefinition/Extension"/> 
      </constraint> 
      <isModifier value="false"/> 
      <isSummary value="false"/> 
    </element> 
    <element id="Extension.url">
      <path value="Extension.url"/> 
      <representation value="xmlAttr"/> 
      <short value="identifies the meaning of the extension"/> 
      <definition value="Source of the definition for the extension code - a logical name or a URL."/> 
      <comment value="The definition may point directly to a computable or human-readable definition

       of the extensibility codes, or it may be a logical URI as declared in some other
       specification. The definition SHALL be a URI for the Structure Definition defining
       the extension."/> 
      <min value="1"/> 
      <max value="1"/> 
      <base> 
        <path value="Extension.url"/> 
        <min value="1"/> 
        <max value="1"/> 
      </base> 
      <type> 
        <extension url="http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type">
          <valueUrl value="uri"/> 
        </extension> 
        <code value="http://hl7.org/fhirpath/System.String"/> 
      </type> 
      <fixedUri value="http://hl7.org/fhir/StructureDefinition/questionnaire-signatureRequired"/> 
      <isModifier value="false"/> 
      <isSummary value="false"/> 
      <mapping> 
        <identity value="rim"/> 
        <map value="N/A"/> 
      </mapping> 
    </element> 
    <element id="Extension.value[x]">
      <path value="Extension.value[x]"/> 
      <short value="Value of extension"/> 
      <definition value="Value of extension - must be one of a constrained set of the data types (see [Extensibility](

      extensibility.html) for a list)."/> 
      <min value="1"/> 
      <max value="1"/> 
      <base> 
        <path value="Extension.value[x]"/> 
        <min value="0"/> 
        <max value="1"/> 
      </base> 
      <type> 
        <code value="CodeableConcept"/> 
      </type> 
      <constraint> 
        <key value="ele-1"/> 
        <severity value="error"/> 
        <human value="All FHIR elements must have a @value or children"/> 
        <expression value="hasValue() or (children().count() &gt; id.count())"/> 
        <xpath value="@value|f:*|h:div"/> 
        <source value="http://hl7.org/fhir/StructureDefinition/Element"/> 
      </constraint> 
      <isModifier value="false"/> 
      <isSummary value="false"/> 
      <binding> 
        <extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName">
          <valueString value="SignatureRequired"/> 
        </extension> 
        <strength value="preferred"/> 
        <description value="The type of signature needed."/> 
        <valueSet value="http://hl7.org/fhir/ValueSet/signature-type"/> 
      </binding> 
      <mapping> 
        <identity value="rim"/> 
        <map value="N/A"/> 
      </mapping> 
    </element> 
  </snapshot> 
  <differential> 
    <element id="Extension">
      <path value="Extension"/> 
      <short value="Is signature needed?"/> 
      <definition value="Indicates that a signature (of the specified type) is needed when completing the

       QuestionnaireResponse."/> 
      <comment value="If this appears at the Questionnaire level, then the signature will be gathered

       for the entire form when it is marked complete.  If it appears on a particular
       item, then it will be gathered on that question or group when it is filled in.
        (E.g. seeking the user's initials beside certain questions.)


The signature can be captured using the http://hl7.org/fhir/StructureDefinition/questionnaire
      response-signature extension.  See additional guidance and examples in the [SDC
       implementation guide](http://hl7.org/fhir/2022Sep/ig/HL7/sdc/behavior.html#signatureRequired)."/> 
      <min value="0"/> 
      <max value="*"/> 
    </element> 
    <element id="Extension.extension">
      <path value="Extension.extension"/> 
      <max value="0"/> 
    </element> 
    <element id="Extension.url">
      <path value="Extension.url"/> 
      <fixedUri value="http://hl7.org/fhir/StructureDefinition/questionnaire-signatureRequired"/> 
    </element> 
    <element id="Extension.value[x]">
      <path value="Extension.value[x]"/> 
      <min value="1"/> 
      <type> 
        <code value="CodeableConcept"/> 
      </type> 
      <binding> 
        <extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName">
          <valueString value="SignatureRequired"/> 
        </extension> 
        <strength value="preferred"/> 
        <description value="The type of signature needed."/> 
        <valueSet value="http://hl7.org/fhir/ValueSet/signature-type"/> 
      </binding> 
    </element> 
  </differential> 

</

StructureDefinition

>

Usage note: every effort has been made to ensure that the examples are correct and useful, but they are not a normative part of the specification.