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

Ensure StructureMap.status is Included in JSON Conversion of SM #333

Open
3 tasks
sharon2719 opened this issue Jan 30, 2025 · 0 comments
Open
3 tasks

Ensure StructureMap.status is Included in JSON Conversion of SM #333

sharon2719 opened this issue Jan 30, 2025 · 0 comments
Assignees
Labels

Comments

@sharon2719
Copy link
Contributor

Problem

Currently, the JSON conversion of a StructureMap does not include the status field. This field should be populated based on the PublicationStatus from FHIR R4, ensuring it correctly reflects whether the structure map is draft or active.

Expected Behavior

  • When converting a StructureMap to JSON, the status field should be included.

  • The status should be derived from PublicationStatus (draft or active).

  • The JSON output should always contain a valid status value.

Solution

Update the JSON conversion logic to extract PublicationStatus and map it to StructureMap.status.

Ensure the field is always present in the JSON output.

Add a test case to verify that status is correctly assigned during conversion.

@sharon2719 sharon2719 self-assigned this Jan 30, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant