Generated Narrative with Details
id: example
status: final
category: Vital Signs (Details : {http://hl7.org/fhir/observation-category code 'vital-signs' = 'Vital Signs', given as 'Vital Signs'})
code: Body Weight (Details : {LOINC code '29463-7' = 'Body weight', given as 'Body Weight'}; {LOINC code '3141-9' = 'Body weight Measured', given as 'Body weight Measured'}; {SNOMED CT code '27113001' = 'Body weight', given as 'Body weight'}; {http://acme.org/devices/clinical-codes code 'body-weight' = 'body-weight', given as 'Body Weight'})
subject: Patient/example
context: Encounter/example
effective: 28/03/2016
value: 185 lbs (Details: UCUM code [lb_av] = 'lb_av')
", "div"));
- res.setStatus(ObservationStatus.FINAL);
- CodeableConcept cc = res.addCategory();
- Coding c = cc.addCoding();
- c.setSystem("http://hl7.org/fhir/observation-category");
- c.setCode("vital-signs");
- c.setDisplay("Vital Signs");
- cc = new CodeableConcept();
- res.setCode(cc);
- c = cc.addCoding();
- c.setSystem("http://loinc.org");
- c.setCode("29463-7");
- c.setDisplay("Body Weight");
- c = cc.addCoding();
- c.setSystem("http://loinc.org");
- c.setCode("3141-9");
- c.setDisplay("Body weight Measured");
- c = cc.addCoding();
- c.setSystem("http://snomed.info/sct");
- c.setCode("27113001");
- c.setDisplay("Body weight");
- c = cc.addCoding();
- c.setSystem("http://acme.org/devices/clinical-codes");
- c.setCode("body-weight");
- c.setDisplay("Body Weight");
- Reference r = new Reference();
- res.setSubject(r);
- r.setReference("Patient/example");
- r = new Reference();
- res.setEncounter(r);
- r.setReference("Encounter/example");
- res.setEffective(new DateTimeType("2016-03-28"));
- Quantity q = new Quantity();
- res.setValue(q);
- q.setValue(185);
- q.setUnit("lbs");
- q.setSystem("http://unitsofmeasure.org");
- q.setCode("[lb_av]");
+ Observation res = new Observation();
+ res.setId("example");
+ Narrative n = new Narrative();
+ res.setText(n);
+ n.setStatus(NarrativeStatus.GENERATED);
+ n.setDiv(new XhtmlParser().parse("Generated Narrative with Details
id: example
status: final
category: Vital Signs (Details : {http://hl7.org/fhir/observation-category code 'vital-signs' = 'Vital Signs', given as 'Vital Signs'})
code: Body Weight (Details : {LOINC code '29463-7' = 'Body weight', given as 'Body Weight'}; {LOINC code '3141-9' = 'Body weight Measured', given as 'Body weight Measured'}; {SNOMED CT code '27113001' = 'Body weight', given as 'Body weight'}; {http://acme.org/devices/clinical-codes code 'body-weight' = 'body-weight', given as 'Body Weight'})
subject: Patient/example
context: Encounter/example
effective: 28/03/2016
value: 185 lbs (Details: UCUM code [lb_av] = 'lb_av')
", "div"));
+ res.setStatus(ObservationStatus.FINAL);
+ CodeableConcept cc = res.addCategory();
+ Coding c = cc.addCoding();
+ c.setSystem("http://hl7.org/fhir/observation-category");
+ c.setCode("vital-signs");
+ c.setDisplay("Vital Signs");
+ cc = new CodeableConcept();
+ res.setCode(cc);
+ c = cc.addCoding();
+ c.setSystem("http://loinc.org");
+ c.setCode("29463-7");
+ c.setDisplay("Body Weight");
+ c = cc.addCoding();
+ c.setSystem("http://loinc.org");
+ c.setCode("3141-9");
+ c.setDisplay("Body weight Measured");
+ c = cc.addCoding();
+ c.setSystem("http://snomed.info/sct");
+ c.setCode("27113001");
+ c.setDisplay("Body weight");
+ c = cc.addCoding();
+ c.setSystem("http://acme.org/devices/clinical-codes");
+ c.setCode("body-weight");
+ c.setDisplay("Body Weight");
+ Reference r = new Reference();
+ res.setSubject(r);
+ r.setReference("Patient/example");
+ r = new Reference();
+ res.setEncounter(r);
+ r.setReference("Encounter/example");
+ res.setEffective(new DateTimeType("2016-03-28"));
+ Quantity q = new Quantity();
+ res.setValue(q);
+ q.setValue(185);
+ q.setUnit("lbs");
+ q.setSystem("http://unitsofmeasure.org");
+ q.setCode("[lb_av]");
+
-
}
}
diff --git a/org.hl7.fhir.r4/src/test/java/org/hl7/fhir/r4/test/GraphQLEngineTests.java b/org.hl7.fhir.r4/src/test/java/org/hl7/fhir/r4/test/GraphQLEngineTests.java
index 4aa667fa8..474cacbf3 100644
--- a/org.hl7.fhir.r4/src/test/java/org/hl7/fhir/r4/test/GraphQLEngineTests.java
+++ b/org.hl7.fhir.r4/src/test/java/org/hl7/fhir/r4/test/GraphQLEngineTests.java
@@ -9,7 +9,6 @@ import org.hl7.fhir.r4.model.Bundle.BundleEntryComponent;
import org.hl7.fhir.r4.model.Bundle.BundleLinkComponent;
import org.hl7.fhir.r4.model.Bundle.SearchEntryMode;
import org.hl7.fhir.r4.model.DomainResource;
-import org.hl7.fhir.r4.model.Reference;
import org.hl7.fhir.r4.model.Resource;
import org.hl7.fhir.r4.test.utils.TestingUtilities;
import org.hl7.fhir.r4.utils.GraphQLEngine;
@@ -20,10 +19,10 @@ import org.hl7.fhir.utilities.graphql.IGraphQLStorageServices;
import org.hl7.fhir.utilities.graphql.NameValue;
import org.hl7.fhir.utilities.graphql.Parser;
import org.hl7.fhir.utilities.xml.XMLUtil;
-import org.junit.Test;
-import org.junit.runner.RunWith;
-import org.junit.runners.Parameterized;
-import org.junit.runners.Parameterized.Parameters;
+import org.junit.jupiter.api.Disabled;
+import org.junit.jupiter.params.ParameterizedTest;
+import org.junit.jupiter.params.provider.Arguments;
+import org.junit.jupiter.params.provider.MethodSource;
import org.w3c.dom.Document;
import org.w3c.dom.Element;
import org.xml.sax.SAXException;
@@ -35,52 +34,37 @@ import java.io.FileNotFoundException;
import java.io.IOException;
import java.util.ArrayList;
import java.util.List;
+import java.util.stream.Stream;
import static org.junit.Assert.assertTrue;
-@RunWith(Parameterized.class)
+@Disabled
public class GraphQLEngineTests implements IGraphQLStorageServices {
- @Parameters(name = "{index}: {0}")
- public static Iterable