Stream: shorthand
Topic: Constraining a parent
David Hay (Apr 20 2020 at 03:43):
Creating a constrained profile against a parent, sushi is complaining (No element found at path reaction.substance.coding[snomedSubstance] ) about this line:
- reaction.substance.coding[snomedSubstance] MS
where snomedSubstance is a slice name defined in the parent http://hl7.org.au/fhir/StructureDefinition/au-allergyintolerance
David Hay (Apr 20 2020 at 03:44):
here's the header info:
Profile: AUPrimaryCareAllergyIntolerance Parent: http://hl7.org.au/fhir/StructureDefinition/au-allergyintolerance Id: AUPrimaryCareAllergyIntolerance
Nick Freiter (Apr 20 2020 at 12:44):
I tried to recreate this but wasn't able to. SUSHI seemed to be able to find the path when I gave it a try. What do your dependencies
look like in the package.json for SUSHI? Maybe I somehow used a different version or something.
David Hay (Apr 20 2020 at 18:48):
What fsh did you use?
Nick Freiter (Apr 20 2020 at 19:08):
This is the FSH I used:
Profile: AUPrimaryCareAllergyIntolerance Parent: http://hl7.org.au/fhir/StructureDefinition/au-allergyintolerance Id: AUPrimaryCareAllergyIntolerance * reaction.substance.coding[snomedSubstance] MS
David Hay (Apr 20 2020 at 19:11):
Interesting - I still get the error with that FSH. Here's my package.json - any clues?
{ "name": "au.csiro.fhir.au-primarycare", "version": "0.0.3", "canonical": "https://aehrc.com/fhir", "title": "Primary Care Practice-to-Practice", "dependencies": { "hl7.fhir.r4.core": "4.0.1", "hl7.fhir.au.base": "current" }, "keywords": [ "Primary Care", "terminology", "IG" ], "language": "en", "author": "CSIRO", "license": "CC0-1.0" }
Nick Freiter (Apr 20 2020 at 19:33):
It looks like the current
version of the hl7.fhir.au.base
package contains an AU Allergy Intolerance profile that does not contain that snomedSubstance
slice. If you examine this profile: http://build.fhir.org/ig/hl7au/au-fhir-base-stu3/StructureDefinition-au-allergyintolerance.html, you will see that there is no slice. This version: http://hl7.org.au/fhir/StructureDefinition-au-allergyintolerance.html does seem have the snomedSubstance
slice, and this does look to be the most recent published version. But when you specify the current
keyword, SUSHI will retrieve the most recent package by the name hl7.fhir.au.base
that is on build.fhir.org, which is the package containing the profile given by the first link.
David Hay (Apr 20 2020 at 20:04):
Ah. I was looking at the version that had the slice, and getting confused as sushi wasn't finding it! Will take it up with the authors of au base... thanks for your help...
David Hay (Apr 20 2020 at 20:11):
Interestingly, had I looked at the version in the cache, I might have worked this out earlier. Hindsight is a wonderful thin, isn't it?
Last updated: Apr 12 2022 at 19:14 UTC