FHIR Chat · Error with MedicationStatement · australia

Stream: australia

Topic: Error with MedicationStatement


view this post on Zulip Shovan Roy (Jan 23 2020 at 21:26):

Hi All,

I'm using AU MedicationStatement (http://hl7.org.au/fhir/base/aubase1.1/StructureDefinition-au-medicationstatement.html) Profile to create a profile for Vitamin K. The AU MedicationStatement profile has slices on 'medication[x]:medicationCodeableConcept' with fixed 'system' url. I've added additional constraint on it and included a fixed code (66656000) in the amt slice. I'm getting the following error after that. Here is the link for my profile: http://build.fhir.org/ig/hl7au/au-fhir-childhealth/StructureDefinition-ncdhc-medicationstatement-vitamink.html
Any suggestion how to resolve this?
pasted image

StructureDefinition profile http://hl7.org.au/fhir/ch/v1/StructureDefinition/ncdhc-medicationstatement-vitamink: Differential contains path MedicationStatement.medication[x].coding which is actually Element.coding, which is not found in the base

http://hl7.org.au/fhir/ch/v1/StructureDefinition/ncdhc-medicationstatement-vitamink error StructureDefinition profile http://hl7.org.au/fhir/ch/v1/StructureDefinition/ncdhc-medicationstatement-vitamink: Differential contains path MedicationStatement.medication[x].coding.code which is actually Element.coding.code, which is not found in the base

Looping in @Brett Esler @Richard Townley-O'Neill

@Grahame Grieve , I didn't see this error with IG Publisher version 1.0.44. Is this something new?Error with AU Me

view this post on Zulip Grahame Grieve (Jan 27 2020 at 08:32):

hmm. so I pulled it out as a unit test, and the snapshot seems to be generated ok - can you check the profiles in this commit and tell me if you think they are correct as a test for that reported problem above?

view this post on Zulip Grahame Grieve (Jan 27 2020 at 08:32):

https://github.com/FHIR/fhir-test-cases/commit/52184577e47bf6c888d688ba3aaca21734ec9744

view this post on Zulip Shovan Roy (Jan 27 2020 at 08:54):

@Grahame Grieve yes, the commit looks correct to me for test.

view this post on Zulip Brett Esler (Jan 27 2020 at 23:44):

@Shovan - are there changes needed in AU base?

view this post on Zulip Shovan Roy (Jan 28 2020 at 02:36):

@Brett Esler I think the issue is still open. @Grahame Grieve fyi.. just to keep you posted.. I've taken the SDs for au-medicationstatement and au-med-k from https://github.com/FHIR/fhir-test-cases/commit/52184577e47bf6c888d688ba3aaca21734ec9744 and run it at my local. I got the following errors:
pasted image

view this post on Zulip Grahame Grieve (Jan 29 2020 at 23:07):

wasn't quite correct. fixed next release

view this post on Zulip Shovan Roy (Jan 30 2020 at 02:39):

it looks like the issue with Meds is now resolved with v1.0.52-SNAPSHOT IG build. thanks @Grahame Grieve


Last updated: Apr 12 2022 at 19:14 UTC