<StructureDefinition xmlns="http://hl7.org/fhir">
  <id value="profile-claim-professional" />
  <url value="http://pharmacyeclaims.ca/FHIR/v1.0/StructureDefinition/profile-claim-professional" />
  <name value="ProfessionalServicesClaimRequest" />
  <title value="Professional Services Claim" />
  <status value="active" />
  <description value="Claim request specifically for professional services in Canada" />
  <purpose value="Claim request specifically for professional services in Canada" />
  <fhirVersion value="4.0.1" />
  <kind value="resource" />
  <abstract value="false" />
  <type value="Claim" />
  <baseDefinition value="http://hl7.org/fhir/StructureDefinition/Claim" />
  <derivation value="constraint" />
  <differential>
    <element id="Claim">
      <path value="Claim" />
      <comment value="Usage Note:   This profile is used for both Pay Provider claims and Pay Subscriber/Cardholder claims, which are differentiated by the payee.type&#xD;&#xA;&#xD;&#xA;The Claim resource fulfills three information request requirements: Claim - a request for adjudication for reimbursement for products and/or services provided; Preauthorization - a request to authorize the future provision of products and/or services including an anticipated adjudication; and, Predetermination - a request for a non-bind adjudication of possible future products and/or services." />
    </element>
    <element id="Claim.id">
      <path value="Claim.id" />
      <min value="1" />
      <mustSupport value="true" />
    </element>
    <element id="Claim.meta">
      <path value="Claim.meta" />
      <mustSupport value="true" />
    </element>
    <element id="Claim.meta.profile">
      <path value="Claim.meta.profile" />
      <max value="1" />
      <fixedCanonical value="http://pharmacyeclaims.ca/FHIR/v1.0/StructureDefinition/profile-claim-professional" />
      <mustSupport value="true" />
    </element>
    <element id="Claim.identifier">
      <path value="Claim.identifier" />
      <slicing>
        <discriminator>
          <type value="value" />
          <path value="system" />
        </discriminator>
        <rules value="open" />
      </slicing>
      <comment value="Usage Note:   Both the CPHA Trace Number and the Claim Identifier must be present in the message.   The CPHA Trace number is present for backward compatibility purposes.   It will be phased out as it is limited to 6N" />
      <min value="1" />
      <mustSupport value="true" />
    </element>
    <element id="Claim.identifier.system">
      <path value="Claim.identifier.system" />
      <mustSupport value="true" />
    </element>
    <element id="Claim.identifier.value">
      <path value="Claim.identifier.value" />
      <min value="1" />
      <mustSupport value="true" />
    </element>
    <element id="Claim.identifier:CPHA-Trace-Number">
      <path value="Claim.identifier" />
      <sliceName value="CPHA-Trace-Number" />
      <comment value="Usage Note:  This is limited to 6N, as per the CPHA message specification.   This is present for backward compatibility.   In the future, once all implementations natively support FHIR, this identifier will be deprecated in favour of the Claim-identifier which has no limitations.&#xD;&#xA;&#xD;&#xA;Usage Note:   This will be the trace number from the Claim Request.identifier.  The number assigned, by the provider, to the transaction to which this response applies.   This is limited to 6N, in order to maintain backward compatibility with CPHA.&#xD;&#xD;&#xA;CPHA Mapping: Trace Number B.23.03" />
      <max value="1" />
    </element>
    <element id="Claim.identifier:CPHA-Trace-Number.system">
      <path value="Claim.identifier.system" />
      <comment value="Set value = http://pharmacyeclaims.ca/FHIR/CPHA-identifier/trace-number&#xD;&#xA;&#xD;&#xA;Identifier.system is always case sensitive." />
      <min value="1" />
      <mustSupport value="true" />
    </element>
    <element id="Claim.identifier:CPHA-Trace-Number.value">
      <path value="Claim.identifier.value" />
      <comment value="Usage Note:  Unique number produced sequentially by the provider software (or manually in absence of computer) for each transaction transmitted by the provider.    &#xD;&#xD;&#xA;CPHA Map:   Trace Number  E.02.03   6N&#xD;&#xA;&#xD;&#xA;If the value is a full URI, then the system SHALL be urn:ietf:rfc:3986.  The value's primary purpose is computational mapping.  As a result, it may be normalized for comparison purposes (e.g. removing non-significant whitespace, dashes, etc.)  A value formatted for human display can be conveyed using the [Rendered Value extension](extension-rendered-value.html). Identifier.value is to be treated as case sensitive unless knowledge of the Identifier.system allows the processer to be confident that non-case-sensitive processing is safe." />
      <min value="1" />
      <mustSupport value="true" />
    </element>
    <element id="Claim.identifier:Claim-identifier">
      <path value="Claim.identifier" />
      <sliceName value="Claim-identifier" />
      <comment value="Usage Note:   This must be present for all FHIR-based identfiiers.   This identifier is not limited in length as is the Trace-Number.  This serves as an invoice or claim number for professional services whereby there is no Prescription number&#xD;&#xA;CPHA Map:   Maps to the D.55.03 Current RX Number and also the D.53.03 Original RX Number and is therefore limited to 9N.   In professional services claims, these have the same values." />
      <min value="1" />
      <max value="1" />
      <mustSupport value="true" />
    </element>
    <element id="Claim.identifier:Claim-identifier.system">
      <path value="Claim.identifier.system" />
      <comment value="Usage Note:   This is assigned by the sending system to uniquely identify the namespace.&#xD;&#xA;Identifier.system is always case sensitive.&#xD;&#xA;CPHA Mapping:   None; this is new" />
      <min value="1" />
      <mustSupport value="true" />
    </element>
    <element id="Claim.identifier:Claim-identifier.value">
      <path value="Claim.identifier.value" />
      <min value="1" />
      <mustSupport value="true" />
    </element>
    <element id="Claim.status">
      <path value="Claim.status" />
      <comment value="This element is labeled as a modifier because the status contains codes that mark the resource as not currently valid.&#xD;&#xA;CPHA - no mapping" />
      <fixedCode value="active" />
      <mustSupport value="true" />
    </element>
    <element id="Claim.type">
      <path value="Claim.type" />
      <comment value="The majority of jurisdictions use: oral, pharmacy, vision, professional and institutional, or variants on those terms, as the general styles of claims. The valueset is extensible to accommodate other jurisdictional requirements.&#xD;&#xA;CPHA - no mapping" />
      <fixedCodeableConcept>
        <text value="pharmacy" />
      </fixedCodeableConcept>
      <mustSupport value="true" />
    </element>
    <element id="Claim.type.coding">
      <path value="Claim.type.coding" />
      <min value="1" />
      <max value="1" />
      <mustSupport value="true" />
    </element>
    <element id="Claim.type.coding.code">
      <path value="Claim.type.coding.code" />
      <min value="1" />
      <fixedCode value="pharmacy" />
      <mustSupport value="true" />
    </element>
    <element id="Claim.type.text">
      <path value="Claim.type.text" />
      <min value="1" />
      <fixedString value="PharmacyServices" />
      <mustSupport value="true" />
    </element>
    <element id="Claim.use">
      <path value="Claim.use" />
      <fixedCode value="claim" />
      <mustSupport value="true" />
    </element>
    <element id="Claim.patient">
      <path value="Claim.patient" />
      <type>
        <code value="Reference" />
        <targetProfile value="http://pharmacyeclaims.ca/FHIR/v1.0/StructureDefinition/profile-patient" />
        <aggregation value="bundled" />
      </type>
      <mustSupport value="true" />
    </element>
    <element id="Claim.patient.reference">
      <path value="Claim.patient.reference" />
      <min value="1" />
      <mustSupport value="true" />
    </element>
    <element id="Claim.created">
      <path value="Claim.created" />
      <comment value="Usage note:  This may be different from the service date and is mandatory in FHIR&#xD;&#xA;&#xD;&#xA;This field is independent of the date of creation of the resource as it may reflect the creation date of a source document prior to digitization. Typically for claims all services must be completed as of this date." />
      <mustSupport value="true" />
    </element>
    <element id="Claim.enterer">
      <path value="Claim.enterer" />
      <mustSupport value="true" />
    </element>
    <element id="Claim.provider">
      <path value="Claim.provider" />
      <comment value="Usage:  Identity of the pharmacy providing the service.&#xD;&#xA;CPHA 3 Map:  B.21.03 Provider ID &#xD;&#xA;&#xD;&#xA;Typically this field would be 1..1 where this party is responsible for the claim but not necessarily professionally responsible for the provision of the individual products and services listed below." />
      <mustSupport value="true" />
    </element>
    <element id="Claim.provider.identifier">
      <path value="Claim.provider.identifier" />
      <min value="1" />
      <mustSupport value="true" />
    </element>
    <element id="Claim.provider.identifier.system">
      <path value="Claim.provider.identifier.system" />
      <comment value="Usage Rule:  Value should be established by the adjudicator&#xD;&#xA;CPHA 3 map:  none&#xD;&#xA;Identifier.system is always case sensitive." />
      <mustSupport value="true" />
    </element>
    <element id="Claim.provider.identifier.value">
      <path value="Claim.provider.identifier.value" />
      <min value="1" />
      <mustSupport value="true" />
    </element>
    <element id="Claim.priority">
      <path value="Claim.priority" />
      <mustSupport value="true" />
    </element>
    <element id="Claim.priority.coding">
      <path value="Claim.priority.coding" />
      <min value="1" />
      <max value="1" />
    </element>
    <element id="Claim.priority.coding.system">
      <path value="Claim.priority.coding.system" />
      <min value="1" />
      <fixedUri value="http://terminology.hl7.org/CodeSystem/processpriority" />
      <mustSupport value="true" />
    </element>
    <element id="Claim.priority.coding.code">
      <path value="Claim.priority.coding.code" />
      <min value="1" />
      <fixedCode value="stat" />
      <mustSupport value="true" />
    </element>
    <element id="Claim.priority.text">
      <path value="Claim.priority.text" />
      <comment value="CPHA Map:  None, this is a new mandatory field&#xD;&#xA;&#xD;&#xA;Very often the text is the same as a displayName of one of the codings." />
      <min value="1" />
      <fixedString value="Immediate" />
      <mustSupport value="true" />
    </element>
    <element id="Claim.related">
      <path value="Claim.related" />
      <comment value="Usage Note:   This is a reference to a related dispense claim identifier to allow adjudicators to formally relate the professional claim to the claim for the medication dispense.   &#xD;&#xA;Usage Note:   If known to the pharmacy, this link should be provided.&#xD;&#xA;CPHA Map:   None  - this is a new data element&#xD;&#xA;&#xD;&#xA;For example,  for the original treatment and follow-up exams." />
      <mustSupport value="true" />
    </element>
    <element id="Claim.related.claim">
      <path value="Claim.related.claim" />
      <min value="1" />
      <mustSupport value="true" />
    </element>
    <element id="Claim.related.claim.identifier">
      <path value="Claim.related.claim.identifier" />
      <min value="1" />
      <mustSupport value="true" />
    </element>
    <element id="Claim.related.claim.identifier.system">
      <path value="Claim.related.claim.identifier.system" />
      <mustSupport value="true" />
    </element>
    <element id="Claim.related.claim.identifier.value">
      <path value="Claim.related.claim.identifier.value" />
      <min value="1" />
      <mustSupport value="true" />
    </element>
    <element id="Claim.prescription">
      <path value="Claim.prescription" />
      <comment value="Usage:   May be used to provide the pharmacy view of a prescription that has been adapted.   An identifier may be provided if known.   Other details of the adapted prescription may be sent in the future.&#xD;&#xA;&#xD;&#xA;References SHALL be a reference to an actual FHIR resource, and SHALL be resolveable (allowing for access control, temporary unavailability, etc.). Resolution can be either by retrieval from the URL, or, where applicable by resource type, by treating an absolute reference as a canonical URL and looking it up in a local registry/repository." />
      <type>
        <code value="Reference" />
        <targetProfile value="http://hl7.org/fhir/StructureDefinition/DeviceRequest" />
        <targetProfile value="http://hl7.org/fhir/StructureDefinition/MedicationRequest" />
      </type>
      <mustSupport value="true" />
    </element>
    <element id="Claim.prescription.reference">
      <path value="Claim.prescription.reference" />
      <mustSupport value="true" />
    </element>
    <element id="Claim.prescription.identifier">
      <path value="Claim.prescription.identifier" />
      <mustSupport value="true" />
    </element>
    <element id="Claim.originalPrescription">
      <path value="Claim.originalPrescription" />
      <comment value="Usage:  Number assigned to a prescription or service record on the original date of prescription or professional service was provided.   This is optional as there is no expectation to support sending the identifier at this time.&#xD;&#xA;CPHA Map - D.53.03 Original Prescription Number  9N&#xD;&#xA;&#xD;&#xA;For example, a physician may prescribe a medication which the pharmacy determines is contraindicated, or for which the patient has an intolerance, and therefore issues a new prescription for an alternate medication which has the same therapeutic intent. The prescription from the pharmacy becomes the 'prescription' and that from the physician becomes the 'original prescription'." />
      <mustSupport value="true" />
    </element>
    <element id="Claim.originalPrescription.identifier">
      <path value="Claim.originalPrescription.identifier" />
      <mustSupport value="true" />
    </element>
    <element id="Claim.payee">
      <path value="Claim.payee" />
      <comment value="Usage Note:   This field differentiates between the &quot;Pay Provider&quot; and &quot;Pay Cardholder (aka Subscriber) &quot; claims.   &#xD;&#xA;Usage Note:   Set code = &quot;subscriber&quot; or &quot;provider&quot; to indicate the payee type requested.&#xD;&#xA;CPHA Map:   This was differentiated by transaction type 01 or 04.   &#xD;&#xA;&#xD;&#xA;Often providers agree to receive the benefits payable to reduce the near-term costs to the patient. The insurer may decline to pay the provider and choose to pay the subscriber instead." />
      <min value="1" />
      <mustSupport value="true" />
    </element>
    <element id="Claim.payee.type">
      <path value="Claim.payee.type" />
      <mustSupport value="true" />
    </element>
    <element id="Claim.payee.type.coding">
      <path value="Claim.payee.type.coding" />
      <min value="1" />
      <max value="1" />
      <mustSupport value="true" />
      <binding>
        <strength value="extensible" />
        <valueSet value="http://hl7.org/fhir/ValueSet/payeetype" />
      </binding>
    </element>
    <element id="Claim.payee.type.coding.system">
      <path value="Claim.payee.type.coding.system" />
      <min value="1" />
      <fixedUri value="http://terminology.hl7.org/CodeSystem/payeetype" />
      <mustSupport value="true" />
    </element>
    <element id="Claim.payee.type.coding.code">
      <path value="Claim.payee.type.coding.code" />
      <comment value="Usage Note:   Set code = &quot;subscriber&quot; or &quot;provider&quot; to indicate the payee type requested.&#xD;&#xA;CPHA Map:   Transaction Code 01 for Provider claims, code 04 for cardholder claims.&#xD;&#xA;&#xD;&#xA;Note that FHIR strings SHALL NOT exceed 1MB in size" />
      <min value="1" />
      <mustSupport value="true" />
    </element>
    <element id="Claim.careTeam">
      <path value="Claim.careTeam" />
      <comment value="Usage Note:   This is used to specify who delivered the service as well as who was responsible for the service.  For example, a nurse may deliver the service but the pharmacist may be responsible for the service.   In this case, both the pharamcists and nurse will be identified.   At minimum, the responsible pharmacist must be identified for backward compatibility.    A prescriber may also be included where applicable.&#xD;&#xA;CPHA Map:  Pharmacist ID and any others involved in the service" />
      <min value="1" />
      <mustSupport value="true" />
    </element>
    <element id="Claim.careTeam.extension:contactedIndicator">
      <path value="Claim.careTeam.extension" />
      <sliceName value="contactedIndicator" />
      <type>
        <code value="Extension" />
        <profile value="http://pharmacyeclaims.ca/FHIR/v1.0/StructureDefinition/ext-contacted-indicator" />
      </type>
      <mustSupport value="true" />
      <isModifier value="false" />
    </element>
    <element id="Claim.careTeam.extension:contactedIndicator.value[x]">
      <path value="Claim.careTeam.extension.value[x]" />
      <comment value="Set value = true if the careTeam indicated was contacted by the Professional responsible for the claim." />
      <mustSupport value="true" />
    </element>
    <element id="Claim.careTeam.sequence">
      <path value="Claim.careTeam.sequence" />
      <mustSupport value="true" />
    </element>
    <element id="Claim.careTeam.provider">
      <path value="Claim.careTeam.provider" />
      <mustSupport value="true" />
    </element>
    <element id="Claim.careTeam.provider.identifier">
      <path value="Claim.careTeam.provider.identifier" />
      <comment value="Usage Note:   The identifier of the pharmacist or other clinician&#xD;&#xA;Mapping:   CPHA: Pharmacist ID D.76.03&#xD;&#xA;&#xD;&#xA;When an identifier is provided in place of a reference, any system processing the reference will only be able to resolve the identifier to a reference if it understands the business context in which the identifier is used. Sometimes this is global (e.g. a national identifier) but often it is not. For this reason, none of the useful mechanisms described for working with references (e.g. chaining, includes) are possible, nor should servers be expected to be able resolve the reference. Servers may accept an identifier based reference untouched, resolve it, and/or reject it - see CapabilityStatement.rest.resource.referencePolicy. &#xA;&#xA;When both an identifier and a literal reference are provided, the literal reference is preferred. Applications processing the resource are allowed - but not required - to check that the identifier matches the literal reference&#xA;&#xA;Applications converting a logical reference to a literal reference may choose to leave the logical reference present, or remove it.&#xA;&#xA;Reference is intended to point to a structure that can potentially be expressed as a FHIR resource, though there is no need for it to exist as an actual FHIR resource instance - except in as much as an application wishes to actual find the target of the reference. The content referred to be the identifier must meet the logical constraints implied by any limitations on what resource types are permitted for the reference.  For example, it would not be legitimate to send the identifier for a drug prescription if the type were Reference(Observation|DiagnosticReport).  One of the use-cases for Reference.identifier is the situation where no FHIR representation exists (where the type is Reference (Any)." />
      <min value="1" />
    </element>
    <element id="Claim.careTeam.provider.identifier.system">
      <path value="Claim.careTeam.provider.identifier.system" />
      <mustSupport value="true" />
    </element>
    <element id="Claim.careTeam.provider.identifier.value">
      <path value="Claim.careTeam.provider.identifier.value" />
      <mustSupport value="true" />
    </element>
    <element id="Claim.careTeam.provider.display">
      <path value="Claim.careTeam.provider.display" />
      <mustSupport value="true" />
    </element>
    <element id="Claim.careTeam.responsible">
      <path value="Claim.careTeam.responsible" />
      <comment value="Usage Note:   This value is &quot;true&quot; for the pharmacist who is responsible for the claim.   This is &quot;false&quot; for a clinician (eg nurse) who is under the supervision of the responsible pharmacist.&#xD;&#xA;&#xD;&#xA;Responsible might not be required when there is only a single provider listed." />
      <min value="1" />
      <mustSupport value="true" />
    </element>
    <element id="Claim.careTeam.role">
      <path value="Claim.careTeam.role" />
      <comment value="Usage:  Role will indicate, whether a pharmacist, nurse, practitioner, prescriber.&#xD;&#xA;&#xD;&#xA;Role might not be required when there is only a single provider listed." />
      <min value="1" />
      <mustSupport value="true" />
    </element>
    <element id="Claim.careTeam.role.coding">
      <path value="Claim.careTeam.role.coding" />
      <min value="1" />
      <max value="1" />
      <mustSupport value="true" />
    </element>
    <element id="Claim.careTeam.role.coding.system">
      <path value="Claim.careTeam.role.coding.system" />
      <comment value="Value= http://pharmacyeclaims.ca/FHIR/CodeSystem/proff-role-codes    or healthcareProviderRoleType&#xD;&#xA;&#xD;&#xA;The URI may be an OID (urn:oid:...) or a UUID (urn:uuid:...).  OIDs and UUIDs SHALL be references to the HL7 OID registry. Otherwise, the URI should come from HL7's list of FHIR defined special URIs or it should reference to some definition that establishes the system clearly and unambiguously." />
      <mustSupport value="true" />
    </element>
    <element id="Claim.careTeam.role.coding.code">
      <path value="Claim.careTeam.role.coding.code" />
      <min value="1" />
      <mustSupport value="true" />
    </element>
    <element id="Claim.supportingInfo">
      <path value="Claim.supportingInfo" />
      <slicing>
        <discriminator>
          <type value="value" />
          <path value="code.coding.code" />
        </discriminator>
        <rules value="open" />
      </slicing>
      <mustSupport value="true" />
    </element>
    <element id="Claim.supportingInfo.category.coding.code">
      <path value="Claim.supportingInfo.category.coding.code" />
      <min value="1" />
      <mustSupport value="true" />
    </element>
    <element id="Claim.supportingInfo:SpecialAuthNumber">
      <path value="Claim.supportingInfo" />
      <sliceName value="SpecialAuthNumber" />
      <comment value="Usage Note:   This allows the provider to claim for products and services which require prior authorization,  This field enables the provider to claim for a product or service which is not ordinarily covered (e.g. NIHB Non-Formulary Benefits which can be provided by prior authorization). Authorization &#xD;&#xA;numbers will be issued by the payor. &#xD;&#xA;CPHA Map:  Special Authorization Number or Code D.64.03  &#xD;&#xA;&#xD;&#xA;Often there are multiple jurisdiction specific valuesets which are required." />
      <mustSupport value="true" />
    </element>
    <element id="Claim.supportingInfo:SpecialAuthNumber.sequence">
      <path value="Claim.supportingInfo.sequence" />
      <fixedPositiveInt value="2" />
      <mustSupport value="true" />
    </element>
    <element id="Claim.supportingInfo:SpecialAuthNumber.category">
      <path value="Claim.supportingInfo.category" />
      <comment value="Usage:   This is a fixed value of &quot;SpecialAuth&quot;&#xD;&#xA;This may contain a category for the local bill type codes." />
      <fixedCodeableConcept>
        <coding>
          <code value="SpecialAuth" />
        </coding>
      </fixedCodeableConcept>
      <mustSupport value="true" />
    </element>
    <element id="Claim.supportingInfo:SpecialAuthNumber.category.coding">
      <path value="Claim.supportingInfo.category.coding" />
      <min value="1" />
      <max value="1" />
      <mustSupport value="true" />
    </element>
    <element id="Claim.supportingInfo:SpecialAuthNumber.category.coding.code">
      <path value="Claim.supportingInfo.category.coding.code" />
      <min value="1" />
      <fixedCode value="SpecialAuth" />
      <mustSupport value="true" />
    </element>
    <element id="Claim.supportingInfo:SpecialAuthNumber.code.coding">
      <path value="Claim.supportingInfo.code.coding" />
      <mustSupport value="false" />
    </element>
    <element id="Claim.supportingInfo:SpecialAuthNumber.code.coding.system">
      <path value="Claim.supportingInfo.code.coding.system" />
      <mustSupport value="false" />
    </element>
    <element id="Claim.supportingInfo:SpecialAuthNumber.code.coding.code">
      <path value="Claim.supportingInfo.code.coding.code" />
      <mustSupport value="false" />
    </element>
    <element id="Claim.supportingInfo:SpecialAuthNumber.value[x]">
      <path value="Claim.supportingInfo.value[x]" />
      <comment value="Usage Note:   This allows the provider to claim for products and services which require prior authorization,  This field enables the provider to claim for a product or service which is not ordinarily covered (e.g. NIHB Non-Formulary Benefits which can be provided by prior authorization). Authorization &#xD;&#xA;numbers will be issued by the payor. &#xD;&#xA;CPHA Map:  Special Authorization Number or Code D.64.03  &#xD;&#xA;&#xD;&#xA;Could be used to provide references to other resources, document. For example could contain a PDF in an Attachment of the Police Report for an Accident." />
      <min value="1" />
      <type>
        <code value="string" />
      </type>
      <mustSupport value="true" />
    </element>
    <element id="Claim.supportingInfo:ClinicalReason">
      <path value="Claim.supportingInfo" />
      <sliceName value="ClinicalReason" />
      <comment value="Usage:    A reason may be specified for a professional service.    This is additional information outside of intervention codes, (sent inClaim.item.modifier)     Example:   This may include the reason for the adapted claim, eg  Renew, Extend Prescriptions, - Change Drug Dosage, Formulation, - Therapeutic Substitition, - Discontinuation of a drug  &#xD;&#xA;&#xD;&#xA;Often there are multiple jurisdiction specific valuesets which are required." />
      <mustSupport value="true" />
    </element>
    <element id="Claim.supportingInfo:ClinicalReason.sequence">
      <path value="Claim.supportingInfo.sequence" />
      <mustSupport value="true" />
    </element>
    <element id="Claim.supportingInfo:ClinicalReason.category">
      <path value="Claim.supportingInfo.category" />
      <fixedCodeableConcept>
        <text value="ClinicalReason" />
      </fixedCodeableConcept>
      <mustSupport value="true" />
    </element>
    <element id="Claim.supportingInfo:ClinicalReason.category.coding">
      <path value="Claim.supportingInfo.category.coding" />
      <min value="1" />
      <max value="1" />
      <mustSupport value="true" />
    </element>
    <element id="Claim.supportingInfo:ClinicalReason.category.coding.code">
      <path value="Claim.supportingInfo.category.coding.code" />
      <min value="1" />
      <fixedCode value="Reason" />
      <mustSupport value="true" />
    </element>
    <element id="Claim.supportingInfo:ClinicalReason.value[x]">
      <path value="Claim.supportingInfo.value[x]" />
      <max value="0" />
    </element>
    <element id="Claim.supportingInfo:ClinicalReason.reason">
      <path value="Claim.supportingInfo.reason" />
      <comment value="Usage:   A code must be specified when known; text is also supported for audit purposes only&#xD;&#xA;&#xD;&#xA;For example: the reason for the additional stay, or why a tooth is  missing." />
      <min value="1" />
      <mustSupport value="true" />
    </element>
    <element id="Claim.supportingInfo:ClinicalReason.reason.coding">
      <path value="Claim.supportingInfo.reason.coding" />
      <mustSupport value="true" />
    </element>
    <element id="Claim.supportingInfo:ClinicalReason.reason.coding.system">
      <path value="Claim.supportingInfo.reason.coding.system" />
      <mustSupport value="true" />
    </element>
    <element id="Claim.supportingInfo:ClinicalReason.reason.coding.code">
      <path value="Claim.supportingInfo.reason.coding.code" />
      <min value="1" />
      <mustSupport value="true" />
    </element>
    <element id="Claim.supportingInfo:ClinicalReason.reason.text">
      <path value="Claim.supportingInfo.reason.text" />
      <mustSupport value="true" />
    </element>
    <element id="Claim.supportingInfo:TherapeuticSubReason">
      <path value="Claim.supportingInfo" />
      <sliceName value="TherapeuticSubReason" />
      <comment value="Usage:  Only used when claim is for therapeutic substitution&#xD;&#xA;Often there are multiple jurisdiction specific valuesets which are required." />
      <mustSupport value="true" />
    </element>
    <element id="Claim.supportingInfo:TherapeuticSubReason.sequence">
      <path value="Claim.supportingInfo.sequence" />
      <mustSupport value="true" />
    </element>
    <element id="Claim.supportingInfo:TherapeuticSubReason.category">
      <path value="Claim.supportingInfo.category" />
      <mustSupport value="true" />
    </element>
    <element id="Claim.supportingInfo:TherapeuticSubReason.category.coding">
      <path value="Claim.supportingInfo.category.coding" />
      <min value="1" />
      <max value="1" />
      <mustSupport value="true" />
    </element>
    <element id="Claim.supportingInfo:TherapeuticSubReason.category.coding.code">
      <path value="Claim.supportingInfo.category.coding.code" />
      <min value="1" />
      <fixedCode value="TherapeuticSubReason" />
      <mustSupport value="true" />
    </element>
    <element id="Claim.supportingInfo:TherapeuticSubReason.code">
      <path value="Claim.supportingInfo.code" />
      <min value="1" />
      <mustSupport value="true" />
    </element>
    <element id="Claim.supportingInfo:TherapeuticSubReason.code.coding">
      <path value="Claim.supportingInfo.code.coding" />
      <min value="1" />
      <max value="1" />
      <mustSupport value="true" />
    </element>
    <element id="Claim.supportingInfo:TherapeuticSubReason.code.coding.system">
      <path value="Claim.supportingInfo.code.coding.system" />
      <comment value="Set value = http://pharmacyeclaims.ca/FHIR/CodeSystem/therapeutic-substitution&#xD;&#xA;&#xD;&#xA;The URI may be an OID (urn:oid:...) or a UUID (urn:uuid:...).  OIDs and UUIDs SHALL be references to the HL7 OID registry. Otherwise, the URI should come from HL7's list of FHIR defined special URIs or it should reference to some definition that establishes the system clearly and unambiguously." />
      <mustSupport value="true" />
    </element>
    <element id="Claim.supportingInfo:TherapeuticSubReason.code.coding.code">
      <path value="Claim.supportingInfo.code.coding.code" />
      <min value="1" />
      <mustSupport value="true" />
    </element>
    <element id="Claim.supportingInfo:TherapeuticSubReason.reason">
      <path value="Claim.supportingInfo.reason" />
      <mustSupport value="false" />
    </element>
    <element id="Claim.supportingInfo:TherapeuticSubReason.reason.coding">
      <path value="Claim.supportingInfo.reason.coding" />
      <mustSupport value="false" />
    </element>
    <element id="Claim.supportingInfo:TherapeuticSubReason.reason.coding.system">
      <path value="Claim.supportingInfo.reason.coding.system" />
      <mustSupport value="false" />
    </element>
    <element id="Claim.supportingInfo:TherapeuticSubReason.reason.coding.code">
      <path value="Claim.supportingInfo.reason.coding.code" />
      <mustSupport value="false" />
    </element>
    <element id="Claim.supportingInfo:AdjustedDosageOrFormulation">
      <path value="Claim.supportingInfo" />
      <sliceName value="AdjustedDosageOrFormulation" />
      <mustSupport value="true" />
    </element>
    <element id="Claim.supportingInfo:AdjustedDosageOrFormulation.sequence">
      <path value="Claim.supportingInfo.sequence" />
      <mustSupport value="true" />
    </element>
    <element id="Claim.supportingInfo:AdjustedDosageOrFormulation.category">
      <path value="Claim.supportingInfo.category" />
      <mustSupport value="true" />
    </element>
    <element id="Claim.supportingInfo:AdjustedDosageOrFormulation.category.coding">
      <path value="Claim.supportingInfo.category.coding" />
      <min value="1" />
      <max value="1" />
      <mustSupport value="true" />
    </element>
    <element id="Claim.supportingInfo:AdjustedDosageOrFormulation.category.coding.system">
      <path value="Claim.supportingInfo.category.coding.system" />
      <mustSupport value="true" />
    </element>
    <element id="Claim.supportingInfo:AdjustedDosageOrFormulation.category.coding.code">
      <path value="Claim.supportingInfo.category.coding.code" />
      <min value="1" />
      <fixedCode value="AdjustedDosageOrFormulation" />
      <mustSupport value="true" />
    </element>
    <element id="Claim.supportingInfo:AdjustedDosageOrFormulation.code">
      <path value="Claim.supportingInfo.code" />
      <mustSupport value="true" />
    </element>
    <element id="Claim.supportingInfo:AdjustedDosageOrFormulation.value[x]">
      <path value="Claim.supportingInfo.value[x]" />
      <comment value="Usage:   For adjusted dosage or formulation, allows details to expressed in text, by attachments or a reference.   Only text is supported initially.&#xD;&#xA;&#xD;&#xA;Could be used to provide references to other resources, document. For example could contain a PDF in an Attachment of the Police Report for an Accident." />
      <mustSupport value="true" />
    </element>
    <element id="Claim.supportingInfo:AdjustedDosageOrFormulation.reason">
      <path value="Claim.supportingInfo.reason" />
      <comment value="Usage:  Specifies codified values if available that pertain to the adjusted dosage or formulation.&#xD;&#xA;&#xD;&#xA;For example: the reason for the additional stay, or why a tooth is  missing." />
      <mustSupport value="true" />
    </element>
    <element id="Claim.diagnosis">
      <path value="Claim.diagnosis" />
      <comment value="Usage Note: Indicates prescriber's designation of the medical condition for which the patient is being treated if required by plan.     This is only supported for certain use cases at the request of the adjudicator when required for adjudication.&#xD;&#xA;Conformance Rule:  Current support for: ICD-9 or ICD-10CA, ODB reason for use codes, DND Eligible Medical Conditions.    If one or more are known, they must be included.   Adjudicators may also include implementation specific rules, eg SNOMED and this may also be included if known or agreed to by implementers.&#xD;&#xA;&#xD;&#xA;CPHA Map: Medical Condition/ Reason for Use D.51.03  A/N6   and Medical Reason/Reference D.50.03    Limited to one code" />
      <mustSupport value="true" />
    </element>
    <element id="Claim.diagnosis.sequence">
      <path value="Claim.diagnosis.sequence" />
      <mustSupport value="true" />
    </element>
    <element id="Claim.diagnosis.diagnosis[x]">
      <path value="Claim.diagnosis.diagnosis[x]" />
      <type>
        <code value="CodeableConcept" />
      </type>
      <mustSupport value="true" />
    </element>
    <element id="Claim.diagnosis.diagnosis[x].coding">
      <path value="Claim.diagnosis.diagnosis[x].coding" />
      <comment value="Usage Note:  Allows multiple codes to be specified where translation has occurred.    Vendors should send all possible codings as this may vary amongst adjudicators.&#xD;&#xA;Alignment:  PrescribeIT supports SNOMED&#xD;&#xA;&#xD;&#xA;Codes may be defined very casually in enumerations, or code lists, up to very formal definitions such as SNOMED CT - see the HL7 v3 Core Principles for more information.  Ordering of codings is undefined and SHALL NOT be used to infer meaning. Generally, at most only one of the coding values will be labeled as UserSelected = true." />
      <min value="1" />
      <mustSupport value="true" />
    </element>
    <element id="Claim.diagnosis.diagnosis[x].coding.system">
      <path value="Claim.diagnosis.diagnosis[x].coding.system" />
      <comment value="Usage:  Provides for the Identification of reference codes that are used by the prescriber to designate the medical condition or reason for use.  &#xD;&#xA;Conformance Rule:   System values are:  &#xD;&#xA;&#xD;&#xA;CPHA Map:  Medical Reason Reference D.50.03    A1&#xD;&#xA;ICD-9   (http://hl7.org/fhir/sid/icd-9-cm)&#xD;&#xA;ODB reason for use (system =http://pharmacyeclaims.ca/FHIR/CPHA-diagnosis-ODB-reason-code|&#xD;&#xA;ICD-10 (http://hl7.org/fhir/sid/icd-10)&#xD;&#xA;DND Eligible Medical Conditions (system = http://pharmacyeclaims.ca/FHIR/CPHA-diagnosis-DND-eligible-medical-conditions|Claim.diagnosis.code)&#xD;&#xD;&#xA;The URI may be an OID (urn:oid:...) or a UUID (urn:uuid:...).  OIDs and UUIDs SHALL be references to the HL7 OID registry. Otherwise, the URI should come from HL7's list of FHIR defined special URIs or it should reference to some definition that establishes the system clearly and unambiguously." />
      <mustSupport value="true" />
    </element>
    <element id="Claim.diagnosis.diagnosis[x].coding.code">
      <path value="Claim.diagnosis.diagnosis[x].coding.code" />
      <min value="1" />
      <mustSupport value="true" />
    </element>
    <element id="Claim.diagnosis.diagnosis[x].text">
      <path value="Claim.diagnosis.diagnosis[x].text" />
      <comment value="Usage Note:   May be included where code system mapping has occurred&#xD;&#xA;&#xD;&#xA;Very often the text is the same as a displayName of one of the codings." />
      <mustSupport value="true" />
    </element>
    <element id="Claim.insurance">
      <path value="Claim.insurance" />
      <comment value="Usage Note:    This is currently restricted to 5 instances of insurance.   All known instances should be included with the sequence number reflecting the COB Order.   Only one instance can be the focal=true.    The first/primary claim submission will not include any prior ClaimResponses.&#xD;&#xA;&#xD;&#xA;All insurance coverages for the patient which may be applicable for reimbursement, of the products and services listed in the claim, are typically provided in the claim to allow insurers to confirm the ordering of the insurance coverages relative to local 'coordination of benefit' rules. One coverage (and only one) with 'focal=true' is to be used in the adjudication of this claim. Coverages appearing before the focal Coverage in the list, and where 'Coverage.subrogation=false', should provide a reference to the ClaimResponse containing the adjudication results of the prior claim." />
      <mustSupport value="true" />
    </element>
    <element id="Claim.insurance.sequence">
      <path value="Claim.insurance.sequence" />
      <comment value="Usage Note:   This reflects the order for COB purposes.   By example, if a secondary claim is being submitted, the sequence = 2 and focal = true and the claimResponse from the primary adjudicator will be present.   If a primary claim is being submitted, multiple coverages can be included.  Sequence 1 and focal=true.&#xD;&#xA;Usage Note:   Where available, the claimResponse frrom prior claims must be included.&#xD;&#xA;&#xD;&#xA;CPHA Map:  N/A - new&#xD;&#xA;32 bit number; for values larger than this, use decimal" />
      <mustSupport value="true" />
    </element>
    <element id="Claim.insurance.focal">
      <path value="Claim.insurance.focal" />
      <mustSupport value="true" />
    </element>
    <element id="Claim.insurance.coverage">
      <path value="Claim.insurance.coverage" />
      <type>
        <code value="Reference" />
        <targetProfile value="http://pharmacyeclaims.ca/FHIR/v1.0/StructureDefinition/profile-coverage" />
        <aggregation value="bundled" />
      </type>
      <mustSupport value="true" />
    </element>
    <element id="Claim.insurance.coverage.reference">
      <path value="Claim.insurance.coverage.reference" />
      <min value="1" />
      <mustSupport value="true" />
    </element>
    <element id="Claim.insurance.claimResponse">
      <path value="Claim.insurance.claimResponse" />
      <comment value="Usage Note:  Includes the claim response from prior adjudicators, for secondary, tertiary claims.&#xD;&#xA;CPHA Map:  N/A - new&#xD;&#xA;Must not be specified when 'focal=true' for this insurance." />
      <mustSupport value="true" />
    </element>
    <element id="Claim.item">
      <path value="Claim.item" />
      <comment value="Usage Note:   Only a single item may be submitted per claim" />
      <min value="1" />
      <max value="1" />
      <mustSupport value="true" />
    </element>
    <element id="Claim.item.sequence">
      <path value="Claim.item.sequence" />
      <comment value="Usage Note:    This is expected to be a value of &quot;1&quot;&#xD;&#xA;32 bit number; for values larger than this, use decimal" />
      <mustSupport value="true" />
    </element>
    <element id="Claim.item.productOrService">
      <path value="Claim.item.productOrService" />
      <comment value="Usage Note:   This specifies the professional service code that is being charge, as well as modifiers (Special Service Code and Intervention Codes)   &#xD;&#xA;Adjudicator-specific Psuedo DINs/PINS  - Adjudicator specific. &#xD;&#xA;Each adjudicator will provide the &quot;Code system&quot; associated with their set of codes that are expected for Professional services.    Once established this specificaiton can be updated to include&#xD;&#xA;&#xD;&#xA;&#xD;&#xA;CPHA Map:  DIN/GP#/PIN/UNLISTED COMPOUND or a SPECIAL SERVICE CODE SSC D.57.03    &#xD;&#xA;&#xD;&#xA;If this is an actual service or product line, i.e. not a Group, then use code to indicate the Professional Service or Product supplied (e.g. CTP, HCPCS, USCLS, ICD10, NCPDP, DIN, RxNorm, ACHI, CCI). If a grouping item then use a group code to indicate the type of thing being grouped e.g. 'glasses' or 'compound'." />
      <mustSupport value="true" />
    </element>
    <element id="Claim.item.productOrService.coding">
      <path value="Claim.item.productOrService.coding" />
      <comment value="Usage Note:   Allows for more than one coding system/code to be sent.   For the initial rollout, Adjuidicator PINs will continue to be used.  Should a national professional code set be established, a second code may also be submitted&#xD;&#xA;&#xD;&#xA;Codes may be defined very casually in enumerations, or code lists, up to very formal definitions such as SNOMED CT - see the HL7 v3 Core Principles for more information.  Ordering of codings is undefined and SHALL NOT be used to infer meaning. Generally, at most only one of the coding values will be labeled as UserSelected = true." />
      <min value="1" />
      <mustSupport value="true" />
    </element>
    <element id="Claim.item.productOrService.coding.system">
      <path value="Claim.item.productOrService.coding.system" />
      <comment value="Usage Note:   Differentiates between code systems - must be specified when known&#xD;&#xA;CPHA Map;  N/A - New&#xD;&#xA;&#xD;&#xA;The URI may be an OID (urn:oid:...) or a UUID (urn:uuid:...).  OIDs and UUIDs SHALL be references to the HL7 OID registry. Otherwise, the URI should come from HL7's list of FHIR defined special URIs or it should reference to some definition that establishes the system clearly and unambiguously." />
      <mustSupport value="true" />
    </element>
    <element id="Claim.item.productOrService.coding.code">
      <path value="Claim.item.productOrService.coding.code" />
      <comment value="Usage Note:  Professional Service Code&#xD;&#xA;CPHA Mapping:   CPHA Map:  DIN/GP#/PIN/UNLISTED COMPOUND&#xD;&#xA;&#xD;&#xA;Note that FHIR strings SHALL NOT exceed 1MB in size" />
      <min value="1" />
      <mustSupport value="true" />
    </element>
    <element id="Claim.item.modifier">
      <path value="Claim.item.modifier" />
      <slicing>
        <discriminator>
          <type value="value" />
          <path value="coding.system" />
        </discriminator>
        <rules value="open" />
      </slicing>
      <mustSupport value="false" />
    </element>
    <element id="Claim.item.modifier.coding">
      <path value="Claim.item.modifier.coding" />
      <slicing>
        <discriminator>
          <type value="value" />
          <path value="code" />
        </discriminator>
        <rules value="open" />
      </slicing>
    </element>
    <element id="Claim.item.modifier:InterventionCode">
      <path value="Claim.item.modifier" />
      <sliceName value="InterventionCode" />
      <comment value="Usage Note:  Provides codes which detail intervention procedures taken or identify that special coverage and payment rules are being claimed.  Conformance Rule:   This supports up to 10 intervention codes pertaining to professional services.    Allows for multiple code systems to be used, however only intervention codes will be supported initially.&#xD;&#xA;&#xD;&#xA;CPHA Map:  INTERVENTION CODES   D.65.03.   Limt of two for CPHA; limit of 10 or FHIR.   As FHIR allows more, only two intervention codes should be sent if the claim is going to an adjudicator who supports CPHA.   Note:  As a general rule, the vendor submitting the claim will submit it in the format supported by the adjudication system&#xD;&#xA;&#xD;&#xA;For example in Oral whether the treatment is cosmetic or associated with TMJ, or for Medical whether the treatment was outside the clinic or outside of office hours." />
      <mustSupport value="true" />
    </element>
    <element id="Claim.item.modifier:InterventionCode.coding">
      <path value="Claim.item.modifier.coding" />
      <min value="1" />
      <max value="1" />
      <mustSupport value="true" />
    </element>
    <element id="Claim.item.modifier:InterventionCode.coding.system">
      <path value="Claim.item.modifier.coding.system" />
      <comment value="Set value = http://pharmacyeclaims.ca/FHIR/CodeSystem/intervention-codes&#xD;&#xA;&#xD;&#xA;The URI may be an OID (urn:oid:...) or a UUID (urn:uuid:...).  OIDs and UUIDs SHALL be references to the HL7 OID registry. Otherwise, the URI should come from HL7's list of FHIR defined special URIs or it should reference to some definition that establishes the system clearly and unambiguously." />
      <mustSupport value="true" />
    </element>
    <element id="Claim.item.modifier:InterventionCode.coding.code">
      <path value="Claim.item.modifier.coding.code" />
      <min value="1" />
      <mustSupport value="true" />
    </element>
    <element id="Claim.item.serviced[x]">
      <path value="Claim.item.serviced[x]" />
      <comment value="Usage note:  Date on which prescription and/or professional service is provided.  Established by the provider in accordance with the official time in the zone where the provider is located&#xD;&#xA;CPHA Map:  B.22.03 - Provider Transaction Date" />
      <min value="1" />
      <type>
        <code value="date" />
      </type>
      <mustSupport value="true" />
    </element>
    <element id="Claim.item.location[x]">
      <path value="Claim.item.location[x]" />
      <comment value="Usage Note:   A code may be used to indicate where the service occurred, eg patients home, in-pharmacy, etc.&#xD;&#xA;CPHA Mapping:   None" />
      <mustSupport value="true" />
    </element>
    <element id="Claim.item.net">
      <path value="Claim.item.net" />
      <comment value="Usage Note:  Pharmacist's fee for professional and technical activities associated with providing the service.  &#xD;&#xA;CPHA Mapping:  Prof Fee&#xD;&#xA;&#xD;&#xA;For example, the formula: quantity * unitPrice * factor  = net. Quantity and factor are assumed to be 1 if not supplied." />
      <min value="1" />
      <mustSupport value="true" />
    </element>
  </differential>
</StructureDefinition>