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

SUSHI drops canonical version in profile Parent declarations #1553

Open
cmoesel opened this issue Jan 7, 2025 · 0 comments
Open

SUSHI drops canonical version in profile Parent declarations #1553

cmoesel opened this issue Jan 7, 2025 · 0 comments
Labels
bug Something isn't working good first issue Good for newcomers

Comments

@cmoesel
Copy link
Member

cmoesel commented Jan 7, 2025

Given:

Profile: AllergyIntolerance
Parent: http://hl7.org/fhir/us/core/StructureDefinition/us-core-allergyintolerance|5.0.1
* ^baseDefinition = "http://hl7.org/fhir/us/core/StructureDefinition/us-core-allergyintolerance|5.0.1"

SUSHI produces a StructureDefinition with:

"baseDefinition": "http://hl7.org/fhir/us/core/StructureDefinition/us-core-allergyintolerance",

Ideally, SUSHI should keep the |5.0.1 canonical version portion of the base definition.

A current workaround is to set the baseDefinition using a caret rule:

Profile: AllergyIntolerance
Parent: http://hl7.org/fhir/us/core/StructureDefinition/us-core-allergyintolerance|5.0.1
// Workaround to force |5.0.1 back into the baseDefinition canonical after SUSHI drops it.
// See: https://github.com/FHIR/sushi/issues/1553
* ^baseDefinition = "http://hl7.org/fhir/us/core/StructureDefinition/us-core-allergyintolerance|5.0.1"

FSH Online Link

@cmoesel cmoesel added bug Something isn't working good first issue Good for newcomers labels Jan 7, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working good first issue Good for newcomers
Projects
None yet
Development

No branches or pull requests

1 participant