This page is part of the Quality Improvement Core Framework (v1.6.0: STU 2 Ballot 1) based on FHIR v1.6.0. The current version which supercedes this version is 4.1.1. For a full list of available versions, see the Directory of published versions

Profile qicore-referralrequest


<StructureDefinition xmlns="http://hl7.org/fhir">
  <id value="qicore-referralrequest"/>
  <url
       value="http://hl7.org/fhir/qicore/StructureDefinition/qicore-referralrequest"/>
  <name value="Profile qicore-referralrequest"/>
  <status value="draft"/>
  <publisher
             value="Health Level Seven International (Clinical Quality Information - QICore)"/>
  <contact>
    <telecom>
      <system value="other"/>
      <value value="http://hl7.org/special/committees/CQI"/>
    </telecom>
  </contact>
  <date value="2015-02-27"/>
  <mapping>
    <identity value="qdm"/>
    <uri value="http://www.healthit.gov/quality-data-model"/>
    <name value="Quality Data Model"/>
  </mapping>
  <mapping>
    <identity value="w5"/>
    <uri value="http://hl7.org/fhir/w5"/>
    <name value="W5 Mapping"/>
  </mapping>
  <mapping>
    <identity value="v2"/>
    <uri value="http://hl7.org/v2"/>
    <name value="HL7 v2 Mapping"/>
  </mapping>
  <mapping>
    <identity value="rim"/>
    <uri value="http://hl7.org/v3"/>
    <name value="RIM Mapping"/>
  </mapping>
  <kind value="resource"/>
  <abstract value="false"/>
  <type value="ReferralRequest"/>
  <baseDefinition
                  value="http://hl7.org/fhir/StructureDefinition/ReferralRequest"/>
  <derivation value="constraint"/>
  <snapshot>
    <element id="ReferralRequest:qicore-referralrequest">
      <path value="ReferralRequest"/>
      <name value="QICore-ReferralRequest"/>
      <short value="A request for referral or transfer of care"/>
      <definition
                  value="Used to record and send details about a request for referral service or transfer of a patient to the care of another provider or provider organization."/>
      <alias value="ReferralRequest TransferOfCare Request"/>
      <min value="0"/>
      <max value="*"/>
      <base>
        <path value="ReferralRequest"/>
        <min value="0"/>
        <max value="*"/>
      </base>
      <constraint>
        <key value="dom-2"/>
        <severity value="error"/>
        <human
               value="If the resource is contained in another resource, it SHALL NOT contain nested Resources"/>
        <expression value="contained.contained.empty()"/>
        <xpath value="not(parent::f:contained and f:contained)"/>
      </constraint>
      <constraint>
        <key value="dom-1"/>
        <severity value="error"/>
        <human
               value="If the resource is contained in another resource, it SHALL NOT contain any narrative"/>
        <expression value="contained.text.empty()"/>
        <xpath value="not(parent::f:contained and f:text)"/>
      </constraint>
      <constraint>
        <key value="dom-4"/>
        <severity value="error"/>
        <human
               value="If a resource is contained in another resource, it SHALL NOT have a meta.versionId or a meta.lastUpdated"/>
        <expression
                    value="contained.meta.versionId.empty() and contained.meta.lastUpdated.empty()"/>
        <xpath
               value="not(exists(f:contained/*/f:meta/f:versionId)) and not(exists(f:contained/*/f:meta/f:lastUpdated))"/>
      </constraint>
      <constraint>
        <key value="dom-3"/>
        <severity value="error"/>
        <human
               value="If the resource is contained in another resource, it SHALL be referred to from elsewhere in the resource"/>
        <expression
                    value="contained.where(('#'+id in %resource.descendants().reference).not()).empty()"/>
        <xpath
               value="not(exists(for $id in f:contained/*/@id return $id[not(ancestor::f:contained/parent::*/descendant::f:reference/@value=concat('#', $id))]))"/>
      </constraint>
      <mustSupport value="false"/>
      <isSummary value="false"/>
      <mapping>
        <identity value="rim"/>
        <map value="Entity. Role, or Act"/>
      </mapping>
      <mapping>
        <identity value="w5"/>
        <map value="clinical.careprovision"/>
      </mapping>
      <mapping>
        <identity value="qdm"/>
        <map
             value=""Encounter, Order"; "Encounter, Recommended""/>
      </mapping>
    </element>
    <element id="ReferralRequest:qicore-referralrequest.id">
      <path value="ReferralRequest.id"/>
      <short value="Logical id of this artifact"/>
      <definition
                  value="The logical id of the resource, as used in the URL for the resource. Once assigned, this value never changes."/>
      <comments
                value="The only time that a resource does not have an id is when it is being submitted to the server using a create operation."/>
      <min value="0"/>
      <max value="1"/>
      <base>
        <path value="Resource.id"/>
        <min value="0"/>
        <max value="*"/>
      </base>
      <type>
        <code value="id"/>
      </type>
      <isSummary value="true"/>
    </element>
    <element id="ReferralRequest:qicore-referralrequest.meta">
      <path value="ReferralRequest.meta"/>
      <short value="Metadata about the resource"/>
      <definition
                  value="The metadata about the resource. This is content that is maintained by the infrastructure. Changes to the content may not always be associated with version changes to the resource."/>
      <min value="0"/>
      <max value="1"/>
      <base>
        <path value="Resource.meta"/>
        <min value="0"/>
        <max value="*"/>
      </base>
      <type>
        <code value="Meta"/>
      </type>
      <isSummary value="true"/>
    </element>
    <element id="ReferralRequest:qicore-referralrequest.implicitRules">
      <path value="ReferralRequest.implicitRules"/>
      <short value="A set of rules under which this content was created"/>
      <definition
                  value="A reference to a set of rules that were followed when the resource was constructed, and which must be understood when processing the content."/>
      <comments
                value="Asserting this rule set restricts the content to be only understood by a limited set of trading partners. This inherently limits the usefulness of the data in the long term. However, the existing health eco-system is highly fractured, and not yet ready to define, collect, and exchange data in a generally computable sense. Wherever possible, implementers and/or specification writers should avoid using this element as much as possible."/>
      <min value="0"/>
      <max value="1"/>
      <base>
        <path value="Resource.implicitRules"/>
        <min value="0"/>
        <max value="*"/>
      </base>
      <type>
        <code value="uri"/>
      </type>
      <isModifier value="true"/>
      <isSummary value="true"/>
    </element>
    <element id="ReferralRequest:qicore-referralrequest.language">
      <path value="ReferralRequest.language"/>
      <short value="Language of the resource content"/>
      <definition value="The base language in which the resource is written."/>
      <comments
                value="Language is provided to support indexing and accessibility (typically, services such as text to speech use the language tag). The html language tag in the narrative applies  to the narrative. The language tag on the resource may be used to specify the language of other presentations generated from the data in the resource  Not all the content has to be in the base language. The Resource.language should not be assumed to apply to the narrative automatically. If a language is specified, it should it also be specified on the div element in the html (see rules in HTML5 for information about the relationship between xml:lang and the html lang attribute)."/>
      <min value="0"/>
      <max value="1"/>
      <base>
        <path value="Resource.language"/>
        <min value="0"/>
        <max value="*"/>
      </base>
      <type>
        <code value="code"/>
      </type>
      <binding>
        <extension
                   url="http://hl7.org/fhir/StructureDefinition/elementdefinition-maxValueSet">
          <valueReference>
            <reference value="http://hl7.org/fhir/ValueSet/all-languages"/>
          </valueReference>
        </extension>
        <strength value="extensible"/>
        <description value="A human language."/>
        <valueSetReference>
          <reference value="http://hl7.org/fhir/ValueSet/languages"/>
        </valueSetReference>
      </binding>
    </element>
    <element id="ReferralRequest:qicore-referralrequest.text">
      <path value="ReferralRequest.text"/>
      <short value="Text summary of the resource, for human interpretation"/>
      <definition
                  value="A human-readable narrative that contains a summary of the resource, and may be used to represent the content of the resource to a human. The narrative need not encode all the structured data, but is required to contain sufficient detail to make it "clinically safe" for a human to just read the narrative. Resource definitions may define what content should be represented in the narrative to ensure clinical safety."/>
      <comments
                value="Contained resources do not have narrative. Resources that are not contained SHOULD have a narrative. In some cases, a resource may only have text with little or no additional discrete data (as long as all minOccurs=1 elements are satisfied).  This may be necessary for data from legacy systems where information is captured as a "text blob" or where text is additionally entered raw or narrated and encoded in formation is added later."/>
      <alias value="narrative"/>
      <alias value="html"/>
      <alias value="xhtml"/>
      <alias value="display"/>
      <min value="0"/>
      <max value="1"/>
      <base>
        <path value="DomainResource.text"/>
        <min value="0"/>
        <max value="*"/>
      </base>
      <type>
        <code value="Narrative"/>
      </type>
      <condition value="dom-1"/>
      <mapping>
        <identity value="rim"/>
        <map value="Act.text?"/>
      </mapping>
    </element>
    <element id="ReferralRequest:qicore-referralrequest.contained">
      <path value="ReferralRequest.contained"/>
      <short value="Contained, inline Resources"/>
      <definition
                  value="These resources do not have an independent existence apart from the resource that contains them - they cannot be identified independently, and nor can they have their own independent transaction scope."/>
      <comments
                value="This should never be done when the content can be identified properly, as once identification is lost, it is extremely difficult (and context dependent) to restore it again."/>
      <alias value="inline resources"/>
      <alias value="anonymous resources"/>
      <alias value="contained resources"/>
      <min value="0"/>
      <max value="*"/>
      <base>
        <path value="DomainResource.contained"/>
        <min value="0"/>
        <max value="*"/>
      </base>
      <type>
        <code value="Resource"/>
      </type>
      <mapping>
        <identity value="rim"/>
        <map value="N/A"/>
      </mapping>
    </element>
    <element
             id="ReferralRequest:qicore-referralrequest.extension:referralrequestrefusalreason$referralrequest-reasonRefused">
      <path value="ReferralRequest.extension"/>
      <name value="ReferralRequest.refusalReason"/>
      <short value="Extension"/>
      <definition value="An Extension"/>
      <min value="0"/>
      <max value="1"/>
      <base>
        <path value="DomainResource.extension"/>
        <min value="0"/>
        <max value="*"/>
      </base>
      <type>
        <code value="Extension"/>
        <profile
                 value="http://hl7.org/fhir/StructureDefinition/referralrequest-reasonRefused"/>
      </type>
      <condition value="ele-1"/>
      <constraint>
        <key value="ele-1"/>
        <severity value="error"/>
        <human value="All FHIR elements must have a @value or children"/>
        <expression value="children().count() > id.count()"/>
        <xpath value="@value|f:*|h:div"/>
      </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')])"/>
      </constraint>
      <mustSupport value="false"/>
      <isModifier value="false"/>
      <isSummary value="false"/>
      <binding>
        <strength value="example"/>
        <valueSetReference>
          <reference
                     value="http://hl7.org/fhir/qicore/ValueSet/qicore-referralrequest-reason-rejected"/>
        </valueSetReference>
      </binding>
      <mapping>
        <identity value="qdm"/>
        <map
             value="negation rationale (when ReferralRequest.status="refused")"/>
      </mapping>
    </element>
    <element id="ReferralRequest:qicore-referralrequest.modifierExtension">
      <path value="ReferralRequest.modifierExtension"/>
      <short value="Extensions that cannot be ignored"/>
      <definition
                  value="May be used to represent additional information that is not part of the basic definition of the resource, and that modifies the understanding of the element that contains it. Usually modifier elements provide negation or qualification. In order to make the use of extensions safe and manageable, there is a strict set of governance applied to the definition and use of extensions. Though any implementer is allowed to define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension. Applications processing a resource are required to check for modifier extensions."/>
      <comments
                value="There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone."/>
      <alias value="extensions"/>
      <alias value="user content"/>
      <min value="0"/>
      <max value="*"/>
      <base>
        <path value="DomainResource.modifierExtension"/>
        <min value="0"/>
        <max value="*"/>
      </base>
      <type>
        <code value="Extension"/>
      </type>
      <isModifier value="true"/>
      <mapping>
        <identity value="rim"/>
        <map value="N/A"/>
      </mapping>
    </element>
    <element id="ReferralRequest:qicore-referralrequest.identifier">
      <path value="ReferralRequest.identifier"/>
      <short value="Business identifier"/>
      <definition
                  value="Business identifier that uniquely identifies the referral/care transfer request instance."/>
      <min value="0"/>
      <max value="*"/>
      <base>
        <path value="ReferralRequest.identifier"/>
        <min value="0"/>
        <max value="*"/>
      </base>
      <type>
        <code value="Identifier"/>
      </type>
      <isModifier value="false"/>
      <mapping>
        <identity value="v2"/>
        <map value="RF1-6 / RF1-11"/>
      </mapping>
      <mapping>
        <identity value="w5"/>
        <map value="id"/>
      </mapping>
    </element>
    <element id="ReferralRequest:qicore-referralrequest.basedOn">
      <path value="ReferralRequest.basedOn"/>
      <short value="Request fulfilled by this request"/>
      <definition
                  value="Indicates any plans, proposals or orders that this request is intended to satisfy - in whole or in part."/>
      <min value="0"/>
      <max value="*"/>
      <base>
        <path value="ReferralRequest.basedOn"/>
        <min value="0"/>
        <max value="*"/>
      </base>
      <type>
        <code value="Reference"/>
        <profile value="http://hl7.org/fhir/StructureDefinition/ReferralRequest"/>
      </type>
      <type>
        <code value="Reference"/>
        <profile value="http://hl7.org/fhir/StructureDefinition/CarePlan"/>
      </type>
      <type>
        <code value="Reference"/>
        <profile
                 value="http://hl7.org/fhir/StructureDefinition/DiagnosticRequest"/>
      </type>
      <type>
        <code value="Reference"/>
        <profile
                 value="http://hl7.org/fhir/StructureDefinition/ProcedureRequest"/>
      </type>
      <isModifier value="false"/>
    </element>
    <element id="ReferralRequest:qicore-referralrequest.parent">
      <path value="ReferralRequest.parent"/>
      <short value="Composite request this is part of"/>
      <definition
                  value="The business identifier of the logical "grouping" request/order that this referral is a part of."/>
      <requirements
                    value="Allows multiple orders to be collected as part of a single requisition."/>
      <min value="0"/>
      <max value="1"/>
      <base>
        <path value="ReferralRequest.parent"/>
        <min value="0"/>
        <max value="1"/>
      </base>
      <type>
        <code value="Identifier"/>
      </type>
      <isModifier value="false"/>
      <isSummary value="true"/>
    </element>
    <element id="ReferralRequest:qicore-referralrequest.status">
      <path value="ReferralRequest.status"/>
      <short value="draft | active | cancelled | completed | entered-in-error"/>
      <definition
                  value="The status of the authorization/intention reflected by the referral request record."/>
      <requirements value="Workflow status is handled by the Task resource."/>
      <min value="1"/>
      <max value="1"/>
      <base>
        <path value="ReferralRequest.status"/>
        <min value="1"/>
        <max value="1"/>
      </base>
      <type>
        <code value="code"/>
      </type>
      <mustSupport value="true"/>
      <isModifier value="true"/>
      <isSummary value="false"/>
      <binding>
        <strength value="required"/>
        <description value="The status of the referral."/>
        <valueSetReference>
          <reference value="http://hl7.org/fhir/ValueSet/referralstatus"/>
        </valueSetReference>
      </binding>
      <mapping>
        <identity value="v2"/>
        <map value="RF1-1"/>
      </mapping>
      <mapping>
        <identity value="w5"/>
        <map value="status"/>
      </mapping>
    </element>
    <element id="ReferralRequest:qicore-referralrequest.category">
      <path value="ReferralRequest.category"/>
      <short value="proposal | plan | request"/>
      <definition
                  value="Distinguishes the "level" of authorization/demand implicit in this request."/>
      <requirements
                    value="The same resource structure is used when capturing proposals/recommendations, plans and actual requests."/>
      <min value="1"/>
      <max value="1"/>
      <base>
        <path value="ReferralRequest.category"/>
        <min value="1"/>
        <max value="1"/>
      </base>
      <type>
        <code value="code"/>
      </type>
      <isModifier value="true"/>
      <isSummary value="true"/>
      <binding>
        <strength value="required"/>
        <description
                     value="Identifies the degree of intention/authorization associated with the request"/>
        <valueSetReference>
          <reference value="http://hl7.org/fhir/ValueSet/referralcategory"/>
        </valueSetReference>
      </binding>
      <mapping>
        <identity value="w5"/>
        <map value="class"/>
      </mapping>
    </element>
    <element id="ReferralRequest:qicore-referralrequest.type">
      <path value="ReferralRequest.type"/>
      <short value="Referral/Transition of care request type"/>
      <definition
                  value="An indication of the type of referral (or where applicable the type of transfer of care) request."/>
      <comments
                value="Examples of referral type: - consultation;         second opinion;          third opinion - Assume management - Request for procedure(s)  HL7 v2.8 Example - Table 0336: S = second opinion p = patient preference o = provider ordered w = work load."/>
      <min value="0"/>
      <max value="1"/>
      <base>
        <path value="ReferralRequest.type"/>
        <min value="0"/>
        <max value="1"/>
      </base>
      <type>
        <code value="CodeableConcept"/>
      </type>
      <mustSupport value="true"/>
      <isModifier value="false"/>
      <isSummary value="false"/>
      <binding>
        <strength value="example"/>
        <description
                     value="Codes for types of referral; e.g. consult, transfer, temporary transfer."/>
      </binding>
      <mapping>
        <identity value="v2"/>
        <map value="RF1-10"/>
      </mapping>
      <mapping>
        <identity value="w5"/>
        <map value="class"/>
      </mapping>
      <mapping>
        <identity value="qdm"/>
        <map value="primary code"/>
      </mapping>
    </element>
    <element id="ReferralRequest:qicore-referralrequest.priority">
      <path value="ReferralRequest.priority"/>
      <short value="Urgency of referral / transfer of care request"/>
      <definition
                  value="An indication of the urgency of referral (or where applicable the type of transfer of care) request."/>
      <min value="0"/>
      <max value="1"/>
      <base>
        <path value="ReferralRequest.priority"/>
        <min value="0"/>
        <max value="1"/>
      </base>
      <type>
        <code value="CodeableConcept"/>
      </type>
      <mustSupport value="true"/>
      <isModifier value="false"/>
      <isSummary value="false"/>
      <binding>
        <strength value="preferred"/>
        <description
                     value="The priority of the referral (e.g., Urgent, Normal, etc.)"/>
        <valueSetReference>
          <reference value="http://hl7.org/fhir/qicore/ValueSet/qicore-priority"/>
        </valueSetReference>
      </binding>
      <mapping>
        <identity value="v2"/>
        <map value="RF1-2"/>
      </mapping>
      <mapping>
        <identity value="w5"/>
        <map value="grade"/>
      </mapping>
    </element>
    <element id="ReferralRequest:qicore-referralrequest.patient">
      <path value="ReferralRequest.patient"/>
      <short
             value="Information about an individual or animal receiving health care services"/>
      <definition
                  value="Demographics and other administrative information about an individual or animal receiving care or other health-related services."/>
      <alias value="SubjectOfCare Client Resident"/>
      <min value="0"/>
      <max value="1"/>
      <base>
        <path value="ReferralRequest.patient"/>
        <min value="0"/>
        <max value="1"/>
      </base>
      <type>
        <code value="Reference"/>
        <profile
                 value="http://hl7.org/fhir/qicore/StructureDefinition/qicore-patient"/>
      </type>
      <mustSupport value="true"/>
      <isModifier value="false"/>
      <isSummary value="false"/>
      <mapping>
        <identity value="rim"/>
        <map value="Entity. Role, or Act"/>
      </mapping>
      <mapping>
        <identity value="rim"/>
        <map value="Patient[classCode=PAT]"/>
      </mapping>
      <mapping>
        <identity value="cda"/>
        <map value="ClinicalDocument.recordTarget.patientRole"/>
      </mapping>
      <mapping>
        <identity value="w5"/>
        <map value="administrative.individual"/>
      </mapping>
      <mapping>
        <identity value="qdm"/>
        <map value="Patient Characteristic"/>
      </mapping>
    </element>
    <element id="ReferralRequest:qicore-referralrequest.context">
      <path value="ReferralRequest.context"/>
      <short
             value="An interaction during which services are provided to the patient"/>
      <definition
                  value="An interaction between a patient and healthcare provider(s) for the purpose of providing healthcare service(s) or assessing the health status of a patient."/>
      <alias value="Visit"/>
      <min value="0"/>
      <max value="1"/>
      <base>
        <path value="ReferralRequest.context"/>
        <min value="0"/>
        <max value="1"/>
      </base>
      <type>
        <code value="Reference"/>
        <profile
                 value="http://hl7.org/fhir/qicore/StructureDefinition/qicore-encounter"/>
      </type>
      <mustSupport value="true"/>
      <isModifier value="false"/>
      <isSummary value="false"/>
      <mapping>
        <identity value="rim"/>
        <map value="Entity. Role, or Act"/>
      </mapping>
      <mapping>
        <identity value="rim"/>
        <map value="Encounter[@moodCode='EVN']"/>
      </mapping>
      <mapping>
        <identity value="w5"/>
        <map value="workflow.encounter"/>
      </mapping>
      <mapping>
        <identity value="qdm"/>
        <map value="Encounter, Active or Performed"/>
      </mapping>
    </element>
    <element id="ReferralRequest:qicore-referralrequest.fulfillmentTime">
      <path value="ReferralRequest.fulfillmentTime"/>
      <short value="Requested service(s) fulfillment time"/>
      <definition
                  value="The period of time within which the services identified in the referral/transfer of care is specified or required to occur."/>
      <requirements
                    value="Use cases: (1) to indicate that the requested service is not to happen before a specified date, and saving the start date in Period.start; (2) to indicate that the requested service must happen before a specified date, and saving the end date in Period.end; (3) to indicate that the requested service must happen during the specified dates ("start" and "end" values)."/>
      <alias value="EffectiveTime"/>
      <min value="0"/>
      <max value="1"/>
      <base>
        <path value="ReferralRequest.fulfillmentTime"/>
        <min value="0"/>
        <max value="1"/>
      </base>
      <type>
        <code value="Period"/>
      </type>
      <mustSupport value="true"/>
      <isModifier value="false"/>
      <isSummary value="false"/>
      <mapping>
        <identity value="v2"/>
        <map value="OBR-7/OBR-8"/>
      </mapping>
      <mapping>
        <identity value="w5"/>
        <map value="when.planned"/>
      </mapping>
    </element>
    <element id="ReferralRequest:qicore-referralrequest.authored">
      <path value="ReferralRequest.authored"/>
      <short value="Date of creation/activation"/>
      <definition
                  value="Date/DateTime of creation for draft requests and date of activation for active requests."/>
      <min value="0"/>
      <max value="1"/>
      <base>
        <path value="ReferralRequest.authored"/>
        <min value="0"/>
        <max value="1"/>
      </base>
      <type>
        <code value="dateTime"/>
      </type>
      <mustSupport value="true"/>
      <isModifier value="false"/>
      <isSummary value="false"/>
      <mapping>
        <identity value="v2"/>
        <map value="RF1-7 / RF1-9?"/>
      </mapping>
      <mapping>
        <identity value="w5"/>
        <map value="when.init"/>
      </mapping>
      <mapping>
        <identity value="qdm"/>
        <map value="start datetime"/>
      </mapping>
    </element>
    <element id="ReferralRequest:qicore-referralrequest.requester">
      <path value="ReferralRequest.requester"/>
      <short value="Requester of referral / transfer of care"/>
      <definition
                  value="The healthcare provider or provider organization who/which initiated the referral/transfer of care request. Can also be  Patient (a self referral)."/>
      <min value="0"/>
      <max value="1"/>
      <base>
        <path value="ReferralRequest.requester"/>
        <min value="0"/>
        <max value="1"/>
      </base>
      <type>
        <code value="Reference"/>
        <profile
                 value="http://hl7.org/fhir/qicore/StructureDefinition/qicore-practitioner"/>
      </type>
      <type>
        <code value="Reference"/>
        <profile
                 value="http://hl7.org/fhir/qicore/StructureDefinition/qicore-organization"/>
      </type>
      <type>
        <code value="Reference"/>
        <profile
                 value="http://hl7.org/fhir/qicore/StructureDefinition/qicore-patient"/>
      </type>
      <mustSupport value="true"/>
      <isModifier value="false"/>
      <isSummary value="false"/>
      <mapping>
        <identity value="v2"/>
        <map
             value="Practitioner: PRD-2/PRD-7 where PRD-3 = RP; Organization: PRD-10 where PRD-3 = RP"/>
      </mapping>
      <mapping>
        <identity value="w5"/>
        <map value="who.author"/>
      </mapping>
    </element>
    <element id="ReferralRequest:qicore-referralrequest.specialty">
      <path value="ReferralRequest.specialty"/>
      <short
             value="The clinical specialty (discipline) that the referral is requested for"/>
      <definition
                  value="Indication of the clinical domain or discipline to which the referral or transfer of care request is sent.  For example: Cardiology Gastroenterology Diabetology."/>
      <min value="0"/>
      <max value="1"/>
      <base>
        <path value="ReferralRequest.specialty"/>
        <min value="0"/>
        <max value="1"/>
      </base>
      <type>
        <code value="CodeableConcept"/>
      </type>
      <mustSupport value="true"/>
      <isModifier value="false"/>
      <isSummary value="false"/>
      <binding>
        <strength value="example"/>
        <description
                     value="Codes indicating the types of capability the referred to service provider must have."/>
        <valueSetReference>
          <reference value="http://hl7.org/fhir/ValueSet/practitioner-specialty"/>
        </valueSetReference>
      </binding>
      <mapping>
        <identity value="v2"/>
        <map value="RF1-3"/>
      </mapping>
      <mapping>
        <identity value="qdm"/>
        <map value="primary code"/>
      </mapping>
    </element>
    <element id="ReferralRequest:qicore-referralrequest.recipient">
      <path value="ReferralRequest.recipient"/>
      <short value="Receiver of referral / transfer of care request"/>
      <definition
                  value="The healthcare provider(s) or provider organization(s) who/which is to receive the referral/transfer of care request."/>
      <comments
                value="There will be a primary receiver. But the request can be received by any number of "copied to" providers or organizations."/>
      <min value="0"/>
      <max value="*"/>
      <base>
        <path value="ReferralRequest.recipient"/>
        <min value="0"/>
        <max value="*"/>
      </base>
      <type>
        <code value="Reference"/>
        <profile
                 value="http://hl7.org/fhir/qicore/StructureDefinition/qicore-practitioner"/>
      </type>
      <type>
        <code value="Reference"/>
        <profile
                 value="http://hl7.org/fhir/qicore/StructureDefinition/qicore-organization"/>
      </type>
      <mustSupport value="true"/>
      <isModifier value="false"/>
      <isSummary value="false"/>
      <mapping>
        <identity value="v2"/>
        <map
             value="Practitioner: PRD-2/PRD-7 where PRD-3 = RT; Organization: PRD-10 where PRD-3 = RT"/>
      </mapping>
      <mapping>
        <identity value="w5"/>
        <map value="who.actor"/>
      </mapping>
      <mapping>
        <identity value="qdm"/>
        <map value="facility location"/>
      </mapping>
    </element>
    <element id="ReferralRequest:qicore-referralrequest.reason">
      <path value="ReferralRequest.reason"/>
      <short value="Reason for referral / transfer of care request"/>
      <definition
                  value="Description of clinical condition indicating why referral/transfer of care is requested.  For example:  Pathological Anomalies, Disabled (physical or mental),  Behavioral Management."/>
      <min value="0"/>
      <max value="1"/>
      <base>
        <path value="ReferralRequest.reason"/>
        <min value="0"/>
        <max value="1"/>
      </base>
      <type>
        <code value="CodeableConcept"/>
      </type>
      <mustSupport value="true"/>
      <isModifier value="false"/>
      <isSummary value="false"/>
      <binding>
        <strength value="example"/>
        <description
                     value="Codes indicating why the referral is being requested."/>
      </binding>
      <mapping>
        <identity value="v2"/>
        <map value="RF1-10"/>
      </mapping>
      <mapping>
        <identity value="w5"/>
        <map value="why"/>
      </mapping>
      <mapping>
        <identity value="qdm"/>
        <map value="reason"/>
      </mapping>
    </element>
    <element id="ReferralRequest:qicore-referralrequest.description">
      <path value="ReferralRequest.description"/>
      <short value="A textual description of the referral"/>
      <definition
                  value="The reason element gives a short description of why the referral is being made, the description expands on this to support a more complete clinical summary."/>
      <min value="0"/>
      <max value="1"/>
      <base>
        <path value="ReferralRequest.description"/>
        <min value="0"/>
        <max value="1"/>
      </base>
      <type>
        <code value="string"/>
      </type>
      <isModifier value="false"/>
    </element>
    <element id="ReferralRequest:qicore-referralrequest.serviceRequested">
      <path value="ReferralRequest.serviceRequested"/>
      <short value="Actions requested as part of the referral"/>
      <definition
                  value="The service(s) that is/are requested to be provided to the patient.  For example: cardiac pacemaker insertion."/>
      <min value="0"/>
      <max value="*"/>
      <base>
        <path value="ReferralRequest.serviceRequested"/>
        <min value="0"/>
        <max value="*"/>
      </base>
      <type>
        <code value="CodeableConcept"/>
      </type>
      <mustSupport value="true"/>
      <isModifier value="false"/>
      <isSummary value="false"/>
      <binding>
        <strength value="example"/>
        <description
                     value="Codes indicating the types of services that might be requested as part of a referral."/>
        <valueSetReference>
          <reference value="http://hl7.org/fhir/ValueSet/c80-practice-codes"/>
        </valueSetReference>
      </binding>
      <mapping>
        <identity value="v2"/>
        <map value="PR1-3 / OBR-4"/>
      </mapping>
      <mapping>
        <identity value="w5"/>
        <map value="what"/>
      </mapping>
      <mapping>
        <identity value="qdm"/>
        <map value="primary code"/>
      </mapping>
    </element>
    <element id="ReferralRequest:qicore-referralrequest.supportingInformation">
      <path value="ReferralRequest.supportingInformation"/>
      <short
             value="Additonal information to support referral or transfer of care request"/>
      <definition
                  value="Any additional (administrative, financial or clinical) information required to support request for referral or transfer of care.  For example: Presenting problems/chief complaints Medical History Family History Alerts Allergy/Intolerance and Adverse Reactions Medications Observations/Assessments (may include cognitive and fundtional assessments) Diagnostic Reports Care Plan."/>
      <min value="0"/>
      <max value="*"/>
      <base>
        <path value="ReferralRequest.supportingInformation"/>
        <min value="0"/>
        <max value="*"/>
      </base>
      <type>
        <code value="Reference"/>
        <profile value="http://hl7.org/fhir/StructureDefinition/Resource"/>
      </type>
      <isModifier value="false"/>
      <isSummary value="true"/>
    </element>
  </snapshot>
  <differential>
    <element id="ReferralRequest:qicore-referralrequest">
      <path value="ReferralRequest"/>
      <name value="QICore-ReferralRequest"/>
      <mustSupport value="false"/>
      <isModifier value="false"/>
      <isSummary value="false"/>
      <mapping>
        <identity value="qdm"/>
        <map
             value=""Encounter, Order"; "Encounter, Recommended""/>
      </mapping>
    </element>
    <element
             id="ReferralRequest:qicore-referralrequest.extension:referralrequestrefusalreason$referralrequest-reasonRefused">
      <path value="ReferralRequest.extension"/>
      <name value="ReferralRequest.refusalReason"/>
      <min value="0"/>
      <max value="1"/>
      <type>
        <code value="Extension"/>
        <profile
                 value="http://hl7.org/fhir/StructureDefinition/referralrequest-reasonRefused"/>
      </type>
      <mustSupport value="false"/>
      <isModifier value="false"/>
      <isSummary value="false"/>
      <binding>
        <strength value="example"/>
        <valueSetReference>
          <reference
                     value="http://hl7.org/fhir/qicore/ValueSet/qicore-referralrequest-reason-rejected"/>
        </valueSetReference>
      </binding>
      <mapping>
        <identity value="qdm"/>
        <map
             value="negation rationale (when ReferralRequest.status="refused")"/>
      </mapping>
    </element>
    <element id="ReferralRequest:qicore-referralrequest.status">
      <path value="ReferralRequest.status"/>
      <mustSupport value="true"/>
      <isModifier value="false"/>
      <isSummary value="false"/>
    </element>
    <element id="ReferralRequest:qicore-referralrequest.type">
      <path value="ReferralRequest.type"/>
      <mustSupport value="true"/>
      <isModifier value="false"/>
      <isSummary value="false"/>
      <mapping>
        <identity value="qdm"/>
        <map value="primary code"/>
      </mapping>
    </element>
    <element id="ReferralRequest:qicore-referralrequest.priority">
      <path value="ReferralRequest.priority"/>
      <mustSupport value="true"/>
      <isModifier value="false"/>
      <isSummary value="false"/>
      <binding>
        <strength value="preferred"/>
        <description
                     value="The priority of the referral (e.g., Urgent, Normal, etc.)"/>
        <valueSetReference>
          <reference value="http://hl7.org/fhir/qicore/ValueSet/qicore-priority"/>
        </valueSetReference>
      </binding>
    </element>
    <element id="ReferralRequest:qicore-referralrequest.patient">
      <path value="ReferralRequest.patient"/>
      <type>
        <code value="Reference"/>
        <profile
                 value="http://hl7.org/fhir/qicore/StructureDefinition/qicore-patient"/>
      </type>
      <mustSupport value="true"/>
      <isModifier value="false"/>
      <isSummary value="false"/>
    </element>
    <element id="ReferralRequest:qicore-referralrequest.context">
      <path value="ReferralRequest.context"/>
      <type>
        <code value="Reference"/>
        <profile
                 value="http://hl7.org/fhir/qicore/StructureDefinition/qicore-encounter"/>
      </type>
      <mustSupport value="true"/>
      <isModifier value="false"/>
      <isSummary value="false"/>
    </element>
    <element id="ReferralRequest:qicore-referralrequest.fulfillmentTime">
      <path value="ReferralRequest.fulfillmentTime"/>
      <mustSupport value="true"/>
      <isModifier value="false"/>
      <isSummary value="false"/>
    </element>
    <element id="ReferralRequest:qicore-referralrequest.authored">
      <path value="ReferralRequest.authored"/>
      <mustSupport value="true"/>
      <isModifier value="false"/>
      <isSummary value="false"/>
      <mapping>
        <identity value="qdm"/>
        <map value="start datetime"/>
      </mapping>
    </element>
    <element id="ReferralRequest:qicore-referralrequest.requester">
      <path value="ReferralRequest.requester"/>
      <type>
        <code value="Reference"/>
        <profile
                 value="http://hl7.org/fhir/qicore/StructureDefinition/qicore-practitioner"/>
      </type>
      <type>
        <code value="Reference"/>
        <profile
                 value="http://hl7.org/fhir/qicore/StructureDefinition/qicore-organization"/>
      </type>
      <type>
        <code value="Reference"/>
        <profile
                 value="http://hl7.org/fhir/qicore/StructureDefinition/qicore-patient"/>
      </type>
      <mustSupport value="true"/>
      <isModifier value="false"/>
      <isSummary value="false"/>
    </element>
    <element id="ReferralRequest:qicore-referralrequest.specialty">
      <path value="ReferralRequest.specialty"/>
      <mustSupport value="true"/>
      <isModifier value="false"/>
      <isSummary value="false"/>
      <mapping>
        <identity value="qdm"/>
        <map value="primary code"/>
      </mapping>
    </element>
    <element id="ReferralRequest:qicore-referralrequest.recipient">
      <path value="ReferralRequest.recipient"/>
      <type>
        <code value="Reference"/>
        <profile
                 value="http://hl7.org/fhir/qicore/StructureDefinition/qicore-practitioner"/>
      </type>
      <type>
        <code value="Reference"/>
        <profile
                 value="http://hl7.org/fhir/qicore/StructureDefinition/qicore-organization"/>
      </type>
      <mustSupport value="true"/>
      <isModifier value="false"/>
      <isSummary value="false"/>
      <mapping>
        <identity value="qdm"/>
        <map value="facility location"/>
      </mapping>
    </element>
    <element id="ReferralRequest:qicore-referralrequest.reason">
      <path value="ReferralRequest.reason"/>
      <mustSupport value="true"/>
      <isModifier value="false"/>
      <isSummary value="false"/>
      <mapping>
        <identity value="qdm"/>
        <map value="reason"/>
      </mapping>
    </element>
    <element id="ReferralRequest:qicore-referralrequest.serviceRequested">
      <path value="ReferralRequest.serviceRequested"/>
      <mustSupport value="true"/>
      <isModifier value="false"/>
      <isSummary value="false"/>
      <mapping>
        <identity value="qdm"/>
        <map value="primary code"/>
      </mapping>
    </element>
  </differential>
</StructureDefinition>