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

Refactor au-core-medreq-03 (FHIR-46498, FHIR-48362) #260

Open
wants to merge 20 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from 10 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion input/pagecontent/changes.md
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ This change log documents the significant updates and resolutions implemented fr
- removed Must Support from MedicationRequest.substitution, MedicationRequest.substitution.allowed[x] [FHIR-45088](https://jira.hl7.org/browse/FHIR-45088)
- added Must Support to MedicationRequest.reasonReference [FHIR-45090](https://jira.hl7.org/browse/FHIR-45090)
- support for AMT codes and PBS Item Codes in MedicationRequest.medicationCodeableConcept changed to define slicing in AU Core (no longer inherited from AU Base as per [FHIR-44821](https://jira.hl7.org/browse/FHIR-44821)). Slicing discriminator changed from slicing by value:system to slicing by value set and the binding strength has been corrected to required. [FHIR-46391](https://jira.hl7.org/browse/FHIR-46391)
- updated invariant au-core-medreq-03 to allow for a Data Absent Reason extension in order to meet AU Core Missing Data and Suppressed Data requirements, and changed the length check from >= 10 to >= 8 to match required precision to the day [FHIR-46417](https://jira.hl7.org/browse/FHIR-46417)
- updated invariant au-core-medreq-03 to allow for a Data Absent Reason extension in order to meet AU Core Missing Data and Suppressed Data requirements [FHIR-46417](https://jira.hl7.org/browse/FHIR-46417)
- Made the following changes to AU Core Medication:
- removal of Must Support from Medication.manufacturer [FHIR-45130](https://jira.hl7.org/browse/FHIR-45130)
- removed Must Support from Medication.form [FHIR-45221](https://jira.hl7.org/browse/FHIR-45221)
Expand Down
2 changes: 1 addition & 1 deletion input/resources/au-core-medicationrequest.xml
Original file line number Diff line number Diff line change
Expand Up @@ -248,7 +248,7 @@
<key value="au-core-medreq-03"/>
<severity value="error"/>
<human value="Date shall be precise to the day or, if not available, the Data Absent Reason extension shall be present"/>
<expression value="(toString().length() &gt;= 8) xor extension('http://hl7.org/fhir/StructureDefinition/data-absent-reason').exists()"/>
<expression value="(value.exists() implies value.toString().length() &gt;= 10) and (value.empty() implies extension('http://hl7.org/fhir/StructureDefinition/data-absent-reason').exists()) and (value.exists() xor extension('http://hl7.org/fhir/StructureDefinition/data-absent-reason').exists())"/>
<xpath value="(f:matches(f:effectiveDateTime, /\d{4}-[01]\d-[0-3]\dT[0-2]\d:[0-5]\d([+-][0-2]\d:[0-5]\d|Z)) and not(exists(f:extension[@url='http://hl7.org/fhir/StructureDefinition/data-absent-reason']))) or (not(f:matches(f:effectiveDateTime, /\d{4}-[01]\d-[0-3]\dT[0-2]\d:[0-5]\d([+-][0-2]\d:[0-5]\d|Z))) and exists(f:extension[@url='http://hl7.org/fhir/StructureDefinition/data-absent-reason']))"/>
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

please update xpath to match the updated expression.

Copy link
Collaborator

@dbojicic dbojicic Oct 25, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I am not convinced this is the solution. Could not get it to work with FHIRPath Lab either.
I've raised a question in Zulip: MedicationRequest.authoredOn allow precise date or DAR ext; @JayMurdoch, could you please follow up if there is no response by early next week?

<source value="http://hl7.org.au/fhir/core/StructureDefinition/au-core-medicationrequest"/>
</constraint>
Expand Down