Ensure StructureMap.status
is Included in JSON Conversion of SM
#333
Labels
StructureMap.status
is Included in JSON Conversion of SM
#333
Problem
Currently, the JSON conversion of a StructureMap does not include the
status
field. This field should be populated based on thePublicationStatus
fromFHIR R4
, ensuring it correctly reflects whether the structure map isdraft
oractive
.Expected Behavior
When converting a StructureMap to JSON, the
status
field should be included.The status should be derived from
PublicationStatus
(draft
oractive
).The
JSON output
should always contain a validstatus
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.
The text was updated successfully, but these errors were encountered: