HL7 / fhir-shorthand

FHIR Shorthand
44 stars 8 forks source link

Having a keyword for the default slice #183

Open nriss opened 4 months ago

nriss commented 4 months ago

Hi everyone!

I am trying to generate a FHIR instance from a profile, and when trying to add a Practitioner.telecom element, I have this warning message : "Sliced element Practitioner.telecom is being accessed via numeric index. Use slice names in rule paths when possible."

I don't want to use a defined slice but the default slice, is it possible to have a default slice keyword, something like that, to avoid this warning ?

see https://github.com/ansforge/IG-fhir-annuaire/blob/110-creation-exemples/input/fsh/examples/DP/PP16DP-Practitioner.fsh

Thanks for your help!

mint-thompson commented 4 months ago

Thank you for reporting this. While this may eventually result in a change to the FSH spec, this is also something that could be handled better by SUSHI. I've created an issue for SUSHI to track this: https://github.com/FHIR/sushi/issues/1490.