fix test error + add files conventions
This commit is contained in:
parent
84e55aa825
commit
c2427096ca
|
@ -14,8 +14,8 @@ public class MedicationRequest10_40Test {
|
||||||
@Test
|
@Test
|
||||||
@DisplayName("Test 10_40 MedicationRequest conversion")
|
@DisplayName("Test 10_40 MedicationRequest conversion")
|
||||||
public void testMedicationRequestConversion() throws IOException {
|
public void testMedicationRequestConversion() throws IOException {
|
||||||
InputStream dstu2_input = this.getClass().getResourceAsStream("/example_medication_request_10.json");
|
InputStream dstu2_input = this.getClass().getResourceAsStream("/0_medication_request_10.json");
|
||||||
InputStream r4_exepected_input = this.getClass().getResourceAsStream("/example_medication_request_40.json");
|
InputStream r4_exepected_input = this.getClass().getResourceAsStream("/0_medication_request_40.json");
|
||||||
|
|
||||||
org.hl7.fhir.dstu2.model.MedicationOrder dstu2 = (org.hl7.fhir.dstu2.model.MedicationOrder) new org.hl7.fhir.dstu2.formats.JsonParser().parse(dstu2_input);
|
org.hl7.fhir.dstu2.model.MedicationOrder dstu2 = (org.hl7.fhir.dstu2.model.MedicationOrder) new org.hl7.fhir.dstu2.formats.JsonParser().parse(dstu2_input);
|
||||||
VersionConvertorAdvisor40 advisor = new IGR2ConvertorAdvisor();
|
VersionConvertorAdvisor40 advisor = new IGR2ConvertorAdvisor();
|
||||||
|
|
|
@ -12,7 +12,7 @@
|
||||||
"display": "amitriptyline 10 MG tablet"},
|
"display": "amitriptyline 10 MG tablet"},
|
||||||
"subject": {"reference": "https://open-ic.epic.com/Argonaut/api/FHIR/DSTU2/Patient/Tbt3KuCY0B5PSrJvCu2j-PlK.aiHsu2xUjUM8bWpetXoB",
|
"subject": {"reference": "https://open-ic.epic.com/Argonaut/api/FHIR/DSTU2/Patient/Tbt3KuCY0B5PSrJvCu2j-PlK.aiHsu2xUjUM8bWpetXoB",
|
||||||
"display": "Jason Argonaut"},
|
"display": "Jason Argonaut"},
|
||||||
"authoredOn": "2016-11-13T00:00:00+02:00",
|
"authoredOn": "2016-11-13T00:00:00",
|
||||||
"requester": {"reference": "https://open-ic.epic.com/Argonaut/api/FHIR/DSTU2/Practitioner/T-kmjPGEVPAmnBfmx56HsKgB",
|
"requester": {"reference": "https://open-ic.epic.com/Argonaut/api/FHIR/DSTU2/Practitioner/T-kmjPGEVPAmnBfmx56HsKgB",
|
||||||
"display": "Historical Provider, MD"},
|
"display": "Historical Provider, MD"},
|
||||||
"dosageInstruction": [{"text": "Take 10 mg by mouth nightly.",
|
"dosageInstruction": [{"text": "Take 10 mg by mouth nightly.",
|
Loading…
Reference in New Issue