Construct inline instances from within more FSH entity types #270
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Description:
Logical models, Resources, CodeSystems, and ValueSets are now checked for rules that could be used to define an inline instance. Since this means those entities will now contain rules that assign inline instances, check those entity types when simplifying instance names.
Testing Instructions:
Confirm that the new test cases demonstrate that inline instances are created for rules contained on the newly added FSH entity types. Confirm that the sample JSON in the related issue now results in an inline instance of CodeSystem. Note that a round trip will not be successful with the sample JSON, since
#example-codesystem
is not a value that should be used for referring to a contained CodeSystem. The correct output for this JSON is shown in FHIR/sushi#1520.Related Issue:
Fixes #252