Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Incorrect FHIRPath in Explanation of Benefit Medicare inv-dh-eob-01, -02 and -04 #4

Closed
3 tasks done
RichardTON opened this issue Mar 23, 2021 · 3 comments
Closed
3 tasks done
Labels
2.1.0 To fix in 2.1.0 bug Something isn't working

Comments

@RichardTON
Copy link
Member

RichardTON commented Mar 23, 2021

Prerequisites

  • I have verified the problem exists in the available content
  • I have searched open and closed issues to make sure it isn't already reported
  • I have written a descriptive issue title

The bug

The invariants

inv-dh-eob-01: A PBS or RPBS claim SHALL include a prescription. (: (item.category.coding.code='pbs' or item.category.coding.code='rpbs') implies prescription.exists())

inv-dh-eob-02: A MBS or DVABS claim SHALL NOT include a prescription. (: (item.category.coding.code='mbs' or item.category.coding.code='dva') implies prescription.exists().not())

inv-dh-eob-04: A PBS claim (subType='pbs') SHALL be of type 'Pharmacy' (type='pharmacy'). (: subType.coding.code='pbs' implies type.coding.code='pharmacy')

fail for valid examples. In the FHIRPath expressions the antecedents are always true, so e.g.

  • a PBS claim with item.category.coding.code of 'pbs' with a prescription and no type, fails against invariant inv-dh-eob-04
  • a PBS claim with subType of 'pbs' and no item.category fails against invariant inv-dh-eob-02
  • an MBS claim with subType of 'mbs' and no item.category fails against invariant inv-dh-eob-01

What I expected to happen

Correct the FHIRPath for all invariants.

Workarounds

Do not validate against the profile.

@RichardTON RichardTON changed the title In Explanation of Benefit Medicare inv-dh-eob-01 and -2 have incorrect FHIRPath expressions Incorrect FHIRPath in Explanation of Benefit Medicare inv-dh-eob-01 and -2 Mar 23, 2021
@dbojicic-agency dbojicic-agency added the bug Something isn't working label Mar 25, 2021
@RichardTON RichardTON changed the title Incorrect FHIRPath in Explanation of Benefit Medicare inv-dh-eob-01 and -2 Incorrect FHIRPath in Explanation of Benefit Medicare inv-dh-eob-01, -02 and -04 Mar 25, 2021
@dtr-agency
Copy link
Contributor

dtr-agency commented Mar 11, 2022

I think we need to tighten up not loosen - the claim content comes solely from one system and the metadata for type, category, subType needs to be made consistent.

I don't think the examples should be considered valid.

@dtr-agency
Copy link
Contributor

At least one of two optional elements (subType or item.category) are required to be present to indicate the type of claim, i.e. MBS/DVA or PBS/RPBS. This design control is enforced by inv-dh-eob-03.

The other invariants that drive behaviour from claim type have only included one element. The existing invariants need to be refactored to include the use of both elements.

Future design to tighten controls to force both.

@dtr-agency
Copy link
Contributor

dtr-agency commented Jun 30, 2022

Future design handled in ADHA FHIR implementation guide: AuDigitalHealth/ci-fhir-r4#143.

@dtr-agency dtr-agency added the 2.1.0 To fix in 2.1.0 label Aug 16, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
2.1.0 To fix in 2.1.0 bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants