-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Process ValueSet that uses components from a contained system (#275)
When a ValueSet component references a contained system, the valueset-system extension should be present at compose.system.extension. When it is present, it is safe to throw it out, since SUSHI will add it back in automatically. When it is removed, also remove the extension list and containing underscore property if those become empty. This will often allow the input to be processed as a ValueSet.
- Loading branch information
1 parent
7011bfc
commit e6b0082
Showing
3 changed files
with
118 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
65 changes: 65 additions & 0 deletions
65
test/processor/fixtures/valueset-with-contained-codesystem.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,65 @@ | ||
{ | ||
"resourceType": "ValueSet", | ||
"id": "example-valueset", | ||
"name": "ValueSetWithContainedSystem", | ||
"contained": [ | ||
{ | ||
"resourceType": "CodeSystem", | ||
"id": "example-codesystem", | ||
"url": "http://example.org/codesystem", | ||
"version": "1.0.0", | ||
"content": "complete", | ||
"status": "active", | ||
"concept": [ | ||
{ | ||
"code": "example-code-1", | ||
"display": "Example Code 1" | ||
}, | ||
{ | ||
"code": "example-code-2", | ||
"display": "Example Code 2" | ||
}, | ||
{ | ||
"code": "example-code-3", | ||
"display": "Example Code 3" | ||
} | ||
] | ||
} | ||
], | ||
"url": "http://example.org/valueset", | ||
"version": "1.0.0", | ||
"status": "active", | ||
"compose": { | ||
"include": [ | ||
{ | ||
"system": "http://example.org/codesystem", | ||
"_system": { | ||
"extension": [ | ||
{ | ||
"url": "http://hl7.org/fhir/StructureDefinition/valueset-system", | ||
"valueCanonical": "#example-codesystem" | ||
} | ||
] | ||
} | ||
} | ||
], | ||
"exclude": [ | ||
{ | ||
"system": "http://example.org/codesystem", | ||
"_system": { | ||
"extension": [ | ||
{ | ||
"url": "http://hl7.org/fhir/StructureDefinition/valueset-system", | ||
"valueCanonical": "#example-codesystem" | ||
} | ||
] | ||
}, | ||
"concept": [ | ||
{ | ||
"code": "example-code-2" | ||
} | ||
] | ||
} | ||
] | ||
} | ||
} |