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

Having a keyword for the default slice #183

Open
nriss opened this issue Jul 2, 2024 · 1 comment
Open

Having a keyword for the default slice #183

nriss opened this issue Jul 2, 2024 · 1 comment

Comments

@nriss
Copy link

nriss commented Jul 2, 2024

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 ?

  • telecom[default]
    • system = #phone
    • value = "0612122216"
    • rank = 1

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
Copy link
Collaborator

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: FHIR/sushi#1490.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants