description: This profile is used for Explanation of Benefits (EOBs) based on claims submitted by retail pharmacies. \nThe claims data is based on submission standards adopted by the Department of Health and Human Services defined by NCPDP (National Council for Prescription Drug Program) package_name: hl7.fhir.us.carin derivation: constraint name: C4BBExplanationOfBenefitPharmacy type: ExplanationOfBenefit elements: processNote: elements: text: {mustSupport: true, index: 62} meta: elements: profile: pattern: {type: Canonical, value: 'http://hl7.org/fhir/us/carin-bb/StructureDefinition/C4BB-ExplanationOfBenefit-Pharmacy|1.1.0'} index: 0 slicing: slices: supportedProfile: match: {} schema: pattern: {type: Canonical, value: 'http://hl7.org/fhir/us/carin-bb/StructureDefinition/C4BB-ExplanationOfBenefit-Pharmacy|1.1.0'} index: 0 adjudication: {index: 51} supportingInfo: array: true min: 3 index: 5 slicing: rules: open ordered: false description: Slice based on $this pattern discriminator: - {path: category, type: pattern} min: 3 slices: dayssupply: match: category: coding: - {code: dayssupply, system: 'http://hl7.org/fhir/us/carin-bb/CodeSystem/C4BBSupportingInfoType'} schema: mustSupport: true _required: true index: 6 elements: category: mustSupport: true pattern: type: CodeableConcept value: coding: - {code: dayssupply, system: 'http://hl7.org/fhir/us/carin-bb/CodeSystem/C4BBSupportingInfoType'} index: 7 value: mustSupport: true choices: [valueQuantity] index: 9 valueQuantity: {type: Quantity, mustSupport: true, choiceOf: value, index: 10} required: [value, valueQuantity] dawcode: match: category: coding: - {code: dawcode, system: 'http://hl7.org/fhir/us/carin-bb/CodeSystem/C4BBSupportingInfoType'} schema: mustSupport: true _required: true index: 11 elements: category: mustSupport: true pattern: type: CodeableConcept value: coding: - {code: dawcode, system: 'http://hl7.org/fhir/us/carin-bb/CodeSystem/C4BBSupportingInfoType'} index: 12 code: binding: {strength: required, valueSet: 'http://hl7.org/fhir/us/carin-bb/ValueSet/NCPDPDispensedAsWrittenOrProductSelectionCode'} mustSupport: true index: 13 required: [code] refillNum: match: category: coding: - {code: refillnum, system: 'http://hl7.org/fhir/us/carin-bb/CodeSystem/C4BBSupportingInfoType'} schema: mustSupport: true _required: true index: 14 elements: category: mustSupport: true pattern: type: CodeableConcept value: coding: - {code: refillnum, system: 'http://hl7.org/fhir/us/carin-bb/CodeSystem/C4BBSupportingInfoType'} index: 15 value: mustSupport: true choices: [valueQuantity] index: 17 valueQuantity: {type: Quantity, mustSupport: true, choiceOf: value, index: 18} required: [value, valueQuantity] billingnetworkcontractingstatus: match: category: coding: - {code: billingnetworkcontractingstatus, system: 'http://hl7.org/fhir/us/carin-bb/CodeSystem/C4BBSupportingInfoType'} schema: mustSupport: true index: 19 elements: category: mustSupport: true pattern: type: CodeableConcept value: coding: - {code: billingnetworkcontractingstatus, system: 'http://hl7.org/fhir/us/carin-bb/CodeSystem/C4BBSupportingInfoType'} index: 20 code: binding: {strength: required, valueSet: 'http://hl7.org/fhir/us/carin-bb/ValueSet/C4BBPayerProviderContractingStatus'} mustSupport: true index: 21 required: [code] brandgenericindicator: match: category: coding: - {code: brandgenericindicator, system: 'http://hl7.org/fhir/us/carin-bb/CodeSystem/C4BBSupportingInfoType'} schema: mustSupport: true index: 22 elements: category: mustSupport: true pattern: type: CodeableConcept value: coding: - {code: brandgenericindicator, system: 'http://hl7.org/fhir/us/carin-bb/CodeSystem/C4BBSupportingInfoType'} index: 23 code: binding: {strength: required, valueSet: 'http://hl7.org/fhir/us/carin-bb/ValueSet/NCPDPBrandGenericIndicator'} mustSupport: true index: 24 required: [code] rxoriginCode: match: category: coding: - {code: rxorigincode, system: 'http://hl7.org/fhir/us/carin-bb/CodeSystem/C4BBSupportingInfoType'} schema: mustSupport: true index: 25 elements: category: mustSupport: true pattern: type: CodeableConcept value: coding: - {code: rxorigincode, system: 'http://hl7.org/fhir/us/carin-bb/CodeSystem/C4BBSupportingInfoType'} index: 26 code: binding: {strength: required, valueSet: 'http://hl7.org/fhir/us/carin-bb/ValueSet/NCPDPPrescriptionOriginCode'} mustSupport: true index: 27 required: [code] clmrecvddate: match: category: coding: - {code: clmrecvddate, system: 'http://hl7.org/fhir/us/carin-bb/CodeSystem/C4BBSupportingInfoType'} schema: mustSupport: true index: 28 elements: category: mustSupport: true pattern: type: CodeableConcept value: coding: - {code: clmrecvddate, system: 'http://hl7.org/fhir/us/carin-bb/CodeSystem/C4BBSupportingInfoType'} index: 29 timing: mustSupport: true choices: [timingDate] index: 31 timingDate: {type: date, mustSupport: true, choiceOf: timing, index: 32} required: [timingDate, timing] compoundcode: match: category: coding: - {code: compoundcode, system: 'http://hl7.org/fhir/us/carin-bb/CodeSystem/C4BBSupportingInfoType'} schema: mustSupport: true index: 33 elements: category: mustSupport: true pattern: type: CodeableConcept value: coding: - {code: compoundcode, system: 'http://hl7.org/fhir/us/carin-bb/CodeSystem/C4BBSupportingInfoType'} index: 34 code: binding: {strength: required, valueSet: 'http://hl7.org/fhir/us/carin-bb/ValueSet/NCPDPCompoundCode'} mustSupport: true index: 35 required: [code] payment: elements: date: {mustSupport: true, index: 61} item: elements: productOrService: binding: {strength: required, valueSet: 'http://hl7.org/fhir/us/carin-bb/ValueSet/FDANDCOrCompound'} mustSupport: true index: 36 serviced: mustSupport: true choices: [] index: 38 quantity: {mustSupport: true, index: 39} adjudication: mustSupport: true index: 40 elements: category: binding: {strength: required, valueSet: 'http://hl7.org/fhir/us/carin-bb/ValueSet/C4BBAdjudicationCategoryDiscriminator'} index: 41 slicing: rules: closed ordered: false description: Slice based on value pattern discriminator: - {path: category, type: pattern} min: 1 slices: adjudicationamounttype: match: {category: null} schema: mustSupport: true array: true min: 1 _required: true index: 42 elements: category: binding: {strength: required, valueSet: 'http://hl7.org/fhir/us/carin-bb/ValueSet/C4BBAdjudication'} index: 43 amount: {mustSupport: true, index: 44} required: [amount] denialreason: match: category: coding: - {code: denialreason, system: 'http://hl7.org/fhir/us/carin-bb/CodeSystem/C4BBAdjudicationDiscriminator'} schema: mustSupport: true index: 45 elements: category: pattern: type: CodeableConcept value: coding: - {code: denialreason, system: 'http://hl7.org/fhir/us/carin-bb/CodeSystem/C4BBAdjudicationDiscriminator'} index: 46 reason: binding: {strength: required, valueSet: 'http://hl7.org/fhir/us/carin-bb/ValueSet/NCPDPRejectCode'} mustSupport: true index: 47 required: [reason] detail: mustSupport: true index: 48 elements: productOrService: binding: {strength: required, valueSet: 'http://hl7.org/fhir/us/carin-bb/ValueSet/FDANationalDrugCode'} mustSupport: true index: 49 quantity: {mustSupport: true, index: 50} required: [adjudication] type: pattern: type: CodeableConcept value: coding: - {code: pharmacy, system: 'http://terminology.hl7.org/CodeSystem/claim-type'} index: 1 created: {mustSupport: true, index: 2} total: array: true min: 2 index: 52 elements: category: binding: {strength: extensible, valueSet: 'http://hl7.org/fhir/us/carin-bb/ValueSet/C4BBTotalCategoryDiscriminator'} mustSupport: true index: 53 amount: {mustSupport: true, index: 54} slicing: rules: open ordered: false description: Slice based on value pattern discriminator: - {path: category, type: pattern} min: 2 slices: adjudicationamounttype: match: {category: null} schema: mustSupport: true array: true min: 1 _required: true index: 55 elements: category: binding: {strength: required, valueSet: 'http://hl7.org/fhir/us/carin-bb/ValueSet/C4BBAdjudication'} index: 56 amount: {mustSupport: true, index: 57} benefitpaymentstatus: match: {category: null} schema: mustSupport: true _required: true index: 58 elements: category: binding: {strength: required, valueSet: 'http://hl7.org/fhir/us/carin-bb/ValueSet/C4BBPayerBenefitPaymentStatus'} index: 59 amount: {mustSupport: true, index: 60} careTeam: constraint: EOB-pharm-careTeam-practitioner: human: 'Pharmacy EOB: Careteam roles refer to a practitioner' source: http://hl7.org/fhir/us/carin-bb/StructureDefinition/C4BB-ExplanationOfBenefit-Pharmacy severity: error expression: |- ( role.where(coding.where(code in ('primary' | 'prescribing' )).exists()).exists() implies role.where(coding.where(code in ('primary' | 'prescribing' )).exists()).exists().provider.all(resolve() is Organization) ) EOB-pharm-careTeam-organization: human: 'Pharmacy EOB: Careteam roles refer to an organization' source: http://hl7.org/fhir/us/carin-bb/StructureDefinition/C4BB-ExplanationOfBenefit-Pharmacy severity: error expression: |- ( role.where(coding.where(code in ('performing' )).exists()).exists() implies role.where(coding.where(code in ('performing' )).exists()).exists().provider.all(resolve() is Organization) ) index: 3 elements: role: binding: {strength: required, valueSet: 'http://hl7.org/fhir/us/carin-bb/ValueSet/C4BBClaimPharmacyTeamRole'} index: 4 required: [role] package_version: bb-1.1.0 class: profile kind: resource url: http://hl7.org/fhir/us/carin-bb/StructureDefinition/C4BB-ExplanationOfBenefit-Pharmacy base: http://hl7.org/fhir/us/carin-bb/StructureDefinition/C4BB-ExplanationOfBenefit version: 1.1.0