Instead of defining the whole CodeSystem inline (which SUSHI currently errors on, see SUSHI#1404), it should probably create a separate Instance w/ Usage: #inline.
Since contained.concept is not a code/Coding/CodeableConcept, I don't think it's valid to assign a FSH code (and SUSHI rightfully complains). If using Instance/caret syntax for contained.concept, the code and display need to be assigned separately.
SUSHI doesn't handle include codes from system #example-codesystem well (due to the #). SUSHI probably should handle this, but we need to track SUSHI#1403 and only export the # if SUSHI supports it. It may be better practice to just export the id (although SUSHI also doesn't handle this correctly per SUSHI#1402).
Given:
GoFSH produces:
There are multiple issues with this:
Instance
w/Usage: #inline
.contained.concept
is not acode/Coding/CodeableConcept
, I don't think it's valid to assign a FSH code (and SUSHI rightfully complains). If usingInstance
/caret
syntax forcontained.concept
, thecode
anddisplay
need to be assigned separately.include codes from system #example-codesystem
well (due to the#
). SUSHI probably should handle this, but we need to track SUSHI#1403 and only export the#
if SUSHI supports it. It may be better practice to just export the id (although SUSHI also doesn't handle this correctly per SUSHI#1402).