Refactor project to use external testcases

This commit is contained in:
James Agnew 2019-10-25 17:59:40 -04:00
parent e99246e577
commit b68c62ff57
250 changed files with 87 additions and 78163 deletions

View File

@ -98,7 +98,15 @@
<artifactId>ucum</artifactId>
<version>1.0.2</version>
</dependency>
<!-- Test Dependencies -->
<dependency>
<groupId>org.hl7.fhir.testcases</groupId>
<artifactId>fhir-test-cases</artifactId>
<version>${validator_test_case_version}</version>
<scope>test</scope>
</dependency>
</dependencies>
<build>

View File

@ -1,46 +1,26 @@
package org.hl7.fhir.validation.tests;
import java.io.File;
import java.io.FileInputStream;
import java.io.FileNotFoundException;
import java.io.IOException;
import java.util.ArrayList;
import java.util.Collections;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
import java.util.Map.Entry;
import javax.xml.parsers.ParserConfigurationException;
import com.google.common.base.Charsets;
import com.google.gson.JsonElement;
import com.google.gson.JsonObject;
import org.apache.commons.io.IOUtils;
import org.apache.commons.lang3.NotImplementedException;
import org.hl7.fhir.convertors.VersionConvertor_10_40;
import org.hl7.fhir.convertors.VersionConvertor_10_50;
import org.hl7.fhir.convertors.VersionConvertor_14_40;
import org.hl7.fhir.convertors.VersionConvertor_14_50;
import org.hl7.fhir.convertors.VersionConvertor_30_40;
import org.hl7.fhir.convertors.VersionConvertor_30_50;
import org.hl7.fhir.convertors.VersionConvertor_40_50;
import org.hl7.fhir.r5.elementmodel.Manager;
import org.hl7.fhir.exceptions.DefinitionException;
import org.hl7.fhir.exceptions.FHIRException;
import org.hl7.fhir.exceptions.FHIRFormatError;
import org.hl7.fhir.exceptions.PathEngineException;
import org.hl7.fhir.r5.conformance.ProfileUtilities;
import org.hl7.fhir.r5.elementmodel.Element;
import org.hl7.fhir.r5.elementmodel.Manager;
import org.hl7.fhir.r5.elementmodel.Manager.FhirFormat;
import org.hl7.fhir.r5.elementmodel.ObjectConverter;
import org.hl7.fhir.r5.formats.JsonParser;
import org.hl7.fhir.r5.formats.XmlParser;
import org.hl7.fhir.r5.model.Base;
import org.hl7.fhir.r5.model.CodeSystem;
import org.hl7.fhir.r5.model.Constants;
import org.hl7.fhir.r5.model.FhirPublication;
import org.hl7.fhir.r5.model.Patient;
import org.hl7.fhir.r5.model.Resource;
import org.hl7.fhir.r5.model.StructureDefinition;
import org.hl7.fhir.r5.model.TypeDetails;
import org.hl7.fhir.r5.model.ValueSet;
import org.hl7.fhir.r5.model.*;
import org.hl7.fhir.r5.test.utils.TestingUtilities;
import org.hl7.fhir.r5.utils.FHIRPathEngine.IEvaluationContext;
import org.hl7.fhir.r5.utils.IResourceValidator;
@ -48,29 +28,28 @@ import org.hl7.fhir.r5.utils.IResourceValidator.IValidatorResourceFetcher;
import org.hl7.fhir.r5.utils.IResourceValidator.ReferenceValidationPolicy;
import org.hl7.fhir.r5.validation.InstanceValidator;
import org.hl7.fhir.r5.validation.ValidationEngine;
import org.hl7.fhir.utilities.TextFile;
import org.hl7.fhir.utilities.Utilities;
import org.hl7.fhir.utilities.validation.ValidationMessage;
import org.hl7.fhir.utilities.validation.ValidationMessage.IssueSeverity;
import org.hl7.fhir.validation.tests.utilities.TestUtilities;
import org.junit.Assert;
import org.junit.Test;
import org.junit.runner.RunWith;
import org.junit.runners.Parameterized;
import org.junit.runners.Parameterized.Parameters;
import org.xml.sax.SAXException;
import com.google.gson.JsonElement;
import com.google.gson.JsonObject;
import java.io.*;
import java.util.*;
import java.util.Map.Entry;
@RunWith(Parameterized.class)
public class ValidationTestSuite implements IEvaluationContext, IValidatorResourceFetcher {
@Parameters(name = "{index}: id {0}")
public static Iterable<Object[]> data() throws IOException {
String contents = loadFileFromClasspath("manifest.json");
Map<String, JsonObject> examples = new HashMap<String, JsonObject>();
JsonObject json = (JsonObject) new com.google.gson.JsonParser().parse(TextFile.fileToString(TestUtilities.resourceNameToFile("validation-examples", "manifest.json")));
JsonObject json = (JsonObject) new com.google.gson.JsonParser().parse(contents);
json = json.getAsJsonObject("validator-tests");
for (Entry<String, JsonElement> e : json.getAsJsonObject("Json").entrySet()) {
examples.put("Json."+e.getKey(), e.getValue().getAsJsonObject());
@ -129,8 +108,11 @@ public class ValidationTestSuite implements IEvaluationContext, IValidatorResour
if (content.has("use-test") && !content.get("use-test").getAsBoolean())
return;
String path = TestUtilities.resourceNameToFile("validation-examples", name.substring(name.indexOf(".")+1));
// FIXME
//String path = TestUtilities.resourceNameToFile("validation-examples", name.substring(name.indexOf(".")+1));
String testCaseContent = loadFileFromClasspath(name.substring(name.indexOf(".")+1));
InstanceValidator val = ve.getValidator();
if (content.has("allowed-extension-domain"))
val.getExtensionDomains().add(content.get("allowed-extension-domain").getAsString());
@ -143,49 +125,50 @@ public class ValidationTestSuite implements IEvaluationContext, IValidatorResour
val.setValidationLanguage(null);
val.setFetcher(this);
if (content.has("questionnaire")) {
ve.getContext().cacheResource(loadResource(TestUtilities.resourceNameToFile("validation-examples", content.get("questionnaire").getAsString()), v));
String filename = content.get("questionnaire").getAsString();
String contents = loadFileFromClasspath(filename);
ve.getContext().cacheResource(loadResource(filename, contents, v));
}
if (content.has("codesystems")) {
for (JsonElement je : content.getAsJsonArray("codesystems")) {
String p = je.getAsString();
System.out.println("CodeSystem: " + p);
String filename = TestUtilities.resourceNameToFile("validation-examples", p);
CodeSystem sd = (CodeSystem) loadResource(filename, v);
String filename = je.getAsString();
String contents = loadFileFromClasspath(filename);
CodeSystem sd = (CodeSystem) loadResource(filename, contents, v);
val.getContext().cacheResource(sd);
}
}
if (content.has("profiles")) {
for (JsonElement je : content.getAsJsonArray("profiles")) {
String p = je.getAsString();
System.out.println("Profile: " + p);
String filename = TestUtilities.resourceNameToFile("validation-examples", p);
StructureDefinition sd = loadProfile(filename, v, messages);
String filename = je.getAsString();
String contents = loadFileFromClasspath(filename);
StructureDefinition sd = loadProfile(filename, contents, v, messages);
val.getContext().cacheResource(sd);
}
}
List<ValidationMessage> errors = new ArrayList<ValidationMessage>();
if (name.startsWith("Json."))
val.validate(null, errors, new FileInputStream(path), FhirFormat.JSON);
val.validate(null, errors, IOUtils.toInputStream(testCaseContent, Charsets.UTF_8), FhirFormat.JSON);
else
val.validate(null, errors, new FileInputStream(path), FhirFormat.XML);
val.validate(null, errors, IOUtils.toInputStream(testCaseContent, Charsets.UTF_8), FhirFormat.XML);
checkOutcomes(errors, content);
if (content.has("profile")) {
List<ValidationMessage> errorsProfile = new ArrayList<ValidationMessage>();
JsonObject profile = content.getAsJsonObject("profile");
String filename = TestUtilities.resourceNameToFile("validation-examples", profile.get("source").getAsString());
String filename = profile.get("source").getAsString();
String contents = loadFileFromClasspath(filename);
System.out.println("Name: " + name+" - profile : "+profile.get("source").getAsString());
v = content.has("version") ? content.get("version").getAsString() : Constants.VERSION;
StructureDefinition sd = loadProfile(filename, v, messages);
StructureDefinition sd = loadProfile(filename, contents, v, messages);
if (name.startsWith("Json."))
val.validate(null, errorsProfile, new FileInputStream(path), FhirFormat.JSON, sd);
val.validate(null, errorsProfile, IOUtils.toInputStream(testCaseContent, Charsets.UTF_8), FhirFormat.JSON, sd);
else
val.validate(null, errorsProfile, new FileInputStream(path), FhirFormat.XML, sd);
val.validate(null, errorsProfile, IOUtils.toInputStream(testCaseContent, Charsets.UTF_8), FhirFormat.XML, sd);
checkOutcomes(errorsProfile, profile);
}
}
public StructureDefinition loadProfile(String filename, String v, List<ValidationMessage> messages) throws IOException, FHIRFormatError, FileNotFoundException, FHIRException, DefinitionException {
StructureDefinition sd = (StructureDefinition) loadResource(filename, v);
public StructureDefinition loadProfile(String filename, String contents, String v, List<ValidationMessage> messages) throws IOException, FHIRFormatError, FileNotFoundException, FHIRException, DefinitionException {
StructureDefinition sd = (StructureDefinition) loadResource(filename, contents, v);
ProfileUtilities pu = new ProfileUtilities(TestingUtilities.context(), messages, null);
if (!sd.hasSnapshot()) {
StructureDefinition base = TestingUtilities.context().fetchResource(StructureDefinition.class, sd.getBaseDefinition());
@ -204,33 +187,35 @@ public class ValidationTestSuite implements IEvaluationContext, IValidatorResour
return sd;
}
public Resource loadResource(String filename, String v) throws IOException, FHIRFormatError, FileNotFoundException, FHIRException, DefinitionException {
if (filename.contains(".json")) {
if (Constants.VERSION.equals(v) || "5.0".equals(v))
return new JsonParser().parse(new FileInputStream(filename));
else if (org.hl7.fhir.dstu3.model.Constants.VERSION.equals(v) || "3.0".equals(v))
return VersionConvertor_30_50.convertResource(new org.hl7.fhir.dstu3.formats.JsonParser().parse(new FileInputStream(filename)), false);
else if (org.hl7.fhir.dstu2016may.model.Constants.VERSION.equals(v) || "1.4".equals(v))
return VersionConvertor_14_50.convertResource(new org.hl7.fhir.dstu2016may.formats.JsonParser().parse(new FileInputStream(filename)));
else if (org.hl7.fhir.dstu2.model.Constants.VERSION.equals(v) || "1.0".equals(v))
return new VersionConvertor_10_50(null).convertResource(new org.hl7.fhir.dstu2.formats.JsonParser().parse(new FileInputStream(filename)));
else if (org.hl7.fhir.r4.model.Constants.VERSION.equals(v) || "4.0".equals(v))
return VersionConvertor_40_50.convertResource(new org.hl7.fhir.r4.formats.JsonParser().parse(new FileInputStream(filename)));
else
throw new FHIRException("unknown version "+v);
} else {
if (Constants.VERSION.equals(v) || "5.0".equals(v))
return new XmlParser().parse(new FileInputStream(filename));
else if (org.hl7.fhir.dstu3.model.Constants.VERSION.equals(v) || "3.0".equals(v))
return VersionConvertor_30_50.convertResource(new org.hl7.fhir.dstu3.formats.XmlParser().parse(new FileInputStream(filename)), false);
else if (org.hl7.fhir.dstu2016may.model.Constants.VERSION.equals(v) || "1.4".equals(v))
return VersionConvertor_14_50.convertResource(new org.hl7.fhir.dstu2016may.formats.XmlParser().parse(new FileInputStream(filename)));
else if (org.hl7.fhir.dstu2.model.Constants.VERSION.equals(v) || "1.0".equals(v))
return new VersionConvertor_10_50(null).convertResource(new org.hl7.fhir.dstu2.formats.XmlParser().parse(new FileInputStream(filename)));
else if (org.hl7.fhir.r4.model.Constants.VERSION.equals(v) || "4.0".equals(v))
return VersionConvertor_40_50.convertResource(new org.hl7.fhir.r4.formats.XmlParser().parse(new FileInputStream(filename)));
else
throw new FHIRException("unknown version "+v);
public Resource loadResource(String filename, String contents, String v) throws IOException, FHIRFormatError, FileNotFoundException, FHIRException, DefinitionException {
try (InputStream inputStream = IOUtils.toInputStream(contents, Charsets.UTF_8)) {
if (filename.contains(".json")) {
if (Constants.VERSION.equals(v) || "5.0".equals(v))
return new JsonParser().parse(inputStream);
else if (org.hl7.fhir.dstu3.model.Constants.VERSION.equals(v) || "3.0".equals(v))
return VersionConvertor_30_50.convertResource(new org.hl7.fhir.dstu3.formats.JsonParser().parse(inputStream), false);
else if (org.hl7.fhir.dstu2016may.model.Constants.VERSION.equals(v) || "1.4".equals(v))
return VersionConvertor_14_50.convertResource(new org.hl7.fhir.dstu2016may.formats.JsonParser().parse(inputStream));
else if (org.hl7.fhir.dstu2.model.Constants.VERSION.equals(v) || "1.0".equals(v))
return new VersionConvertor_10_50(null).convertResource(new org.hl7.fhir.dstu2.formats.JsonParser().parse(inputStream));
else if (org.hl7.fhir.r4.model.Constants.VERSION.equals(v) || "4.0".equals(v))
return VersionConvertor_40_50.convertResource(new org.hl7.fhir.r4.formats.JsonParser().parse(inputStream));
else
throw new FHIRException("unknown version "+v);
} else {
if (Constants.VERSION.equals(v) || "5.0".equals(v))
return new XmlParser().parse(inputStream);
else if (org.hl7.fhir.dstu3.model.Constants.VERSION.equals(v) || "3.0".equals(v))
return VersionConvertor_30_50.convertResource(new org.hl7.fhir.dstu3.formats.XmlParser().parse(inputStream), false);
else if (org.hl7.fhir.dstu2016may.model.Constants.VERSION.equals(v) || "1.4".equals(v))
return VersionConvertor_14_50.convertResource(new org.hl7.fhir.dstu2016may.formats.XmlParser().parse(inputStream));
else if (org.hl7.fhir.dstu2.model.Constants.VERSION.equals(v) || "1.0".equals(v))
return new VersionConvertor_10_50(null).convertResource(new org.hl7.fhir.dstu2.formats.XmlParser().parse(inputStream));
else if (org.hl7.fhir.r4.model.Constants.VERSION.equals(v) || "4.0".equals(v))
return VersionConvertor_40_50.convertResource(new org.hl7.fhir.r4.formats.XmlParser().parse(inputStream));
else
throw new FHIRException("unknown version " + v);
}
}
}
@ -342,4 +327,16 @@ public class ValidationTestSuite implements IEvaluationContext, IValidatorResour
return ve.getContext().fetchResource(ValueSet.class, url);
}
private static String loadFileFromClasspath(String thePath) throws IOException {
String contents;
String classpath = "/org/hl7/fhir/testcases/validator/" + thePath;
try (InputStream inputStream = ValidationTestSuite.class.getResourceAsStream(classpath)) {
if (inputStream == null) {
throw new IOException("Can't find file on classpath: " + classpath);
}
contents = IOUtils.toString(inputStream, Charsets.UTF_8);
}
return contents;
}
}

View File

@ -1,13 +0,0 @@
<?xml version="1.0" encoding="UTF-8"?>
<Bundle xmlns="http://hl7.org/fhir">
<type value="collection"/>
<entry>
<resource>
<Binary>
<id value="1"/>
<contentType value="text/plain"/>
<data value="VGVzdA=="/>
</Binary>
</resource>
</entry>
</Bundle>

View File

@ -1,22 +0,0 @@
<Parameters xmlns="http://hl7.org/fhir">
<meta>
<profile value="http://example.org/fhir/StructureDefinition/param-profile"/>
</meta>
<parameter>
<name value="bundleparam"/>
<resource>
<Bundle>
<type value="collection"/>
<entry>
<resource>
<Binary>
<id value="1"/>
<contentType value="text/plain"/>
<data value="VGVzdA=="/>
</Binary>
</resource>
</entry>
</Bundle>
</resource>
</parameter>
</Parameters>

View File

@ -1,15 +0,0 @@
<Parameters xmlns="http://hl7.org/fhir">
<meta>
<profile value="http://example.org/fhir/StructureDefinition/param-profile"/>
</meta>
<parameter>
<name value="binaryparam"/>
<resource>
<Binary>
<id value="1"/>
<contentType value="text/plain"/>
<data value="VGVzdA=="/>
</Binary>
</resource>
</parameter>
</Parameters>

View File

@ -1,59 +0,0 @@
<?xml version="1.0" encoding="UTF-8"?>
<StructureDefinition xmlns="http://hl7.org/fhir">
<url value="http://example.org/fhir/StructureDefinition/param-profile"/>
<name value="ParamProfile"/>
<status value="draft"/>
<fhirVersion value="4.0.0"/>
<kind value="resource"/>
<abstract value="false"/>
<type value="Parameters"/>
<baseDefinition value="http://hl7.org/fhir/StructureDefinition/Parameters"/>
<derivation value="constraint"/>
<differential>
<element id="Parameters.parameter">
<path value="Parameters.parameter"/>
<slicing>
<discriminator>
<type value="value"/>
<path value="name"/>
</discriminator>
<rules value="open"/>
</slicing>
</element>
<element id="Parameters.parameter:p1">
<path value="Parameters.parameter"/>
<sliceName value="p1"/>
<min value="0"/>
<max value="1"/>
</element>
<element id="Parameters.parameter:p1.name">
<path value="Parameters.parameter.name"/>
<fixedString value="binaryparam"/>
</element>
<element id="Parameters.parameter:p1.resource">
<path value="Parameters.parameter.resource"/>
<type>
<code value="Resource"/>
<profile value="http://example.org/fhir/StructureDefinition/text-binary"/>
</type>
</element>
<element id="Parameters.parameter:p2">
<path value="Parameters.parameter"/>
<sliceName value="p2"/>
<min value="0"/>
<max value="1"/>
</element>
<element id="Parameters.parameter:p2.name">
<path value="Parameters.parameter.name"/>
<fixedString value="bundleparam"/>
</element>
<element id="Parameters.parameter:p2.resource">
<path value="Parameters.parameter.resource"/>
<type>
<code value="Resource"/>
<profile value="http://hl7.org/fhir/StructureDefinition/Bundle"/>
</type>
</element>
</differential>
</StructureDefinition>

View File

@ -1,25 +0,0 @@
<?xml version="1.0" encoding="UTF-8"?>
<StructureDefinition xmlns="http://hl7.org/fhir">
<id value="text-binary"/>
<url value="http://example.org/fhir/StructureDefinition/text-binary"/>
<name value="TextBinary"/>
<status value="draft"/>
<description value="Text represented as a FHIR Binary resource"/>
<fhirVersion value="4.0.0"/>
<kind value="resource"/>
<abstract value="false"/>
<type value="Binary"/>
<baseDefinition value="http://hl7.org/fhir/StructureDefinition/Binary"/>
<derivation value="constraint"/>
<differential>
<element id="Binary">
<path value="Binary"/>
</element>
<element id="Binary.contentType">
<path value="Binary.contentType"/>
<short value="MimeType for a test"/>
<fixedCode value="text/plain"/>
</element>
</differential>
</StructureDefinition>

View File

@ -1,22 +0,0 @@
<?xml version="1.0" encoding="UTF-8"?>
<Bundle xmlns="http://hl7.org/fhir">
<type value="collection"/>
<entry>
<fullUrl value="urn:uuid:54fc3e09-e279-4b74-a8ff-2649ec968642"/>
<resource>
<Patient>
<generalPractitioner>
<reference value="Practitioner/5d9588d8-3cd6-4b32-8fb7-ad13694e069d"/>
</generalPractitioner>
</Patient>
</resource>
</entry>
<entry>
<fullUrl value="urn:uuid:5d9588d8-3cd6-4b32-8fb7-ad13694e069d"/>
<resource>
<Organization>
<name value="foo"/>
</Organization>
</resource>
</entry>
</Bundle>

View File

@ -1,149 +0,0 @@
{
"resourceType": "Observation",
"id": "blood-pressure",
"meta": {
"profile": [
"http://hl7.org/fhir/StructureDefinition/vitalsigns"
]
},
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><p><b>Generated Narrative with Details</b></p><p><b>id</b>: blood-pressure</p><p><b>meta</b>: </p><p><b>identifier</b>: urn:uuid:187e0c12-8dd2-67e2-99b2-bf273c878281</p><p><b>basedOn</b>: </p><p><b>status</b>: final</p><p><b>category</b>: Vital Signs <span>(Details : {http://terminology.hl7.org/CodeSystem/observation-category code 'vital-signs' = 'Vital Signs', given as 'Vital Signs'})</span></p><p><b>code</b>: Blood pressure systolic &amp; diastolic <span>(Details : {LOINC code '85354-9' = 'Blood pressure panel with all children optional', given as 'Blood pressure panel with all children optional'})</span></p><p><b>subject</b>: <a>Patient/example</a></p><p><b>effective</b>: 17/09/2012</p><p><b>performer</b>: <a>Practitioner/example</a></p><p><b>interpretation</b>: Below low normal <span>(Details : {http://terminology.hl7.org/CodeSystem/v3-ObservationInterpretation code 'L' = 'Low', given as 'low'})</span></p><p><b>bodySite</b>: Right arm <span>(Details : {SNOMED CT code '368209003' = 'Right upper arm', given as 'Right arm'})</span></p><blockquote><p><b>component</b></p><p><b>code</b>: Systolic blood pressure <span>(Details : {LOINC code '8480-6' = 'Systolic blood pressure', given as 'Systolic blood pressure'}; {SNOMED CT code '271649006' = 'Systolic blood pressure', given as 'Systolic blood pressure'}; {http://acme.org/devices/clinical-codes code 'bp-s' = 'bp-s', given as 'Systolic Blood pressure'})</span></p><p><b>value</b>: 107 mmHg<span> (Details: UCUM code mm[Hg] = 'mmHg')</span></p><p><b>interpretation</b>: Normal <span>(Details : {http://terminology.hl7.org/CodeSystem/v3-ObservationInterpretation code 'N' = 'Normal', given as 'normal'})</span></p></blockquote><blockquote><p><b>component</b></p><p><b>code</b>: Diastolic blood pressure <span>(Details : {LOINC code '8462-4' = 'Diastolic blood pressure', given as 'Diastolic blood pressure'})</span></p><p><b>value</b>: 60 mmHg<span> (Details: UCUM code mm[Hg] = 'mmHg')</span></p><p><b>interpretation</b>: Below low normal <span>(Details : {http://terminology.hl7.org/CodeSystem/v3-ObservationInterpretation code 'L' = 'Low', given as 'low'})</span></p></blockquote></div>"
},
"identifier": [
{
"system": "urn:ietf:rfc:3986",
"value": "urn:uuid:187e0c12-8dd2-67e2-99b2-bf273c878281"
}
],
"basedOn": [
{
"identifier": {
"system": "https://acme.org/identifiers",
"value": "1234"
}
}
],
"status": "final",
"category": [
{
"coding": [
{
"system": "http://terminology.hl7.org/CodeSystem/observation-category",
"code": "vital-signs",
"display": "Vital Signs"
}
]
}
],
"code": {
"coding": [
{
"system": "http://loinc.org",
"code": "85354-9",
"display": "Blood pressure panel with all children optional"
}
],
"text": "Blood pressure systolic & diastolic"
},
"subject": {
"reference": "Patient/example"
},
"effectiveDateTime": "2012-09-17",
"performer": [
{
"reference": "Practitioner/example"
}
],
"interpretation": [
{
"coding": [
{
"system": "http://terminology.hl7.org/CodeSystem/v3-ObservationInterpretation",
"code": "L",
"display": "low"
}
],
"text": "Below low normal"
}
],
"bodySite": {
"coding": [
{
"system": "http://snomed.info/sct",
"code": "368209003",
"display": "Right arm"
}
]
},
"component": [
{
"code": {
"coding": [
{
"system": "http://loinc.org",
"code": "8480-6",
"display": "Systolic blood pressure"
},
{
"system": "http://snomed.info/sct",
"code": "271649006",
"display": "Systolic blood pressure"
},
{
"system": "http://acme.org/devices/clinical-codes",
"code": "bp-s",
"display": "Systolic Blood pressure"
}
]
},
"valueQuantity": {
"value": 107,
"unit": "mmHg",
"system": "http://unitsofmeasure.org",
"code": "mm[Hg]"
},
"interpretation": [
{
"coding": [
{
"system": "http://terminology.hl7.org/CodeSystem/v3-ObservationInterpretation",
"code": "N",
"display": "normal"
}
],
"text": "Normal"
}
]
},
{
"code": {
"coding": [
{
"system": "http://loinc.org",
"code": "8462-4",
"display": "Diastolic blood pressure"
}
]
},
"valueQuantity": {
"value": 60,
"unit": "mmHg",
"system": "http://unitsofmeasure.org",
"code": "mm[Hg]"
},
"interpretation": [
{
"coding": [
{
"system": "http://terminology.hl7.org/CodeSystem/v3-ObservationInterpretation",
"code": "L",
"display": "low"
}
],
"text": "Below low normal"
}
]
}
]
}

View File

@ -1,27 +0,0 @@
{
"resourceType": "Bundle",
"id": "bundle",
"type": "collection",
"entry": [
{
"fullUrl": "",
"resource": {
"resourceType": "Patient",
"id" : "pat1",
"link" : [{
"type" : "refer",
"other" : {
"reference" : "Patient/pat2"
}
}]
}
},
{
"fullUrl": "http://acme.com/Patient/pat2",
"resource": {
"resourceType": "Patient",
"id" : "pat2"
}
}
]
}

View File

@ -1,43 +0,0 @@
<Bundle xmlns="http://hl7.org/fhir">
<id value="bundle" />
<meta>
<lastUpdated value="2019-05-29T15:00:54.948+02:00" />
</meta>
<identifier>
<system value="urn:ietf:rfc:3986" />
<value value="urn:uuid:8a1d50f3-3f0c-471d-954d-dca1182dbcf3" />
</identifier>
<type value="document" />
<entry>
<fullUrl value="http://acme.com/Composition/1" />
<resource>
<Composition>
<id value="1" />
<status value="final" />
<type>
<coding>
<system value="http://loinc.org" />
<code value="11488-4" />
</coding>
</type>
<subject>
<reference value="http://acme.com/Patient/pat2" />
</subject>
<date value="2016-09-12T11:46:09+02:00" />
<author>
<reference value="Patient/pat2" />
</author>
<title value="testreferencesubject" />
</Composition>
</resource>
</entry>
<entry>
<fullUrl value="http://acme.com/Patient/pat2" />
<resource>
<Patient>
<id value="pat2" />
</Patient>
</resource>
</entry>
</Bundle>

View File

@ -1,27 +0,0 @@
{
"resourceType": "Bundle",
"id": "bundle",
"type": "collection",
"entry": [
{
"fullUrl": "http://acme.com/Patient/pat1",
"resource": {
"resourceType": "Patient",
"id" : "pat1",
"link" : [{
"type" : "refer",
"other" : {
"reference" : "Patient/pat2"
}
}]
}
},
{
"fullUrl": "http://acme.com/Patient/pat2",
"resource": {
"resourceType": "Patient",
"id" : "pat2"
}
}
]
}

View File

@ -1,38 +0,0 @@
@prefix fhir: <http://hl7.org/fhir/> .
@prefix owl: <http://www.w3.org/2002/07/owl#> .
@prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#> .
@prefix xs: <http://www.w3.org/2001/XMLSchema#> .
# - resource -------------------------------------------------------------------
[a fhir:Bundle;
fhir:nodeRole fhir:treeRoot;
fhir:Resource.id [ fhir:value "bundle"];
fhir:Bundle.type [ fhir:value "collection"];
fhir:Bundle.entry [
fhir:index 0;
fhir:Bundle.entry.fullUrl [ fhir:value "http://acme.com/Patient/pat1" ];
fhir:Bundle.entry.resource <http://acme.com/Patient/pat1>
], [
fhir:index 1;
fhir:Bundle.entry.fullUrl [ fhir:value "http://acme.com/Patient/pat2" ];
fhir:Bundle.entry.resource <http://acme.com/Patient/pat2>
]].
<http://acme.com/Patient/pat1> a fhir:Patient;
fhir:index 0;
fhir:Resource.id [ fhir:value "pat1"];
fhir:Patient.link [
fhir:index 0;
fhir:Patient.link.other [
fhir:Reference.reference [ fhir:value "Patient/pat2" ]
];
fhir:Patient.link.type [ fhir:value "refer" ]
].
<http://acme.com/Patient/pat2> a fhir:Patient;
fhir:index 0;
fhir:Resource.id [ fhir:value "pat2"].
# -------------------------------------------------------------------------------------

View File

@ -1,27 +0,0 @@
<Bundle xmlns="http://hl7.org/fhir">
<id value="bundle"/>
<type value="collection"/>
<entry>
<fullUrl value="http://acme.com/Patient/pat1"/>
<resource>
<Patient>
<id value="pat1"/>
<link>
<other>
<reference value="Patient/pat2"/>
</other>
<type value="refer"/>
</link>
</Patient>
</resource>
</entry>
<entry>
<fullUrl value="http://acme.com/Patient/pat2"/>
<resource>
<Patient>
<id value="pat2"/>
</Patient>
</resource>
</entry>
</Bundle>

View File

@ -1,45 +0,0 @@
<?xml version="1.0" encoding="UTF-8"?>
<Bundle xmlns="http://hl7.org/fhir">
<id value="bundle-local-refs"/>
<meta>
<lastUpdated value="2019-07-21T11:01:00+05:00"/>
</meta>
<identifier>
<system value="http://example.org/documentIDs"/>
<value value="A12345"/>
</identifier>
<type value="document"/>
<timestamp value="2019-07-21T11:01:00+05:00"/>
<entry>
<fullUrl value="http://example.org/fhir/Composition/1"/>
<resource>
<Composition>
<id value="1"/>
<status value="final"/>
<type>
<text value="foo"/>
</type>
<subject>
<reference value="Patient/1"/>
</subject>
<date value="2019-07-21T23:09:00+07:00"/>
<author>
<display value="foo"/>
</author>
<title value="Example with local references"/>
</Composition>
</resource>
</entry>
<entry>
<fullUrl value="http://example.org/fhir/Patient/1"/>
<resource>
<Patient>
<id value="1"/>
<name>
<family value="SMITH"/>
<given value="JOE"/>
</name>
</Patient>
</resource>
</entry>
</Bundle>

View File

@ -1,966 +0,0 @@
<Composition
xmlns="http://hl7.org/fhir">
<id value="CCDA-on-FHIR-Referral-Note-Example"/>
<meta>
<versionId value="1"/>
<lastUpdated value="2016-06-15T08:16:14Z"/>
<profile value="http://hl7.org/fhir/ccda/StructureDefinition/CCDA-on-FHIR-Referral-Note"/>
</meta>
<text>
<status value="generated"/>
<div
xmlns="http://www.w3.org/1999/xhtml">
<p>Referral Note document for Amy Shaw</p>
<p>Managed by Community Health and Hospitals</p>
</div>
</text>
<extension url="http://hl7.org/fhir/ccda/StructureDefinition/ccda-data-enterer-extension">
<valueUri value="http://hl7.org/fhir/us/core/Practitioner-practitioner-1.xml"/>
</extension>
<extension url="http://hl7.org/fhir/ccda/StructureDefinition/ccda-informant-extension">
<valueUri value="http://hl7.org/fhir/us/core/Practitioner-practitioner-1.xml"/>
</extension>
<extension url="http://hl7.org/fhir/ccda/StructureDefinition/ccda-information-recipient-extension">
<valueUri value="http://hl7.org/fhir/us/core/Practitioner-practitioner-1.xml"/>
</extension>
<extension url="http://hl7.org/fhir/ccda/StructureDefinition/ccda-participant-extension">
<valueUri value="http://hl7.org/fhir/relatedperson-example-peter.xml.html"/>
</extension>
<extension url="http://hl7.org/fhir/ccda/StructureDefinition/ccda-performer-extension">
<valueUri value="http://hl7.org/fhir/us/core/Practitioner-practitioner-1.xml"/>
</extension>
<extension url="http://hl7.org/fhir/ccda/StructureDefinition/ccda-authorization-extension">
<valueUri value="http://hl7.org/fhir/ccda/StructureDefinition/ccda-consent"/>
</extension>
<identifier>
<system value="http://hl7.org/fhir/ccda/StructureDefinition/CCDA_on_FHIR_Referral_Note"/>
<value value="1"/>
</identifier>
<status value="preliminary"/>
<type>
<coding>
<system value="http://loinc.org"/>
<code value="57133-1"/>
<display value="Referral Note"/>
</coding>
</type>
<!-- Patient Resource -->
<subject>
<reference value="http://hl7.org/fhir/us/core/Patient-example.xml"/>
<display value="Amy V. Shaw"/>
</subject>
<date value="2016-02-28T09:10:14Z"/>
<!-- Practitioner Resource -->
<author>
<reference value="http://hl7.org/fhir/us/core/Practitioner-practitioner-1.xml"/>
<display value="Ronald Boone, MD"/>
</author>
<title value="Referral Note"/>
<confidentiality value="N"/>
<attester>
<mode value="legal"/>
<time value="2012-01-04T09:10:14Z"/>
<party>
<reference value="http://hl7.org/fhir/us/core/Practitioner-practitioner-1.xml"/>
<display value="Ronald Boone, MD"/>
</party>
</attester>
<!-- Organization Resource -->
<custodian>
<reference value="http://hl7.org/fhir/us/core/Organization-acme-lab.xml"/>
<display value="Acme Labs"/>
</custodian>
<event>
<code>
<coding>
<system value="http://terminology.hl7.org/CodeSystem/v3-ActClass"/>
<code value="PCPR"/>
<display value="Care Provision"/>
</coding>
</code>
<period>
<start value="2015-11-18"/>
<end value="2015-12-12"/>
</period>
</event>
<!-- Encounter Resource -->
<!--<encounter><reference value="http://fhirtest.uhn.ca/baseDstu3/Encounter/117630"/></encounter>-->
<!-- Allergies and Intolerances Section Narrative -->
<section>
<title value="Allergies and Intolerances Section"/>
<code>
<coding>
<system value="http://loinc.org"/>
<code value="48765-2"/>
<display value="Allergies and Adverse Reactions"/>
</coding>
</code>
<text>
<status value="generated"/>
<div
xmlns="http://www.w3.org/1999/xhtml">
<table>
<tr>
<td>
<b>Substance</b>
</td>
<td>
<b>Overall Severity</b>
</td>
<td>
<b>Reaction</b>
</td>
<td>
<b>Reaction Severity</b>
</td>
<td>
<b>Status</b>
</td>
</tr>
<tr>
<td>Cashew Nut</td>
<td>Severe</td>
<td>Anaphylactic reaction</td>
<td>Mild</td>
<td>Active</td>
</tr>
</table>
</div>
</text>
<mode value="snapshot"/>
<orderedBy>
<coding>
<system value="http://terminology.hl7.org/CodeSystem/list-order"/>
<code value="event-date"/>
<display value="Sorted by Event Date"/>
</coding>
</orderedBy>
<!-- Allergies and Intolerance Section Resource-->
<entry>
<reference value="http://hl7.org/fhir/us/core/AllergyIntolerance-example.xml"/>
</entry>
</section>
<!-- SPM duplicate for error: Allergies and Intolerances Section Narrative -->
<section>
<title value="Allergies and Intolerances Section"/>
<code>
<coding>
<system value="http://loinc.org"/>
<code value="48765-2"/>
<display value="Allergies and Adverse Reactions"/>
</coding>
</code>
<text>
<status value="generated"/>
<div
xmlns="http://www.w3.org/1999/xhtml">
<table>
<tr>
<td>
<b>Substance</b>
</td>
<td>
<b>Overall Severity</b>
</td>
<td>
<b>Reaction</b>
</td>
<td>
<b>Reaction Severity</b>
</td>
<td>
<b>Status</b>
</td>
</tr>
<tr>
<td>Cashew Nut</td>
<td>Severe</td>
<td>Anaphylactic reaction</td>
<td>Mild</td>
<td>Active</td>
</tr>
</table>
</div>
</text>
<mode value="snapshot"/>
<orderedBy>
<coding>
<system value="http://terminology.hl7.org/CodeSystem/list-order"/>
<code value="event-date"/>
<display value="Sorted by Event Date"/>
</coding>
</orderedBy>
<!-- Allergies and Intolerance Section Resource-->
<entry>
<reference value="http://hl7.org/fhir/us/core/AllergyIntolerance-example.xml"/>
</entry>
</section>
<!-- Advance Directives Section Narrative -->
<section>
<title value="Advance Directives Section"/>
<code>
<coding>
<system value="http://loinc.org"/>
<code value="42348-3"/>
<display value="Advance directives"/>
</coding>
</code>
<text>
<status value="generated"/>
<div
xmlns="http://www.w3.org/1999/xhtml">
<table>
<tr>
<td>
<b>Name</b>
</td>
<td>
<b>Applies Period</b>
</td>
</tr>
<tr>
<td>Resuscitation</td>
<td>2015/01/01 - 2016/12/31</td>
</tr>
</table>
</div>
</text>
</section>
<!-- Assessment Section Narrative -->
<section>
<title value=" Assessment Section"/>
<code>
<coding>
<system value="http://loinc.org"/>
<code value="51848-0"/>
<display value="Assessment (evaluation)"/>
</coding>
</code>
<text>
<status value="generated"/>
<div
xmlns="http://www.w3.org/1999/xhtml">
<p>Obesity.</p>
<p>Uncontrolled brittle Type II diabetic.</p>
<p>Shortness of breath, mild wheezing.</p>
<p>Pressure ulder on left knee.</p>
</div>
</text>
</section>
<!-- Assessment and Plan Section Narrative -->
<section>
<title value="Assessment and Plan Section"/>
<code>
<coding>
<system value="http://loinc.org"/>
<code value="51847-2"/>
<display value="Assessment (evaluation) and plan"/>
</coding>
</code>
<text>
<status value="generated"/>
<div
xmlns="http://www.w3.org/1999/xhtml">
<p>Recurrent GI bleed of unknown etiology; hypotension perhaps
secondary to this but as likely secondary to polypharmacy</p>
<p>Acute on chronic anemia secondary to #1.</p>
<p>Azotemia, acute renal failure with volume loss secondary tom#1.</p>
<p>Hyperkalemia secondary to #3 and on ACE and K+ supplement.</p>
<p>Other chronic diagnoses as noted above, currently stable.</p>
</div>
</text>
</section>
<!-- Family History Section Narrative -->
<section>
<title value="Family History Section"/>
<code>
<coding>
<system value="http://loinc.org"/>
<code value="10157-6"/>
<display value="History of family member diseases"/>
</coding>
</code>
<text>
<status value="generated"/>
<div
xmlns="http://www.w3.org/1999/xhtml">
<table>
<tr>
<td>
<b>Relationship</b>
</td>
<td>
<b>Diagnosis</b>
</td>
<td>
<b>Age at Onset</b>
</td>
</tr>
<tr>
<td>Father</td>
<td>Myocardial Infarction(cause of Death)</td>
<td>57</td>
</tr>
<tr>
<td>Father</td>
<td>Diabetes</td>
<td>40</td>
</tr>
</table>
</div>
</text>
<!-- Family History Section Resource -->
<!-- <entry><reference value="http://fhirtest.uhn.ca/baseDstu3/FamilyMemberHistory/117652"/></entry>-->
</section>
<!-- History of Past Illness Section Narrative -->
<section>
<title value="History of Past Illness Section"/>
<code>
<coding>
<system value="http://loinc.org"/>
<code value="11348-0"/>
<display value="History of past illness"/>
</coding>
</code>
<text>
<status value="generated"/>
<div
xmlns="http://www.w3.org/1999/xhtml">
<p>See History of Present Illness</p>
</div>
</text>
</section>
<!-- History of Present Illness Section Narrative -->
<section>
<title value="History of Present Illness Section"/>
<code>
<coding>
<system value="http://loinc.org"/>
<code value="10164-2"/>
<display value="History of present illness"/>
</coding>
</code>
<text>
<status value="generated"/>
<div
xmlns="http://www.w3.org/1999/xhtml">
<p>This patient was only recently discharged for a recurrent GI bleed as described below. </p>
<p>He presented to the ER today c/o a dark stool yesterday but a normal brown
stool today. On exam he was hypotensive in the 80?s resolved after .... .... .... </p>
<p>Lab at discharge: Glucose 112, BUN 16, creatinine 1.1, electrolytes normal.
H. pylori antibody pending. Admission hematocrit 16%, discharge hematocrit 29%. WBC
7300, platelet count 256,000. Urinalysis normal. Urine culture: No growth. INR 1.1,
PTT 40. </p>
<p>He was transfused with 6 units of packed red blood cells with .... .... .... </p>
<p>GI evaluation 12 September: Colonoscopy showed single red clot in .... ........ </p>
</div>
</text>
</section>
<!-- Social History Section Narrative -->
<section>
<title value="Social History Section"/>
<code>
<coding>
<system value="http://loinc.org"/>
<code value="29762-2"/>
<display value="Social history"/>
</coding>
</code>
<text>
<status value="generated"/>
<div
xmlns="http://www.w3.org/1999/xhtml">
<table>
<tr>
<td>
<b>Social History Element</b>
</td>
<td>
<b>Description</b>
</td>
<td>
<b>Effective Dates</b>
</td>
</tr>
<tr>
<td>Smoking</td>
<td>1 pack tobacco per day</td>
<td>2005/05/01 - 2010/02/28</td>
</tr>
</table>
</div>
</text>
<!-- Social History Section Observation Resource -->
<entry>
<reference value="http://hl7.org/fhir/us/core/Observation-some-day-smoker.xml"/>
</entry>
</section>
<!-- General Status Section Narrative -->
<section>
<title value=" General Status Section"/>
<code>
<coding>
<system value="http://loinc.org"/>
<code value="10210-3"/>
<display value="Physical findings of General status"/>
</coding>
</code>
<text>
<status value="generated"/>
<div
xmlns="http://www.w3.org/1999/xhtml">
<p>Alert and in good spirits, no acute distress.</p>
</div>
</text>
</section>
<!-- Functional Status Section Narrative -->
<section>
<title value="Functional Status Section"/>
<code>
<coding>
<system value="http://loinc.org"/>
<code value="47420-5"/>
<display value="Functional status"/>
</coding>
</code>
<text>
<status value="generated"/>
<div
xmlns="http://www.w3.org/1999/xhtml">
<table>
<tr>
<td>
<b>Functional or Cognitive Finding</b>
</td>
<td>
<b>Observation</b>
</td>
<td>
<b>Observation Date</b>
</td>
<td>
<b>Condition Status</b>
</td>
</tr>
<tr>
<td>Ambulation (Dependent to Independent</td>
<td>Independently able</td>
<td>2010/03/11</td>
<td>Active</td>
</tr>
<tr>
<td>Finding of Functional Performance and Activity</td>
<td>Dyspnea</td>
<td>2008/02/16</td>
<td>Active</td>
</tr>
<tr>
<td>Cognitive Function Finding</td>
<td>Memory Impairment</td>
<td>2014/04/29</td>
<td>Active</td>
</tr>
</table>
</div>
</text>
</section>
<!-- Mental Status Section Narrative -->
<section>
<title value="Mental Status Section"/>
<code>
<coding>
<system value="http://loinc.org"/>
<code value="10190-7"/>
<display value="Mental status"/>
</coding>
</code>
<text>
<status value="generated"/>
<div
xmlns="http://www.w3.org/1999/xhtml">
<table border="1" width="100%">
<thead>
<tr>
<td>
<b>Mental Status Findings</b>
</td>
<td>
<b>Effective Dates</b>
</td>
<td>
<b>Condition Status</b>
</td>
</tr>
</thead>
<tr>
<td>Mental Function</td>
<td>July 31, 2013</td>
<td>Impaired</td>
</tr>
<tr>
<td>Cognitive Abilities</td>
<td>July 31, 2013</td>
<td>Judgement, Intact</td>
</tr>
<tr>
<td>Cognitive Function</td>
<td>July 31, 2013</td>
<td>Aggressive Behavior</td>
</tr>
<tr>
<td>Cognitive Function</td>
<td>July 31, 2013</td>
<td>Difficulty understanding own emotions</td>
</tr>
<tr>
<td>Cognitive Function</td>
<td>July 31, 2013</td>
<td>Difficulty communicating Thoughts </td>
</tr>
</table>
</div>
</text>
</section>
<!-- Immunization Section Narrative -->
<section>
<title value="Immunizations Section"/>
<code>
<coding>
<system value="http://loinc.org"/>
<code value="11369-6"/>
<display value="History of immunization"/>
</coding>
</code>
<text>
<status value="generated"/>
<div
xmlns="http://www.w3.org/1999/xhtml">
<table>
<tr>
<td>
<b>Vaccine</b>
</td>
<td>
<b>Date</b>
</td>
<td>
<b>Status</b>
</td>
</tr>
<tr>
<td>Fluvax (Influenza)</td>
<td>2016-04-05</td>
<td>Completed</td>
</tr>
</table>
</div>
</text>
<!-- Immunization Section Resource -->
<entry>
<reference value="http://hl7.org/fhir/us/core/Immunization-imm-1.xml"/>
</entry>
</section>
<!-- Nutrition Section Narrative -->
<section>
<title value=" Nutrition Section"/>
<code>
<coding>
<system value="http://loinc.org"/>
<code value="61144-2"/>
<display value="Diet and nutrition"/>
</coding>
</code>
<text>
<status value="generated"/>
<div
xmlns="http://www.w3.org/1999/xhtml">
<table>
<tr>
<td>
<b>Date</b>
</td>
<td>
<b>Nutritional Status</b>
</td>
<td>
<b>Diet</b>
</td>
</tr>
<tr>
<td>2005/12/29</td>
<td>Well nourished</td>
<td>Low sodium diet, excessive carbohydrate</td>
</tr>
<tr>
<td>2010/05/26</td>
<td>Slight dehydration</td>
<td>High protein, low fibre</td>
</tr>
</table>
</div>
</text>
</section>
<!-- Reason for Referral Section Narrative -->
<section>
<title value="Reason for Referral Section"/>
<code>
<coding>
<system value="http://loinc.org"/>
<code value="42349-1"/>
<display value="Reason for Referral"/>
</coding>
</code>
<text>
<status value="generated"/>
<div
xmlns="http://www.w3.org/1999/xhtml">
<p>Colonoscopy</p>
</div>
</text>
</section>
<!-- Physical Exam Section Narrative -->
<section>
<title value="Physical Exam Section"/>
<code>
<coding>
<system value="http://loinc.org"/>
<code value="29545-1"/>
<display value="Physical findings"/>
</coding>
</code>
<text>
<status value="generated"/>
<div
xmlns="http://www.w3.org/1999/xhtml">
<p>HEENT: All normal to examination.</p>
<p>&gt;HEART: RRR, no murmur.</p>
<p>THORAX &amp; LUNGS: Clear without rhonchi or wheeze.</p>
<p>ABDOMEN: Marked distension and tenderness, slightly obese, pos bowelsounds.</p>
<p>BACK: Normal to inspection and palpation, without tenderness; no presacral edema.</p>
<p>EXTREMITIES: Doughy edema bilaterally, chronic stasis changes, no asymmetrical swelling.</p>
</div>
</text>
</section>
<!-- Review of Systems Section Narrative -->
<section>
<title value="Review of Systems Section"/>
<code>
<coding>
<system value="http://loinc.org"/>
<code value="10187-3"/>
<display value="Review of systems"/>
</coding>
</code>
<text>
<status value="generated"/>
<div
xmlns="http://www.w3.org/1999/xhtml">
<p>Patient denies recent history of fever or malaise. Positive for weakness and
shortness of breath. Several episodes of abdominal tenderness. No recent headaches.
Positive for osteoarthritis in hips, knees and hands. </p>
</div>
</text>
</section>
<!-- Medication Section Narrative -->
<section>
<title value="Medication Section"/>
<code>
<coding>
<system value="http://loinc.org"/>
<code value="10160-0"/>
<display value="History of Medication Use"/>
</coding>
</code>
<text>
<status value="generated"/>
<div
xmlns="http://www.w3.org/1999/xhtml">
<table>
<tr>
<td>
<b>Medication</b>
</td>
<td>
<b>Directions</b>
</td>
<td>
<b>Start Date</b>
</td>
<td>
<b>Status</b>
</td>
<td>
<b>Indications</b>
</td>
<td>
<b>Fill Instructions</b>
</td>
</tr>
<tr>
<td>Amoxicillin</td>
<td>Amoxicillin Powder, for Suspension 250mg/5ml</td>
<td>20160401</td>
<td>Active</td>
<td>Pneumonia</td>
<td>Generic substitution allowed</td>
</tr>
</table>
</div>
</text>
<!-- Medication Section Resource -->
<entry>
<reference value="http://hl7.org/fhir/us/core/MedicationStatement-uscore-ms1.xml"/>
</entry>
</section>
<!-- Medical Equipment Section Narrative -->
<section>
<title value="Medical Equipment Section"/>
<code>
<coding>
<system value="http://loinc.org"/>
<code value="46264-8"/>
<display value="Medical equipment"/>
</coding>
</code>
<text>
<status value="generated"/>
<div
xmlns="http://www.w3.org/1999/xhtml">
<table>
<tr>
<td>
<b>Supply/Device</b>
</td>
<td>
<b>Date Supplied</b>
</td>
</tr>
<tr>
<td>Automatic Implantable cardioverter/defbrillator</td>
<td>2008/11/16</td>
</tr>
<tr>
<td>Wheelchair</td>
<td>1999/12/01</td>
</tr>
</table>
</div>
</text>
</section>
<!-- Plan of Treatment Section Narrative -->
<section>
<title value="Plan of Treatment Section"/>
<code>
<coding>
<system value="http://loinc.org"/>
<code value="18776-5"/>
<display value="Plan of treatment"/>
</coding>
</code>
<text>
<status value="generated"/>
<div
xmlns="http://www.w3.org/1999/xhtml">
<table>
<tr>
<td>
<b>Planned Activity</b>
</td>
<td>
<b>Period</b>
</td>
<td>
<b>Status</b>
</td>
</tr>
<tr>
<td>Colonoscopy</td>
<td>2010/08/16 - 2010/08/16</td>
<td>Completed</td>
</tr>
<tr>
<td>Recommendation to Exercise</td>
<td>2015/10/29</td>
<td>Ongoing</td>
</tr>
</table>
</div>
</text>
</section>
<!-- Problem Section Narrative -->
<section>
<title value="Problem Section"/>
<code>
<coding>
<system value="http://loinc.org"/>
<code value="11450-4"/>
<display value="Problem List"/>
</coding>
</code>
<text>
<status value="generated"/>
<div
xmlns="http://www.w3.org/1999/xhtml">
<table>
<tr>
<td>
<b>Problem Name</b>
</td>
<td>
<b>Type</b>
</td>
<td>
<b>Onset Date</b>
</td>
<td>
<b>Abatement Date</b>
</td>
<td>
<b>Status</b>
</td>
</tr>
<tr>
<td>Fever</td>
<td>Condition</td>
<td>2016-04-01</td>
<td>2016-04-14</td>
<td>Complete</td>
</tr>
</table>
</div>
</text>
<!-- Problem Section Condition Resource -->
<entry>
<reference value="http://hl7.org/fhir/us/core/Condition-hc1.xml"/>
</entry>
</section>
<!-- Procedures Section Narrative -->
<section>
<title value="Procedures Section"/>
<code>
<coding>
<system value="http://loinc.org"/>
<code value="47519-4"/>
<display value="History of procedures"/>
</coding>
</code>
<text>
<status value="generated"/>
<div
xmlns="http://www.w3.org/1999/xhtml">
<table>
<tr>
<td>
<b>Procedure Name</b>
</td>
<td>
<b>Body Site</b>
</td>
<td>
<b>Performer</b>
</td>
<td>
<b>Date Performed</b>
</td>
<td>
<b>Reason</b>
</td>
</tr>
<tr>
<td>Appendectomy (Procedure)</td>
<td>Abdomen</td>
<td>Dr. Adam Everyman</td>
<td>20160405</td>
<td>Generalized abdominal pain 24 hours. Localized in RIF with rebound and guarding</td>
</tr>
</table>
</div>
</text>
<!-- Procedures Section Resource -->
<entry>
<reference value="http://hl7.org/fhir/us/core/Procedure-rehab.xml"/>
</entry>
</section>
<!-- Results Section Narrative -->
<section>
<title value="Results Section"/>
<code>
<coding>
<system value="http://loinc.org"/>
<code value="30954-2"/>
<display value="Relevant diagnostic tests and laboratory data"/>
</coding>
</code>
<text>
<status value="generated"/>
<div
xmlns="http://www.w3.org/1999/xhtml">
<table>
<tr>
<td>
<b>Result Type</b>
</td>
<td>
<b>Quantity Value</b>
</td>
<td>
<b>Date</b>
</td>
<td>
<b>Status</b>
</td>
</tr>
<tr>
<td>Glucose [Moles/volume] in Blood</td>
<td>6.3 mmol/l</td>
<td>2016/04/01</td>
<td>Final</td>
</tr>
</table>
</div>
</text>
<!-- Results Section Observation Resource -->
<entry>
<reference value="http://hl7.org/fhir/us/core/Observation-usg.xml"/>
</entry>
</section>
<!-- Vital Signs Section Narrative -->
<section>
<title value="Vital Signs Section"/>
<code>
<coding>
<system value="http://loinc.org"/>
<code value="8716-3"/>
<display value="Vital signs"/>
</coding>
</code>
<text>
<status value="generated"/>
<div
xmlns="http://www.w3.org/1999/xhtml">
<table>
<tr>
<td>
<b>Vital Sign</b>
</td>
<td>
<b>Date</b>
</td>
<td>
<b>Value</b>
</td>
</tr>
<tr>
<td>Temperature</td>
<td>2016/04/05</td>
<td>39 Degrees Celcius</td>
</tr>
</table>
</div>
</text>
<!-- Vital Signs Section Observation Resource -->
<entry>
<reference value="http://hl7.org/fhir/us/core/Observation-temperature.xml"/>
</entry>
</section>
</Composition>

View File

@ -1,911 +0,0 @@
<Composition
xmlns="http://hl7.org/fhir">
<id value="CCDA-on-FHIR-Referral-Note-Example"/>
<meta>
<versionId value="1"/>
<lastUpdated value="2016-06-15T08:16:14Z"/>
<profile value="http://hl7.org/fhir/ccda/StructureDefinition/CCDA-on-FHIR-Referral-Note"/>
</meta>
<text>
<status value="generated"/>
<div
xmlns="http://www.w3.org/1999/xhtml">
<p>Referral Note document for Amy Shaw</p>
<p>Managed by Community Health and Hospitals</p>
</div>
</text>
<extension url="http://hl7.org/fhir/ccda/StructureDefinition/ccda-data-enterer-extension">
<valueUri value="http://hl7.org/fhir/us/core/Practitioner-practitioner-1.xml"/>
</extension>
<extension url="http://hl7.org/fhir/ccda/StructureDefinition/ccda-informant-extension">
<valueUri value="http://hl7.org/fhir/us/core/Practitioner-practitioner-1.xml"/>
</extension>
<extension url="http://hl7.org/fhir/ccda/StructureDefinition/ccda-information-recipient-extension">
<valueUri value="http://hl7.org/fhir/us/core/Practitioner-practitioner-1.xml"/>
</extension>
<extension url="http://hl7.org/fhir/ccda/StructureDefinition/ccda-participant-extension">
<valueUri value="http://hl7.org/fhir/relatedperson-example-peter.xml.html"/>
</extension>
<extension url="http://hl7.org/fhir/ccda/StructureDefinition/ccda-performer-extension">
<valueUri value="http://hl7.org/fhir/us/core/Practitioner-practitioner-1.xml"/>
</extension>
<extension url="http://hl7.org/fhir/ccda/StructureDefinition/ccda-authorization-extension">
<valueUri value="http://hl7.org/fhir/ccda/StructureDefinition/ccda-consent"/>
</extension>
<identifier>
<system value="http://hl7.org/fhir/ccda/StructureDefinition/CCDA_on_FHIR_Referral_Note"/>
<value value="1"/>
</identifier>
<status value="preliminary"/>
<type>
<coding>
<system value="http://loinc.org"/>
<code value="57133-1"/>
<display value="Referral Note"/>
</coding>
</type>
<!-- Patient Resource -->
<subject>
<reference value="http://hl7.org/fhir/us/core/Patient-example.xml"/>
<display value="Amy V. Shaw"/>
</subject>
<date value="2016-02-28T09:10:14Z"/>
<!-- Practitioner Resource -->
<author>
<reference value="http://hl7.org/fhir/us/core/Practitioner-practitioner-1.xml"/>
<display value="Ronald Boone, MD"/>
</author>
<title value="Referral Note"/>
<confidentiality value="N"/>
<attester>
<mode value="legal"/>
<time value="2012-01-04T09:10:14Z"/>
<party>
<reference value="http://hl7.org/fhir/us/core/Practitioner-practitioner-1.xml"/>
<display value="Ronald Boone, MD"/>
</party>
</attester>
<!-- Organization Resource -->
<custodian>
<reference value="http://hl7.org/fhir/us/core/Organization-acme-lab.xml"/>
<display value="Acme Labs"/>
</custodian>
<event>
<code>
<coding>
<system value="http://terminology.hl7.org/CodeSystem/v3-ActClass"/>
<code value="PCPR"/>
<display value="Care Provision"/>
</coding>
</code>
<period>
<start value="2015-11-18"/>
<end value="2015-12-12"/>
</period>
</event>
<!-- Encounter Resource -->
<!--<encounter><reference value="http://fhirtest.uhn.ca/baseDstu3/Encounter/117630"/></encounter>-->
<!-- Allergies and Intolerances Section Narrative -->
<section>
<title value="Allergies and Intolerances Section"/>
<code>
<coding>
<system value="http://loinc.org"/>
<code value="48765-2"/>
<display value="Allergies and Adverse Reactions"/>
</coding>
</code>
<text>
<status value="generated"/>
<div
xmlns="http://www.w3.org/1999/xhtml">
<table>
<tr>
<td>
<b>Substance</b>
</td>
<td>
<b>Overall Severity</b>
</td>
<td>
<b>Reaction</b>
</td>
<td>
<b>Reaction Severity</b>
</td>
<td>
<b>Status</b>
</td>
</tr>
<tr>
<td>Cashew Nut</td>
<td>Severe</td>
<td>Anaphylactic reaction</td>
<td>Mild</td>
<td>Active</td>
</tr>
</table>
</div>
</text>
<mode value="snapshot"/>
<orderedBy>
<coding>
<system value="http://terminology.hl7.org/CodeSystem/list-order"/>
<code value="event-date"/>
<display value="Sorted by Event Date"/>
</coding>
</orderedBy>
<!-- Allergies and Intolerance Section Resource-->
<entry>
<reference value="http://hl7.org/fhir/us/core/AllergyIntolerance-example.xml"/>
</entry>
</section>
<!-- Advance Directives Section Narrative -->
<section>
<title value="Advance Directives Section"/>
<code>
<coding>
<system value="http://loinc.org"/>
<code value="42348-3"/>
<display value="Advance directives"/>
</coding>
</code>
<text>
<status value="generated"/>
<div
xmlns="http://www.w3.org/1999/xhtml">
<table>
<tr>
<td>
<b>Name</b>
</td>
<td>
<b>Applies Period</b>
</td>
</tr>
<tr>
<td>Resuscitation</td>
<td>2015/01/01 - 2016/12/31</td>
</tr>
</table>
</div>
</text>
</section>
<!-- Assessment Section Narrative -->
<section>
<title value=" Assessment Section"/>
<code>
<coding>
<system value="http://loinc.org"/>
<code value="51848-0"/>
<display value="Assessment (evaluation)"/>
</coding>
</code>
<text>
<status value="generated"/>
<div
xmlns="http://www.w3.org/1999/xhtml">
<p>Obesity.</p>
<p>Uncontrolled brittle Type II diabetic.</p>
<p>Shortness of breath, mild wheezing.</p>
<p>Pressure ulder on left knee.</p>
</div>
</text>
</section>
<!-- Assessment and Plan Section Narrative -->
<section>
<title value="Assessment and Plan Section"/>
<code>
<coding>
<system value="http://loinc.org"/>
<code value="51847-2"/>
<display value="Assessment (evaluation) and plan"/>
</coding>
</code>
<text>
<status value="generated"/>
<div
xmlns="http://www.w3.org/1999/xhtml">
<p>Recurrent GI bleed of unknown etiology; hypotension perhaps
secondary to this but as likely secondary to polypharmacy</p>
<p>Acute on chronic anemia secondary to #1.</p>
<p>Azotemia, acute renal failure with volume loss secondary tom#1.</p>
<p>Hyperkalemia secondary to #3 and on ACE and K+ supplement.</p>
<p>Other chronic diagnoses as noted above, currently stable.</p>
</div>
</text>
</section>
<!-- Family History Section Narrative -->
<section>
<title value="Family History Section"/>
<code>
<coding>
<system value="http://loinc.org"/>
<code value="10157-6"/>
<display value="History of family member diseases"/>
</coding>
</code>
<text>
<status value="generated"/>
<div
xmlns="http://www.w3.org/1999/xhtml">
<table>
<tr>
<td>
<b>Relationship</b>
</td>
<td>
<b>Diagnosis</b>
</td>
<td>
<b>Age at Onset</b>
</td>
</tr>
<tr>
<td>Father</td>
<td>Myocardial Infarction(cause of Death)</td>
<td>57</td>
</tr>
<tr>
<td>Father</td>
<td>Diabetes</td>
<td>40</td>
</tr>
</table>
</div>
</text>
<!-- Family History Section Resource -->
<!-- <entry><reference value="http://fhirtest.uhn.ca/baseDstu3/FamilyMemberHistory/117652"/></entry>-->
</section>
<!-- History of Past Illness Section Narrative -->
<section>
<title value="History of Past Illness Section"/>
<code>
<coding>
<system value="http://loinc.org"/>
<code value="11348-0"/>
<display value="History of past illness"/>
</coding>
</code>
<text>
<status value="generated"/>
<div
xmlns="http://www.w3.org/1999/xhtml">
<p>See History of Present Illness</p>
</div>
</text>
</section>
<!-- History of Present Illness Section Narrative -->
<section>
<title value="History of Present Illness Section"/>
<code>
<coding>
<system value="http://loinc.org"/>
<code value="10164-2"/>
<display value="History of present illness"/>
</coding>
</code>
<text>
<status value="generated"/>
<div
xmlns="http://www.w3.org/1999/xhtml">
<p>This patient was only recently discharged for a recurrent GI bleed as described below. </p>
<p>He presented to the ER today c/o a dark stool yesterday but a normal brown
stool today. On exam he was hypotensive in the 80?s resolved after .... .... .... </p>
<p>Lab at discharge: Glucose 112, BUN 16, creatinine 1.1, electrolytes normal.
H. pylori antibody pending. Admission hematocrit 16%, discharge hematocrit 29%. WBC
7300, platelet count 256,000. Urinalysis normal. Urine culture: No growth. INR 1.1,
PTT 40. </p>
<p>He was transfused with 6 units of packed red blood cells with .... .... .... </p>
<p>GI evaluation 12 September: Colonoscopy showed single red clot in .... ........ </p>
</div>
</text>
</section>
<!-- Social History Section Narrative -->
<section>
<title value="Social History Section"/>
<code>
<coding>
<system value="http://loinc.org"/>
<code value="29762-2"/>
<display value="Social history"/>
</coding>
</code>
<text>
<status value="generated"/>
<div
xmlns="http://www.w3.org/1999/xhtml">
<table>
<tr>
<td>
<b>Social History Element</b>
</td>
<td>
<b>Description</b>
</td>
<td>
<b>Effective Dates</b>
</td>
</tr>
<tr>
<td>Smoking</td>
<td>1 pack tobacco per day</td>
<td>2005/05/01 - 2010/02/28</td>
</tr>
</table>
</div>
</text>
<!-- Social History Section Observation Resource -->
<entry>
<reference value="http://hl7.org/fhir/us/core/Observation-some-day-smoker.xml"/>
</entry>
</section>
<!-- General Status Section Narrative -->
<section>
<title value=" General Status Section"/>
<code>
<coding>
<system value="http://loinc.org"/>
<code value="10210-3"/>
<display value="Physical findings of General status"/>
</coding>
</code>
<text>
<status value="generated"/>
<div
xmlns="http://www.w3.org/1999/xhtml">
<p>Alert and in good spirits, no acute distress.</p>
</div>
</text>
</section>
<!-- Functional Status Section Narrative -->
<section>
<title value="Functional Status Section"/>
<code>
<coding>
<system value="http://loinc.org"/>
<code value="47420-5"/>
<display value="Functional status"/>
</coding>
</code>
<text>
<status value="generated"/>
<div
xmlns="http://www.w3.org/1999/xhtml">
<table>
<tr>
<td>
<b>Functional or Cognitive Finding</b>
</td>
<td>
<b>Observation</b>
</td>
<td>
<b>Observation Date</b>
</td>
<td>
<b>Condition Status</b>
</td>
</tr>
<tr>
<td>Ambulation (Dependent to Independent</td>
<td>Independently able</td>
<td>2010/03/11</td>
<td>Active</td>
</tr>
<tr>
<td>Finding of Functional Performance and Activity</td>
<td>Dyspnea</td>
<td>2008/02/16</td>
<td>Active</td>
</tr>
<tr>
<td>Cognitive Function Finding</td>
<td>Memory Impairment</td>
<td>2014/04/29</td>
<td>Active</td>
</tr>
</table>
</div>
</text>
</section>
<!-- Mental Status Section Narrative -->
<section>
<title value="Mental Status Section"/>
<code>
<coding>
<system value="http://loinc.org"/>
<code value="10190-7"/>
<display value="Mental status"/>
</coding>
</code>
<text>
<status value="generated"/>
<div
xmlns="http://www.w3.org/1999/xhtml">
<table border="1" width="100%">
<thead>
<tr>
<td>
<b>Mental Status Findings</b>
</td>
<td>
<b>Effective Dates</b>
</td>
<td>
<b>Condition Status</b>
</td>
</tr>
</thead>
<tr>
<td>Mental Function</td>
<td>July 31, 2013</td>
<td>Impaired</td>
</tr>
<tr>
<td>Cognitive Abilities</td>
<td>July 31, 2013</td>
<td>Judgement, Intact</td>
</tr>
<tr>
<td>Cognitive Function</td>
<td>July 31, 2013</td>
<td>Aggressive Behavior</td>
</tr>
<tr>
<td>Cognitive Function</td>
<td>July 31, 2013</td>
<td>Difficulty understanding own emotions</td>
</tr>
<tr>
<td>Cognitive Function</td>
<td>July 31, 2013</td>
<td>Difficulty communicating Thoughts </td>
</tr>
</table>
</div>
</text>
</section>
<!-- Immunization Section Narrative -->
<section>
<title value="Immunizations Section"/>
<code>
<coding>
<system value="http://loinc.org"/>
<code value="11369-6"/>
<display value="History of immunization"/>
</coding>
</code>
<text>
<status value="generated"/>
<div
xmlns="http://www.w3.org/1999/xhtml">
<table>
<tr>
<td>
<b>Vaccine</b>
</td>
<td>
<b>Date</b>
</td>
<td>
<b>Status</b>
</td>
</tr>
<tr>
<td>Fluvax (Influenza)</td>
<td>2016-04-05</td>
<td>Completed</td>
</tr>
</table>
</div>
</text>
<!-- Immunization Section Resource -->
<entry>
<reference value="http://hl7.org/fhir/us/core/Immunization-imm-1.xml"/>
</entry>
</section>
<!-- Nutrition Section Narrative -->
<section>
<title value=" Nutrition Section"/>
<code>
<coding>
<system value="http://loinc.org"/>
<code value="61144-2"/>
<display value="Diet and nutrition"/>
</coding>
</code>
<text>
<status value="generated"/>
<div
xmlns="http://www.w3.org/1999/xhtml">
<table>
<tr>
<td>
<b>Date</b>
</td>
<td>
<b>Nutritional Status</b>
</td>
<td>
<b>Diet</b>
</td>
</tr>
<tr>
<td>2005/12/29</td>
<td>Well nourished</td>
<td>Low sodium diet, excessive carbohydrate</td>
</tr>
<tr>
<td>2010/05/26</td>
<td>Slight dehydration</td>
<td>High protein, low fibre</td>
</tr>
</table>
</div>
</text>
</section>
<!-- Reason for Referral Section Narrative -->
<section>
<title value="Reason for Referral Section"/>
<code>
<coding>
<system value="http://loinc.org"/>
<code value="42349-1"/>
<display value="Reason for Referral"/>
</coding>
</code>
<text>
<status value="generated"/>
<div
xmlns="http://www.w3.org/1999/xhtml">
<p>Colonoscopy</p>
</div>
</text>
</section>
<!-- Physical Exam Section Narrative -->
<section>
<title value="Physical Exam Section"/>
<code>
<coding>
<system value="http://loinc.org"/>
<code value="29545-1"/>
<display value="Physical findings"/>
</coding>
</code>
<text>
<status value="generated"/>
<div
xmlns="http://www.w3.org/1999/xhtml">
<p>HEENT: All normal to examination.</p>
<p>&gt;HEART: RRR, no murmur.</p>
<p>THORAX &amp; LUNGS: Clear without rhonchi or wheeze.</p>
<p>ABDOMEN: Marked distension and tenderness, slightly obese, pos bowelsounds.</p>
<p>BACK: Normal to inspection and palpation, without tenderness; no presacral edema.</p>
<p>EXTREMITIES: Doughy edema bilaterally, chronic stasis changes, no asymmetrical swelling.</p>
</div>
</text>
</section>
<!-- Review of Systems Section Narrative -->
<section>
<title value="Review of Systems Section"/>
<code>
<coding>
<system value="http://loinc.org"/>
<code value="10187-3"/>
<display value="Review of systems"/>
</coding>
</code>
<text>
<status value="generated"/>
<div
xmlns="http://www.w3.org/1999/xhtml">
<p>Patient denies recent history of fever or malaise. Positive for weakness and
shortness of breath. Several episodes of abdominal tenderness. No recent headaches.
Positive for osteoarthritis in hips, knees and hands. </p>
</div>
</text>
</section>
<!-- Medication Section Narrative -->
<section>
<title value="Medication Section"/>
<code>
<coding>
<system value="http://loinc.org"/>
<code value="10160-0"/>
<display value="History of Medication Use"/>
</coding>
</code>
<text>
<status value="generated"/>
<div
xmlns="http://www.w3.org/1999/xhtml">
<table>
<tr>
<td>
<b>Medication</b>
</td>
<td>
<b>Directions</b>
</td>
<td>
<b>Start Date</b>
</td>
<td>
<b>Status</b>
</td>
<td>
<b>Indications</b>
</td>
<td>
<b>Fill Instructions</b>
</td>
</tr>
<tr>
<td>Amoxicillin</td>
<td>Amoxicillin Powder, for Suspension 250mg/5ml</td>
<td>20160401</td>
<td>Active</td>
<td>Pneumonia</td>
<td>Generic substitution allowed</td>
</tr>
</table>
</div>
</text>
<!-- Medication Section Resource -->
<entry>
<reference value="http://hl7.org/fhir/us/core/MedicationStatement-uscore-ms1.xml"/>
</entry>
</section>
<!-- Medical Equipment Section Narrative -->
<section>
<title value="Medical Equipment Section"/>
<code>
<coding>
<system value="http://loinc.org"/>
<code value="46264-8"/>
<display value="Medical equipment"/>
</coding>
</code>
<text>
<status value="generated"/>
<div
xmlns="http://www.w3.org/1999/xhtml">
<table>
<tr>
<td>
<b>Supply/Device</b>
</td>
<td>
<b>Date Supplied</b>
</td>
</tr>
<tr>
<td>Automatic Implantable cardioverter/defbrillator</td>
<td>2008/11/16</td>
</tr>
<tr>
<td>Wheelchair</td>
<td>1999/12/01</td>
</tr>
</table>
</div>
</text>
</section>
<!-- Plan of Treatment Section Narrative -->
<section>
<title value="Plan of Treatment Section"/>
<code>
<coding>
<system value="http://loinc.org"/>
<code value="18776-5"/>
<display value="Plan of treatment"/>
</coding>
</code>
<text>
<status value="generated"/>
<div
xmlns="http://www.w3.org/1999/xhtml">
<table>
<tr>
<td>
<b>Planned Activity</b>
</td>
<td>
<b>Period</b>
</td>
<td>
<b>Status</b>
</td>
</tr>
<tr>
<td>Colonoscopy</td>
<td>2010/08/16 - 2010/08/16</td>
<td>Completed</td>
</tr>
<tr>
<td>Recommendation to Exercise</td>
<td>2015/10/29</td>
<td>Ongoing</td>
</tr>
</table>
</div>
</text>
</section>
<!-- Problem Section Narrative -->
<section>
<title value="Problem Section"/>
<code>
<coding>
<system value="http://loinc.org"/>
<code value="11450-4"/>
<display value="Problem List"/>
</coding>
</code>
<text>
<status value="generated"/>
<div
xmlns="http://www.w3.org/1999/xhtml">
<table>
<tr>
<td>
<b>Problem Name</b>
</td>
<td>
<b>Type</b>
</td>
<td>
<b>Onset Date</b>
</td>
<td>
<b>Abatement Date</b>
</td>
<td>
<b>Status</b>
</td>
</tr>
<tr>
<td>Fever</td>
<td>Condition</td>
<td>2016-04-01</td>
<td>2016-04-14</td>
<td>Complete</td>
</tr>
</table>
</div>
</text>
<!-- Problem Section Condition Resource -->
<entry>
<reference value="http://hl7.org/fhir/us/core/Condition-hc1.xml"/>
</entry>
</section>
<!-- Procedures Section Narrative -->
<section>
<title value="Procedures Section"/>
<code>
<coding>
<system value="http://loinc.org"/>
<code value="47519-4"/>
<display value="History of procedures"/>
</coding>
</code>
<text>
<status value="generated"/>
<div
xmlns="http://www.w3.org/1999/xhtml">
<table>
<tr>
<td>
<b>Procedure Name</b>
</td>
<td>
<b>Body Site</b>
</td>
<td>
<b>Performer</b>
</td>
<td>
<b>Date Performed</b>
</td>
<td>
<b>Reason</b>
</td>
</tr>
<tr>
<td>Appendectomy (Procedure)</td>
<td>Abdomen</td>
<td>Dr. Adam Everyman</td>
<td>20160405</td>
<td>Generalized abdominal pain 24 hours. Localized in RIF with rebound and guarding</td>
</tr>
</table>
</div>
</text>
<!-- Procedures Section Resource -->
<entry>
<reference value="http://hl7.org/fhir/us/core/Procedure-rehab.xml"/>
</entry>
</section>
<!-- Results Section Narrative -->
<section>
<title value="Results Section"/>
<code>
<coding>
<system value="http://loinc.org"/>
<code value="30954-2"/>
<display value="Relevant diagnostic tests and laboratory data"/>
</coding>
</code>
<text>
<status value="generated"/>
<div
xmlns="http://www.w3.org/1999/xhtml">
<table>
<tr>
<td>
<b>Result Type</b>
</td>
<td>
<b>Quantity Value</b>
</td>
<td>
<b>Date</b>
</td>
<td>
<b>Status</b>
</td>
</tr>
<tr>
<td>Glucose [Moles/volume] in Blood</td>
<td>6.3 mmol/l</td>
<td>2016/04/01</td>
<td>Final</td>
</tr>
</table>
</div>
</text>
<!-- Results Section Observation Resource -->
<entry>
<reference value="http://hl7.org/fhir/us/core/Observation-usg.xml"/>
</entry>
</section>
<!-- Vital Signs Section Narrative -->
<section>
<title value="Vital Signs Section"/>
<code>
<coding>
<system value="http://loinc.org"/>
<code value="8716-3"/>
<display value="Vital signs"/>
</coding>
</code>
<text>
<status value="generated"/>
<div
xmlns="http://www.w3.org/1999/xhtml">
<table>
<tr>
<td>
<b>Vital Sign</b>
</td>
<td>
<b>Date</b>
</td>
<td>
<b>Value</b>
</td>
</tr>
<tr>
<td>Temperature</td>
<td>2016/04/05</td>
<td>39 Degrees Celcius</td>
</tr>
</table>
</div>
</text>
<!-- Vital Signs Section Observation Resource -->
<entry>
<reference value="http://hl7.org/fhir/us/core/Observation-temperature.xml"/>
</entry>
</section>
</Composition>

View File

@ -1,10 +0,0 @@
<Basic xmlns="http://hl7.org/fhir">
<code>
<coding>
<system value="http://snomed.info/sct"/>
<version value="http://snomed.info/sct/32506021000036107/version/20170403"/>
<code value="132037003"/>
<display value="Pineywoods pig breed"/>
</coding>
</code>
</Basic>

View File

@ -1,10 +0,0 @@
<Basic xmlns="http://hl7.org/fhir">
<code>
<coding>
<system value="http://snomed.info/sct"/>
<version value="http://snomed.info/sct/32506021000036107/version/20170403"/>
<code value="132037003"/>
<display value="Pineywoods pig breed. Not."/>
</coding>
</code>
</Basic>

View File

@ -1,9 +0,0 @@
<Basic xmlns="http://hl7.org/fhir">
<code>
<coding>
<system value="http://hl7.org/fhir/ValueSet/account-type"/>
<code value="132037003"/>
<display value="Pineywoods pig breed"/>
</coding>
</code>
</Basic>

View File

@ -1,9 +0,0 @@
<Basic xmlns="http://hl7.org/fhir">
<code>
<coding>
<system value="http://snomed.info/sct/32506021000036107/version/20170403"/>
<code value="132037003"/>
<display value="Pineywoods pig breed"/>
</coding>
</code>
</Basic>

View File

@ -1,21 +0,0 @@
{
"resourceType": "Questionnaire",
"id": "questionnaire-test-frag",
"url": "http://example.com/fhir/Questionnaire/test-1",
"status": "draft",
"item": [
{
"linkId": "q1",
"type": "choice",
"answerValueSet": "#options-1"
}
],
"contained": [
{
"resourceType": "ValueSet",
"id": "options-1",
"url": "http://example.com/fhir/ValueSet/options-1",
"status": "draft"
}
]
}

View File

@ -1,57 +0,0 @@
<!--
Conforms to the document-structure template
-->
<Composition xmlns="http://hl7.org/fhir">
<id value="test-document-good"/>
<status value="final"/>
<type>
<text value="test document"/>
</type>
<date value="2018-11-06T07:14:00+11:00"/>
<author>
<display value="grahame grieve"/>
</author>
<title value="TestDocument"/>
<!-- codea section -->
<section>
<code>
<coding>
<system value="http://hl7.org/fhir/test/CodeSystem/imaginary"/>
<code value="code-a"/>
</coding>
</code>
<text>
<status value="additional"/>
<div xmlns="http://www.w3.org/1999/xhtml">Code A Section</div>
</text>
</section>
<!-- codeb section -->
<section>
<code>
<coding>
<system value="http://hl7.org/fhir/test/CodeSystem/imaginary"/>
<code value="code-b"/>
</coding>
<coding>
<system value="http://hl7.org/fhir/test/CodeSystem/other"/>
<code value="other"/>
</coding>
</code>
<text>
<status value="additional"/>
<div xmlns="http://www.w3.org/1999/xhtml">Code B Section</div>
</text>
</section>
<section>
<code>
<coding>
<system value="http://hl7.org/fhir/test/CodeSystem/imaginary"/>
<code value="code-c"/>
</coding>
</code>
<text>
<status value="additional"/>
<div xmlns="http://www.w3.org/1999/xhtml">Code C Section</div>
</text>
</section>
</Composition>

View File

@ -1,17 +0,0 @@
<!--
Does not conforms to the document-structure template:
- no sections
-->
<Composition xmlns="http://hl7.org/fhir">
<id value="test-document-good"/>
<status value="final"/>
<type>
<text value="test document"/>
</type>
<date value="2018-11-06T07:14:00+11:00"/>
<author>
<display value="grahame grieve"/>
</author>
<title value="TestDocument"/>
</Composition>

View File

@ -1,62 +0,0 @@
<!--
Conforms to the document-structure template
-->
<Composition xmlns="http://hl7.org/fhir">
<id value="test-document-good"/>
<status value="final"/>
<type>
<text value="test document"/>
</type>
<date value="2018-11-06T07:14:00+11:00"/>
<author>
<display value="grahame grieve"/>
</author>
<title value="TestDocument"/>
<!-- codea section -->
<section>
<code>
<coding>
<system value="http://hl7.org/fhir/test/CodeSystem/imaginary"/>
<code value="code-a"/>
</coding>
</code>
<focus>
<display value="some value for conformance purposes"/>
</focus>
<text>
<status value="additional"/>
<div xmlns="http://www.w3.org/1999/xhtml">Code A Section</div>
</text>
</section>
<!-- codeb section -->
<section>
<title value="section title"/>
<code>
<coding>
<system value="http://hl7.org/fhir/test/CodeSystem/imaginary"/>
<code value="code-b"/>
</coding>
<coding>
<system value="http://hl7.org/fhir/test/CodeSystem/other"/>
<code value="other"/>
</coding>
</code>
<text>
<status value="additional"/>
<div xmlns="http://www.w3.org/1999/xhtml">Code B Section</div>
</text>
</section>
<section>
<code>
<coding>
<system value="http://hl7.org/fhir/test/CodeSystem/imaginary"/>
<code value="code-c"/>
</coding>
</code>
<text>
<status value="additional"/>
<div xmlns="http://www.w3.org/1999/xhtml">Code C Section</div>
</text>
<mode value="working"/>
</section>
</Composition>

View File

@ -1,104 +0,0 @@
<!--
Document section library - a set of section structure definitions that are intended to be re-used elsewhere
Defines 3 sections:
- codeA
- codeB
- codeC
These should be sliced by pattern on Section.code
-->
<StructureDefinition xmlns="http://hl7.org/fhir">
<id value="document-section-library"/>
<url value="http://hl7.org/fhir/test/StructureDefinition/document-section-library"/>
<name value="DocumentSectionLibrary"/>
<title value="Document Section Library (For testing section templates)"/>
<status value="active"/>
<experimental value="false"/>
<date value="2018-11-05T17:57:00+11:00"/>
<kind value="complex-type"/>
<abstract value="true"/>
<type value="Composition"/>
<baseDefinition value="http://hl7.org/fhir/StructureDefinition/Composition"/>
<derivation value="constraint"/>
<differential>
<element>
<!-- this is present to work around a bug in the snapshot generator -->
<path value="Composition"/>
</element>
<element>
<!-- set up slicing on Composition.section - by the code. Actually, this slicing is never used anywhere since this library is abstract -->
<path value="Composition.section"/>
<slicing>
<discriminator>
<type value="pattern"/>
<path value="code"/>
</discriminator>
<description value="Slice by .section.code when using this library of sections"/>
<ordered value="true"/>
<rules value="closed"/>
</slicing>
</element>
<!-- code B -->
<element>
<path value="Composition.section"/>
<sliceName value="codeB"/>
</element>
<element>
<path value="Composition.section.title"/>
<min value="1"/>
</element>
<element>
<path value="Composition.section.code"/>
<min value="1"/>
<patternCodeableConcept>
<coding>
<system value="http://hl7.org/fhir/test/CodeSystem/imaginary"/>
<code value="code-b"/>
</coding>
</patternCodeableConcept>
</element>
<!-- code A -->
<element>
<path value="Composition.section"/>
<sliceName value="codeA"/>
</element>
<element>
<path value="Composition.section.code"/>
<min value="1"/>
<patternCodeableConcept>
<coding>
<system value="http://hl7.org/fhir/test/CodeSystem/imaginary"/>
<code value="code-a"/>
</coding>
</patternCodeableConcept>
</element>
<element>
<path value="Composition.section.focus"/>
<min value="1"/>
</element>
<!-- code C -->
<element>
<path value="Composition.section"/>
<sliceName value="codeC"/>
</element>
<element>
<path value="Composition.section.code"/>
<min value="1"/>
<patternCodeableConcept>
<coding>
<system value="http://hl7.org/fhir/test/CodeSystem/imaginary"/>
<code value="code-c"/>
</coding>
</patternCodeableConcept>
</element>
<element>
<path value="Composition.section.mode"/>
<min value="1"/>
</element>
</differential>
</StructureDefinition>

View File

@ -1,84 +0,0 @@
<!--
Document structure definition
uses the section library to require 3 sections, each
with a different code:
- code a
- code b
- code c
-->
<StructureDefinition xmlns="http://hl7.org/fhir">
<id value="document-structure"/>
<url value="http://hl7.org/fhir/test/StructureDefinition/document-structure"/>
<name value="DocumentStructure"/>
<title value="Document Structure (For testing section templates)"/>
<status value="active"/>
<experimental value="false"/>
<date value="2018-11-05T17:47:00+11:00"/>
<kind value="complex-type"/>
<abstract value="false"/>
<type value="Composition"/>
<baseDefinition value="http://hl7.org/fhir/StructureDefinition/Composition"/>
<derivation value="constraint"/>
<differential>
<element>
<!-- this is present to work around a bug in the snapshot generator -->
<path value="Composition"/>
</element>
<element>
<!-- set up slicing on Composition.section - by the code -->
<path value="Composition.section"/>
<slicing>
<discriminator>
<type value="pattern"/>
<path value="code"/>
</discriminator>
<description value="Slice by .section.code"/>
<ordered value="true"/>
<rules value="closed"/>
</slicing>
</element>
<element>
<!-- first slice -->
<path value="Composition.section"/>
<sliceName value="code-A"/>
<min value="1"/>
<type>
<code value="BackboneElement"/>
<profile value="http://hl7.org/fhir/test/StructureDefinition/document-section-library">
<extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-profile-element">
<valueString value="Composition.section:codeA"/>
</extension>
</profile>
</type>
</element>
<element>
<!-- first slice -->
<path value="Composition.section"/>
<sliceName value="code-B"/>
<min value="1"/>
<type>
<code value="BackboneElement"/>
<profile value="http://hl7.org/fhir/test/StructureDefinition/document-section-library">
<extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-profile-element">
<valueString value="Composition.section:codeB"/>
</extension>
</profile>
</type>
</element>
<element>
<!-- first slice -->
<path value="Composition.section"/>
<sliceName value="code-C"/>
<min value="0"/>
<type>
<code value="BackboneElement"/>
<profile value="http://hl7.org/fhir/test/StructureDefinition/document-section-library">
<extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-profile-element">
<valueString value="Composition.section:codeC"/>
</extension>
</profile>
</type>
</element>
</differential>
</StructureDefinition>

View File

@ -1,23 +0,0 @@
<Patient xmlns="http://hl7.org/fhir">
<id value="pat-good"/>
<meta>
<security>
<system value="http://test.org"/>
<code value="x"/>
</security>
<security>
<system value="http://test.org"/>
<code value="y"/>
</security>
<security>
<system value="http://test.org"/>
<code value="x"/>
</security>
</meta>
<text>
<status value="generated"/>
<div xmlns="http://www.w3.org/1999/xhtml">
some text in no particular language
</div>
</text>
</Patient>

View File

@ -1,12 +0,0 @@
<Bundle xmlns="http://hl7.org/fhir">
<id value="bundle"/>
<type value="collection"/>
<entry>
<fullUrl value="http://acme.com/Patient/pat1"/>
<resource>
<Patient>
<id value="pat2"/>
</Patient>
</resource>
</entry>
</Bundle>

View File

@ -1,47 +0,0 @@
<?xml version="1.0" encoding="UTF-8"?>
<!--<StructureDefinition xmlns="http://hl7.org/fhir" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://hl7.org/fhir ../../../../../../FHIR/schema/fhir-single.xsd">-->
<StructureDefinition xmlns="http://hl7.org/fhir">
<id value="extension-slice-profile"/>
<url value="http://hl7.org/fhir/StructureDefinition/extension-slice-profile"/>
<name value="ExtensionSliceProfile"/>
<status value="draft"/>
<description value="Test slicing by extension with fixed value"/>
<kind value="resource"/>
<abstract value="false"/>
<type value="Patient"/>
<baseDefinition value="http://hl7.org/fhir/StructureDefinition/Patient"/>
<derivation value="constraint"/>
<differential>
<element id="Patient">
<path value="Patient"/>
</element>
<element id="Patient.name">
<path value="Patient.name"/>
<slicing>
<discriminator>
<type value="value"/>
<path value="extension(&#39;http://hl7.org/fhir/StructureDefinition/data-absent-reason&#39;).value"/>
</discriminator>
<rules value="open"/>
</slicing>
</element>
<element id="Patient.name:foo">
<path value="Patient.name"/>
<sliceName value="foo"/>
<min value="1"/>
</element>
<element id="Patient.name:foo.extension:dar">
<path value="Patient.name.extension"/>
<sliceName value="dar"/>
<min value="1"/>
<type>
<code value="Extension"/>
<profile value="http://hl7.org/fhir/StructureDefinition/data-absent-reason"/>
</type>
</element>
<element id="Patient.name:foo.extension:dar.valueCode">
<path value="Patient.name.extension.valueCode"/>
<fixedCode value="unknown"/>
</element>
</differential>
</StructureDefinition>

View File

@ -1,13 +0,0 @@
<Patient xmlns="http://hl7.org/fhir">
<id value="extension-slice"/>
<text>
<status value="generated"/>
<div xmlns="http://www.w3.org/1999/xhtml">
</div>
</text>
<name>
<extension url="http://hl7.org/fhir/StructureDefinition/data-absent-reason">
<valueCode value="unknown"/>
</extension>
</name>
</Patient>

View File

@ -1,14 +0,0 @@
{
"resourceType": "CareTeam",
"participant": [
{
"member": {
"reference": "Practitioner/notprac"
},
"onBehalfOf": {
"reference": "Organization/2"
}
}
]
}

View File

@ -1,14 +0,0 @@
{
"resourceType": "CareTeam",
"participant": [
{
"member": {
"reference": "Practitioner/1"
},
"onBehalfOf": {
"reference": "Organization/2"
}
}
]
}

View File

@ -1,14 +0,0 @@
{
"resourceType": "CareTeam",
"participant": [
{
"member": {
"reference": "Practitioner/x"
},
"onBehalfOf": {
"reference": "Organization/2"
}
}
]
}

View File

@ -1,14 +0,0 @@
{
"resourceType": "Group",
"type": "person",
"actual": true,
"characteristic": [
{
"code": {
"text": "test"
},
"value": true,
"exclude": false
}
]
}

View File

@ -1,21 +0,0 @@
@prefix fhir: <http://hl7.org/fhir/> .
@prefix owl: <http://www.w3.org/2002/07/owl#> .
@prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#> .
@prefix xs: <http://www.w3.org/2001/XMLSchema#> .
# - resource -------------------------------------------------------------------
[a fhir:Group;
fhir:nodeRole fhir:treeRoot;
fhir:Group.type [ fhir:value "person"];
fhir:Group.actual [ fhir:value "true"^^xsd:boolean];
fhir:Group.characteristic [
fhir:index 0;
fhir:Group.characteristic.code [
fhir:CodeableConcept.text [ fhir:value "test" ]
];
fhir:Group.characteristic.exclude [ fhir:value "false"^^xsd:boolean ]
]].
# -------------------------------------------------------------------------------------

View File

@ -1,11 +0,0 @@
<Group xmlns="http://hl7.org/fhir">
<type value="person"/>
<actual value="true"/>
<characteristic>
<code>
<text value="test"/>
</code>
<value value="true"/>
<exclude value="false"/>
</characteristic>
</Group>

View File

@ -1,14 +0,0 @@
{
"resourceType": "Group",
"type": "person",
"actual": true,
"characteristic": [
{
"code": {
"text": "test"
},
"valueInteger": 1,
"exclude": false
}
]
}

View File

@ -1,21 +0,0 @@
@prefix fhir: <http://hl7.org/fhir/> .
@prefix owl: <http://www.w3.org/2002/07/owl#> .
@prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#> .
@prefix xs: <http://www.w3.org/2001/XMLSchema#> .
# - resource -------------------------------------------------------------------
[a fhir:Group;
fhir:nodeRole fhir:treeRoot;
fhir:Group.type [ fhir:value "person"];
fhir:Group.actual [ fhir:value "true"^^xsd:boolean];
fhir:Group.characteristic [
fhir:index 0;
fhir:Group.characteristic.code [
fhir:CodeableConcept.text [ fhir:value "test" ]
];
fhir:Group.characteristic.exclude [ fhir:value "false"^^xsd:boolean ]
]].
# -------------------------------------------------------------------------------------

View File

@ -1,11 +0,0 @@
<Group xmlns="http://hl7.org/fhir">
<type value="person"/>
<actual value="true"/>
<characteristic>
<code>
<text value="test"/>
</code>
<valueInteger value="1"/>
<exclude value="false"/>
</characteristic>
</Group>

View File

@ -1,14 +0,0 @@
{
"resourceType": "Group",
"type": "person",
"actual": true,
"characteristic": [
{
"code": {
"text": "test"
},
"valueBoolean": 1,
"exclude": false
}
]
}

View File

@ -1,22 +0,0 @@
@prefix fhir: <http://hl7.org/fhir/> .
@prefix owl: <http://www.w3.org/2002/07/owl#> .
@prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#> .
@prefix xs: <http://www.w3.org/2001/XMLSchema#> .
# - resource -------------------------------------------------------------------
[a fhir:Group;
fhir:nodeRole fhir:treeRoot;
fhir:Group.type [ fhir:value "person"];
fhir:Group.actual [ fhir:value "true"^^xsd:boolean];
fhir:Group.characteristic [
fhir:index 0;
fhir:Group.characteristic.code [
fhir:CodeableConcept.text [ fhir:value "test" ]
];
fhir:Group.characteristic.valueBoolean [ fhir:value "1"^^xsd:boolean ];
fhir:Group.characteristic.exclude [ fhir:value "false"^^xsd:boolean ]
]].
# -------------------------------------------------------------------------------------

View File

@ -1,11 +0,0 @@
<Group xmlns="http://hl7.org/fhir">
<type value="person"/>
<actual value="true"/>
<characteristic>
<code>
<text value="test"/>
</code>
<valueBoolean value="1"/>
<exclude value="false"/>
</characteristic>
</Group>

View File

@ -1,12 +0,0 @@
{
"resourceType": "Group",
"type": "person",
"actual": true,
"characteristic": [
{
"code": {}
"valueBoolean": true,
"exclude": false
}
]
}

View File

@ -1,20 +0,0 @@
@prefix fhir: <http://hl7.org/fhir/> .
@prefix owl: <http://www.w3.org/2002/07/owl#> .
@prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#> .
@prefix xs: <http://www.w3.org/2001/XMLSchema#> .
# - resource -------------------------------------------------------------------
[a fhir:Group;
fhir:nodeRole fhir:treeRoot;
fhir:Group.type [ fhir:value "person"];
fhir:Group.actual [ fhir:value "true"^^xsd:boolean];
fhir:Group.characteristic [
fhir:index 0;
fhir:Group.characteristic.code [ ];
fhir:Group.characteristic.valueBoolean [ fhir:value "true"^^xsd:boolean ];
fhir:Group.characteristic.exclude [ fhir:value "false"^^xsd:boolean ]
]].
# -------------------------------------------------------------------------------------

View File

@ -1,10 +0,0 @@
<Group xmlns="http://hl7.org/fhir">
<type value="person"/>
<actual value="true"/>
<characteristic>
<code>
</code>
<valueBoolean value="true"/>
<exclude value="false"/>
</characteristic>
</Group>

View File

@ -1,14 +0,0 @@
{
"resourceType": "Group",
"type": "person",
"actual": true,
"characteristic": [
{
"code": {
"text": "test"
},
"valueBoolean": true,
"exclude": false
}
]
}

View File

@ -1,22 +0,0 @@
@prefix fhir: <http://hl7.org/fhir/> .
@prefix owl: <http://www.w3.org/2002/07/owl#> .
@prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#> .
@prefix xs: <http://www.w3.org/2001/XMLSchema#> .
# - resource -------------------------------------------------------------------
[a fhir:Group;
fhir:nodeRole fhir:treeRoot;
fhir:Group.type [ fhir:value "person"];
fhir:Group.actual [ fhir:value "true"^^xsd:boolean];
fhir:Group.characteristic [
fhir:index 0;
fhir:Group.characteristic.code [
fhir:CodeableConcept.text [ fhir:value "test" ]
];
fhir:Group.characteristic.valueBoolean [ fhir:value "true"^^xsd:boolean ];
fhir:Group.characteristic.exclude [ fhir:value "false"^^xsd:boolean ]
]].
# -------------------------------------------------------------------------------------

View File

@ -1,11 +0,0 @@
<Group xmlns="http://hl7.org/fhir">
<type value="person"/>
<actual value="true"/>
<characteristic>
<code>
<text value="test"/>
</code>
<valueBoolean value="true"/>
<exclude value="false"/>
</characteristic>
</Group>

View File

@ -1 +0,0 @@
{"resourceType":"Group","type":"person","actual":true}

View File

@ -1,14 +0,0 @@
@prefix fhir: <http://hl7.org/fhir/> .
@prefix owl: <http://www.w3.org/2002/07/owl#> .
@prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#> .
@prefix xs: <http://www.w3.org/2001/XMLSchema#> .
# - resource -------------------------------------------------------------------
[a fhir:Group;
fhir:nodeRole fhir:treeRoot;
fhir:Group.type [ fhir:value "person"];
fhir:Group.actual [ fhir:value "true"^^xsd:boolean]].
# -------------------------------------------------------------------------------------

View File

@ -1,5 +0,0 @@
{
"resourceType": "Group",
"type": "person",
"actual": true
}

View File

@ -1,14 +0,0 @@
@prefix fhir: <http://hl7.org/fhir/> .
@prefix owl: <http://www.w3.org/2002/07/owl#> .
@prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#> .
@prefix xs: <http://www.w3.org/2001/XMLSchema#> .
# - resource -------------------------------------------------------------------
[a fhir:Group;
fhir:nodeRole fhir:treeRoot;
fhir:Group.type [ fhir:value "person"];
fhir:Group.actual [ fhir:value "true"^^xsd:boolean]].
# -------------------------------------------------------------------------------------

View File

@ -1,4 +0,0 @@
<Group xmlns="http://hl7.org/fhir">
<type value="person"/>
<actual value="true"/>
</Group>

View File

@ -1,38 +0,0 @@
<?xml version="1.0" encoding="UTF-8"?>
<Practitioner xmlns="http://hl7.org/fhir">
<meta>
<profile value = "https://example.de/fhir/StructureDefinition/MyPractitioner"/>
</meta>
<active value="true"/>
<name>
<use value = "temp"/>
<family value="Meier"/>
<given value="Maria"/>
<given value="Anna"/>
<prefix value = "Dr.med."/>
</name>
<name>
<use value = "maiden"/>
<family value="Müller"/>
<given value="Maria"/>
<given value="Anna"/>
<prefix value = "Dr.med."/>
</name>
<telecom>
<system value="phone" />
<value value= "030-1234567"/>
<use value = "work"/>
</telecom>
<telecom>
<system value="email" />
<value value= "meierA@hno.de"/>
<use value = "work"/>
</telecom>
<address>
<use value = "work"/>
<type value = "physical"/>
<state value = "DE-BE"/>
<postalCode value = "10117"/>
<country value = "DE"/>
</address>
</Practitioner>

View File

@ -1,56 +0,0 @@
<?xml version="1.0" encoding="UTF-8"?>
<StructureDefinition xmlns="http://hl7.org/fhir">
<url value="https://example.de/fhir/StructureDefinition/MyPractitioner"/>
<name value="MyPractitioner"/> <status value="draft"/>
<fhirVersion value="3.0.1"/>
<kind value="resource"/>
<abstract value="false"/>
<type value="Practitioner"/>
<baseDefinition value="http://hl7.org/fhir/StructureDefinition/Practitioner"/>
<derivation value="constraint"/>
<differential>
<element id="Practitioner">
<path value="Practitioner"/>
<constraint>
<key value="oneOfficialName"/>
<severity value="error"/>
<human value="One name must be official."/>
<expression value="name.where(use=&apos;official&apos;).count()&gt;0"/>
</constraint>
</element>
<element id="Practitioner.name">
<path value="Practitioner.name"/>
<min value="1"/>
</element>
<element id="Practitioner.name.family">
<path value="Practitioner.name.family"/> <min value="1"/> </element>
<element id="Practitioner.name.given">
<path value="Practitioner.name.given"/> <min value="1"/> </element>
<element id="Practitioner.address">
<path value="Practitioner.address"/> <min value="1"/> </element>
<element id="Practitioner.address.use">
<path value="Practitioner.address.use"/> <fixedCode value="work"/> </element>
<element id="Practitioner.address.type">
<path value="Practitioner.address.type"/> <fixedCode value="physical"/> </element>
<element id="Practitioner.address.line.extension:Postfach">
<path value="Practitioner.address.line.extension"/> <sliceName value="Postfach"/> <max value="0"/> </element>
<element id="Practitioner.address.state">
<path value="Practitioner.address.state"/> <binding>
<strength value="required"/> <description value="Bundesl&#228;nder"/> </binding>
</element>
<element id="Practitioner.address.postalCode">
<path value="Practitioner.address.postalCode"/> <min value="1"/> </element>
<element id="Practitioner.address.country">
<path value="Practitioner.address.country"/> <min value="1"/> <binding>
<strength value="required"/> </binding>
</element>
<element id="Practitioner.gender">
<path value="Practitioner.gender"/> <max value="0"/> </element>
<element id="Practitioner.birthDate">
<path value="Practitioner.birthDate"/> <max value="0"/> </element>
<element id="Practitioner.photo">
<path value="Practitioner.photo"/> <max value="0"/> </element>
<element id="Practitioner.communication">
<path value="Practitioner.communication"/> <max value="0"/> </element>
</differential>
</StructureDefinition>

View File

@ -1,14 +0,0 @@
{
"resourceType": "List",
"fhir_comments": [
" this is all valid "
],
"id": "val1"
"_id": {
"fhir_comments": [
" another comment "
]
},
"status": "current",
"mode": "changes"
}

View File

@ -1,8 +0,0 @@
<!-- this is all valid -->
<List xmlns="http://hl7.org/fhir">
<!-- another comment -->
<id value="val1">
<status value="current"/>
<mode value="changes"/>
</List>
<!-- ending comment -->

View File

@ -1,15 +0,0 @@
{
"resourceType": "List",
"id": "val1",
"contained": [
{
"resourceType": "Patient",
"id" : "pat2"
}
],
"status": "current",
"mode": "changes",
"subject": {
"reference": "#pat"
}
}

View File

@ -1,23 +0,0 @@
@prefix fhir: <http://hl7.org/fhir/> .
@prefix owl: <http://www.w3.org/2002/07/owl#> .
@prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#> .
@prefix xs: <http://www.w3.org/2001/XMLSchema#> .
# - resource -------------------------------------------------------------------
[a fhir:List;
fhir:nodeRole fhir:treeRoot;
fhir:Resource.id [ fhir:value "val1"];
fhir:Resource.contained [
a fhir:Patient;
fhir:index 0;
fhir:Resource.id [ fhir:value "pat2" ]
];
fhir:List.status [ fhir:value "current"];
fhir:List.mode [ fhir:value "changes"];
fhir:List.subject [
fhir:Reference.reference [ fhir:value "#pat" ]
]].
# -------------------------------------------------------------------------------------

View File

@ -1,14 +0,0 @@
<List xmlns="http://hl7.org/fhir">
<id value="val1"/>
<contained>
<Patient>
<id value="pat1"/>
</Patient>
</contained>
<status value="current"/>
<mode value="changes"/>
<subject>
<reference value="#pat"/>
</subject>
</List>

View File

@ -1,15 +0,0 @@
{
"resourceType": "List",
"id": "val1",
"contained": [
{
"resourceType": "Patient",
"id" : "pat"
}
],
"status": "current",
"mode": "changes",
"subject": {
"reference": "#pat"
}
}

View File

@ -1,23 +0,0 @@
@prefix fhir: <http://hl7.org/fhir/> .
@prefix owl: <http://www.w3.org/2002/07/owl#> .
@prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#> .
@prefix xs: <http://www.w3.org/2001/XMLSchema#> .
# - resource -------------------------------------------------------------------
[a fhir:List;
fhir:nodeRole fhir:treeRoot;
fhir:Resource.id [ fhir:value "val1"];
fhir:Resource.contained [
a fhir:Patient;
fhir:index 0;
fhir:Resource.id [ fhir:value "pat" ]
];
fhir:List.status [ fhir:value "current"];
fhir:List.mode [ fhir:value "changes"];
fhir:List.subject [
fhir:Reference.reference [ fhir:value "#pat" ]
]].
# -------------------------------------------------------------------------------------

View File

@ -1,14 +0,0 @@
<List xmlns="http://hl7.org/fhir">
<id value="val1"/>
<contained>
<Patient>
<id value="pat"/>
</Patient>
</contained>
<status value="current"/>
<mode value="changes"/>
<subject>
<reference value="#pat"/>
</subject>
</List>

View File

@ -1,9 +0,0 @@
{
"resourceType": "List",
"id": "val1",
"status": "current",
"mode": "changes",
"entry": [
{}
]
}

View File

@ -1,16 +0,0 @@
@prefix fhir: <http://hl7.org/fhir/> .
@prefix owl: <http://www.w3.org/2002/07/owl#> .
@prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#> .
@prefix xs: <http://www.w3.org/2001/XMLSchema#> .
# - resource -------------------------------------------------------------------
[a fhir:List;
fhir:nodeRole fhir:treeRoot;
fhir:Resource.id [ fhir:value "val1"];
fhir:List.status [ fhir:value "current"];
fhir:List.mode [ fhir:value "changes"];
fhir:List.entry [ fhir:index 0]].
# -------------------------------------------------------------------------------------

View File

@ -1,9 +0,0 @@
<!-- this is all valid -->
<List xmlns="http://hl7.org/fhir">
<!-- another comment -->
<id value="val1"/>
<status value="current"/>
<mode value="changes"/>
<entry/>
</List>
<!-- ending comment -->

View File

@ -1,8 +0,0 @@
{
"resourceType": "List",
"id": "val1",
"status": "current",
"mode": "changes",
"entry": [
]
}

View File

@ -1,15 +0,0 @@
@prefix fhir: <http://hl7.org/fhir/> .
@prefix owl: <http://www.w3.org/2002/07/owl#> .
@prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#> .
@prefix xs: <http://www.w3.org/2001/XMLSchema#> .
# - resource -------------------------------------------------------------------
[a fhir:List;
fhir:nodeRole fhir:treeRoot;
fhir:Resource.id [ fhir:value "val1"];
fhir:List.status [ fhir:value "current"];
fhir:List.mode [ fhir:value "changes"]].
# -------------------------------------------------------------------------------------

View File

@ -1,11 +0,0 @@
<!-- this is all valid -->
<List xmlns="http://hl7.org/fhir">
<!-- another comment -->
<id value="val1"/>
<status value="current"/>
<mode value="changes"/>
<entry>
<!-- a comment -->
</entry>
</List>
<!-- ending comment -->

View File

@ -1,22 +0,0 @@
@prefix fhir: <http://hl7.org/fhir/> .
@prefix owl: <http://www.w3.org/2002/07/owl#> .
@prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#> .
@prefix xs: <http://www.w3.org/2001/XMLSchema#> .
# - resource -------------------------------------------------------------------
[a fhir:List;
fhir:nodeRole fhir:treeRoot;
fhir:Resource.id [ fhir:value "val1"];
fhir:List.status [
fhir:value "current";
fhir:string.extension [
fhir:index 0;
fhir:Extension.url [ fhir:value "http://acme.com/some_url" ];
fhir:Extension.valueCode [ fhir:value "code" ]
]
];
fhir:List.mode [ fhir:value "changes"]].
# -------------------------------------------------------------------------------------

View File

@ -1,12 +0,0 @@
<!-- this is all valid -->
<List xmlns="http://hl7.org/fhir">
<!-- another comment -->
<id value="val1"/>
<status value="current">
<extension url="http://acme.com/some_url">
<valueCode value="code"/>
</extension>
</status>
<mode value="changes"/>
</List>
<!-- ending comment -->

View File

@ -1,22 +0,0 @@
{
"resourceType": "List",
"fhir_comments": [
" this is all valid "
],
"id": "val1",
"_id": {
"fhir_comments": [
" another comment "
]
},
"status": "current",
"_status": {
"extension": [
{
"url": "http://acme.com/some_url",
"valueCode": "code"
}
]
},
"mode": "changes"
}

View File

@ -1,22 +0,0 @@
@prefix fhir: <http://hl7.org/fhir/> .
@prefix owl: <http://www.w3.org/2002/07/owl#> .
@prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#> .
@prefix xs: <http://www.w3.org/2001/XMLSchema#> .
# - resource -------------------------------------------------------------------
[a fhir:List;
fhir:nodeRole fhir:treeRoot;
fhir:Resource.id [ fhir:value "val1"];
fhir:List.status [
fhir:value "current";
fhir:string.extension [
fhir:index 0;
fhir:Extension.url [ fhir:value "http://acme.com/some_url" ];
fhir:Extension.valueCode [ fhir:value "code" ]
]
];
fhir:List.mode [ fhir:value "changes"]].
# -------------------------------------------------------------------------------------

View File

@ -1,22 +0,0 @@
{
"resourceType": "List",
"fhir_comments": [
" this is all valid "
],
"id": "val1",
"_id": {
"fhir_comments": [
" another comment "
]
},
"status": "current",
"_status": {
"extension": [
{
"url": "http://acme.com/some_url",
"valueCodeX": "code"
}
]
},
"mode": "changes"
}

View File

@ -1,21 +0,0 @@
@prefix fhir: <http://hl7.org/fhir/> .
@prefix owl: <http://www.w3.org/2002/07/owl#> .
@prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#> .
@prefix xs: <http://www.w3.org/2001/XMLSchema#> .
# - resource -------------------------------------------------------------------
[a fhir:List;
fhir:nodeRole fhir:treeRoot;
fhir:Resource.id [ fhir:value "val1"];
fhir:List.status [
fhir:value "current";
fhir:string.extension [
fhir:index 0;
fhir:Extension.url [ fhir:value "http://acme.com/some_url" ]
]
];
fhir:List.mode [ fhir:value "changes"]].
# -------------------------------------------------------------------------------------

View File

@ -1,14 +0,0 @@
{
"resourceType": "List",
"fhir_comments": [
" this is all valid "
],
"id": "val1",
"_id": {
"fhir_comments": [
" another comment "
]
},
"status": "current",
"mode": "changes"
}

View File

@ -1,15 +0,0 @@
@prefix fhir: <http://hl7.org/fhir/> .
@prefix owl: <http://www.w3.org/2002/07/owl#> .
@prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#> .
@prefix xs: <http://www.w3.org/2001/XMLSchema#> .
# - resource -------------------------------------------------------------------
[a fhir:List;
fhir:nodeRole fhir:treeRoot;
fhir:Resource.id [ fhir:value "val1"];
fhir:List.status [ fhir:value "current"];
fhir:List.mode [ fhir:value "changes"]].
# -------------------------------------------------------------------------------------

View File

@ -1,8 +0,0 @@
<!-- this is all valid -->
<List xmlns="http://hl7.org/fhir">
<!-- another comment -->
<id value="val1"/>
<status value="current"/>
<mode value="changes"/>
</List>
<!-- ending comment -->

View File

@ -1,15 +0,0 @@
@prefix fhir: <http://hl7.org/fhir/> .
@prefix owl: <http://www.w3.org/2002/07/owl#> .
@prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#> .
@prefix xs: <http://www.w3.org/2001/XMLSchema#> .
# - resource -------------------------------------------------------------------
[a fhir:List;
fhir:nodeRole fhir:treeRoot;
fhir:Resource.id [ fhir:value "val1"];
fhir:List.status [ fhir:value "current"];
fhir:List.mode [ fhir:value "changes"]].
# -------------------------------------------------------------------------------------

View File

@ -1,8 +0,0 @@
<!-- this is all valid -->
<List xmlns="http://hl7.org/fhir">
<!-- another comment -->
<id value="val1">some text</id>
<status value="current"/>
<mode value="changes"/>
</List>
<!-- ending comment -->

View File

@ -1,15 +0,0 @@
@prefix fhir: <http://hl7.org/fhir/> .
@prefix owl: <http://www.w3.org/2002/07/owl#> .
@prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#> .
@prefix xs: <http://www.w3.org/2001/XMLSchema#> .
# - resource -------------------------------------------------------------------
[a fhir:List;
fhir:nodeRole fhir:treeRoot;
fhir:Resource.id [ fhir:value "val1"];
fhir:List.status [ fhir:value "current"];
fhir:List.mode [ fhir:value "changes"]].
# -------------------------------------------------------------------------------------

View File

@ -1,8 +0,0 @@
<!-- this is all valid -->
<List xmlns="http://hl7.org/fhir">
<!-- another comment -->
<id value="val1" other="nothing"/>
<status value="current"/>
<mode value="changes"/>
</List>
<!-- ending comment -->

View File

@ -1,15 +0,0 @@
@prefix fhir: <http://hl7.org/fhir/> .
@prefix owl: <http://www.w3.org/2002/07/owl#> .
@prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#> .
@prefix xs: <http://www.w3.org/2001/XMLSchema#> .
# - resource -------------------------------------------------------------------
[a fhir:List;
fhir:nodeRole fhir:treeRoot;
fhir:Resource.id [ fhir:value "val1"];
fhir:List.status [ fhir:value "current"];
fhir:List.mode [ fhir:value "changes"]].
# -------------------------------------------------------------------------------------

View File

@ -1,9 +0,0 @@
<!-- this is all valid -->
<List xmlns="http://hl7.org/fhir">
<!-- another comment -->
<id value="val1"/>
<status value="current"/>
<mode value="changes"/>
<mode1 value="changes"/>
</List>
<!-- ending comment -->

View File

@ -1,15 +0,0 @@
{
"resourceType": "List",
"fhir_comments": [
" this is all valid "
],
"id": "val1",
"_id": {
"fhir_comments": [
" another comment "
]
},
"other" : "nothing",
"status": "current",
"mode": "changes"
}

View File

@ -1,15 +0,0 @@
@prefix fhir: <http://hl7.org/fhir/> .
@prefix owl: <http://www.w3.org/2002/07/owl#> .
@prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#> .
@prefix xs: <http://www.w3.org/2001/XMLSchema#> .
# - resource -------------------------------------------------------------------
[a fhir:List;
fhir:nodeRole fhir:treeRoot;
fhir:Resource.id [ fhir:value "val1"];
fhir:List.status [ fhir:value "current"];
fhir:List.mode [ fhir:value "changes"]].
# -------------------------------------------------------------------------------------

View File

@ -1,6 +0,0 @@
{
"resourceType": "List",
"id": "val1",
"status": "current1",
"mode": "changes"
}

View File

@ -1,15 +0,0 @@
@prefix fhir: <http://hl7.org/fhir/> .
@prefix owl: <http://www.w3.org/2002/07/owl#> .
@prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#> .
@prefix xs: <http://www.w3.org/2001/XMLSchema#> .
# - resource -------------------------------------------------------------------
[a fhir:List;
fhir:nodeRole fhir:treeRoot;
fhir:Resource.id [ fhir:value "val1"];
fhir:List.status [ fhir:value "current1"];
fhir:List.mode [ fhir:value "changes"]].
# -------------------------------------------------------------------------------------

View File

@ -1,8 +0,0 @@
<!-- this is all valid -->
<List xmlns="http://hl7.org/fhir">
<!-- another comment -->
<id value="val1"/>
<status value="current1"/>
<mode value="changes"/>
</List>
<!-- ending comment -->

View File

@ -1,8 +0,0 @@
<!-- this is all valid -->
<List xmlns="http://hl7.org/fhir1">
<!-- another comment -->
<id value="val1"/>
<status value="current"/>
<mode value="changes"/>
</List>
<!-- ending comment -->

View File

@ -1,15 +0,0 @@
@prefix fhir: <http://hl7.org/fhir/> .
@prefix owl: <http://www.w3.org/2002/07/owl#> .
@prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#> .
@prefix xs: <http://www.w3.org/2001/XMLSchema#> .
# - resource -------------------------------------------------------------------
[a fhir:List;
fhir:nodeRole fhir:treeRoot;
fhir:Resource.id [ fhir:value "val1"];
fhir:List.status [ fhir:value "current"];
fhir:List.mode [ fhir:value "changes"]].
# -------------------------------------------------------------------------------------

View File

@ -1,8 +0,0 @@
<!-- this is all valid -->
<List xmlns="http://hl7.org/fhir">
<!-- another comment -->
<id xmlns="http://hl7.org/fhir1" value="val1"/>
<status value="current"/>
<mode value="changes"/>
</List>
<!-- ending comment -->

View File

@ -1,15 +0,0 @@
@prefix fhir: <http://hl7.org/fhir/> .
@prefix owl: <http://www.w3.org/2002/07/owl#> .
@prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#> .
@prefix xs: <http://www.w3.org/2001/XMLSchema#> .
# - resource -------------------------------------------------------------------
[a fhir:List;
fhir:nodeRole fhir:treeRoot;
fhir:Resource.id [ fhir:value "val1"];
fhir:List.status [ fhir:value "current"];
fhir:List.mode [ fhir:value "changes"]].
# -------------------------------------------------------------------------------------

View File

@ -1,8 +0,0 @@
<!-- this is all valid -->
<f:List xmlns:f="http://hl7.org/fhir">
<!-- another comment -->
<f1:id xmlns:f1="http://hl7.org/fhir1" value="val1"/>
<f:status value="current"/>
<f:mode value="changes"/>
</f:List>
<!-- ending comment -->

View File

@ -1,6 +0,0 @@
{
"resourceType": "List",
"id": "val1",
"mode": "changes",
"status": "current"
}

View File

@ -1,15 +0,0 @@
@prefix fhir: <http://hl7.org/fhir/> .
@prefix owl: <http://www.w3.org/2002/07/owl#> .
@prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#> .
@prefix xs: <http://www.w3.org/2001/XMLSchema#> .
# - resource -------------------------------------------------------------------
[a fhir:List;
fhir:nodeRole fhir:treeRoot;
fhir:Resource.id [ fhir:value "val1"];
fhir:List.status [ fhir:value "current"];
fhir:List.mode [ fhir:value "changes"]].
# -------------------------------------------------------------------------------------

Some files were not shown because too many files have changed in this diff Show More