-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Support getting definitions with a version Support passing in a |version along with an id/name/url when getting definitions. If the version does not match the specified version, don't return the definition. * When fishing with a version, only return definition if it has a version and it matches
- Loading branch information
Showing
4 changed files
with
157 additions
and
12 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
49 changes: 49 additions & 0 deletions
49
test/testhelpers/testdefs/r4-definitions/package/StructureDefinition-SimpleProfile.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,49 @@ | ||
{ | ||
"resourceType": "StructureDefinition", | ||
"id": "SimpleProfile", | ||
"url": "http://example.org/StructureDefinition/SimpleProfile", | ||
"version": "1.0.0|a", | ||
"name": "SimpleProfile", | ||
"status": "active", | ||
"fhirVersion": "4.0.1", | ||
"mapping": [ | ||
{ | ||
"identity": "rim", | ||
"uri": "http://hl7.org/v3", | ||
"name": "RIM Mapping" | ||
}, | ||
{ | ||
"identity": "cda", | ||
"uri": "http://hl7.org/v3/cda", | ||
"name": "CDA (R2)" | ||
}, | ||
{ | ||
"identity": "w5", | ||
"uri": "http://hl7.org/fhir/fivews", | ||
"name": "FiveWs Pattern Mapping" | ||
}, | ||
{ | ||
"identity": "v2", | ||
"uri": "http://hl7.org/v2", | ||
"name": "HL7 v2 Mapping" | ||
}, | ||
{ | ||
"identity": "loinc", | ||
"uri": "http://loinc.org", | ||
"name": "LOINC code for the element" | ||
} | ||
], | ||
"kind": "resource", | ||
"abstract": false, | ||
"type": "Patient", | ||
"baseDefinition": "http://hl7.org/fhir/StructureDefinition/Patient", | ||
"derivation": "constraint", | ||
"differential": { | ||
"element": [ | ||
{ | ||
"id": "Patient", | ||
"path": "Patient" | ||
} | ||
] | ||
} | ||
} |
48 changes: 48 additions & 0 deletions
48
...sthelpers/testdefs/r4-definitions/package/StructureDefinition-SimpleProfileNoVersion.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,48 @@ | ||
{ | ||
"resourceType": "StructureDefinition", | ||
"id": "SimpleProfileNoVersion", | ||
"url": "http://example.org/StructureDefinition/SimpleProfileNoVersion", | ||
"name": "SimpleProfileNoVersion", | ||
"status": "active", | ||
"fhirVersion": "4.0.1", | ||
"mapping": [ | ||
{ | ||
"identity": "rim", | ||
"uri": "http://hl7.org/v3", | ||
"name": "RIM Mapping" | ||
}, | ||
{ | ||
"identity": "cda", | ||
"uri": "http://hl7.org/v3/cda", | ||
"name": "CDA (R2)" | ||
}, | ||
{ | ||
"identity": "w5", | ||
"uri": "http://hl7.org/fhir/fivews", | ||
"name": "FiveWs Pattern Mapping" | ||
}, | ||
{ | ||
"identity": "v2", | ||
"uri": "http://hl7.org/v2", | ||
"name": "HL7 v2 Mapping" | ||
}, | ||
{ | ||
"identity": "loinc", | ||
"uri": "http://loinc.org", | ||
"name": "LOINC code for the element" | ||
} | ||
], | ||
"kind": "resource", | ||
"abstract": false, | ||
"type": "Patient", | ||
"baseDefinition": "http://hl7.org/fhir/StructureDefinition/Patient", | ||
"derivation": "constraint", | ||
"differential": { | ||
"element": [ | ||
{ | ||
"id": "Patient", | ||
"path": "Patient" | ||
} | ||
] | ||
} | ||
} |