Uploaded image for project: 'FHIR Specification Feedback'
  1. FHIR Specification Feedback
  2. FHIR-43913

profile-claim-inquiry uses invalid discriminator


    • Icon: Technical Correction Technical Correction
    • Resolution: Persuasive
    • Icon: Medium Medium

      The PAS ClaimInquiry profile slices `Claim.CareTeam` like to:
      <element id="Claim.careTeam">
      <path value="Claim.careTeam"/>
        <type value="value"/>
        <path value="extension('http://hl7.org/fhir/us/davinci-pas/StructureDefinition/extension-careTeamClaimScope').value as boolean"/>
        <description value="Slice based on whether the care team member belongs to the overall claim or to an individual claim item."/>
        <rules value="open"/>

      The discriminator FhirPath expression uses the `as` operator, which is not an allowed construct according to the rules of the restricted subset (https://hl7.org/fhir/fhirpath.html#simple).

      This means that our validator (and possibly others) cannot currently use this profile to validate instances (https://github.com/FirelyTeam/Firely.Fhir.ValidationDemo/issues/12).


      `ofType(boolean)` will probably work fine, since that is part of the allowed subset.



            Unassigned Unassigned
            ewout Ewout Kramer
            1 Start watching this issue