Open
Description
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
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.