FHIR / GoFSH

GoFSH is a FHIR Shorthand (FSH) decompiler, able to convert formal FHIR definitions from JSON/XML to FSH.
Apache License 2.0
35 stars 5 forks source link

Extract rules for Invariants. Use keyword for Invariant description, rules for everything else #251

Closed mint-thompson closed 10 months ago

mint-thompson commented 12 months ago

Fixes #235 and completes task CIMPL-1164.

When extracting an Invariant, create assignment rules for properties that are not represented using keywords. Use the same functions as the InstanceProcessor for this. Add the paths for these elements to the returned list of paths so that caret rules will not be created for these elements.

When producing FSH for an Invariant, use the Description keyword for the description element. For all other metadata elements, use assignment rules instead. These rules will always come before any other rules on the Invariant.