-
Notifications
You must be signed in to change notification settings - Fork 43
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Use name and description extensions to set values in generated IG (#666)
* Use name and description extensions to set values in generated IG * Filter resources based on conformance and terminology resources * Use valueMarkdown instead of string for description
- Loading branch information
Showing
7 changed files
with
179 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -73,6 +73,7 @@ export type Element = { | |
*/ | ||
export type Extension = { | ||
url: string; | ||
[key: string]: any; | ||
}; | ||
|
||
/** | ||
|
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
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
17 changes: 17 additions & 0 deletions
17
...res/customized-ig-with-resources/ig-data/input/examples/Patient-MetaExtensionPatient.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,17 @@ | ||
{ | ||
"resourceType": "Patient", | ||
"id": "MetaExtensionPatient", | ||
"meta": { | ||
"extension": [ | ||
{ | ||
"url": "http://hl7.org/fhir/StructureDefinition/instance-description", | ||
"valueMarkdown": "MetaExtension Patient Description" | ||
}, | ||
{ | ||
"url": "http://hl7.org/fhir/StructureDefinition/instance-name", | ||
"valueString": "MetaExtension Patient Name" | ||
} | ||
] | ||
}, | ||
"name": [{ "family": "MetaExtension" }] | ||
} |
17 changes: 17 additions & 0 deletions
17
.../customized-ig-with-resources/ig-data/input/resources/MetaExtensionNotExamplePatient.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,17 @@ | ||
{ | ||
"resourceType": "Patient", | ||
"id": "MetaExtensionNotExamplePatient", | ||
"meta": { | ||
"extension": [ | ||
{ | ||
"url": "http://hl7.org/fhir/StructureDefinition/instance-description", | ||
"valueMarkdown": "MetaExtensionNotExample Patient Description" | ||
}, | ||
{ | ||
"url": "http://hl7.org/fhir/StructureDefinition/instance-name", | ||
"valueString": "MetaExtensionNotExample Patient Name" | ||
} | ||
] | ||
}, | ||
"name": [{ "family": "MetaExtensionNotExample" }] | ||
} |
12 changes: 12 additions & 0 deletions
12
test/ig/fixtures/customized-ig-with-resources/ig-data/input/vocabulary/ValueSet-MyVS.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