diff --git a/CHANGELOG.md b/CHANGELOG.md index f17a77344..06d0ddec6 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -6,6 +6,10 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 ## [Unreleased] +### Fixed + +* Prevent duplicate processing: after a medication request is processed, the system no longer pulls a subsequent non‑consultation item based on the same request. + ### Added * The GP2GP Adaptor now validates references inside condition objects to test whether they actually exist. Otherwise, the bundle is rejected. * The GP2GP Adaptor now adds the EhrComposition / confidentialityCode field when Encounter.meta.security contains NOPAT security entry diff --git a/service/src/main/java/uk/nhs/adaptors/gp2gp/ehr/mapper/NonConsultationResourceMapper.java b/service/src/main/java/uk/nhs/adaptors/gp2gp/ehr/mapper/NonConsultationResourceMapper.java index d864551d9..39becdbaa 100644 --- a/service/src/main/java/uk/nhs/adaptors/gp2gp/ehr/mapper/NonConsultationResourceMapper.java +++ b/service/src/main/java/uk/nhs/adaptors/gp2gp/ehr/mapper/NonConsultationResourceMapper.java @@ -12,6 +12,7 @@ import org.hl7.fhir.dstu3.model.DiagnosticReport; import org.hl7.fhir.dstu3.model.IdType; import org.hl7.fhir.dstu3.model.ListResource; +import org.hl7.fhir.dstu3.model.MedicationRequest; import org.hl7.fhir.dstu3.model.Observation; import org.hl7.fhir.dstu3.model.Reference; import org.hl7.fhir.dstu3.model.Resource; @@ -25,6 +26,7 @@ import lombok.RequiredArgsConstructor; import lombok.extern.slf4j.Slf4j; import uk.nhs.adaptors.gp2gp.common.service.RandomIdGeneratorService; +import uk.nhs.adaptors.gp2gp.ehr.exception.EhrMapperException; import uk.nhs.adaptors.gp2gp.ehr.mapper.parameters.EncounterTemplateParameters; import uk.nhs.adaptors.gp2gp.ehr.mapper.parameters.EncounterTemplateParameters.EncounterTemplateParametersBuilder; import uk.nhs.adaptors.gp2gp.ehr.utils.BloodPressureValidator; @@ -72,12 +74,12 @@ public class NonConsultationResourceMapper { ); public List mapRemainingResourcesToEhrCompositions(Bundle bundle) { - var mappedResources = bundle.getEntry() - .stream() + + var mappedResources = bundle.getEntry().stream() .map(Bundle.BundleEntryComponent::getResource) .filter(this::isMappableNonConsultationResource) .sorted(this::compareProcessingOrder) - .filter(resource -> !hasIdBeenMapped(resource) && !isIgnoredResource(resource)) + .filter(this::shouldMapResource) .map(this::mapResourceToEhrComposition) .flatMap(Optional::stream) .collect(Collectors.toList()); @@ -101,6 +103,32 @@ public List mapRemainingResourcesToEhrCompositions(Bundle bundle) { return mappedResources; } + boolean shouldMapResource(Resource resource) { + if (hasIdBeenMapped(resource) || isIgnoredResource(resource)) { + return false; + } + if (resource instanceof MedicationRequest medicationRequest) { + return shouldMapMedicationRequest(medicationRequest); + } + return true; + } + + boolean shouldMapMedicationRequest(MedicationRequest medicationRequest) { + if (!medicationRequest.hasBasedOn()) { + return true; + } + + String referenceId = medicationRequest.getBasedOn().getFirst().getReference(); + + try { + Optional referencedResource = messageContext.getInputBundleHolder().getResource(new IdType(referenceId)); + return referencedResource.isEmpty() || !hasIdBeenMapped(referencedResource.get()); + } catch (EhrMapperException e) { + LOGGER.info("MedicationRequest {} cannot be mapped", referenceId); + return true; + } + } + private Resource replaceId(Resource resource) { resource.setIdElement(new IdType(resource.getResourceType().name(), randomIdGeneratorService.createNewId())); return resource; diff --git a/service/src/test/java/uk/nhs/adaptors/gp2gp/ehr/mapper/EhrExtractMapperComponentTest.java b/service/src/test/java/uk/nhs/adaptors/gp2gp/ehr/mapper/EhrExtractMapperComponentTest.java index 7b7c2cdd2..cf33f7003 100644 --- a/service/src/test/java/uk/nhs/adaptors/gp2gp/ehr/mapper/EhrExtractMapperComponentTest.java +++ b/service/src/test/java/uk/nhs/adaptors/gp2gp/ehr/mapper/EhrExtractMapperComponentTest.java @@ -41,17 +41,23 @@ @ExtendWith(MockitoExtension.class) @MockitoSettings(strictness = Strictness.LENIENT) -public class EhrExtractMapperComponentTest { +class EhrExtractMapperComponentTest { + private static final String TEST_FILE_DIRECTORY = "/ehr/request/fhir/"; private static final String INPUT_DIRECTORY = "input/"; private static final String OUTPUT_DIRECTORY = "output/"; private static final String INPUT_PATH = TEST_FILE_DIRECTORY + INPUT_DIRECTORY; private static final String OUTPUT_PATH = TEST_FILE_DIRECTORY + OUTPUT_DIRECTORY; - private static final String JSON_INPUT_FILE = "gpc-access-structured.json"; private static final String JSON_INPUT_FILE_WITH_NOPAT = "gpc-access-structured-with-nopat.json"; private static final String DUPLICATE_RESOURCE_BUNDLE = INPUT_PATH + "duplicated-resource-bundle.json"; private static final String ONE_CONSULTATION_RESOURCE_BUNDLE = INPUT_PATH + "1-consultation-resource.json"; + private static final String FHIR_BUNDLE_WITH_DUPLICATED_MEDICATION_REQUESTS = "fhir_bundle_with_duplicated_medication_requests.json"; + private static final String EXPECTED_XML_FOR_ONE_CONSULTATION_RESOURCE = "ExpectedResponseFrom1ConsultationResponse.xml"; + + private static final String EXPECTED_XML_TO_JSON_FILE = "expected-ehr-extract-response-from-json.xml"; + private static final String EXPECTED_XML_TO_JSON_FILE_WITH_NOPAT = "expected-ehr-extract-response-from-json-with-nopat.xml"; + private static final String FHIR_BUNDLE_WITHOUT_EFFECTIVE_TIME = "fhir-bundle-without-effective-time.json"; private static final String FHIR_BUNDLE_WITHOUT_HIGH_EFFECTIVE_TIME = "fhir-bundle-without-high-effective-time.json"; private static final String FHIR_BUNDLE_WITH_EFFECTIVE_TIME = "fhir-bundle-with-effective-time.json"; @@ -63,12 +69,7 @@ public class EhrExtractMapperComponentTest { private static final String FHIR_BUNDLE_WITH_OBSERVATIONS_UNRELATED_TO_DIAGNOSTIC_REPORT = "fhir-bundle-observations-unrelated-to-diagnostic-report.json"; private static final String FHIR_BUNDLE_WITH_OBSERVATIONS_WITH_RELATED_OBSERVATIONS = - "fhir-bundle-observations-with-related-observations.json"; - - private static final String EXPECTED_XML_FOR_ONE_CONSULTATION_RESOURCE = "ExpectedResponseFrom1ConsultationResponse.xml"; - - private static final String EXPECTED_XML_TO_JSON_FILE = "expected-ehr-extract-response-from-json.xml"; - private static final String EXPECTED_XML_TO_JSON_FILE_WITH_NOPAT = "expected-ehr-extract-response-from-json-with-nopat.xml"; + "fhir-bundle-observations-with-related-observations.json"; private static final String EXPECTED_XML_WITHOUT_EFFECTIVE_TIME = "expected-xml-without-effective-time.xml"; private static final String EXPECTED_XML_WITHOUT_HIGH_EFFECTIVE_TIME = "expected-xml-without-high-effective-time.xml"; private static final String EXPECTED_XML_WITH_EFFECTIVE_TIME = "expected-xml-with-effective-time.xml"; @@ -231,7 +232,7 @@ public void tearDown() { } @Test - public void When_MappingUncategorizedObservationWithNOPAT_Expect_ObservationStatementWithConfidentialityCode() { + void When_MappingUncategorizedObservationWithNOPAT_Expect_ObservationStatementWithConfidentialityCode() { String expectedJsonToXmlContent = ResourceTestFileUtils.getFileContent(OUTPUT_PATH + EXPECTED_XML_TO_JSON_FILE_WITH_NOPAT); String inputJsonFileContent = ResourceTestFileUtils.getFileContent(INPUT_PATH + JSON_INPUT_FILE_WITH_NOPAT); @@ -259,7 +260,7 @@ public void When_MappingUncategorizedObservationWithNOPAT_Expect_ObservationStat @ParameterizedTest @MethodSource("testData") - public void When_MappingProperJsonRequestBody_Expect_ProperXmlOutput(String input, String expected) { + void When_MappingProperJsonRequestBody_Expect_ProperXmlOutput(String input, String expected) { String expectedJsonToXmlContent = ResourceTestFileUtils.getFileContent(OUTPUT_PATH + expected); String inputJsonFileContent = ResourceTestFileUtils.getFileContent(INPUT_PATH + input); Bundle bundle = new FhirParseService().parseResource(inputJsonFileContent, Bundle.class); @@ -274,6 +275,20 @@ public void When_MappingProperJsonRequestBody_Expect_ProperXmlOutput(String inpu assertThat(output).isEqualToIgnoringWhitespace(expectedJsonToXmlContent); } + @Test + void When_MappingProperJsonRequestBody_Expect_NonDuplicatedMedicationRequestRemainingResources() { + String inputJsonFileContent = + ResourceTestFileUtils.getFileContent(INPUT_PATH + FHIR_BUNDLE_WITH_DUPLICATED_MEDICATION_REQUESTS); + Bundle bundle = new FhirParseService().parseResource(inputJsonFileContent, Bundle.class); + messageContext.initialize(bundle); + + EhrExtractTemplateParameters ehrExtractTemplateParameters = ehrExtractMapper.mapBundleToEhrFhirExtractParams( + getGpcStructuredTaskDefinition, + bundle); + + assertThat(ehrExtractTemplateParameters.getComponents()).hasSize(2); + } + private static Stream testData() { return Stream.of( Arguments.of(JSON_INPUT_FILE, EXPECTED_XML_TO_JSON_FILE), @@ -288,7 +303,7 @@ private static Stream testData() { } @Test - public void When_MappingJsonBody_Expect_OnlyOneConsultationResource() { + void When_MappingJsonBody_Expect_OnlyOneConsultationResource() { String expectedJsonToXmlContent = ResourceTestFileUtils.getFileContent(OUTPUT_PATH + EXPECTED_XML_FOR_ONE_CONSULTATION_RESOURCE); String inputJsonFileContent = ResourceTestFileUtils.getFileContent(ONE_CONSULTATION_RESOURCE_BUNDLE); Bundle bundle = new FhirParseService().parseResource(inputJsonFileContent, Bundle.class); @@ -302,7 +317,7 @@ public void When_MappingJsonBody_Expect_OnlyOneConsultationResource() { } @Test - public void When_TransformingResourceToEhrComp_Expect_NoDuplicateMappings() { + void When_TransformingResourceToEhrComp_Expect_NoDuplicateMappings() { String bundle = ResourceTestFileUtils.getFileContent(DUPLICATE_RESOURCE_BUNDLE); Bundle parsedBundle = new FhirParseService().parseResource(bundle, Bundle.class); messageContext.initialize(parsedBundle); diff --git a/service/src/test/java/uk/nhs/adaptors/gp2gp/ehr/mapper/EhrExtractResourceMapperTest.java b/service/src/test/java/uk/nhs/adaptors/gp2gp/ehr/mapper/EhrExtractResourceMapperTest.java new file mode 100644 index 000000000..0fb84fcec --- /dev/null +++ b/service/src/test/java/uk/nhs/adaptors/gp2gp/ehr/mapper/EhrExtractResourceMapperTest.java @@ -0,0 +1,122 @@ +package uk.nhs.adaptors.gp2gp.ehr.mapper; + +import org.hl7.fhir.dstu3.model.IdType; +import org.hl7.fhir.dstu3.model.MedicationRequest; +import org.hl7.fhir.dstu3.model.QuestionnaireResponse; +import org.hl7.fhir.dstu3.model.Reference; +import org.junit.jupiter.api.AfterEach; +import org.junit.jupiter.api.BeforeEach; +import org.junit.jupiter.api.Test; +import org.junit.jupiter.api.extension.ExtendWith; +import org.mockito.InjectMocks; +import org.mockito.Mock; +import org.mockito.MockedStatic; +import org.mockito.Mockito; +import org.mockito.junit.jupiter.MockitoExtension; +import org.mockito.junit.jupiter.MockitoSettings; +import org.mockito.quality.Strictness; +import uk.nhs.adaptors.gp2gp.ehr.utils.IgnoredResourcesUtils; +import org.hl7.fhir.dstu3.model.ResourceType; +import java.util.Optional; + +import static org.junit.Assert.assertFalse; +import static org.junit.Assert.assertTrue; +import static org.mockito.ArgumentMatchers.any; +import static org.mockito.Mockito.when; + +@ExtendWith(MockitoExtension.class) +@MockitoSettings(strictness = Strictness.LENIENT) +class EhrExtractResourceMapperTest { + + @Mock + private MessageContext messageContext; + + @Mock + private InputBundle inputBundleHolder; + + @Mock + private IdMapper idMapper; + + @InjectMocks + private NonConsultationResourceMapper resourceMapper; + + @BeforeEach + public void setUp() { + when(messageContext.getInputBundleHolder()).thenReturn(inputBundleHolder); + when(messageContext.getIdMapper()).thenReturn(idMapper); + when(idMapper.hasIdBeenMapped(any(), any())).thenReturn(false); + } + + @AfterEach + public void tearDown() { + messageContext.resetMessageContext(); + } + + @Test + void When_ReferencedResourceIsEmpty_Expect_MapMedicationRequest() { + + MedicationRequest medRequest = new MedicationRequest(); + medRequest.setId("MedicationRequest/1"); + medRequest.addBasedOn(new Reference("ServiceRequest/123")); + when(inputBundleHolder.getResource(new IdType("ServiceRequest/123"))).thenReturn(Optional.empty()); + + boolean result = resourceMapper.shouldMapResource(medRequest); + + assertTrue(result); + } + + @Test + void When_ReferencedResourceHasNotBeenMapped_Expect_MapMedicationRequest() { + + MedicationRequest medRequest = new MedicationRequest(); + medRequest.setId("MedicationRequest/1"); + medRequest.addBasedOn(new Reference("ServiceRequest/123")); + when(inputBundleHolder.getResource(new IdType("ServiceRequest/123"))).thenReturn( + Optional.ofNullable(new MedicationRequest().setId("111"))); + + boolean result = resourceMapper.shouldMapResource(medRequest); + + assertTrue(result); + } + + @Test + void When_ReferencedResourceHasBeenMapped_Expect_MedicationRequestIsNotMapped() { + + MedicationRequest medRequest = new MedicationRequest(); + medRequest.setId("MedicationRequest/1"); + medRequest.addBasedOn(new Reference("ServiceRequest/123")); + when(inputBundleHolder.getResource(new IdType("ServiceRequest/123"))).thenReturn(Optional.empty()); + when(idMapper.hasIdBeenMapped(any(), any())).thenReturn(true); + + boolean result = resourceMapper.shouldMapResource(medRequest); + + assertFalse(result); + } + + @Test + void When_ReferencedResourceHasNoBasedOn_Expect_MedicationRequestShouldBeMapped() { + + MedicationRequest medRequest = new MedicationRequest(); + medRequest.setId("MedicationRequest/1"); + + boolean result = resourceMapper.shouldMapResource(medRequest); + + assertTrue(result); + } + + @Test + void When_ReferencedResourceHasBeenIgnored_Expect_MedicationRequestShouldNotBeMapped() { + QuestionnaireResponse questionnaireResp = new QuestionnaireResponse(); + questionnaireResp.setId("MedicationRequest/1"); + + try (MockedStatic ignoredMock = Mockito.mockStatic(IgnoredResourcesUtils.class)) { + + ignoredMock.when(() -> IgnoredResourcesUtils.isIgnoredResourceType(ResourceType.QuestionnaireResponse)).thenReturn(true); + + boolean result = resourceMapper.shouldMapResource(questionnaireResp); + + assertFalse(result); + } + } + +} diff --git a/service/src/test/java/uk/nhs/adaptors/gp2gp/ehr/mapper/NonConsultationResourceMapperTest.java b/service/src/test/java/uk/nhs/adaptors/gp2gp/ehr/mapper/NonConsultationResourceMapperTest.java index 7e6d71903..2cff2b2b4 100644 --- a/service/src/test/java/uk/nhs/adaptors/gp2gp/ehr/mapper/NonConsultationResourceMapperTest.java +++ b/service/src/test/java/uk/nhs/adaptors/gp2gp/ehr/mapper/NonConsultationResourceMapperTest.java @@ -115,6 +115,7 @@ public void When_TransformingResourceToEhrComp_Expect_CorrectValuesToBeExtracted String bundle = ResourceTestFileUtils.getFileContent(inputBundle); String expectedOutput = ResourceTestFileUtils.getFileContent(output); Bundle parsedBundle = fhirParseService.parseResource(bundle, Bundle.class); + messageContext.initialize(parsedBundle); var translatedOutput = nonConsultationResourceMapper.mapRemainingResourcesToEhrCompositions(parsedBundle).get(0); assertThat(translatedOutput).isEqualToIgnoringWhitespace(expectedOutput); @@ -122,7 +123,7 @@ public void When_TransformingResourceToEhrComp_Expect_CorrectValuesToBeExtracted @ParameterizedTest @MethodSource("endedAllergiesArgs") - public void When_TransformingEndedAllergyListToEhrComp_Expect_CorrectValuesToBeExtracted(String inputBundle, String output) { + void When_TransformingEndedAllergyListToEhrComp_Expect_CorrectValuesToBeExtracted(String inputBundle, String output) { setupMock(ResourceTestFileUtils.getFileContent(ALLERGY_INTOLERANCE_XML)); String bundle = ResourceTestFileUtils.getFileContent(inputBundle); String expectedOutput = ResourceTestFileUtils.getFileContent(output); diff --git a/service/src/test/resources/ehr/request/fhir/input/fhir_bundle_with_duplicated_medication_requests.json b/service/src/test/resources/ehr/request/fhir/input/fhir_bundle_with_duplicated_medication_requests.json new file mode 100644 index 000000000..62d729aa3 --- /dev/null +++ b/service/src/test/resources/ehr/request/fhir/input/fhir_bundle_with_duplicated_medication_requests.json @@ -0,0 +1,1499 @@ +{ + "resourceType": "Bundle", + "meta": { + "profile": [ + "https://fhir.nhs.uk/STU3/StructureDefinition/GPConnect-StructuredRecord-Bundle-1" + ] + }, + "id": "477B8390-7DCD-11F0-A3EA-75D8BA9C1206", + "type": "collection", + "entry": [ + { + "resource": { + "resourceType": "Patient", + "id": "0198c7a5-79c9-724d-a5a3-9f2f1be9bbd7", + "meta": { + "profile": [ + "https://fhir.nhs.uk/STU3/StructureDefinition/CareConnect-GPC-Patient-1" + ], + "versionId": "242f9bf749401a08c0b2e5afde27df2e" + }, + "extension": [ + { + "url": "https://fhir.nhs.uk/STU3/StructureDefinition/Extension-CareConnect-GPC-RegistrationDetails-1", + "extension": [ + { + "url": "registrationPeriod", + "valuePeriod": { + "start": "2025-08-20" + } + }, + { + "url": "registrationType", + "valueCodeableConcept": { + "coding": [ + { + "system": "https://fhir.nhs.uk/STU3/CodeSystem/CareConnect-RegistrationType-1", + "code": "R", + "display": "Regular" + } + ] + } + } + ] + } + ], + "identifier": [ + { + "extension": [ + { + "url": "https://fhir.nhs.uk/STU3/StructureDefinition/Extension-CareConnect-GPC-NHSNumberVerificationStatus-1", + "valueCodeableConcept": { + "coding": [ + { + "system": "https://fhir.nhs.uk/STU3/CodeSystem/CareConnect-NHSNumberVerificationStatus-1", + "code": "01", + "display": "Number present and verified" + } + ] + } + } + ], + "system": "https://fhir.nhs.uk/Id/nhs-number", + "value": "1234567890" + } + ], + "active": true, + "name": [ + { + "use": "official", + "family": "Dean", + "prefix": [ + "Miss" + ], + "given": [ + "Maggie", + "Iris" + ] + } + ], + "gender": "female", + "birthDate": "2014-11-13", + "address": [ + { + "use": "home", + "line": [ + "216 Warley Road", + "HALIFAX" + ], + "postalCode": "HX2 0BQ", + "country": "GBR" + } + ], + "managingOrganization": { + "reference": "Organization/B84012" + } + } + }, + { + "resource": { + "resourceType": "Organization", + "id": "B84012", + "meta": { + "profile": [ + "https://fhir.nhs.uk/STU3/StructureDefinition/CareConnect-GPC-Organization-1" + ], + "versionId": "79a9700a9ccf662c7f1dbb571615e9cd" + }, + "identifier": [ + { + "system": "https://fhir.nhs.uk/Id/ods-organization-code", + "value": "B84012" + } + ], + "active": true, + "name": "Spring Hall Group Practice", + "address": [ + { + "use": "work", + "line": [ + "101 Yvonne Falls" + ], + "city": "West Carey", + "district": "Norfolk", + "postalCode": "MK3 7SA", + "country": "GBR" + } + ], + "telecom": [ + { + "system": "phone", + "value": "+441273749184", + "use": "work" + }, + { + "system": "fax", + "value": "+441455338473", + "use": "work" + }, + { + "system": "email", + "value": "bakers.hill@medicus.health", + "use": "work" + } + ] + } + }, + { + "resource": { + "resourceType": "List", + "meta": { + "profile": [ + "https://fhir.nhs.uk/STU3/StructureDefinition/CareConnect-GPC-List-1" + ] + }, + "status": "current", + "mode": "snapshot", + "title": "Problems", + "code": { + "coding": [ + { + "display": "Problems", + "system": "http://snomed.info/sct", + "code": "717711000000103" + } + ] + }, + "subject": { + "reference": "Patient/0198c7a5-79c9-724d-a5a3-9f2f1be9bbd7" + }, + "note": [ + { + "text": "Information not available." + } + ], + "emptyReason": { + "coding": [ + { + "system": "https://fhir.nhs.uk/STU3/CodeSystem/CareConnect-ListEmptyReasonCode-1", + "code": "no-content-recorded", + "display": "No Content Recorded" + } + ] + } + } + }, + { + "resource": { + "resourceType": "AllergyIntolerance", + "id": "0198c7a6-df8a-7000-8236-61f548e47963", + "identifier": [ + { + "system": "https://tools.ietf.org/html/rfc4122", + "value": "0198c7a6-df8a-7000-8236-61f548e47963" + } + ], + "meta": { + "profile": [ + "https://fhir.nhs.uk/STU3/StructureDefinition/CareConnect-GPC-AllergyIntolerance-1" + ], + "security": [ + { + "system": "http://hl7.org/fhir/v3/ActCode", + "code": "NOPAT", + "display": "no disclosure to patient, family or caregivers without attending provider's authorization" + } + ] + }, + "extension": [ + { + "url": "http://hl7.org/fhir/StructureDefinition/encounter-associatedEncounter", + "valueReference": { + "reference": "Encounter/0198c7a6-b68b-71c7-a01b-b2be38beaec5" + } + } + ], + "verificationStatus": "unconfirmed", + "assertedDate": "2025-08-20T14:24:00+01:00", + "code": { + "coding": [ + { + "system": "http://snomed.info/sct", + "code": "300910009", + "display": "Allergy to pollen", + "extension": [ + { + "url": "https://fhir.nhs.uk/STU3/StructureDefinition/Extension-coding-sctdescid", + "extension": [ + { + "url": "descriptionId", + "valueId": "442106016" + } + ] + } + ] + } + ], + "text": "Allergy to pollen" + }, + "clinicalStatus": "active", + "patient": { + "reference": "Patient/0198c7a5-79c9-724d-a5a3-9f2f1be9bbd7" + }, + "recorder": { + "reference": "Practitioner/01979be5-6c23-726d-9efa-d2998128340d" + }, + "category": [ + "medication" + ], + "reaction": [ + { + "manifestation": [ + { + "coding": [ + { + "system": "http://hl7.org/fhir/v3/NullFlavor", + "code": "NI", + "display": "NoInformation" + } + ] + } + ], + "severity": "mild" + } + ] + } + }, + { + "resource": { + "resourceType": "Practitioner", + "id": "01979be5-6c23-726d-9efa-d2998128340d", + "meta": { + "profile": [ + "https://fhir.nhs.uk/STU3/StructureDefinition/CareConnect-GPC-Practitioner-1" + ], + "versionId": "edf2d8adbac72b16e925bf3bb6d4e367" + }, + "active": true, + "name": [ + { + "use": "official", + "text": "Adrian Tye", + "family": "Tye", + "given": [ + "Adrian" + ] + } + ] + } + }, + { + "resource": { + "resourceType": "PractitionerRole", + "id": "2c2034c4c02ab69e7883ded05f329b65", + "meta": { + "profile": [ + "https://fhir.nhs.uk/STU3/StructureDefinition/CareConnect-GPC-PractitionerRole-1" + ] + }, + "practitioner": { + "reference": "Practitioner/01979be5-6c23-726d-9efa-d2998128340d" + }, + "organization": { + "reference": "Organization/B84012" + } + } + }, + { + "resource": { + "resourceType": "List", + "meta": { + "profile": [ + "https://fhir.nhs.uk/STU3/StructureDefinition/CareConnect-GPC-List-1" + ] + }, + "status": "current", + "mode": "snapshot", + "title": "Allergies and adverse reactions", + "code": { + "coding": [ + { + "display": "Allergies and adverse reactions", + "system": "http://snomed.info/sct", + "code": "886921000000105" + } + ] + }, + "subject": { + "reference": "Patient/0198c7a5-79c9-724d-a5a3-9f2f1be9bbd7" + }, + "entry": [ + { + "item": { + "reference": "AllergyIntolerance/0198c7a6-df8a-7000-8236-61f548e47963" + } + } + ] + } + }, + { + "resource": { + "resourceType": "List", + "meta": { + "profile": [ + "https://fhir.nhs.uk/STU3/StructureDefinition/CareConnect-GPC-List-1" + ] + }, + "status": "current", + "mode": "snapshot", + "title": "Ended allergies", + "code": { + "coding": [ + { + "display": "Ended allergies", + "system": "http://snomed.info/sct", + "code": "1103671000000101" + } + ] + }, + "subject": { + "reference": "Patient/0198c7a5-79c9-724d-a5a3-9f2f1be9bbd7" + }, + "note": [ + { + "text": "Information not available." + } + ], + "emptyReason": { + "coding": [ + { + "system": "https://fhir.nhs.uk/STU3/CodeSystem/CareConnect-ListEmptyReasonCode-1", + "code": "no-content-recorded", + "display": "No Content Recorded" + } + ] + } + } + }, + { + "resource": { + "resourceType": "MedicationStatement", + "id": "ms-0198c7a7-5596-7000-bc38-89f1216404ad", + "identifier": [ + { + "system": "https://tools.ietf.org/html/rfc4122", + "value": "ms-0198c7a7-5596-7000-bc38-89f1216404ad" + } + ], + "meta": { + "profile": [ + "https://fhir.nhs.uk/STU3/StructureDefinition/CareConnect-GPC-MedicationStatement-1" + ], + "security": [ + { + "system": "http://hl7.org/fhir/v3/ActCode", + "code": "NOPAT", + "display": "no disclosure to patient, family or caregivers without attending provider's authorization" + } + ] + }, + "extension": [ + { + "url": "https://fhir.nhs.uk/STU3/StructureDefinition/Extension-CareConnect-GPC-PrescribingAgency-1", + "valueCodeableConcept": { + "coding": [ + { + "system": "https://fhir.nhs.uk/STU3/CodeSystem/CareConnect-PrescribingAgency-1", + "code": "prescribed-at-gp-practice", + "display": "Prescribed at GP practice" + } + ] + } + }, + { + "url": "https://fhir.nhs.uk/STU3/StructureDefinition/Extension-CareConnect-GPC-MedicationStatementLastIssueDate-1", + "valueDateTime": "2025-08-20" + } + ], + "context": { + "reference": "Encounter/0198c7a6-b68b-71c7-a01b-b2be38beaec5" + }, + "status": "completed", + "basedOn": [ + { + "reference": "MedicationRequest/mr-0198c7a7-5596-7000-bc38-89f1216404ad" + } + ], + "medicationReference": { + "reference": "Medication/42292011000001108" + }, + "effectivePeriod": { + "start": "2025-08-20", + "end": "2025-08-20" + }, + "dateAsserted": "2025-08-20", + "subject": { + "reference": "Patient/0198c7a5-79c9-724d-a5a3-9f2f1be9bbd7" + }, + "taken": "unk", + "dosage": [ + { + "text": "1" + } + ] + } + }, + { + "resource": { + "resourceType": "Medication", + "id": "42292011000001108", + "meta": { + "profile": [ + "https://fhir.nhs.uk/STU3/StructureDefinition/CareConnect-GPC-Medication-1" + ] + }, + "code": { + "coding": [ + { + "system": "http://snomed.info/sct", + "code": "42292011000001108", + "display": "Aspirin 75mg tablets", + "extension": [ + { + "url": "https://fhir.nhs.uk/STU3/StructureDefinition/Extension-coding-sctdescid", + "extension": [ + { + "url": "descriptionId", + "valueId": "3333821000001113" + } + ] + } + ] + } + ] + } + } + }, + { + "resource": { + "resourceType": "MedicationRequest", + "id": "mr-0198c7a7-5596-7000-bc38-89f1216404ad", + "identifier": [ + { + "system": "https://tools.ietf.org/html/rfc4122", + "value": "mr-0198c7a7-5596-7000-bc38-89f1216404ad" + } + ], + "meta": { + "profile": [ + "https://fhir.nhs.uk/STU3/StructureDefinition/CareConnect-GPC-MedicationRequest-1" + ], + "security": [ + { + "system": "http://hl7.org/fhir/v3/ActCode", + "code": "NOPAT", + "display": "no disclosure to patient, family or caregivers without attending provider's authorization" + } + ] + }, + "extension": [ + { + "url": "https://fhir.nhs.uk/STU3/StructureDefinition/Extension-CareConnect-GPC-PrescriptionType-1", + "valueCodeableConcept": { + "coding": [ + { + "system": "https://fhir.nhs.uk/STU3/CodeSystem/CareConnect-PrescriptionType-1", + "code": "acute", + "display": "Acute" + } + ] + } + } + ], + "status": "completed", + "intent": "plan", + "medicationReference": { + "reference": "Medication/42292011000001108" + }, + "subject": { + "reference": "Patient/0198c7a5-79c9-724d-a5a3-9f2f1be9bbd7" + }, + "authoredOn": "2025-08-20", + "recorder": { + "reference": "Practitioner/01979be5-6c23-726d-9efa-d2998128340d" + }, + "requester": { + "agent": { + "reference": "Practitioner/c012a388-1ef7-11ee-a34c-0a58a9feac02" + } + }, + "dosageInstruction": [ + { + "text": "1" + } + ], + "dispenseRequest": { + "validityPeriod": { + "start": "2025-08-20", + "end": "2025-08-20" + }, + "quantity": { + "value": 28, + "unit": "tablet", + "system": "http://snomed.info/sct", + "code": "428673006" + } + }, + "context": { + "reference": "Encounter/0198c7a6-b68b-71c7-a01b-b2be38beaec5" + } + } + }, + { + "resource": { + "resourceType": "MedicationRequest", + "id": "0198c7a7-9109-7072-a6a7-edde2440faf3", + "identifier": [ + { + "system": "https://tools.ietf.org/html/rfc4122", + "value": "0198c7a7-9109-7072-a6a7-edde2440faf3" + } + ], + "meta": { + "profile": [ + "https://fhir.nhs.uk/STU3/StructureDefinition/CareConnect-GPC-MedicationRequest-1" + ], + "security": [ + { + "system": "http://hl7.org/fhir/v3/ActCode", + "code": "NOPAT", + "display": "no disclosure to patient, family or caregivers without attending provider's authorization" + } + ] + }, + "extension": [ + { + "url": "https://fhir.nhs.uk/STU3/StructureDefinition/Extension-CareConnect-GPC-PrescriptionType-1", + "valueCodeableConcept": { + "coding": [ + { + "system": "https://fhir.nhs.uk/STU3/CodeSystem/CareConnect-PrescriptionType-1", + "code": "acute", + "display": "Acute" + } + ] + } + } + ], + "status": "completed", + "basedOn": [ + { + "reference": "MedicationRequest/mr-0198c7a7-5596-7000-bc38-89f1216404ad" + } + ], + "intent": "order", + "medicationReference": { + "reference": "Medication/42292011000001108" + }, + "subject": { + "reference": "Patient/0198c7a5-79c9-724d-a5a3-9f2f1be9bbd7" + }, + "authoredOn": "2025-08-20", + "recorder": { + "reference": "Practitioner/01979be5-6c23-726d-9efa-d2998128340d" + }, + "requester": { + "agent": { + "reference": "Practitioner/c012a388-1ef7-11ee-a34c-0a58a9feac02" + } + }, + "dosageInstruction": [ + { + "text": "1" + } + ], + "dispenseRequest": { + "validityPeriod": { + "start": "2025-08-20", + "end": "2025-08-20" + }, + "quantity": { + "value": 28, + "unit": "tablet", + "system": "http://snomed.info/sct", + "code": "428673006" + } + } + } + }, + { + "resource": { + "resourceType": "Practitioner", + "id": "c012a388-1ef7-11ee-a34c-0a58a9feac02", + "meta": { + "profile": [ + "https://fhir.nhs.uk/STU3/StructureDefinition/CareConnect-GPC-Practitioner-1" + ], + "versionId": "e5e7e5fb232ffe868a8de5a4b310eb91" + }, + "active": true, + "name": [ + { + "use": "official", + "text": "Peter Aldore", + "family": "Aldore", + "given": [ + "Peter" + ] + } + ] + } + }, + { + "resource": { + "resourceType": "PractitionerRole", + "id": "fa09243a6cca0b4987cac40461d71f35", + "meta": { + "profile": [ + "https://fhir.nhs.uk/STU3/StructureDefinition/CareConnect-GPC-PractitionerRole-1" + ] + }, + "practitioner": { + "reference": "Practitioner/c012a388-1ef7-11ee-a34c-0a58a9feac02" + }, + "organization": { + "reference": "Organization/B84012" + } + } + }, + { + "resource": { + "resourceType": "Encounter", + "id": "0198c7a6-b68b-71c7-a01b-b2be38beaec5", + "meta": { + "profile": [ + "https://fhir.nhs.uk/STU3/StructureDefinition/CareConnect-GPC-Encounter-1" + ], + "security": [ + { + "system": "http://hl7.org/fhir/v3/ActCode", + "code": "NOPAT", + "display": "no disclosure to patient, family or caregivers without attending provider's authorization" + } + ] + }, + "identifier": [ + { + "system": "https://tools.ietf.org/html/rfc4122", + "value": "0198c7a6-b68b-71c7-a01b-b2be38beaec5" + } + ], + "status": "finished", + "type": [ + { + "coding": [ + { + "system": "http://snomed.info/sct", + "code": "1269515004", + "display": "Face to face consultation with patient" + } + ], + "text": "Face to face" + } + ], + "subject": { + "reference": "Patient/0198c7a5-79c9-724d-a5a3-9f2f1be9bbd7" + }, + "participant": [ + { + "type": [ + { + "coding": [ + { + "system": "http://terminology.hl7.org/CodeSystem/v3-ParticipationType", + "code": "PPRF", + "display": "Primary Performer" + } + ] + } + ], + "individual": { + "reference": "Practitioner/01979be5-6c23-726d-9efa-d2998128340d" + } + }, + { + "type": [ + { + "coding": [ + { + "system": "https://fhir.nhs.uk/STU3/CodeSystem/GPConnect-ParticipantType-1", + "code": "REC", + "display": "Recorder" + } + ] + } + ], + "individual": { + "reference": "Practitioner/01979be5-6c23-726d-9efa-d2998128340d" + } + } + ], + "period": { + "start": "2025-08-20T14:24:00+01:00" + }, + "serviceProvider": { + "reference": "Organization/B84012" + } + } + }, + { + "resource": { + "resourceType": "List", + "id": "0198c7a6-b68b-71c7-a01b-b2be38beaec5-consultation", + "meta": { + "profile": [ + "https://fhir.nhs.uk/STU3/StructureDefinition/CareConnect-GPC-List-1" + ], + "security": [ + { + "system": "http://hl7.org/fhir/v3/ActCode", + "code": "NOPAT", + "display": "no disclosure to patient, family or caregivers without attending provider's authorization" + } + ] + }, + "status": "current", + "mode": "snapshot", + "subject": { + "reference": "Patient/0198c7a5-79c9-724d-a5a3-9f2f1be9bbd7" + }, + "encounter": { + "reference": "Encounter/0198c7a6-b68b-71c7-a01b-b2be38beaec5" + }, + "date": "2025-08-20T14:24:08+01:00", + "orderedBy": { + "coding": [ + { + "system": "http://hl7.org/fhir/list-order", + "code": "system", + "display": "Sorted by System" + } + ] + }, + "code": { + "coding": [ + { + "system": "http://snomed.info/sct", + "code": "325851000000107", + "display": "Consultation" + } + ] + }, + "title": "Face to face consultation with patient", + "entry": [ + { + "item": { + "reference": "List/0198c7a6-b6c4-703f-a99b-68a19119693c" + } + } + ] + } + }, + { + "resource": { + "resourceType": "List", + "id": "0198c7a6-b6c4-703f-a99b-68a19119693c", + "meta": { + "profile": [ + "https://fhir.nhs.uk/STU3/StructureDefinition/CareConnect-GPC-List-1" + ], + "security": [ + { + "system": "http://hl7.org/fhir/v3/ActCode", + "code": "NOPAT", + "display": "no disclosure to patient, family or caregivers without attending provider's authorization" + } + ] + }, + "status": "current", + "mode": "snapshot", + "code": { + "coding": [ + { + "system": "http://snomed.info/sct", + "code": "25851000000105", + "display": "Topic (EHR)" + } + ] + }, + "subject": { + "reference": "Patient/0198c7a5-79c9-724d-a5a3-9f2f1be9bbd7" + }, + "encounter": { + "reference": "Encounter/0198c7a6-b68b-71c7-a01b-b2be38beaec5" + }, + "date": "2025-08-20T14:24:08+01:00", + "orderedBy": { + "coding": [ + { + "system": "http://hl7.org/fhir/list-order", + "code": "system", + "display": "Sorted by System" + } + ] + }, + "title": "Headache", + "entry": [ + { + "item": { + "reference": "List/0198c7a6-b6d9-70d8-8fa3-8d86beb64306" + } + }, + { + "item": { + "reference": "List/0198c7a6-b6ee-72d1-a3aa-988900d1e25a" + } + }, + { + "item": { + "reference": "List/0198c7a6-b6f6-7202-8a77-00fbed2acf23" + } + } + ] + } + }, + { + "resource": { + "resourceType": "List", + "id": "0198c7a6-b6d9-70d8-8fa3-8d86beb64306", + "meta": { + "profile": [ + "https://fhir.nhs.uk/STU3/StructureDefinition/CareConnect-GPC-List-1" + ], + "security": [ + { + "system": "http://hl7.org/fhir/v3/ActCode", + "code": "NOPAT", + "display": "no disclosure to patient, family or caregivers without attending provider's authorization" + } + ] + }, + "status": "current", + "mode": "snapshot", + "code": { + "coding": [ + { + "system": "http://snomed.info/sct", + "code": "24781000000107", + "display": "Category (EHR)" + } + ] + }, + "subject": { + "reference": "Patient/0198c7a5-79c9-724d-a5a3-9f2f1be9bbd7" + }, + "encounter": { + "reference": "Encounter/0198c7a6-b68b-71c7-a01b-b2be38beaec5" + }, + "date": "2025-08-20T14:24:08+01:00", + "orderedBy": { + "coding": [ + { + "system": "http://hl7.org/fhir/list-order", + "code": "system", + "display": "Sorted by System" + } + ] + }, + "title": "History", + "entry": [ + { + "item": { + "reference": "AllergyIntolerance/0198c7a6-df8a-7000-8236-61f548e47963" + } + } + ] + } + }, + { + "resource": { + "resourceType": "List", + "id": "0198c7a6-b6ee-72d1-a3aa-988900d1e25a", + "meta": { + "profile": [ + "https://fhir.nhs.uk/STU3/StructureDefinition/CareConnect-GPC-List-1" + ], + "security": [ + { + "system": "http://hl7.org/fhir/v3/ActCode", + "code": "NOPAT", + "display": "no disclosure to patient, family or caregivers without attending provider's authorization" + } + ] + }, + "status": "current", + "mode": "snapshot", + "code": { + "coding": [ + { + "system": "http://snomed.info/sct", + "code": "24781000000107", + "display": "Category (EHR)" + } + ] + }, + "subject": { + "reference": "Patient/0198c7a5-79c9-724d-a5a3-9f2f1be9bbd7" + }, + "encounter": { + "reference": "Encounter/0198c7a6-b68b-71c7-a01b-b2be38beaec5" + }, + "date": "2025-08-20T14:24:08+01:00", + "orderedBy": { + "coding": [ + { + "system": "http://hl7.org/fhir/list-order", + "code": "system", + "display": "Sorted by System" + } + ] + }, + "title": "Examination", + "entry": [ + { + "item": { + "reference": "Observation/0198c7a7-1b40-7000-b3ee-dc3db6e11353" + } + } + ] + } + }, + { + "resource": { + "resourceType": "Observation", + "id": "0198c7a7-1b40-7000-b3ee-dc3db6e11353", + "meta": { + "profile": [ + "https://fhir.nhs.uk/STU3/StructureDefinition/CareConnect-GPC-Observation-1" + ], + "security": [ + { + "system": "http://hl7.org/fhir/v3/ActCode", + "code": "NOPAT", + "display": "no disclosure to patient, family or caregivers without attending provider's authorization" + } + ] + }, + "identifier": [ + { + "system": "https://tools.ietf.org/html/rfc4122", + "value": "0198c7a7-1b40-7000-b3ee-dc3db6e11353" + } + ], + "status": "final", + "code": { + "coding": [ + { + "system": "http://snomed.info/sct", + "code": "27113001", + "display": "Body weight", + "extension": [ + { + "url": "https://fhir.nhs.uk/STU3/StructureDefinition/Extension-coding-sctdescid", + "extension": [ + { + "url": "descriptionId", + "valueId": "598581000000118" + }, + { + "url": "descriptionDisplay", + "valueString": "Weight" + } + ] + } + ] + } + ], + "text": "Weight" + }, + "subject": { + "reference": "Patient/0198c7a5-79c9-724d-a5a3-9f2f1be9bbd7" + }, + "context": { + "reference": "Encounter/0198c7a6-b68b-71c7-a01b-b2be38beaec5" + }, + "effectiveDateTime": "2025-08-20", + "issued": "2025-08-20T14:24:43+01:00", + "performer": [ + { + "reference": "Practitioner/01979be5-6c23-726d-9efa-d2998128340d" + }, + { + "reference": "Organization/B84012" + } + ], + "valueQuantity": { + "value": "80", + "unit": "kg", + "system": "http://unitsofmeasure.org", + "code": "kg" + } + } + }, + { + "resource": { + "resourceType": "List", + "id": "0198c7a6-b6f6-7202-8a77-00fbed2acf23", + "meta": { + "profile": [ + "https://fhir.nhs.uk/STU3/StructureDefinition/CareConnect-GPC-List-1" + ], + "security": [ + { + "system": "http://hl7.org/fhir/v3/ActCode", + "code": "NOPAT", + "display": "no disclosure to patient, family or caregivers without attending provider's authorization" + } + ] + }, + "status": "current", + "mode": "snapshot", + "code": { + "coding": [ + { + "system": "http://snomed.info/sct", + "code": "24781000000107", + "display": "Category (EHR)" + } + ] + }, + "subject": { + "reference": "Patient/0198c7a5-79c9-724d-a5a3-9f2f1be9bbd7" + }, + "encounter": { + "reference": "Encounter/0198c7a6-b68b-71c7-a01b-b2be38beaec5" + }, + "date": "2025-08-20T14:24:08+01:00", + "orderedBy": { + "coding": [ + { + "system": "http://hl7.org/fhir/list-order", + "code": "system", + "display": "Sorted by System" + } + ] + }, + "title": "Plan", + "entry": [ + { + "item": { + "reference": "MedicationRequest/mr-0198c7a7-5596-7000-bc38-89f1216404ad" + } + } + ] + } + }, + { + "resource": { + "resourceType": "List", + "meta": { + "profile": [ + "https://fhir.nhs.uk/STU3/StructureDefinition/CareConnect-GPC-List-1" + ] + }, + "status": "current", + "mode": "snapshot", + "title": "List of consultations", + "code": { + "coding": [ + { + "display": "List of consultations", + "system": "http://snomed.info/sct", + "code": "1149501000000101" + } + ] + }, + "subject": { + "reference": "Patient/0198c7a5-79c9-724d-a5a3-9f2f1be9bbd7" + }, + "entry": [ + { + "item": { + "reference": "Encounter/0198c7a6-b68b-71c7-a01b-b2be38beaec5" + } + } + ] + } + }, + { + "resource": { + "resourceType": "List", + "meta": { + "profile": [ + "https://fhir.nhs.uk/STU3/StructureDefinition/CareConnect-GPC-List-1" + ] + }, + "status": "current", + "mode": "snapshot", + "title": "Immunisations", + "code": { + "coding": [ + { + "display": "Immunisations", + "system": "http://snomed.info/sct", + "code": "1102181000000102" + } + ] + }, + "subject": { + "reference": "Patient/0198c7a5-79c9-724d-a5a3-9f2f1be9bbd7" + }, + "note": [ + { + "text": "Information not available." + } + ], + "emptyReason": { + "coding": [ + { + "system": "https://fhir.nhs.uk/STU3/CodeSystem/CareConnect-ListEmptyReasonCode-1", + "code": "no-content-recorded", + "display": "No Content Recorded" + } + ] + } + } + }, + { + "resource": { + "resourceType": "Observation", + "id": "0198c7ba-ca2b-707e-9254-28cb0f35a87f", + "meta": { + "profile": [ + "https://fhir.nhs.uk/STU3/StructureDefinition/CareConnect-GPC-Observation-1" + ] + }, + "identifier": [ + { + "system": "https://tools.ietf.org/html/rfc4122", + "value": "0198c7ba-ca2b-707e-9254-28cb0f35a87f" + } + ], + "status": "final", + "code": { + "coding": [ + { + "system": "http://snomed.info/sct", + "code": "773011000000101", + "display": "Implied consent for core Summary Care Record dataset upload", + "extension": [ + { + "url": "https://fhir.nhs.uk/STU3/StructureDefinition/Extension-coding-sctdescid", + "extension": [ + { + "url": "descriptionId", + "valueId": "1726131000000119" + } + ] + } + ] + } + ], + "text": "Implied consent for core Summary Care Record dataset upload" + }, + "subject": { + "reference": "Patient/0198c7a5-79c9-724d-a5a3-9f2f1be9bbd7" + }, + "effectiveDateTime": "2025-08-20", + "issued": "2025-08-20T14:46:04+01:00", + "performer": [ + { + "reference": "Organization/B84012" + } + ] + } + }, + { + "resource": { + "resourceType": "List", + "meta": { + "profile": [ + "https://fhir.nhs.uk/STU3/StructureDefinition/CareConnect-GPC-List-1" + ] + }, + "status": "current", + "mode": "snapshot", + "title": "Uncategorised data", + "code": { + "coding": [ + { + "display": "Miscellaneous records", + "system": "http://snomed.info/sct", + "code": "826501000000100" + } + ] + }, + "subject": { + "reference": "Patient/0198c7a5-79c9-724d-a5a3-9f2f1be9bbd7" + }, + "entry": [ + { + "item": { + "reference": "Observation/0198c7a7-1b40-7000-b3ee-dc3db6e11353" + } + }, + { + "item": { + "reference": "Observation/0198c7ba-ca2b-707e-9254-28cb0f35a87f" + } + } + ] + } + }, + { + "resource": { + "resourceType": "List", + "meta": { + "profile": [ + "https://fhir.nhs.uk/STU3/StructureDefinition/CareConnect-GPC-List-1" + ] + }, + "status": "current", + "mode": "snapshot", + "title": "Investigations and results", + "code": { + "coding": [ + { + "display": "Investigations and results", + "system": "http://snomed.info/sct", + "code": "887191000000108" + } + ] + }, + "subject": { + "reference": "Patient/0198c7a5-79c9-724d-a5a3-9f2f1be9bbd7" + }, + "note": [ + { + "text": "Information not available." + } + ], + "emptyReason": { + "coding": [ + { + "system": "https://fhir.nhs.uk/STU3/CodeSystem/CareConnect-ListEmptyReasonCode-1", + "code": "no-content-recorded", + "display": "No Content Recorded" + } + ] + } + } + }, + { + "resource": { + "resourceType": "List", + "meta": { + "profile": [ + "https://fhir.nhs.uk/STU3/StructureDefinition/CareConnect-GPC-List-1" + ] + }, + "status": "current", + "mode": "snapshot", + "title": "Outbound referral", + "code": { + "coding": [ + { + "display": "Outbound referral", + "system": "http://snomed.info/sct", + "code": "792931000000107" + } + ] + }, + "subject": { + "reference": "Patient/0198c7a5-79c9-724d-a5a3-9f2f1be9bbd7" + }, + "note": [ + { + "text": "Information not available." + } + ], + "emptyReason": { + "coding": [ + { + "system": "https://fhir.nhs.uk/STU3/CodeSystem/CareConnect-ListEmptyReasonCode-1", + "code": "no-content-recorded", + "display": "No Content Recorded" + } + ] + } + } + }, + { + "resource": { + "resourceType": "List", + "meta": { + "profile": [ + "https://fhir.nhs.uk/STU3/StructureDefinition/CareConnect-GPC-List-1" + ] + }, + "status": "current", + "mode": "snapshot", + "title": "Patient recall administration", + "code": { + "coding": [ + { + "display": "Patient recall administration", + "system": "http://snomed.info/sct", + "code": "714311000000108" + } + ] + }, + "subject": { + "reference": "Patient/0198c7a5-79c9-724d-a5a3-9f2f1be9bbd7" + }, + "note": [ + { + "text": "Information not available." + } + ], + "emptyReason": { + "coding": [ + { + "system": "https://fhir.nhs.uk/STU3/CodeSystem/CareConnect-ListEmptyReasonCode-1", + "code": "no-content-recorded", + "display": "No Content Recorded" + } + ] + } + } + }, + { + "resource": { + "resourceType": "List", + "meta": { + "profile": [ + "https://fhir.nhs.uk/STU3/StructureDefinition/CareConnect-GPC-List-1" + ] + }, + "status": "current", + "mode": "snapshot", + "title": "Medications and medical devices", + "code": { + "coding": [ + { + "display": "Medications and medical devices", + "system": "http://snomed.info/sct", + "code": "933361000000108" + } + ] + }, + "subject": { + "reference": "Patient/0198c7a5-79c9-724d-a5a3-9f2f1be9bbd7" + }, + "entry": [ + { + "item": { + "reference": "MedicationStatement/ms-0198c7a7-5596-7000-bc38-89f1216404ad" + } + } + ] + } + }, + { + "resource": { + "resourceType": "List", + "meta": { + "profile": [ + "https://fhir.nhs.uk/STU3/StructureDefinition/CareConnect-GPC-List-1" + ] + }, + "status": "current", + "mode": "snapshot", + "title": "Consultations - allergies contained in consultations", + "code": { + "coding": [ + { + "display": "Consultations - allergies contained in consultations", + "system": "https://fhir.hl7.org.uk/STU3/CodeSystem/GPConnect-SecondaryListValues-1", + "code": "consultations-allergies-contained-in-consultations" + } + ] + }, + "subject": { + "reference": "Patient/0198c7a5-79c9-724d-a5a3-9f2f1be9bbd7" + }, + "entry": [ + { + "item": { + "reference": "AllergyIntolerance/0198c7a6-df8a-7000-8236-61f548e47963" + } + } + ] + } + }, + { + "resource": { + "resourceType": "List", + "meta": { + "profile": [ + "https://fhir.nhs.uk/STU3/StructureDefinition/CareConnect-GPC-List-1" + ] + }, + "status": "current", + "mode": "snapshot", + "title": "Consultations - medications contained in consultations", + "code": { + "coding": [ + { + "display": "Consultations - medications contained in consultations", + "system": "https://fhir.hl7.org.uk/STU3/CodeSystem/GPConnect-SecondaryListValues-1", + "code": "consultations-medications-contained-in-consultations" + } + ] + }, + "subject": { + "reference": "Patient/0198c7a5-79c9-724d-a5a3-9f2f1be9bbd7" + }, + "entry": [ + { + "item": { + "reference": "MedicationStatement/ms-0198c7a7-5596-7000-bc38-89f1216404ad" + } + } + ] + } + }, + { + "resource": { + "resourceType": "List", + "meta": { + "profile": [ + "https://fhir.nhs.uk/STU3/StructureDefinition/CareConnect-GPC-List-1" + ] + }, + "status": "current", + "mode": "snapshot", + "title": "Consultations - uncategorised data contained in consultations", + "code": { + "coding": [ + { + "display": "Consultations - uncategorised data contained in consultations", + "system": "https://fhir.hl7.org.uk/STU3/CodeSystem/GPConnect-SecondaryListValues-1", + "code": "consultations-uncategorised-data-contained-in-consultations" + } + ] + }, + "subject": { + "reference": "Patient/0198c7a5-79c9-724d-a5a3-9f2f1be9bbd7" + }, + "entry": [ + { + "item": { + "reference": "Observation/0198c7a7-1b40-7000-b3ee-dc3db6e11353" + } + } + ] + } + } + ] +} \ No newline at end of file diff --git a/service/src/test/resources/ehr/request/fhir/output/expected-ehr-extract-response-from-json-with-nopat.xml b/service/src/test/resources/ehr/request/fhir/output/expected-ehr-extract-response-from-json-with-nopat.xml index e31d8c950..baf87a55e 100644 --- a/service/src/test/resources/ehr/request/fhir/output/expected-ehr-extract-response-from-json-with-nopat.xml +++ b/service/src/test/resources/ehr/request/fhir/output/expected-ehr-extract-response-from-json-with-nopat.xml @@ -39,8061 +39,2990 @@ - - - - - - Unknown - - - - TEMPLE SOWERBY MEDICAL PRACTICE - - - - - - - - - General Medical Practitioner - - - - Mr - NHS - Test - - - - TEMPLE SOWERBY MEDICAL PRACTICE - - - Fulford Grange - Micklefield Lane - Rawdon - Rawdon - Leeds - LS19 6BA - - - - - - - - - System Administrator - - - - Dr - EMIS Web - Recall Schedule - - - - TEMPLE SOWERBY MEDICAL PRACTICE - - - Fulford Grange - Micklefield Lane - Rawdon - Rawdon - Leeds - LS19 6BA - - - - - - - - - Clerical Worker - - - - Dr - David - McAvenue - - - - National + + + + + + Unknown + + + + TEMPLE SOWERBY MEDICAL PRACTICE + + + + + + + + + General Medical Practitioner + + + + Mr + NHS + Test + + + + TEMPLE SOWERBY MEDICAL PRACTICE + + + Fulford Grange + Micklefield Lane + Rawdon + Rawdon + Leeds + LS19 6BA + + + + + + + + + System Administrator + + + + Dr + EMIS Web + Recall Schedule + + + + TEMPLE SOWERBY MEDICAL PRACTICE + + + Fulford Grange + Micklefield Lane + Rawdon + Rawdon + Leeds + LS19 6BA + + + + + + + + + General Medical Practitioner + + + + Dr + Peter + Whitcombe + + + + TEMPLE SOWERBY MEDICAL PRACTICE + + + Fulford Grange + Micklefield Lane + Rawdon + Rawdon + Leeds + LS19 6BA + + + + + + + + + General Medical Practitioner + + + + Dr + David + McAvenue + + + + TEMPLE SOWERBY MEDICAL PRACTICE + + + Fulford Grange + Micklefield Lane + Rawdon + Rawdon + Leeds + LS19 6BA + + + + + + + + + + + GP Surgery + + + + + + + + + + + + + EMIS Test Practice Location + + + + + + + + + + + + Mocked code + + + + + + + + + Mocked code + + + + + + + + + Mocked code + + +
+ + + + + + @ÑѧѬ This has extended unicode characters + + + + + + + + + + + + + + + + + + + + GP Surgery + + + +
+ + + + + + + + + EMIS Test Practice Location + + + + + + + + + + + + Mocked code + + +
+ + + + + + Mocked code + + +
+ + + + + + 1.This is a line of text with a line break at the end. +2.This is a line of text with a line break at the end. +3.This is a line of text with a line break at the end. +4.This is a line of text with a line break at the end. - - - - - - - - General Medical Practitioner - - - - Dr - Peter - Whitcombe - - - - TEMPLE SOWERBY MEDICAL PRACTICE - - - Fulford Grange - Micklefield Lane - Rawdon - Rawdon - Leeds - LS19 6BA - - - - - - - - - General Medical Practitioner - - - - Dr - David - McAvenue - - - - TEMPLE SOWERBY MEDICAL PRACTICE - - - Fulford Grange - Micklefield Lane - Rawdon - Rawdon - Leeds - LS19 6BA - - - - - - - - - - - GP Surgery - - - - - - - - - - - - - EMIS Test Practice Location - - - - - - - - - - - - Mocked code - - - - - - - - - Mocked code - - - - - - - - - Mocked code - - -
- - - - - - - - @ÑѧѬ This has extended unicode characters - - - - - - - - - - - - - - - - - - - - - GP Surgery - - - -
- - - - - - - - - EMIS Test Practice Location - - - - - - - - - - - - Mocked code - - -
- - - - - - Mocked code - - -
- - - - - - 1.This is a line of text with a line break at the end. - 2.This is a line of text with a line break at the end. - 3.This is a line of text with a line break at the end. - 4.This is a line of text with a line break at the end. - - The Line above this one was blank (with a line break) - - This is a long line, this is a long line, this is a long line, this is a long line, this is a long line, this is a long line, this is a long line, this is a long line, this is a long line, this is a long line, this is a long line, this is a long line, this is a long line, this is a long line, this is a long line, this is a long line, this is a long line, this is a long line, this is a long line, this is a long line, this is a long line, this is a long line, this is a long line, this is a long line, this is a long line, this is a long line, this is a long line, this is a long line, this is a long line, this is a long line, this is a long line, this is a long line, this is a long line, this is a long line, this is a long line, this is a long line, this is a long line, this is a long line, this is a long line, this is a long line, this is a long line, this is a long line, this is a long line, this is a long line, this is a long line, this is a long line, this is a long line, this is a long line, this is a long line, this is a long line, this is a long line, this is a long line, this is a long line, this is a long line, this is a long line, this is a long line, this is a long line, this is a long line, this is a long line, this is a long line, this is a long line, this is a long line, this is a long line, this is a long line, this is a long line, this is a long line, this is a long line, this is a long line, this is a long line, this is a long line, this is a long line, this is a long line, this is a long line, this is a long line, this is a long line, this is a long line, this is a long line, this is a long line, this is a long line, this is a long line, this is a long line, this is a long line, this is a long line, this is a long line, this is a long line, this is a long line, this is a long line, this is a long line, this is a long line, this is a long line, this is a long line, this is a long line, this is a long line, this is a long line, this is a long line, this is a long line, this is a long line,and this is the end of the long line. +The Line above this one was blank (with a line break) - ThisIsALongLineWithoutSpacesThisIsALongLineWithoutSpacesThisIsALongLineWithoutSpacesThisIsALongLineWithoutSpacesThisIsALongLineWithoutSpacesThisIsALongLineWithoutSpacesThisIsALongLineWithoutSpacesThisIsALongLineWithoutSpacesThisIsALongLineWithoutSpacesThisIsALongLineWithoutSpacesThisIsALongLineWithoutSpacesThisIsALongLineWithoutSpacesThisIsALongLineWithoutSpacesThisIsALongLineWithoutSpacesThisIsALongLineWithoutSpacesThisIsALongLineWithoutSpacesThisIsALongLineWithoutSpacesThisIsALongLineWithoutSpacesThisIsALongLineWithoutSpacesThisIsALongLineWithoutSpacesThisIsALongLineWithoutSpacesThisIsALongLineWithoutSpacesThisIsALongLineWithoutSpacesThisIsALongLineWithoutSpacesThisIsALongLineWithoutSpacesThisIsALongLineWithoutSpacesThisIsALongLineWithoutSpacesThisIsALongLineWithoutSpacesThisIsALongLineWithoutSpacesThisIsALongLineWithoutSpacesThisIsALongLineWithoutSpacesThisIsALongLineWithoutSpacesThisIsALongLineWithoutSpacesThisIsALongLineWithoutSpacesThisIsALongLineWithoutSpacesThisIsALongLineWithoutSpacesThisIsALongLineWithoutSpacesThisIsALongLineWithoutSpacesThisIsALongLineWithoutSpacesThisIsALongLineWithoutSpacesThisIsALongLineWithoutSpacesThisIsALongLineWithoutSpacesThisIsALongLineWithoutSpacesThisIsALongLineWithoutSpacesThisIsALongLineWithoutSpacesThisIsALongLineWithoutSpacesThisIsALongLineWithoutSpacesThisIsALongLineWithoutSpacesThisIsALongLineWithoutSpacesThisIsALongLineWithoutSpacesThisIsALongLineWithoutSpacesThisIsALongLineWithoutSpacesThisIsALongLineWithoutSpacesThisIsALongLineWithoutSpacesENDOFTEXT +This is a long line, this is a long line, this is a long line, this is a long line, this is a long line, this is a long line, this is a long line, this is a long line, this is a long line, this is a long line, this is a long line, this is a long line, this is a long line, this is a long line, this is a long line, this is a long line, this is a long line, this is a long line, this is a long line, this is a long line, this is a long line, this is a long line, this is a long line, this is a long line, this is a long line, this is a long line, this is a long line, this is a long line, this is a long line, this is a long line, this is a long line, this is a long line, this is a long line, this is a long line, this is a long line, this is a long line, this is a long line, this is a long line, this is a long line, this is a long line, this is a long line, this is a long line, this is a long line, this is a long line, this is a long line, this is a long line, this is a long line, this is a long line, this is a long line, this is a long line, this is a long line, this is a long line, this is a long line, this is a long line, this is a long line, this is a long line, this is a long line, this is a long line, this is a long line, this is a long line, this is a long line, this is a long line, this is a long line, this is a long line, this is a long line, this is a long line, this is a long line, this is a long line, this is a long line, this is a long line, this is a long line, this is a long line, this is a long line, this is a long line, this is a long line, this is a long line, this is a long line, this is a long line, this is a long line, this is a long line, this is a long line, this is a long line, this is a long line, this is a long line, this is a long line, this is a long line, this is a long line, this is a long line, this is a long line, this is a long line, this is a long line, this is a long line, this is a long line, this is a long line, this is a long line, this is a long line, this is a long line,and this is the end of the long line. - The line below contains special characters... - ¬`1234567890!"£$%^&*()_+=-{}][~@#':;<>?,./|\ - - - - - - - - - - - - - - - - - - - - GP Surgery - - - -
- - - - - - - - - EMIS Test Practice Location - - - - - - - - - - - - Mocked code - - -
- - - - - - Mocked code - - -
- - - - - - Mocked code - - -
- - - - - - - - - - - - - Mocked code - - -
- - +ThisIsALongLineWithoutSpacesThisIsALongLineWithoutSpacesThisIsALongLineWithoutSpacesThisIsALongLineWithoutSpacesThisIsALongLineWithoutSpacesThisIsALongLineWithoutSpacesThisIsALongLineWithoutSpacesThisIsALongLineWithoutSpacesThisIsALongLineWithoutSpacesThisIsALongLineWithoutSpacesThisIsALongLineWithoutSpacesThisIsALongLineWithoutSpacesThisIsALongLineWithoutSpacesThisIsALongLineWithoutSpacesThisIsALongLineWithoutSpacesThisIsALongLineWithoutSpacesThisIsALongLineWithoutSpacesThisIsALongLineWithoutSpacesThisIsALongLineWithoutSpacesThisIsALongLineWithoutSpacesThisIsALongLineWithoutSpacesThisIsALongLineWithoutSpacesThisIsALongLineWithoutSpacesThisIsALongLineWithoutSpacesThisIsALongLineWithoutSpacesThisIsALongLineWithoutSpacesThisIsALongLineWithoutSpacesThisIsALongLineWithoutSpacesThisIsALongLineWithoutSpacesThisIsALongLineWithoutSpacesThisIsALongLineWithoutSpacesThisIsALongLineWithoutSpacesThisIsALongLineWithoutSpacesThisIsALongLineWithoutSpacesThisIsALongLineWithoutSpacesThisIsALongLineWithoutSpacesThisIsALongLineWithoutSpacesThisIsALongLineWithoutSpacesThisIsALongLineWithoutSpacesThisIsALongLineWithoutSpacesThisIsALongLineWithoutSpacesThisIsALongLineWithoutSpacesThisIsALongLineWithoutSpacesThisIsALongLineWithoutSpacesThisIsALongLineWithoutSpacesThisIsALongLineWithoutSpacesThisIsALongLineWithoutSpacesThisIsALongLineWithoutSpacesThisIsALongLineWithoutSpacesThisIsALongLineWithoutSpacesThisIsALongLineWithoutSpacesThisIsALongLineWithoutSpacesThisIsALongLineWithoutSpacesThisIsALongLineWithoutSpacesENDOFTEXT +The line below contains special characters... +¬`1234567890!"£$%^&*()_+=-{}][~@#':;<>?,./|\ + + + + + + + + + + + + + + + + + + + + GP Surgery + + + +
+ + + + + + + + + EMIS Test Practice Location + + + + + + + + + + + + Mocked code + + +
+ + + + + + Mocked code + + +
+ + + + + + Mocked code + + +
+ + + + + + + + + + + + + Mocked code + + +
+ + + + + + These are some notes !"£$%^&*() + + + + + + + + + + + + This is some random free text + + + + + + + + + + + + Mocked code + + +
+ + + + + + + + + + + + + + Mocked code + + +
+ + + + + + Mocked code + + +
+ + + + + + Family member : Mother + + + + + + + + + + + + Mocked code + + +
+ + + + + + Family member : Father - note - this is obviously wrong? + + + + + + + + + + + + + + + + + + + + GP Surgery + + + +
+ + + + + + + + + EMIS Test Practice Location + + + + + + + + + + + + Mocked code + + +
+ + + + + + Mocked code + + +
+ + + + + + hhhhhhhhh + + + + + + + + + + + + + + + + + + + + GP Surgery + + + +
+ + + + + + + + + EMIS Test Practice Location + + + + + + + + + + + + Mocked code + + +
+ + + + + + Mocked code + + +
+ + + + + + This is kjkjkjkjkjkjkjkjkj + + + + + + + + + + + + + + + + + + + + GP Surgery + + + +
+ + + + + + + + + EMIS Test Practice Location + + + + + + + + + + + + Mocked code + + +
+ + + + + + Mocked code + + +
+ + + + + + Mocked code + + +
+ + + + + + Mocked code + + +
+ + + + + mmHg + + + + + + + + Mocked code + + +
+ + + + + mmHg + + + + + + + + This is the BP reading in a consultation with a note + + + + + + + + + + + + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + + + Mocked code + + + + + + + + + + + + + + + + tablet + + + + + Expected Supply Duration: 28 days + + + + + + + One Tablet Daily For 21 Days; Subsequent Courses Repeated After 7-Day Tablet Free Interval + + + + + + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + + + Mocked code + + + + + + + + + + + + + + + + device + + + + + Expected Supply Duration: 1825 days + + + + + + + n/a + + + + + + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + + + Mocked code + + + + + + + + + + + + + + + + gram + + + + + Expected Supply Duration: 28 days + + + + + + + 1 + + + + + + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + + + Mocked code + + + + + + + + + + + + + + + + device + + + + + Expected Supply Duration: 28 days + + + + + + + n/a + + + + + + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + + + Mocked code + + + + + + + + + + + + + + + + tablet + + + + + Expected Supply Duration: 1 days + + + + + + + One To Be Taken Each Day + + + + + + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + + + Mocked code + + + + + + + + + + + + + + + + device + + + + + Expected Supply Duration: 28 days + + + + + + + n/a + + + + + + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + + + Mocked code + + + + + + + + + + + + + + + + tablet + + + + + Expected Supply Duration: 1 days + + + + + + + One To Be Taken Each Day + + + + + + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + + + Mocked code + + + + + + + + + + + + + + + + tablet + + + + + Expected Supply Duration: 28 days + + + + + + + One Tablet Daily For 21 Days; Subsequent Courses Repeated After 7-Day Tablet Free Interval + + + + + + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + + + Mocked code + + + + + + + + + + + + + + + + gram + + + + + Expected Supply Duration: 28 days + + + + + + + 1 + + + + + + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + + + Mocked code + + + + + + + + + + + + + + + + device + + + + + Expected Supply Duration: 1825 days + + + + + + + n/a + + + + + + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + + + Mocked code + + + + + + + + + + + + + + + + device + + + + + Expected Supply Duration: 1825 days + + + + + + + n/a + + + + + + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + + + Mocked code + + + + + + + + + + + + + + + + gram + + + + + Expected Supply Duration: 28 days + + + + + + + 1 + + + + + + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + + + Mocked code + + + + + + + + + + + + + + + + tablet + + + + + Expected Supply Duration: 28 days + + + + + + + One Tablet Daily For 21 Days; Subsequent Courses Repeated After 7-Day Tablet Free Interval + + + + + + + + + + + + + + + + + +
+ + + + + + + + + + + + + + Active Problem, major + + + + + + + - - - - These are some notes !"£$%^&*() - - - - - - - - - - - - - This is some random free text - - - - - - - - - - - - Mocked code - - -
- - - - - - - - - - - - - - Mocked code - - -
- - - - - - Mocked code - - -
- - - - - - - - Family member : Mother - - - - - - - - - - - - - Mocked code - - -
- - - - - - - - Family member : Father - note - this is obviously wrong? - - - - - - - - - - - - - - - - - - - - - GP Surgery - - - -
- - - - - - - - - EMIS Test Practice Location - - - - - - - - - - - - Mocked code - - -
- - - - - - Mocked code - - -
- - - - - - hhhhhhhhh - - - - - - - - - - - - - - - - - - - - GP Surgery - - - -
- - - - - - - - - EMIS Test Practice Location - - - - - - - - - - - - Mocked code - - -
- - - - - - Mocked code - - -
- - - - - - This is kjkjkjkjkjkjkjkjkj - - - - - - - - - - - - - - - - - - - - GP Surgery - - - -
- - - - - - - - - EMIS Test Practice Location - - - - - - - - - - - - Mocked code - - -
- - - - - - Mocked code - - -
- - - - - - Mocked code - - -
- - - - - - Mocked code - - -
- - - mmHg - - - - - - Mocked code - - -
- - - mmHg - - - - - - This is the BP reading in a consultation with a note - - - - - - - - - - - - - - - - - - - - - - - -
- - - - - - - - - - - - - - - - - - - - - Mocked code - - - - - - - - - - - - - - - - tablet - - - - - Expected Supply Duration: 28 days - - - - - - - One Tablet Daily For 21 Days; Subsequent Courses Repeated After 7-Day Tablet Free Interval - - - - - - - - - - - - - - - - - -
- - - - - - - - - - - - - - - - - - - - - Mocked code - - - - - - - - - - - - tablet - - - - - - - - - - Expected Supply Duration: 28 days - - - - - - - One Tablet Daily For 21 Days; Subsequent Courses Repeated After 7-Day Tablet Free Interval - - - - - - - - - - - - - - - - - -
- - - - - - - - - - - - - - - - - - - - - Mocked code - - - - - - - - - - - - tablet - - - - - - - - - - Expected Supply Duration: 28 days - - - - - - - One Tablet Daily For 21 Days; Subsequent Courses Repeated After 7-Day Tablet Free Interval - - - - - - - - - - - - - - - - - -
- - - - - - - - - - - - - - - - - - - - - Mocked code - - - - - - - - - - - - tablet - - - - - - - - - - Expected Supply Duration: 28 days - - - - - - - One Tablet Daily For 21 Days; Subsequent Courses Repeated After 7-Day Tablet Free Interval - - - - - - - - - - - - - - - - - -
- - - - - - - - - - - - - - - - - - - - - Mocked code - - - - - - - - - - - - tablet - - - - - - - - - - Expected Supply Duration: 28 days - - - - - - - One Tablet Daily For 21 Days; Subsequent Courses Repeated After 7-Day Tablet Free Interval - - - - - - - - - - - - - - - - - -
- - - - - - - - - - - - - - - - - - - - - Mocked code - - - - - - - - - - - - tablet - - - - - - - - - - Expected Supply Duration: 28 days - - - - - - - One Tablet Daily For 21 Days; Subsequent Courses Repeated After 7-Day Tablet Free Interval - - - - - - - - - - - - - - - - - -
- - - - - - - - - - - - - - - - - - - - - Mocked code - - - - - - - - - - - - tablet - - - - - - - - - - Expected Supply Duration: 28 days - - - - - - - One Tablet Daily For 21 Days; Subsequent Courses Repeated After 7-Day Tablet Free Interval - - - - - - - - - - - + + - - - - - -
- - - - - - - - - - - - - - - - - - - - - Mocked code - - - - - - - - - - - - tablet - - - - - - - - - - Expected Supply Duration: 28 days - - - - - - - One Tablet Daily For 21 Days; Subsequent Courses Repeated After 7-Day Tablet Free Interval - - - - - - - - - - + + + - - - - - -
- - - - - - - - - - - - - - - - - - - - - Mocked code - - - - - - - - - - - - tablet - - - - - - - - - - Expected Supply Duration: 28 days - - - - - - - One Tablet Daily For 21 Days; Subsequent Courses Repeated After 7-Day Tablet Free Interval - - - - - - - - - - + + + - - - - - -
- - - - - - - - - - - - - - - - - - - - - Mocked code - - - - - - - - - - - - tablet - - - - - - - - - - Expected Supply Duration: 28 days - - - - - - - One Tablet Daily For 21 Days; Subsequent Courses Repeated After 7-Day Tablet Free Interval - - - - - - - - - - + + + - - - - - -
- - - - - - - - - - - - - - - - - - - - - Mocked code - - - - - - - - - - - - tablet - - - - - - - - - - Expected Supply Duration: 28 days - - - - - - - One Tablet Daily For 21 Days; Subsequent Courses Repeated After 7-Day Tablet Free Interval - - - - - - - - - - + + + - - - - - -
- - - - - - - - - - - - - - - - - - - - - Mocked code - - - - - - - - - - - - tablet - - - - - - - - - - Expected Supply Duration: 28 days - - - - - - - One Tablet Daily For 21 Days; Subsequent Courses Repeated After 7-Day Tablet Free Interval - - - - - - - - - - + + + - - - - - -
- - - - - - - - - - - - - - - - - - - - - Mocked code - - - - - - - - - - - - tablet - - - - - - - - - - Expected Supply Duration: 28 days - - - - - - - One Tablet Daily For 21 Days; Subsequent Courses Repeated After 7-Day Tablet Free Interval - - - - - - - - - - - - - - - - - -
- - - - - - - - - - - - - - - - - - - - - Mocked code - - - - - - - - - - - - tablet - - - - - - - - - - Expected Supply Duration: 28 days - - - - - - - One Tablet Daily For 21 Days; Subsequent Courses Repeated After 7-Day Tablet Free Interval - - - - - - - - - - - - - - - - - -
- - - - - - - - - - - - - - - - - - - - - Mocked code - - - - - - - - - - - - tablet - - - - - - - - - - Expected Supply Duration: 28 days - - - - - - - One Tablet Daily For 21 Days; Subsequent Courses Repeated After 7-Day Tablet Free Interval - - - - - - - - - - - - - - - - - -
- - - - - - - - - - - - - - - - - - - - - Mocked code - - - - - - - - - - - - tablet - - - - - - - - - - Expected Supply Duration: 28 days - - - - - - - One Tablet Daily For 21 Days; Subsequent Courses Repeated After 7-Day Tablet Free Interval - - - - - - - - - - - - - - - - - -
- - - - - - - - - - - - - - - - - - - - - Mocked code - - - - - - - - - - - - tablet - - - - - - - - - - Expected Supply Duration: 28 days - - - - - - - One Tablet Daily For 21 Days; Subsequent Courses Repeated After 7-Day Tablet Free Interval - - - - - - - - - - + + + - - - - - - -
- - - - - - - - - - - - - - - - - - - - - Mocked code - - - - - - - - - - - - tablet - - - - - - - - - - Expected Supply Duration: 28 days - - - - - - - One Tablet Daily For 21 Days; Subsequent Courses Repeated After 7-Day Tablet Free Interval - - - - - - - - - - - - - - - - - -
- - - - - - - - - - - - - - - - - - - - - Mocked code - - - - - - - - - - - - tablet - - - - - - - - - - Expected Supply Duration: 28 days - - - - - - - One Tablet Daily For 21 Days; Subsequent Courses Repeated After 7-Day Tablet Free Interval - - - - - - - - - - - - - - - - - -
- - - - - - - - - - - - - - - - - - - - - Mocked code - - - - - - - - - - - - tablet - - - - - - - - - - Expected Supply Duration: 28 days - - - - - - - One Tablet Daily For 21 Days; Subsequent Courses Repeated After 7-Day Tablet Free Interval - - - - - - - - - - - - - - - - - -
- - - - - - - - - - - - - - - - - - - - - Mocked code - - - - - - - - - - - - tablet - - - - - - - - - - Expected Supply Duration: 28 days - - - - - - - One Tablet Daily For 21 Days; Subsequent Courses Repeated After 7-Day Tablet Free Interval - - - - - - - - - - - - - - - - - -
- - - - - - - - - - - - - - - - - - - - - Mocked code - - - - - - - - - - - - tablet - - - - - - - - - - Expected Supply Duration: 28 days - - - - - - - One Tablet Daily For 21 Days; Subsequent Courses Repeated After 7-Day Tablet Free Interval - - - - - - - - - - - - - - - - - -
- - - - - - - - - - - - - - - - - - - - - Mocked code - - - - - - - - - - - - tablet - - - - - - - - - - Expected Supply Duration: 28 days - - - - - - - One Tablet Daily For 21 Days; Subsequent Courses Repeated After 7-Day Tablet Free Interval - - - - - - - - - - - - - - - - - -
- - - - - - - - - - - - - - - - - - - - - Mocked code - - - - - - - - - - - - tablet - - - - - - - - - - Expected Supply Duration: 28 days - - - - - - - One Tablet Daily For 21 Days; Subsequent Courses Repeated After 7-Day Tablet Free Interval - - - - - - - - - - - - - - - - - -
- - - - - - - - - - - - - - - - - - - - - Mocked code - - - - - - - - - - - - tablet - - - - - - - - - - Expected Supply Duration: 28 days - - - - - - - One Tablet Daily For 21 Days; Subsequent Courses Repeated After 7-Day Tablet Free Interval - - - - - - - - - - - - - - - - - -
- - - - - - - - - - - - - - - - - - - - - Mocked code - - - - - - - - - - - - tablet - - - - - - - - - - Expected Supply Duration: 28 days - - - - - - - One Tablet Daily For 21 Days; Subsequent Courses Repeated After 7-Day Tablet Free Interval - - - - - - - - - - - - - - - - - -
- - - - - - - - - - - - - - - - - - - - - Mocked code - - - - - - - - - - - - tablet - - - - - - - - - - Expected Supply Duration: 28 days - - - - - - - One Tablet Daily For 21 Days; Subsequent Courses Repeated After 7-Day Tablet Free Interval - - - - - - - - - - - - - - - - - -
- - - - - - - - - - - - - - - - - - - - - Mocked code - - - - - - - - - - - - tablet - - - - - - - - - - Expected Supply Duration: 28 days - - - - - - - One Tablet Daily For 21 Days; Subsequent Courses Repeated After 7-Day Tablet Free Interval - - - - - - - - - - - - - - - - - -
- - - - - - - - - - - - - - - - - - - - - Mocked code - - - - - - - - - - - - tablet - - - - - - - - - - Expected Supply Duration: 28 days - - - - - - - One Tablet Daily For 21 Days; Subsequent Courses Repeated After 7-Day Tablet Free Interval - - - - - - - - - - - - - - - - - -
- - - - - - - - - - - - - - - - - - - - - Mocked code - - - - - - - - - - - - tablet - - - - - - - - - - Expected Supply Duration: 28 days - - - - - - - One Tablet Daily For 21 Days; Subsequent Courses Repeated After 7-Day Tablet Free Interval - - - - - - - - - - - - - - - - - -
- - - - - - - - - - - - - - - - - - - - - Mocked code - - - - - - - - - - - - tablet - - - - - - - - - - Expected Supply Duration: 28 days - - - - - - - One Tablet Daily For 21 Days; Subsequent Courses Repeated After 7-Day Tablet Free Interval - - - - - - - - - - - - - - - - - -
- - - - - - - - - - - - - - - - - - - - - Mocked code - - - - - - - - - - - - tablet - - - - - - - - - - Expected Supply Duration: 28 days - - - - - - - One Tablet Daily For 21 Days; Subsequent Courses Repeated After 7-Day Tablet Free Interval - - - - - - - - - - - - - - - - - -
- - - - - - - - - - - - - - - - - - - - - Mocked code - - - - - - - - - - - - tablet - - - - - - - - - - Expected Supply Duration: 28 days - - - - - - - One Tablet Daily For 21 Days; Subsequent Courses Repeated After 7-Day Tablet Free Interval - - - - - - - - - - - - - - - - - -
- - - - - - - - - - - - - - - - - - - - - Mocked code - - - - - - - - - - - - tablet - - - - - - - - - - Expected Supply Duration: 28 days - - - - - - - One Tablet Daily For 21 Days; Subsequent Courses Repeated After 7-Day Tablet Free Interval - - - - - - - - - - - - - - - - - -
- - - - - - - - - - - - - - - - - - - - - Mocked code - - - - - - - - - - - - - - - - device - - - - - Expected Supply Duration: 1825 days - - - - - - - n/a - - - - - - - - - - - - - - - - - -
- - - - - - - - - - - - - - - - - - - - - Mocked code - - - - - - - - - - - - device - - - - - - - - - - Expected Supply Duration: 1825 days - - - - - - - n/a - - - - - - - - - - - - - - - - - -
- - - - - - - - - - - - - - - - - - - - - Mocked code - - - - - - - - - - - - - - - - gram - - - - - Expected Supply Duration: 28 days - - - - - - - 1 - - - - - - - - - - - - - - - - - -
- - - - - - - - - - - - - - - - - - - - - Mocked code - - - - - - - - - - - - gram - - - - - - - - - - Expected Supply Duration: 28 days - - - - - - - 1 - - - - - - - - - - - - - - - - - -
- - - - - - - - - - - - - - - - - - - - - Mocked code - - - - - - - - - - - - gram - - - - - - - - - - Expected Supply Duration: 28 days - - - - - - - 1 - - - - - - - - - - - - - - - - - -
- - - - - - - - - - - - - - - - - - - - - Mocked code - - - - - - - - - - - - gram - - - - - - - - - - Expected Supply Duration: 28 days - - - - - - - 1 - - - - - - - - - - - - - - - - - -
- - - - - - - - - - - - - - - - - - - - - Mocked code - - - - - - - - - - - - gram - - - - - - - - - - Expected Supply Duration: 28 days - - - - - - - 1 - - - - - - - - - - - - - - - - - -
- - - - - - - - - - - - - - - - - - - - - Mocked code - - - - - - - - - - - - gram - - - - - - - - - - Expected Supply Duration: 28 days - - - - - - - 1 - - - - - - - - - - - - - - - - - -
- - - - - - - - - - - - - - - - - - - - - Mocked code - - - - - - - - - - - - gram - - - - - - - - - - Expected Supply Duration: 28 days - - - - - - - 1 - - - - - - - - - - - - - - - - - -
- - - - - - - - - - - - - - - - - - - - - Mocked code - - - - - - - - - - - - gram - - - - - - - - - - Expected Supply Duration: 28 days - - - - - - - 1 - - - - - - - - - - - - - - - - - -
- - - - - - - - - - - - - - - - - - - - - Mocked code - - - - - - - - - - - - gram - - - - - - - - - - Expected Supply Duration: 28 days - - - - - - - 1 - - - - - - - - - - - - - - - - - -
- - - - - - - - - - - - - - - - - - - - - Mocked code - - - - - - - - - - - - gram - - - - - - - - - - Expected Supply Duration: 28 days - - - - - - - 1 - - - - - - - - - - - - - - - - - -
- - - - - - - - - - - - - - - - - - - - - Mocked code - - - - - - - - - - - - gram - - - - - - - - - - Expected Supply Duration: 28 days - - - - - - - 1 - - - - - - - - - - - - - - - - - -
- - - - - - - - - - - - - - - - - - - - - Mocked code - - - - - - - - - - - - gram - - - - - - - - - - Expected Supply Duration: 28 days - - - - - - - 1 - - - - - - - - - - - - - - - - - -
- - - - - - - - - - - - - - - - - - - - - Mocked code - - - - - - - - - - - - gram - - - - - - - - - - Expected Supply Duration: 28 days - - - - - - - 1 - - - - - - - - - - - - - - - - - -
- - - - - - - - - - - - - - - - - - - - - Mocked code - - - - - - - - - - - - gram - - - - - - - - - - Expected Supply Duration: 28 days - - - - - - - 1 - - - - - - - - - - - - - - - - - -
- - - - - - - - - - - - - - - - - - - - - Mocked code - - - - - - - - - - - - gram - - - - - - - - - - Expected Supply Duration: 28 days - - - - - - - 1 - - - - - - - - - - - - - - - - - -
- - - - - - - - - - - - - - - - - - - - - Mocked code - - - - - - - - - - - - gram - - - - - - - - - - Expected Supply Duration: 28 days - - - - - - - 1 - - - - - - - - - - - - - - - - - -
- - - - - - - - - - - - - - - - - - - - - Mocked code - - - - - - - - - - - - - - - - device - - - - - Expected Supply Duration: 28 days - - - - - - - n/a - - - - - - - - - - - - - - - - - -
- - - - - - - - - - - - - - - - - - - - - Mocked code - - - - - - - - - - - - device - - - - - - - - - - Expected Supply Duration: 28 days - - - - - - - n/a - - - - - - - - - - - - - - - - - -
- - - - - - - - - - - - - - - - - - - - - Mocked code - - - - - - - - - - - - - - - - tablet - - - - - Expected Supply Duration: 1 days - - - - - - - One To Be Taken Each Day - - - - - - - - - - - - - - - - - -
- - - - - - - - - - - - - - - - - - - - - Mocked code - - - - - - - - - - - - tablet - - - - - - - - - - Expected Supply Duration: 1 days - - - - - - - One To Be Taken Each Day - - - - - - - - - - - - - - - - - -
- - - - - - - - - - - - - - - - - - - - - Mocked code - - - - - - - - - - - - - - - - device - - - - - Expected Supply Duration: 28 days - - - - - - - n/a - - - - - - - - - - - - - - - - - -
- - - - - - - - - - - - - - - - - - - - - Mocked code - - - - - - - - - - - - - - - - tablet - - - - - Expected Supply Duration: 1 days - - - - - - - One To Be Taken Each Day - - - - - - - - - - - - - - - - - -
- - - - - - - - - - - - - - - - - - - - - Mocked code - - - - - - - - - - - - - - - - tablet - - - - - Expected Supply Duration: 28 days - - - - - - - One Tablet Daily For 21 Days; Subsequent Courses Repeated After 7-Day Tablet Free Interval - - - - - - - - - - - - - - - - - -
- - - - - - - - - - - - - - - - - - - - - Mocked code - - - - - - - - - - - - tablet - - - - - - - - - - Expected Supply Duration: 28 days - - - - - - - One Tablet Daily For 21 Days; Subsequent Courses Repeated After 7-Day Tablet Free Interval - - - - - - - - - - - - - - - - - -
- - - - - - - - - - - - - - - - - - - - - Mocked code - - - - - - - - - - - - tablet - - - - - - - - - - Expected Supply Duration: 28 days - - - - - - - One Tablet Daily For 21 Days; Subsequent Courses Repeated After 7-Day Tablet Free Interval - - - - - - - - - - - - - - - - - -
- - - - - - - - - - - - - - - - - - - - - Mocked code - - - - - - - - - - - - tablet - - - - - - - - - - Expected Supply Duration: 28 days - - - - - - - One Tablet Daily For 21 Days; Subsequent Courses Repeated After 7-Day Tablet Free Interval - - - - - - - - - - - - - - - - - -
- - - - - - - - - - - - - - - - - - - - - Mocked code - - - - - - - - - - - - tablet - - - - - - - - - - Expected Supply Duration: 28 days - - - - - - - One Tablet Daily For 21 Days; Subsequent Courses Repeated After 7-Day Tablet Free Interval - - - - - - - - - - - - - - - - - -
- - - - - - - - - - - - - - - - - - - - - Mocked code - - - - - - - - - - - - tablet - - - - - - - - - - Expected Supply Duration: 28 days - - - - - - - One Tablet Daily For 21 Days; Subsequent Courses Repeated After 7-Day Tablet Free Interval - - - - - - - - - - - - - - - - - -
- - - - - - - - - - - - - - - - - - - - - Mocked code - - - - - - - - - - - - tablet - - - - - - - - - - Expected Supply Duration: 28 days - - - - - - - One Tablet Daily For 21 Days; Subsequent Courses Repeated After 7-Day Tablet Free Interval - - - - - - - - - - - - - - - - - -
- - - - - - - - - - - - - - - - - - - - - Mocked code - - - - - - - - - - - - tablet - - - - - - - - - - Expected Supply Duration: 28 days - - - - - - - One Tablet Daily For 21 Days; Subsequent Courses Repeated After 7-Day Tablet Free Interval - - - - - - - - - - - - - - - - - -
- - - - - - - - - - - - - - - - - - - - - Mocked code - - - - - - - - - - - - tablet - - - - - - - - - - Expected Supply Duration: 28 days - - - - - - - One Tablet Daily For 21 Days; Subsequent Courses Repeated After 7-Day Tablet Free Interval - - - - - - - - - - - - - - - - - -
- - - - - - - - - - - - - - - - - - - - - Mocked code - - - - - - - - - - - - tablet - - - - - - - - - - Expected Supply Duration: 28 days - - - - - - - One Tablet Daily For 21 Days; Subsequent Courses Repeated After 7-Day Tablet Free Interval - - - - - - - - - - - - - - - - - -
- - - - - - - - - - - - - - - - - - - - - Mocked code - - - - - - - - - - - - tablet - - - - - - - - - - Expected Supply Duration: 28 days - - - - - - - One Tablet Daily For 21 Days; Subsequent Courses Repeated After 7-Day Tablet Free Interval - - - - - - - - - - - - - - - - - -
- - - - - - - - - - - - - - - - - - - - - Mocked code - - - - - - - - - - - - tablet - - - - - - - - - - Expected Supply Duration: 28 days - - - - - - - One Tablet Daily For 21 Days; Subsequent Courses Repeated After 7-Day Tablet Free Interval - - - - - - - - - - - - - - - - - -
- - - - - - - - - - - - - - - - - - - - - Mocked code - - - - - - - - - - - - - - - - gram - - - - - Expected Supply Duration: 28 days - - - - - - - 1 - - - - - - - - - - - - - - - - - -
- - - - - - - - - - - - - - - - - - - - - Mocked code - - - - - - - - - - - - gram - - - - - - - - - - Expected Supply Duration: 28 days - - - - - - - 1 - - - - - - - - - - - - - - - - - -
- - - - - - - - - - - - - - - - - - - - - Mocked code - - - - - - - - - - - - gram - - - - - - - - - - Expected Supply Duration: 28 days - - - - - - - 1 - - - - - - - - - - - - - - - - - -
- - - - - - - - - - - - - - - - - - - - - Mocked code - - - - - - - - - - - - gram - - - - - - - - - - Expected Supply Duration: 28 days - - - - - - - 1 - - - - - - - - - - - - - - - - - -
- - - - - - - - - - - - - - - - - - - - - Mocked code - - - - - - - - - - - - gram - - - - - - - - - - Expected Supply Duration: 28 days - - - - - - - 1 - - - - - - - - - - - - - - - - - -
- - - - - - - - - - - - - - - - - - - - - Mocked code - - - - - - - - - - - - gram - - - - - - - - - - Expected Supply Duration: 28 days - - - - - - - 1 - - - - - - - - - - - - - - - - - -
- - - - - - - - - - - - - - - - - - - - - Mocked code - - - - - - - - - - - - - - - - device - - - - - Expected Supply Duration: 1825 days - - - - - - - n/a - - - - - - - - - - - - - - - - - -
- - - - - - - - - - - - - - - - - - - - - Mocked code - - - - - - - - - - - - - - - - device - - - - - Expected Supply Duration: 1825 days - - - - - - - n/a - - - - - - - - - - - - - - - - - -
- - - - - - - - - - - - - - - - - - - - - Mocked code - - - - - - - - - - - - device - - - - - - - - - - Expected Supply Duration: 1825 days - - - - - - - n/a - - - - - - - - - - - - - - - - - -
- - - - - - - - - - - - - - - - - - - - - Mocked code - - - - - - - - - - - - - - - - gram - - - - - Expected Supply Duration: 28 days - - - - - - - 1 - - - - - - - - - - - - - - - - - -
- - - - - - - - - - - - - - - - - - - - - Mocked code - - - - - - - - - - - - gram - - - - - - - - - - Expected Supply Duration: 28 days - - - - - - - 1 - - - - - - - - - - - - - - - - - -
- - - - - - - - - - - - - - - - - - - - - Mocked code - - - - - - - - - - - - - - - - tablet - - - - - Expected Supply Duration: 28 days - - - - - - - One Tablet Daily For 21 Days; Subsequent Courses Repeated After 7-Day Tablet Free Interval - - - - - - - - - - - - - - - - - -
- - - - - - - - - - - - - - - - - - - - - Mocked code - - - - - - - - - - - - tablet - - - - - - - - - - Expected Supply Duration: 28 days - - - - - - - One Tablet Daily For 21 Days; Subsequent Courses Repeated After 7-Day Tablet Free Interval - - - - - - - - - - - - - - - - - -
- - - - - - - - - - - - - - Active Problem, major - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- - - - - - - - - - - - - - - -
- - - - - - Mocked code - - -
- - - - - - Status: Active This is text for a warfarin allergy Significance : Major - Episodicity : First - This is text for a warfarin allergy - - - - - - - - - - - - - - - - - - - - - - - - -
- - - - - - - - - - - - - - - -
- - - - - - Mocked code - - -
- - - - - - Status: Active This is a peanut allergy, (Evolved into H/O: aspirin allergy 13-Jan-2010) Significance : Major - Episodicity : First - This is a peanut allergy, (Evolved into H/O: aspirin allergy 13-Jan-2010) - - - - - - - - - - - - - - - - - - - - - - - - -
- - - - - - - - - - - - - - - -
- - - - - - Mocked code - - -
- - - - - - Status: Active Drug Allergy - Apsrin Significance : Minor - Episodicity : First - Drug Allergy - Apsrin - - - - - - - - - - - - - - - - - - - - - - - - -
- - - - - - - - - - - - - - - -
- - - - - - Mocked code - - -
- - - - - - Status: Active This is a peanut allergy, (Replaced Allergic gastroenteritis) - - - - - - - - - - - - - - - - - - - - - - - - -
- - - - - - - - - - - - - Mocked code - - -
- - - - - - - - - - - - - - - - - -
- - - - - - - - - - - - - - Active Problem, major - - - - - - - + + + + + + + + + + + + - - - - - - - - - - - - - - + + + + + + + + +
+ + + + + + + + + + + + + + + +
+ + + + + + Mocked code + + +
+ + + + + + Status: Active This is text for a warfarin allergy Significance : Major - Episodicity : First - This is text for a warfarin allergy + + + + + + + + + + + + + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + +
+ + + + + + Mocked code + + +
+ + + + + + Status: Active This is a peanut allergy, (Evolved into H/O: aspirin allergy 13-Jan-2010) Significance : Major - Episodicity : First - This is a peanut allergy, (Evolved into H/O: aspirin allergy 13-Jan-2010) + + + + + + + + + + + + + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + +
+ + + + + + Mocked code + + +
+ + + + + + Status: Active Drug Allergy - Apsrin Significance : Minor - Episodicity : First - Drug Allergy - Apsrin + + + + + + + + + + + + + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + +
+ + + + + + Mocked code + + +
+ + + + + + Status: Active This is a peanut allergy, (Replaced Allergic gastroenteritis) + + + + + + + + + + + + + + + + + + + + + + + + +
+ + + + + + + + + + + + + Mocked code + + +
+ + + + + + + + + + + + + + + + + +
+ + + + + + + + + + + + + + Active Problem, major + + + + + + + - - - - - - - - -
- - - - - - - - - - - - - - Active Problem, major - - - - - - - + + + + + + + + + + + + + + - - - - - - - - - - - - - - + + + + + + + + +
+ + + + + + + + + + + + + + Active Problem, major + + + + + + + - - - - - - - - -
- - - - - - - - - - - - - - Active Problem, major - - - - - - - + + + + + + + + + + + + + + - - - - - - - - - - - - - - - - - - - - - - - - - - + + + + + + + + +
+ + + + + + + + + + + + + + Active Problem, major + + + + + + + - - - - - - Problem Info: Problem Notes: This is text for a warfarin allergy Transformed AllergyIntolerance problem header Originally coded: H/O: warfarin allergy - - - - - - - - - - - - -
- - - - - - - - - - - - - - Inactive Problem, major - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - Problem Info: Related Problem: Child of Aspirin allergy Problem Notes: This is a peanut allergy, (Evolved into H/O: aspirin allergy 13-Jan-2010) Transformed AllergyIntolerance problem header Originally coded: Peanut allergy - - - - - - - - - - - - -
- - - - - - - - - - - - - - Active Problem, minor - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - Problem Info: Related Problem: Parent of Allergy to peanuts Problem Notes: Drug Allergy - Apsrin Transformed AllergyIntolerance problem header Originally coded: H/O: aspirin allergy - - - - - - - - - - - - -
- - - - - - - - - - - - - - Active Problem, major - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- - - - - - - - - - - - - - Active Problem, major - - - - - - - + + + + + + + + + + + + + + + + + + + + + + + + + + - - - - - - - - - - - - - - + + + + + + Problem Info: Problem Notes: This is text for a warfarin allergy Transformed AllergyIntolerance problem header Originally coded: H/O: warfarin allergy + + + + + + + + + + + + +
+ + + + + + + + + + + + + + Inactive Problem, major + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + Problem Info: Related Problem: Child of Aspirin allergy Problem Notes: This is a peanut allergy, (Evolved into H/O: aspirin allergy 13-Jan-2010) Transformed AllergyIntolerance problem header Originally coded: Peanut allergy + + + + + + + + + + + + +
+ + + + + + + + + + + + + + Active Problem, minor + + + + + + + - - - - - - - - -
- - - - - - - - - - - - - Mocked code - - -
- - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + Problem Info: Related Problem: Parent of Allergy to peanuts Problem Notes: Drug Allergy - Apsrin Transformed AllergyIntolerance problem header Originally coded: H/O: aspirin allergy + + + + + + + + + + + + +
+ + + + + + + + + + + + + + Active Problem, major + + + + + + + - - - - Engraver (entry added 13/1/2010, but marked as 01/1/1988 as date of entry) - - - - - - - - - - - - - - - - - - -
- - - - - - - - - - - - - Mocked code - - -
- - + + + + + + + + + + + + + + + + + + + + + + +
+ + + + + + + + + + + + + + Active Problem, major + + + + + + + - - - - Family member : Uncle - - + + + + + + + + + + + + + + - - - - - - - - - - - - - - - -
- - - - - - - - - - - - - Mocked code - - -
- - - mmHg - - - - - - - - - - - - - - - -
- - - - - - - - - - - - - Mocked code - - -
- - - mmHg - - - - - - - - - - - - - - - -
- - - - - - - - - - - - - Mocked code - - -
- - - - - - - - Significance : Major - Episodicity : First - Synonym "Heart Attack" selected Problem Info: Problem Notes: Synonym "Heart Attack" selected - - - - - - - - - - - - - - - - - - -
- - - - - - - - - - - - - Mocked code - - -
- - - - - - - - Significance : Major - Episodicity : First - Happy Puppet Problem Info: Problem Notes: Happy Puppet - - - - - - - - - - - - - - - - - - -
- - - - - - - - - - - - - Mocked code - - -
- - - - - - - - Significance : Major - Episodicity : First - - - - - - - - - - - - - - - - - - -
- - - - - - - - - - - - - Mocked code - - -
- - - - - - - - Significance : Major - Episodicity : First - - - - - - - - - - - - - - - - - - -
- - - - - - - - - - - - - Mocked code - - -
- - - - - - - - - - - - - - - - - -
- - - - - - - - - - - - - Mocked code - - -
- - - - - - - - Significance : Major - Episodicity : First - This is a standalone note with extended chars ѧ¬ Problem Info: Problem Notes: This is a standalone note with extended chars ѧ¬ - - - - - - - - - - - - - - - - - - -
- - - - - - - - - - - - - Mocked code - - -
- - - - - - - - This is descriptive text `¬¦!"£$%^&*()-_+={}[]~#@':;<,|\>./? - - - - - - - - - - - - - - - - - - -
- - - - - - - - - - - - - Mocked code - - -
- - - - - - Mocked code - - -
- - - mmHg - - - - - - Mocked code - - -
- - - mmHg - - - - - - This is the standalone BP Interpretation(s): Abnormal - - - - - - - - - - - - - - - - - - - -
- - - - - - - - - - - - - Mocked code - - -
- - - - - - - - - - - + + + + + + + + +
+ + + + + + + + + + + + + Mocked code + + +
+ + + + + + Engraver (entry added 13/1/2010, but marked as 01/1/1988 as date of entry) + + + + + + + + + + + + + + + + + +
+ + + + + + + + + + + + + Mocked code + + +
+ + + + + + Family member : Uncle + + + + + + + + + + + + + + + + + +
+ + + + + + + + + + + + + Mocked code + + +
+ + + + + mmHg + + + + + + + + + + + + + + + + + +
+ + + + + + + + + + + + + Mocked code + + +
+ + + + + mmHg + + + + + + + + + + + + + + + + + +
+ + + + + + + + + + + + + Mocked code + + +
+ + + + + + Significance : Major - Episodicity : First - Synonym "Heart Attack" selected Problem Info: Problem Notes: Synonym "Heart Attack" selected + + + + + + + + + + + + + + + + + +
+ + + + + + + + + + + + + Mocked code + + +
+ + + + + + Significance : Major - Episodicity : First - Happy Puppet Problem Info: Problem Notes: Happy Puppet + + + + + + + + + + + + + + + + + +
+ + + + + + + + + + + + + Mocked code + + +
+ + + + + + Significance : Major - Episodicity : First + + + + + + + + + + + + + + + + + +
+ + + + + + + + + + + + + Mocked code + + +
+ + + + + + Significance : Major - Episodicity : First + + + + + + + + + + + + + + + + + +
+ + + + + + + + + + + + + Mocked code + + +
+ + + + + + + + + + + + + + + + + +
+ + + + + + + + + + + + + Mocked code + + +
+ + + + + + Significance : Major - Episodicity : First - This is a standalone note with extended chars ѧ¬ Problem Info: Problem Notes: This is a standalone note with extended chars ѧ¬ + + + + + + + + + + + + + + + + + +
+ + + + + + + + + + + + + Mocked code + + +
+ + + + + + This is descriptive text `¬¦!"£$%^&*()-_+={}[]~#@':;<,|\>./? + + + + + + + + + + + + + + + + + +
+ + + + + + + + + + + + + Mocked code + + +
+ + + + + + Mocked code + + +
+ + + + + mmHg + + + + + + + + Mocked code + + +
+ + + + + mmHg + + + + + + + + This is the standalone BP Interpretation(s): Abnormal + + + + + + + + + + + + + + + + + + + +
+ + + + + + + + + + + + + Mocked code + + +
+ + + + + + + + + + + diff --git a/service/src/test/resources/ehr/request/fhir/output/expected-ehr-extract-response-from-json.xml b/service/src/test/resources/ehr/request/fhir/output/expected-ehr-extract-response-from-json.xml index 80028e3f6..c7366cdeb 100644 --- a/service/src/test/resources/ehr/request/fhir/output/expected-ehr-extract-response-from-json.xml +++ b/service/src/test/resources/ehr/request/fhir/output/expected-ehr-extract-response-from-json.xml @@ -39,8060 +39,2989 @@ - - - - - - Unknown - - - - TEMPLE SOWERBY MEDICAL PRACTICE - - - - - - - - - General Medical Practitioner - - - - Mr - NHS - Test - - - - TEMPLE SOWERBY MEDICAL PRACTICE - - - Fulford Grange - Micklefield Lane - Rawdon - Rawdon - Leeds - LS19 6BA - - - - - - - - - System Administrator - - - - Dr - EMIS Web - Recall Schedule - - - - TEMPLE SOWERBY MEDICAL PRACTICE - - - Fulford Grange - Micklefield Lane - Rawdon - Rawdon - Leeds - LS19 6BA - - - - - - - - - Clerical Worker - - - - Dr - David - McAvenue - - - - National + + + + + + Unknown + + + + TEMPLE SOWERBY MEDICAL PRACTICE + + + + + + + + + General Medical Practitioner + + + + Mr + NHS + Test + + + + TEMPLE SOWERBY MEDICAL PRACTICE + + + Fulford Grange + Micklefield Lane + Rawdon + Rawdon + Leeds + LS19 6BA + + + + + + + + + System Administrator + + + + Dr + EMIS Web + Recall Schedule + + + + TEMPLE SOWERBY MEDICAL PRACTICE + + + Fulford Grange + Micklefield Lane + Rawdon + Rawdon + Leeds + LS19 6BA + + + + + + + + + General Medical Practitioner + + + + Dr + Peter + Whitcombe + + + + TEMPLE SOWERBY MEDICAL PRACTICE + + + Fulford Grange + Micklefield Lane + Rawdon + Rawdon + Leeds + LS19 6BA + + + + + + + + + General Medical Practitioner + + + + Dr + David + McAvenue + + + + TEMPLE SOWERBY MEDICAL PRACTICE + + + Fulford Grange + Micklefield Lane + Rawdon + Rawdon + Leeds + LS19 6BA + + + + + + + + + + + GP Surgery + + + + + + + + + + + + + EMIS Test Practice Location + + + + + + + + + + + + Mocked code + + + + + + + + + Mocked code + + + + + + + + + Mocked code + + +
+ + + + + + @ÑѧѬ This has extended unicode characters + + + + + + + + + + + + + + + + + + + + GP Surgery + + + +
+ + + + + + + + + EMIS Test Practice Location + + + + + + + + + + + + Mocked code + + +
+ + + + + + Mocked code + + +
+ + + + + + 1.This is a line of text with a line break at the end. +2.This is a line of text with a line break at the end. +3.This is a line of text with a line break at the end. +4.This is a line of text with a line break at the end. - - - - - - - - General Medical Practitioner - - - - Dr - Peter - Whitcombe - - - - TEMPLE SOWERBY MEDICAL PRACTICE - - - Fulford Grange - Micklefield Lane - Rawdon - Rawdon - Leeds - LS19 6BA - - - - - - - - - General Medical Practitioner - - - - Dr - David - McAvenue - - - - TEMPLE SOWERBY MEDICAL PRACTICE - - - Fulford Grange - Micklefield Lane - Rawdon - Rawdon - Leeds - LS19 6BA - - - - - - - - - - - GP Surgery - - - - - - - - - - - - - EMIS Test Practice Location - - - - - - - - - - - - Mocked code - - - - - - - - - Mocked code - - - - - - - - - Mocked code - - -
- - - - - - - - @ÑѧѬ This has extended unicode characters - - - - - - - - - - - - - - - - - - - - - GP Surgery - - - -
- - - - - - - - - EMIS Test Practice Location - - - - - - - - - - - - Mocked code - - -
- - - - - - Mocked code - - -
- - - - - - 1.This is a line of text with a line break at the end. - 2.This is a line of text with a line break at the end. - 3.This is a line of text with a line break at the end. - 4.This is a line of text with a line break at the end. - - The Line above this one was blank (with a line break) - - This is a long line, this is a long line, this is a long line, this is a long line, this is a long line, this is a long line, this is a long line, this is a long line, this is a long line, this is a long line, this is a long line, this is a long line, this is a long line, this is a long line, this is a long line, this is a long line, this is a long line, this is a long line, this is a long line, this is a long line, this is a long line, this is a long line, this is a long line, this is a long line, this is a long line, this is a long line, this is a long line, this is a long line, this is a long line, this is a long line, this is a long line, this is a long line, this is a long line, this is a long line, this is a long line, this is a long line, this is a long line, this is a long line, this is a long line, this is a long line, this is a long line, this is a long line, this is a long line, this is a long line, this is a long line, this is a long line, this is a long line, this is a long line, this is a long line, this is a long line, this is a long line, this is a long line, this is a long line, this is a long line, this is a long line, this is a long line, this is a long line, this is a long line, this is a long line, this is a long line, this is a long line, this is a long line, this is a long line, this is a long line, this is a long line, this is a long line, this is a long line, this is a long line, this is a long line, this is a long line, this is a long line, this is a long line, this is a long line, this is a long line, this is a long line, this is a long line, this is a long line, this is a long line, this is a long line, this is a long line, this is a long line, this is a long line, this is a long line, this is a long line, this is a long line, this is a long line, this is a long line, this is a long line, this is a long line, this is a long line, this is a long line, this is a long line, this is a long line, this is a long line, this is a long line, this is a long line, this is a long line,and this is the end of the long line. +The Line above this one was blank (with a line break) - ThisIsALongLineWithoutSpacesThisIsALongLineWithoutSpacesThisIsALongLineWithoutSpacesThisIsALongLineWithoutSpacesThisIsALongLineWithoutSpacesThisIsALongLineWithoutSpacesThisIsALongLineWithoutSpacesThisIsALongLineWithoutSpacesThisIsALongLineWithoutSpacesThisIsALongLineWithoutSpacesThisIsALongLineWithoutSpacesThisIsALongLineWithoutSpacesThisIsALongLineWithoutSpacesThisIsALongLineWithoutSpacesThisIsALongLineWithoutSpacesThisIsALongLineWithoutSpacesThisIsALongLineWithoutSpacesThisIsALongLineWithoutSpacesThisIsALongLineWithoutSpacesThisIsALongLineWithoutSpacesThisIsALongLineWithoutSpacesThisIsALongLineWithoutSpacesThisIsALongLineWithoutSpacesThisIsALongLineWithoutSpacesThisIsALongLineWithoutSpacesThisIsALongLineWithoutSpacesThisIsALongLineWithoutSpacesThisIsALongLineWithoutSpacesThisIsALongLineWithoutSpacesThisIsALongLineWithoutSpacesThisIsALongLineWithoutSpacesThisIsALongLineWithoutSpacesThisIsALongLineWithoutSpacesThisIsALongLineWithoutSpacesThisIsALongLineWithoutSpacesThisIsALongLineWithoutSpacesThisIsALongLineWithoutSpacesThisIsALongLineWithoutSpacesThisIsALongLineWithoutSpacesThisIsALongLineWithoutSpacesThisIsALongLineWithoutSpacesThisIsALongLineWithoutSpacesThisIsALongLineWithoutSpacesThisIsALongLineWithoutSpacesThisIsALongLineWithoutSpacesThisIsALongLineWithoutSpacesThisIsALongLineWithoutSpacesThisIsALongLineWithoutSpacesThisIsALongLineWithoutSpacesThisIsALongLineWithoutSpacesThisIsALongLineWithoutSpacesThisIsALongLineWithoutSpacesThisIsALongLineWithoutSpacesThisIsALongLineWithoutSpacesENDOFTEXT +This is a long line, this is a long line, this is a long line, this is a long line, this is a long line, this is a long line, this is a long line, this is a long line, this is a long line, this is a long line, this is a long line, this is a long line, this is a long line, this is a long line, this is a long line, this is a long line, this is a long line, this is a long line, this is a long line, this is a long line, this is a long line, this is a long line, this is a long line, this is a long line, this is a long line, this is a long line, this is a long line, this is a long line, this is a long line, this is a long line, this is a long line, this is a long line, this is a long line, this is a long line, this is a long line, this is a long line, this is a long line, this is a long line, this is a long line, this is a long line, this is a long line, this is a long line, this is a long line, this is a long line, this is a long line, this is a long line, this is a long line, this is a long line, this is a long line, this is a long line, this is a long line, this is a long line, this is a long line, this is a long line, this is a long line, this is a long line, this is a long line, this is a long line, this is a long line, this is a long line, this is a long line, this is a long line, this is a long line, this is a long line, this is a long line, this is a long line, this is a long line, this is a long line, this is a long line, this is a long line, this is a long line, this is a long line, this is a long line, this is a long line, this is a long line, this is a long line, this is a long line, this is a long line, this is a long line, this is a long line, this is a long line, this is a long line, this is a long line, this is a long line, this is a long line, this is a long line, this is a long line, this is a long line, this is a long line, this is a long line, this is a long line, this is a long line, this is a long line, this is a long line, this is a long line, this is a long line, this is a long line,and this is the end of the long line. - The line below contains special characters... - ¬`1234567890!"£$%^&*()_+=-{}][~@#':;<>?,./|\ - - - - - - - - - - - - - - - - - - - - GP Surgery - - - -
- - - - - - - - - EMIS Test Practice Location - - - - - - - - - - - - Mocked code - - -
- - - - - - Mocked code - - -
- - - - - - Mocked code - - -
- - - - - - - - - - - - Mocked code - - -
- - +ThisIsALongLineWithoutSpacesThisIsALongLineWithoutSpacesThisIsALongLineWithoutSpacesThisIsALongLineWithoutSpacesThisIsALongLineWithoutSpacesThisIsALongLineWithoutSpacesThisIsALongLineWithoutSpacesThisIsALongLineWithoutSpacesThisIsALongLineWithoutSpacesThisIsALongLineWithoutSpacesThisIsALongLineWithoutSpacesThisIsALongLineWithoutSpacesThisIsALongLineWithoutSpacesThisIsALongLineWithoutSpacesThisIsALongLineWithoutSpacesThisIsALongLineWithoutSpacesThisIsALongLineWithoutSpacesThisIsALongLineWithoutSpacesThisIsALongLineWithoutSpacesThisIsALongLineWithoutSpacesThisIsALongLineWithoutSpacesThisIsALongLineWithoutSpacesThisIsALongLineWithoutSpacesThisIsALongLineWithoutSpacesThisIsALongLineWithoutSpacesThisIsALongLineWithoutSpacesThisIsALongLineWithoutSpacesThisIsALongLineWithoutSpacesThisIsALongLineWithoutSpacesThisIsALongLineWithoutSpacesThisIsALongLineWithoutSpacesThisIsALongLineWithoutSpacesThisIsALongLineWithoutSpacesThisIsALongLineWithoutSpacesThisIsALongLineWithoutSpacesThisIsALongLineWithoutSpacesThisIsALongLineWithoutSpacesThisIsALongLineWithoutSpacesThisIsALongLineWithoutSpacesThisIsALongLineWithoutSpacesThisIsALongLineWithoutSpacesThisIsALongLineWithoutSpacesThisIsALongLineWithoutSpacesThisIsALongLineWithoutSpacesThisIsALongLineWithoutSpacesThisIsALongLineWithoutSpacesThisIsALongLineWithoutSpacesThisIsALongLineWithoutSpacesThisIsALongLineWithoutSpacesThisIsALongLineWithoutSpacesThisIsALongLineWithoutSpacesThisIsALongLineWithoutSpacesThisIsALongLineWithoutSpacesThisIsALongLineWithoutSpacesENDOFTEXT +The line below contains special characters... +¬`1234567890!"£$%^&*()_+=-{}][~@#':;<>?,./|\ + + + + + + + + + + + + + + + + + + + + GP Surgery + + + +
+ + + + + + + + + EMIS Test Practice Location + + + + + + + + + + + + Mocked code + + +
+ + + + + + Mocked code + + +
+ + + + + + Mocked code + + +
+ + + + + + + + + + + + Mocked code + + +
+ + + + + + These are some notes !"£$%^&*() + + + + + + + + + + + + This is some random free text + + + + + + + + + + + + Mocked code + + +
+ + + + + + + + + + + + + + Mocked code + + +
+ + + + + + Mocked code + + +
+ + + + + + Family member : Mother + + + + + + + + + + + + Mocked code + + +
+ + + + + + Family member : Father - note - this is obviously wrong? + + + + + + + + + + + + + + + + + + + + GP Surgery + + + +
+ + + + + + + + + EMIS Test Practice Location + + + + + + + + + + + + Mocked code + + +
+ + + + + + Mocked code + + +
+ + + + + + hhhhhhhhh + + + + + + + + + + + + + + + + + + + + GP Surgery + + + +
+ + + + + + + + + EMIS Test Practice Location + + + + + + + + + + + + Mocked code + + +
+ + + + + + Mocked code + + +
+ + + + + + This is kjkjkjkjkjkjkjkjkj + + + + + + + + + + + + + + + + + + + + GP Surgery + + + +
+ + + + + + + + + EMIS Test Practice Location + + + + + + + + + + + + Mocked code + + +
+ + + + + + Mocked code + + +
+ + + + + + Mocked code + + +
+ + + + + + Mocked code + + +
+ + + + + mmHg + + + + + + + + Mocked code + + +
+ + + + + mmHg + + + + + + + + This is the BP reading in a consultation with a note + + + + + + + + + + + + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + + + Mocked code + + + + + + + + + + + + + + + + tablet + + + + + Expected Supply Duration: 28 days + + + + + + + One Tablet Daily For 21 Days; Subsequent Courses Repeated After 7-Day Tablet Free Interval + + + + + + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + + + Mocked code + + + + + + + + + + + + + + + + device + + + + + Expected Supply Duration: 1825 days + + + + + + + n/a + + + + + + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + + + Mocked code + + + + + + + + + + + + + + + + gram + + + + + Expected Supply Duration: 28 days + + + + + + + 1 + + + + + + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + + + Mocked code + + + + + + + + + + + + + + + + device + + + + + Expected Supply Duration: 28 days + + + + + + + n/a + + + + + + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + + + Mocked code + + + + + + + + + + + + + + + + tablet + + + + + Expected Supply Duration: 1 days + + + + + + + One To Be Taken Each Day + + + + + + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + + + Mocked code + + + + + + + + + + + + + + + + device + + + + + Expected Supply Duration: 28 days + + + + + + + n/a + + + + + + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + + + Mocked code + + + + + + + + + + + + + + + + tablet + + + + + Expected Supply Duration: 1 days + + + + + + + One To Be Taken Each Day + + + + + + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + + + Mocked code + + + + + + + + + + + + + + + + tablet + + + + + Expected Supply Duration: 28 days + + + + + + + One Tablet Daily For 21 Days; Subsequent Courses Repeated After 7-Day Tablet Free Interval + + + + + + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + + + Mocked code + + + + + + + + + + + + + + + + gram + + + + + Expected Supply Duration: 28 days + + + + + + + 1 + + + + + + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + + + Mocked code + + + + + + + + + + + + + + + + device + + + + + Expected Supply Duration: 1825 days + + + + + + + n/a + + + + + + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + + + Mocked code + + + + + + + + + + + + + + + + device + + + + + Expected Supply Duration: 1825 days + + + + + + + n/a + + + + + + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + + + Mocked code + + + + + + + + + + + + + + + + gram + + + + + Expected Supply Duration: 28 days + + + + + + + 1 + + + + + + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + + + Mocked code + + + + + + + + + + + + + + + + tablet + + + + + Expected Supply Duration: 28 days + + + + + + + One Tablet Daily For 21 Days; Subsequent Courses Repeated After 7-Day Tablet Free Interval + + + + + + + + + + + + + + + + + +
+ + + + + + + + + + + + + + Active Problem, major + + + + + + + - - - - These are some notes !"£$%^&*() - - - - - - - - - - - - - This is some random free text - - - - - - - - - - - - Mocked code - - -
- - - - - - - - - - - - - - Mocked code - - -
- - - - - - Mocked code - - -
- - - - - - - - Family member : Mother - - - - - - - - - - - - - Mocked code - - -
- - - - - - - - Family member : Father - note - this is obviously wrong? - - - - - - - - - - - - - - - - - - - - - GP Surgery - - - -
- - - - - - - - - EMIS Test Practice Location - - - - - - - - - - - - Mocked code - - -
- - - - - - Mocked code - - -
- - - - - - hhhhhhhhh - - - - - - - - - - - - - - - - - - - - GP Surgery - - - -
- - - - - - - - - EMIS Test Practice Location - - - - - - - - - - - - Mocked code - - -
- - - - - - Mocked code - - -
- - - - - - This is kjkjkjkjkjkjkjkjkj - - - - - - - - - - - - - - - - - - - - GP Surgery - - - -
- - - - - - - - - EMIS Test Practice Location - - - - - - - - - - - - Mocked code - - -
- - - - - - Mocked code - - -
- - - - - - Mocked code - - -
- - - - - - Mocked code - - -
- - - mmHg - - - - - - Mocked code - - -
- - - mmHg - - - - - - This is the BP reading in a consultation with a note - - - - - - - - - - - - - - - - - - - - - - - -
- - - - - - - - - - - - - - - - - - - - - Mocked code - - - - - - - - - - - - - - - - tablet - - - - - Expected Supply Duration: 28 days - - - - - - - One Tablet Daily For 21 Days; Subsequent Courses Repeated After 7-Day Tablet Free Interval - - - - - - - - - - - - - - - - - -
- - - - - - - - - - - - - - - - - - - - - Mocked code - - - - - - - - - - - - tablet - - - - - - - - - - Expected Supply Duration: 28 days - - - - - - - One Tablet Daily For 21 Days; Subsequent Courses Repeated After 7-Day Tablet Free Interval - - - - - - - - - - - - - - - - - -
- - - - - - - - - - - - - - - - - - - - - Mocked code - - - - - - - - - - - - tablet - - - - - - - - - - Expected Supply Duration: 28 days - - - - - - - One Tablet Daily For 21 Days; Subsequent Courses Repeated After 7-Day Tablet Free Interval - - - - - - - - - - - - - - - - - -
- - - - - - - - - - - - - - - - - - - - - Mocked code - - - - - - - - - - - - tablet - - - - - - - - - - Expected Supply Duration: 28 days - - - - - - - One Tablet Daily For 21 Days; Subsequent Courses Repeated After 7-Day Tablet Free Interval - - - - - - - - - - - - - - - - - -
- - - - - - - - - - - - - - - - - - - - - Mocked code - - - - - - - - - - - - tablet - - - - - - - - - - Expected Supply Duration: 28 days - - - - - - - One Tablet Daily For 21 Days; Subsequent Courses Repeated After 7-Day Tablet Free Interval - - - - - - - - - - - - - - - - - -
- - - - - - - - - - - - - - - - - - - - - Mocked code - - - - - - - - - - - - tablet - - - - - - - - - - Expected Supply Duration: 28 days - - - - - - - One Tablet Daily For 21 Days; Subsequent Courses Repeated After 7-Day Tablet Free Interval - - - - - - - - - - - - - - - - - -
- - - - - - - - - - - - - - - - - - - - - Mocked code - - - - - - - - - - - - tablet - - - - - - - - - - Expected Supply Duration: 28 days - - - - - - - One Tablet Daily For 21 Days; Subsequent Courses Repeated After 7-Day Tablet Free Interval - - - - - - - - - - - + + - - - - - -
- - - - - - - - - - - - - - - - - - - - - Mocked code - - - - - - - - - - - - tablet - - - - - - - - - - Expected Supply Duration: 28 days - - - - - - - One Tablet Daily For 21 Days; Subsequent Courses Repeated After 7-Day Tablet Free Interval - - - - - - - - - - + + + - - - - - -
- - - - - - - - - - - - - - - - - - - - - Mocked code - - - - - - - - - - - - tablet - - - - - - - - - - Expected Supply Duration: 28 days - - - - - - - One Tablet Daily For 21 Days; Subsequent Courses Repeated After 7-Day Tablet Free Interval - - - - - - - - - - + + + - - - - - -
- - - - - - - - - - - - - - - - - - - - - Mocked code - - - - - - - - - - - - tablet - - - - - - - - - - Expected Supply Duration: 28 days - - - - - - - One Tablet Daily For 21 Days; Subsequent Courses Repeated After 7-Day Tablet Free Interval - - - - - - - - - - + + + - - - - - -
- - - - - - - - - - - - - - - - - - - - - Mocked code - - - - - - - - - - - - tablet - - - - - - - - - - Expected Supply Duration: 28 days - - - - - - - One Tablet Daily For 21 Days; Subsequent Courses Repeated After 7-Day Tablet Free Interval - - - - - - - - - - + + + - - - - - -
- - - - - - - - - - - - - - - - - - - - - Mocked code - - - - - - - - - - - - tablet - - - - - - - - - - Expected Supply Duration: 28 days - - - - - - - One Tablet Daily For 21 Days; Subsequent Courses Repeated After 7-Day Tablet Free Interval - - - - - - - - - - + + + - - - - - -
- - - - - - - - - - - - - - - - - - - - - Mocked code - - - - - - - - - - - - tablet - - - - - - - - - - Expected Supply Duration: 28 days - - - - - - - One Tablet Daily For 21 Days; Subsequent Courses Repeated After 7-Day Tablet Free Interval - - - - - - - - - - - - - - - - - -
- - - - - - - - - - - - - - - - - - - - - Mocked code - - - - - - - - - - - - tablet - - - - - - - - - - Expected Supply Duration: 28 days - - - - - - - One Tablet Daily For 21 Days; Subsequent Courses Repeated After 7-Day Tablet Free Interval - - - - - - - - - - - - - - - - - -
- - - - - - - - - - - - - - - - - - - - - Mocked code - - - - - - - - - - - - tablet - - - - - - - - - - Expected Supply Duration: 28 days - - - - - - - One Tablet Daily For 21 Days; Subsequent Courses Repeated After 7-Day Tablet Free Interval - - - - - - - - - - - - - - - - - -
- - - - - - - - - - - - - - - - - - - - - Mocked code - - - - - - - - - - - - tablet - - - - - - - - - - Expected Supply Duration: 28 days - - - - - - - One Tablet Daily For 21 Days; Subsequent Courses Repeated After 7-Day Tablet Free Interval - - - - - - - - - - - - - - - - - -
- - - - - - - - - - - - - - - - - - - - - Mocked code - - - - - - - - - - - - tablet - - - - - - - - - - Expected Supply Duration: 28 days - - - - - - - One Tablet Daily For 21 Days; Subsequent Courses Repeated After 7-Day Tablet Free Interval - - - - - - - - - - + + + - - - - - - -
- - - - - - - - - - - - - - - - - - - - - Mocked code - - - - - - - - - - - - tablet - - - - - - - - - - Expected Supply Duration: 28 days - - - - - - - One Tablet Daily For 21 Days; Subsequent Courses Repeated After 7-Day Tablet Free Interval - - - - - - - - - - - - - - - - - -
- - - - - - - - - - - - - - - - - - - - - Mocked code - - - - - - - - - - - - tablet - - - - - - - - - - Expected Supply Duration: 28 days - - - - - - - One Tablet Daily For 21 Days; Subsequent Courses Repeated After 7-Day Tablet Free Interval - - - - - - - - - - - - - - - - - -
- - - - - - - - - - - - - - - - - - - - - Mocked code - - - - - - - - - - - - tablet - - - - - - - - - - Expected Supply Duration: 28 days - - - - - - - One Tablet Daily For 21 Days; Subsequent Courses Repeated After 7-Day Tablet Free Interval - - - - - - - - - - - - - - - - - -
- - - - - - - - - - - - - - - - - - - - - Mocked code - - - - - - - - - - - - tablet - - - - - - - - - - Expected Supply Duration: 28 days - - - - - - - One Tablet Daily For 21 Days; Subsequent Courses Repeated After 7-Day Tablet Free Interval - - - - - - - - - - - - - - - - - -
- - - - - - - - - - - - - - - - - - - - - Mocked code - - - - - - - - - - - - tablet - - - - - - - - - - Expected Supply Duration: 28 days - - - - - - - One Tablet Daily For 21 Days; Subsequent Courses Repeated After 7-Day Tablet Free Interval - - - - - - - - - - - - - - - - - -
- - - - - - - - - - - - - - - - - - - - - Mocked code - - - - - - - - - - - - tablet - - - - - - - - - - Expected Supply Duration: 28 days - - - - - - - One Tablet Daily For 21 Days; Subsequent Courses Repeated After 7-Day Tablet Free Interval - - - - - - - - - - - - - - - - - -
- - - - - - - - - - - - - - - - - - - - - Mocked code - - - - - - - - - - - - tablet - - - - - - - - - - Expected Supply Duration: 28 days - - - - - - - One Tablet Daily For 21 Days; Subsequent Courses Repeated After 7-Day Tablet Free Interval - - - - - - - - - - - - - - - - - -
- - - - - - - - - - - - - - - - - - - - - Mocked code - - - - - - - - - - - - tablet - - - - - - - - - - Expected Supply Duration: 28 days - - - - - - - One Tablet Daily For 21 Days; Subsequent Courses Repeated After 7-Day Tablet Free Interval - - - - - - - - - - - - - - - - - -
- - - - - - - - - - - - - - - - - - - - - Mocked code - - - - - - - - - - - - tablet - - - - - - - - - - Expected Supply Duration: 28 days - - - - - - - One Tablet Daily For 21 Days; Subsequent Courses Repeated After 7-Day Tablet Free Interval - - - - - - - - - - - - - - - - - -
- - - - - - - - - - - - - - - - - - - - - Mocked code - - - - - - - - - - - - tablet - - - - - - - - - - Expected Supply Duration: 28 days - - - - - - - One Tablet Daily For 21 Days; Subsequent Courses Repeated After 7-Day Tablet Free Interval - - - - - - - - - - - - - - - - - -
- - - - - - - - - - - - - - - - - - - - - Mocked code - - - - - - - - - - - - tablet - - - - - - - - - - Expected Supply Duration: 28 days - - - - - - - One Tablet Daily For 21 Days; Subsequent Courses Repeated After 7-Day Tablet Free Interval - - - - - - - - - - - - - - - - - -
- - - - - - - - - - - - - - - - - - - - - Mocked code - - - - - - - - - - - - tablet - - - - - - - - - - Expected Supply Duration: 28 days - - - - - - - One Tablet Daily For 21 Days; Subsequent Courses Repeated After 7-Day Tablet Free Interval - - - - - - - - - - - - - - - - - -
- - - - - - - - - - - - - - - - - - - - - Mocked code - - - - - - - - - - - - tablet - - - - - - - - - - Expected Supply Duration: 28 days - - - - - - - One Tablet Daily For 21 Days; Subsequent Courses Repeated After 7-Day Tablet Free Interval - - - - - - - - - - - - - - - - - -
- - - - - - - - - - - - - - - - - - - - - Mocked code - - - - - - - - - - - - tablet - - - - - - - - - - Expected Supply Duration: 28 days - - - - - - - One Tablet Daily For 21 Days; Subsequent Courses Repeated After 7-Day Tablet Free Interval - - - - - - - - - - - - - - - - - -
- - - - - - - - - - - - - - - - - - - - - Mocked code - - - - - - - - - - - - tablet - - - - - - - - - - Expected Supply Duration: 28 days - - - - - - - One Tablet Daily For 21 Days; Subsequent Courses Repeated After 7-Day Tablet Free Interval - - - - - - - - - - - - - - - - - -
- - - - - - - - - - - - - - - - - - - - - Mocked code - - - - - - - - - - - - tablet - - - - - - - - - - Expected Supply Duration: 28 days - - - - - - - One Tablet Daily For 21 Days; Subsequent Courses Repeated After 7-Day Tablet Free Interval - - - - - - - - - - - - - - - - - -
- - - - - - - - - - - - - - - - - - - - - Mocked code - - - - - - - - - - - - tablet - - - - - - - - - - Expected Supply Duration: 28 days - - - - - - - One Tablet Daily For 21 Days; Subsequent Courses Repeated After 7-Day Tablet Free Interval - - - - - - - - - - - - - - - - - -
- - - - - - - - - - - - - - - - - - - - - Mocked code - - - - - - - - - - - - - - - - device - - - - - Expected Supply Duration: 1825 days - - - - - - - n/a - - - - - - - - - - - - - - - - - -
- - - - - - - - - - - - - - - - - - - - - Mocked code - - - - - - - - - - - - device - - - - - - - - - - Expected Supply Duration: 1825 days - - - - - - - n/a - - - - - - - - - - - - - - - - - -
- - - - - - - - - - - - - - - - - - - - - Mocked code - - - - - - - - - - - - - - - - gram - - - - - Expected Supply Duration: 28 days - - - - - - - 1 - - - - - - - - - - - - - - - - - -
- - - - - - - - - - - - - - - - - - - - - Mocked code - - - - - - - - - - - - gram - - - - - - - - - - Expected Supply Duration: 28 days - - - - - - - 1 - - - - - - - - - - - - - - - - - -
- - - - - - - - - - - - - - - - - - - - - Mocked code - - - - - - - - - - - - gram - - - - - - - - - - Expected Supply Duration: 28 days - - - - - - - 1 - - - - - - - - - - - - - - - - - -
- - - - - - - - - - - - - - - - - - - - - Mocked code - - - - - - - - - - - - gram - - - - - - - - - - Expected Supply Duration: 28 days - - - - - - - 1 - - - - - - - - - - - - - - - - - -
- - - - - - - - - - - - - - - - - - - - - Mocked code - - - - - - - - - - - - gram - - - - - - - - - - Expected Supply Duration: 28 days - - - - - - - 1 - - - - - - - - - - - - - - - - - -
- - - - - - - - - - - - - - - - - - - - - Mocked code - - - - - - - - - - - - gram - - - - - - - - - - Expected Supply Duration: 28 days - - - - - - - 1 - - - - - - - - - - - - - - - - - -
- - - - - - - - - - - - - - - - - - - - - Mocked code - - - - - - - - - - - - gram - - - - - - - - - - Expected Supply Duration: 28 days - - - - - - - 1 - - - - - - - - - - - - - - - - - -
- - - - - - - - - - - - - - - - - - - - - Mocked code - - - - - - - - - - - - gram - - - - - - - - - - Expected Supply Duration: 28 days - - - - - - - 1 - - - - - - - - - - - - - - - - - -
- - - - - - - - - - - - - - - - - - - - - Mocked code - - - - - - - - - - - - gram - - - - - - - - - - Expected Supply Duration: 28 days - - - - - - - 1 - - - - - - - - - - - - - - - - - -
- - - - - - - - - - - - - - - - - - - - - Mocked code - - - - - - - - - - - - gram - - - - - - - - - - Expected Supply Duration: 28 days - - - - - - - 1 - - - - - - - - - - - - - - - - - -
- - - - - - - - - - - - - - - - - - - - - Mocked code - - - - - - - - - - - - gram - - - - - - - - - - Expected Supply Duration: 28 days - - - - - - - 1 - - - - - - - - - - - - - - - - - -
- - - - - - - - - - - - - - - - - - - - - Mocked code - - - - - - - - - - - - gram - - - - - - - - - - Expected Supply Duration: 28 days - - - - - - - 1 - - - - - - - - - - - - - - - - - -
- - - - - - - - - - - - - - - - - - - - - Mocked code - - - - - - - - - - - - gram - - - - - - - - - - Expected Supply Duration: 28 days - - - - - - - 1 - - - - - - - - - - - - - - - - - -
- - - - - - - - - - - - - - - - - - - - - Mocked code - - - - - - - - - - - - gram - - - - - - - - - - Expected Supply Duration: 28 days - - - - - - - 1 - - - - - - - - - - - - - - - - - -
- - - - - - - - - - - - - - - - - - - - - Mocked code - - - - - - - - - - - - gram - - - - - - - - - - Expected Supply Duration: 28 days - - - - - - - 1 - - - - - - - - - - - - - - - - - -
- - - - - - - - - - - - - - - - - - - - - Mocked code - - - - - - - - - - - - gram - - - - - - - - - - Expected Supply Duration: 28 days - - - - - - - 1 - - - - - - - - - - - - - - - - - -
- - - - - - - - - - - - - - - - - - - - - Mocked code - - - - - - - - - - - - - - - - device - - - - - Expected Supply Duration: 28 days - - - - - - - n/a - - - - - - - - - - - - - - - - - -
- - - - - - - - - - - - - - - - - - - - - Mocked code - - - - - - - - - - - - device - - - - - - - - - - Expected Supply Duration: 28 days - - - - - - - n/a - - - - - - - - - - - - - - - - - -
- - - - - - - - - - - - - - - - - - - - - Mocked code - - - - - - - - - - - - - - - - tablet - - - - - Expected Supply Duration: 1 days - - - - - - - One To Be Taken Each Day - - - - - - - - - - - - - - - - - -
- - - - - - - - - - - - - - - - - - - - - Mocked code - - - - - - - - - - - - tablet - - - - - - - - - - Expected Supply Duration: 1 days - - - - - - - One To Be Taken Each Day - - - - - - - - - - - - - - - - - -
- - - - - - - - - - - - - - - - - - - - - Mocked code - - - - - - - - - - - - - - - - device - - - - - Expected Supply Duration: 28 days - - - - - - - n/a - - - - - - - - - - - - - - - - - -
- - - - - - - - - - - - - - - - - - - - - Mocked code - - - - - - - - - - - - - - - - tablet - - - - - Expected Supply Duration: 1 days - - - - - - - One To Be Taken Each Day - - - - - - - - - - - - - - - - - -
- - - - - - - - - - - - - - - - - - - - - Mocked code - - - - - - - - - - - - - - - - tablet - - - - - Expected Supply Duration: 28 days - - - - - - - One Tablet Daily For 21 Days; Subsequent Courses Repeated After 7-Day Tablet Free Interval - - - - - - - - - - - - - - - - - -
- - - - - - - - - - - - - - - - - - - - - Mocked code - - - - - - - - - - - - tablet - - - - - - - - - - Expected Supply Duration: 28 days - - - - - - - One Tablet Daily For 21 Days; Subsequent Courses Repeated After 7-Day Tablet Free Interval - - - - - - - - - - - - - - - - - -
- - - - - - - - - - - - - - - - - - - - - Mocked code - - - - - - - - - - - - tablet - - - - - - - - - - Expected Supply Duration: 28 days - - - - - - - One Tablet Daily For 21 Days; Subsequent Courses Repeated After 7-Day Tablet Free Interval - - - - - - - - - - - - - - - - - -
- - - - - - - - - - - - - - - - - - - - - Mocked code - - - - - - - - - - - - tablet - - - - - - - - - - Expected Supply Duration: 28 days - - - - - - - One Tablet Daily For 21 Days; Subsequent Courses Repeated After 7-Day Tablet Free Interval - - - - - - - - - - - - - - - - - -
- - - - - - - - - - - - - - - - - - - - - Mocked code - - - - - - - - - - - - tablet - - - - - - - - - - Expected Supply Duration: 28 days - - - - - - - One Tablet Daily For 21 Days; Subsequent Courses Repeated After 7-Day Tablet Free Interval - - - - - - - - - - - - - - - - - -
- - - - - - - - - - - - - - - - - - - - - Mocked code - - - - - - - - - - - - tablet - - - - - - - - - - Expected Supply Duration: 28 days - - - - - - - One Tablet Daily For 21 Days; Subsequent Courses Repeated After 7-Day Tablet Free Interval - - - - - - - - - - - - - - - - - -
- - - - - - - - - - - - - - - - - - - - - Mocked code - - - - - - - - - - - - tablet - - - - - - - - - - Expected Supply Duration: 28 days - - - - - - - One Tablet Daily For 21 Days; Subsequent Courses Repeated After 7-Day Tablet Free Interval - - - - - - - - - - - - - - - - - -
- - - - - - - - - - - - - - - - - - - - - Mocked code - - - - - - - - - - - - tablet - - - - - - - - - - Expected Supply Duration: 28 days - - - - - - - One Tablet Daily For 21 Days; Subsequent Courses Repeated After 7-Day Tablet Free Interval - - - - - - - - - - - - - - - - - -
- - - - - - - - - - - - - - - - - - - - - Mocked code - - - - - - - - - - - - tablet - - - - - - - - - - Expected Supply Duration: 28 days - - - - - - - One Tablet Daily For 21 Days; Subsequent Courses Repeated After 7-Day Tablet Free Interval - - - - - - - - - - - - - - - - - -
- - - - - - - - - - - - - - - - - - - - - Mocked code - - - - - - - - - - - - tablet - - - - - - - - - - Expected Supply Duration: 28 days - - - - - - - One Tablet Daily For 21 Days; Subsequent Courses Repeated After 7-Day Tablet Free Interval - - - - - - - - - - - - - - - - - -
- - - - - - - - - - - - - - - - - - - - - Mocked code - - - - - - - - - - - - tablet - - - - - - - - - - Expected Supply Duration: 28 days - - - - - - - One Tablet Daily For 21 Days; Subsequent Courses Repeated After 7-Day Tablet Free Interval - - - - - - - - - - - - - - - - - -
- - - - - - - - - - - - - - - - - - - - - Mocked code - - - - - - - - - - - - tablet - - - - - - - - - - Expected Supply Duration: 28 days - - - - - - - One Tablet Daily For 21 Days; Subsequent Courses Repeated After 7-Day Tablet Free Interval - - - - - - - - - - - - - - - - - -
- - - - - - - - - - - - - - - - - - - - - Mocked code - - - - - - - - - - - - - - - - gram - - - - - Expected Supply Duration: 28 days - - - - - - - 1 - - - - - - - - - - - - - - - - - -
- - - - - - - - - - - - - - - - - - - - - Mocked code - - - - - - - - - - - - gram - - - - - - - - - - Expected Supply Duration: 28 days - - - - - - - 1 - - - - - - - - - - - - - - - - - -
- - - - - - - - - - - - - - - - - - - - - Mocked code - - - - - - - - - - - - gram - - - - - - - - - - Expected Supply Duration: 28 days - - - - - - - 1 - - - - - - - - - - - - - - - - - -
- - - - - - - - - - - - - - - - - - - - - Mocked code - - - - - - - - - - - - gram - - - - - - - - - - Expected Supply Duration: 28 days - - - - - - - 1 - - - - - - - - - - - - - - - - - -
- - - - - - - - - - - - - - - - - - - - - Mocked code - - - - - - - - - - - - gram - - - - - - - - - - Expected Supply Duration: 28 days - - - - - - - 1 - - - - - - - - - - - - - - - - - -
- - - - - - - - - - - - - - - - - - - - - Mocked code - - - - - - - - - - - - gram - - - - - - - - - - Expected Supply Duration: 28 days - - - - - - - 1 - - - - - - - - - - - - - - - - - -
- - - - - - - - - - - - - - - - - - - - - Mocked code - - - - - - - - - - - - - - - - device - - - - - Expected Supply Duration: 1825 days - - - - - - - n/a - - - - - - - - - - - - - - - - - -
- - - - - - - - - - - - - - - - - - - - - Mocked code - - - - - - - - - - - - - - - - device - - - - - Expected Supply Duration: 1825 days - - - - - - - n/a - - - - - - - - - - - - - - - - - -
- - - - - - - - - - - - - - - - - - - - - Mocked code - - - - - - - - - - - - device - - - - - - - - - - Expected Supply Duration: 1825 days - - - - - - - n/a - - - - - - - - - - - - - - - - - -
- - - - - - - - - - - - - - - - - - - - - Mocked code - - - - - - - - - - - - - - - - gram - - - - - Expected Supply Duration: 28 days - - - - - - - 1 - - - - - - - - - - - - - - - - - -
- - - - - - - - - - - - - - - - - - - - - Mocked code - - - - - - - - - - - - gram - - - - - - - - - - Expected Supply Duration: 28 days - - - - - - - 1 - - - - - - - - - - - - - - - - - -
- - - - - - - - - - - - - - - - - - - - - Mocked code - - - - - - - - - - - - - - - - tablet - - - - - Expected Supply Duration: 28 days - - - - - - - One Tablet Daily For 21 Days; Subsequent Courses Repeated After 7-Day Tablet Free Interval - - - - - - - - - - - - - - - - - -
- - - - - - - - - - - - - - - - - - - - - Mocked code - - - - - - - - - - - - tablet - - - - - - - - - - Expected Supply Duration: 28 days - - - - - - - One Tablet Daily For 21 Days; Subsequent Courses Repeated After 7-Day Tablet Free Interval - - - - - - - - - - - - - - - - - -
- - - - - - - - - - - - - - Active Problem, major - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- - - - - - - - - - - - - - - -
- - - - - - Mocked code - - -
- - - - - - Status: Active This is text for a warfarin allergy Significance : Major - Episodicity : First - This is text for a warfarin allergy - - - - - - - - - - - - - - - - - - - - - - - - -
- - - - - - - - - - - - - - - -
- - - - - - Mocked code - - -
- - - - - - Status: Active This is a peanut allergy, (Evolved into H/O: aspirin allergy 13-Jan-2010) Significance : Major - Episodicity : First - This is a peanut allergy, (Evolved into H/O: aspirin allergy 13-Jan-2010) - - - - - - - - - - - - - - - - - - - - - - - - -
- - - - - - - - - - - - - - - -
- - - - - - Mocked code - - -
- - - - - - Status: Active Drug Allergy - Apsrin Significance : Minor - Episodicity : First - Drug Allergy - Apsrin - - - - - - - - - - - - - - - - - - - - - - - - -
- - - - - - - - - - - - - - - -
- - - - - - Mocked code - - -
- - - - - - Status: Active This is a peanut allergy, (Replaced Allergic gastroenteritis) - - - - - - - - - - - - - - - - - - - - - - - - -
- - - - - - - - - - - - - Mocked code - - -
- - - - - - - - - - - - - - - - - -
- - - - - - - - - - - - - - Active Problem, major - - - - - - - + + + + + + + + + + + + - - - - - - - - - - - - - - + + + + + + + + +
+ + + + + + + + + + + + + + + +
+ + + + + + Mocked code + + +
+ + + + + + Status: Active This is text for a warfarin allergy Significance : Major - Episodicity : First - This is text for a warfarin allergy + + + + + + + + + + + + + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + +
+ + + + + + Mocked code + + +
+ + + + + + Status: Active This is a peanut allergy, (Evolved into H/O: aspirin allergy 13-Jan-2010) Significance : Major - Episodicity : First - This is a peanut allergy, (Evolved into H/O: aspirin allergy 13-Jan-2010) + + + + + + + + + + + + + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + +
+ + + + + + Mocked code + + +
+ + + + + + Status: Active Drug Allergy - Apsrin Significance : Minor - Episodicity : First - Drug Allergy - Apsrin + + + + + + + + + + + + + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + +
+ + + + + + Mocked code + + +
+ + + + + + Status: Active This is a peanut allergy, (Replaced Allergic gastroenteritis) + + + + + + + + + + + + + + + + + + + + + + + + +
+ + + + + + + + + + + + + Mocked code + + +
+ + + + + + + + + + + + + + + + + +
+ + + + + + + + + + + + + + Active Problem, major + + + + + + + - - - - - - - - -
- - - - - - - - - - - - - - Active Problem, major - - - - - - - + + + + + + + + + + + + + + - - - - - - - - - - - - - - + + + + + + + + +
+ + + + + + + + + + + + + + Active Problem, major + + + + + + + - - - - - - - - -
- - - - - - - - - - - - - - Active Problem, major - - - - - - - + + + + + + + + + + + + + + - - - - - - - - - - - - - - - - - - - - - - - - - - + + + + + + + + +
+ + + + + + + + + + + + + + Active Problem, major + + + + + + + - - - - - - Problem Info: Problem Notes: This is text for a warfarin allergy Transformed AllergyIntolerance problem header Originally coded: H/O: warfarin allergy - - - - - - - - - - - - -
- - - - - - - - - - - - - - Inactive Problem, major - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - Problem Info: Related Problem: Child of Aspirin allergy Problem Notes: This is a peanut allergy, (Evolved into H/O: aspirin allergy 13-Jan-2010) Transformed AllergyIntolerance problem header Originally coded: Peanut allergy - - - - - - - - - - - - -
- - - - - - - - - - - - - - Active Problem, minor - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - Problem Info: Related Problem: Parent of Allergy to peanuts Problem Notes: Drug Allergy - Apsrin Transformed AllergyIntolerance problem header Originally coded: H/O: aspirin allergy - - - - - - - - - - - - -
- - - - - - - - - - - - - - Active Problem, major - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- - - - - - - - - - - - - - Active Problem, major - - - - - - - + + + + + + + + + + + + + + + + + + + + + + + + + + - - - - - - - - - - - - - - + + + + + + Problem Info: Problem Notes: This is text for a warfarin allergy Transformed AllergyIntolerance problem header Originally coded: H/O: warfarin allergy + + + + + + + + + + + + +
+ + + + + + + + + + + + + + Inactive Problem, major + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + Problem Info: Related Problem: Child of Aspirin allergy Problem Notes: This is a peanut allergy, (Evolved into H/O: aspirin allergy 13-Jan-2010) Transformed AllergyIntolerance problem header Originally coded: Peanut allergy + + + + + + + + + + + + +
+ + + + + + + + + + + + + + Active Problem, minor + + + + + + + - - - - - - - - -
- - - - - - - - - - - - - Mocked code - - -
- - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + Problem Info: Related Problem: Parent of Allergy to peanuts Problem Notes: Drug Allergy - Apsrin Transformed AllergyIntolerance problem header Originally coded: H/O: aspirin allergy + + + + + + + + + + + + +
+ + + + + + + + + + + + + + Active Problem, major + + + + + + + - - - - Engraver (entry added 13/1/2010, but marked as 01/1/1988 as date of entry) - - - - - - - - - - - - - - - - - - -
- - - - - - - - - - - - - Mocked code - - -
- - + + + + + + + + + + + + + + + + + + + + + + +
+ + + + + + + + + + + + + + Active Problem, major + + + + + + + - - - - Family member : Uncle - - + + + + + + + + + + + + + + - - - - - - - - - - - - - - - -
- - - - - - - - - - - - - Mocked code - - -
- - - mmHg - - - - - - - - - - - - - - - -
- - - - - - - - - - - - - Mocked code - - -
- - - mmHg - - - - - - - - - - - - - - - -
- - - - - - - - - - - - - Mocked code - - -
- - - - - - - - Significance : Major - Episodicity : First - Synonym "Heart Attack" selected Problem Info: Problem Notes: Synonym "Heart Attack" selected - - - - - - - - - - - - - - - - - - -
- - - - - - - - - - - - - Mocked code - - -
- - - - - - - - Significance : Major - Episodicity : First - Happy Puppet Problem Info: Problem Notes: Happy Puppet - - - - - - - - - - - - - - - - - - -
- - - - - - - - - - - - - Mocked code - - -
- - - - - - - - Significance : Major - Episodicity : First - - - - - - - - - - - - - - - - - - -
- - - - - - - - - - - - - Mocked code - - -
- - - - - - - - Significance : Major - Episodicity : First - - - - - - - - - - - - - - - - - - -
- - - - - - - - - - - - - Mocked code - - -
- - - - - - - - - - - - - - - - - -
- - - - - - - - - - - - - Mocked code - - -
- - - - - - - - Significance : Major - Episodicity : First - This is a standalone note with extended chars ѧ¬ Problem Info: Problem Notes: This is a standalone note with extended chars ѧ¬ - - - - - - - - - - - - - - - - - - -
- - - - - - - - - - - - - Mocked code - - -
- - - - - - - - This is descriptive text `¬¦!"£$%^&*()-_+={}[]~#@':;<,|\>./? - - - - - - - - - - - - - - - - - - -
- - - - - - - - - - - - - Mocked code - - -
- - - - - - Mocked code - - -
- - - mmHg - - - - - - Mocked code - - -
- - - mmHg - - - - - - This is the standalone BP Interpretation(s): Abnormal - - - - - - - - - - - - - - - - - - - -
- - - - - - - - - - - - - Mocked code - - -
- - - - - - - - - - - + + + + + + + + +
+ + + + + + + + + + + + + Mocked code + + +
+ + + + + + Engraver (entry added 13/1/2010, but marked as 01/1/1988 as date of entry) + + + + + + + + + + + + + + + + + +
+ + + + + + + + + + + + + Mocked code + + +
+ + + + + + Family member : Uncle + + + + + + + + + + + + + + + + + +
+ + + + + + + + + + + + + Mocked code + + +
+ + + + + mmHg + + + + + + + + + + + + + + + + + +
+ + + + + + + + + + + + + Mocked code + + +
+ + + + + mmHg + + + + + + + + + + + + + + + + + +
+ + + + + + + + + + + + + Mocked code + + +
+ + + + + + Significance : Major - Episodicity : First - Synonym "Heart Attack" selected Problem Info: Problem Notes: Synonym "Heart Attack" selected + + + + + + + + + + + + + + + + + +
+ + + + + + + + + + + + + Mocked code + + +
+ + + + + + Significance : Major - Episodicity : First - Happy Puppet Problem Info: Problem Notes: Happy Puppet + + + + + + + + + + + + + + + + + +
+ + + + + + + + + + + + + Mocked code + + +
+ + + + + + Significance : Major - Episodicity : First + + + + + + + + + + + + + + + + + +
+ + + + + + + + + + + + + Mocked code + + +
+ + + + + + Significance : Major - Episodicity : First + + + + + + + + + + + + + + + + + +
+ + + + + + + + + + + + + Mocked code + + +
+ + + + + + + + + + + + + + + + + +
+ + + + + + + + + + + + + Mocked code + + +
+ + + + + + Significance : Major - Episodicity : First - This is a standalone note with extended chars ѧ¬ Problem Info: Problem Notes: This is a standalone note with extended chars ѧ¬ + + + + + + + + + + + + + + + + + +
+ + + + + + + + + + + + + Mocked code + + +
+ + + + + + This is descriptive text `¬¦!"£$%^&*()-_+={}[]~#@':;<,|\>./? + + + + + + + + + + + + + + + + + +
+ + + + + + + + + + + + + Mocked code + + +
+ + + + + + Mocked code + + +
+ + + + + mmHg + + + + + + + + Mocked code + + +
+ + + + + mmHg + + + + + + + + This is the standalone BP Interpretation(s): Abnormal + + + + + + + + + + + + + + + + + + + +
+ + + + + + + + + + + + + Mocked code + + +
+ + + + + + + + + + + diff --git a/service/src/test/resources/ehr/request/fhir/output/expected_xml_without_duplicated_medication_resources.xml b/service/src/test/resources/ehr/request/fhir/output/expected_xml_without_duplicated_medication_resources.xml new file mode 100644 index 000000000..d60e37d26 --- /dev/null +++ b/service/src/test/resources/ehr/request/fhir/output/expected_xml_without_duplicated_medication_resources.xml @@ -0,0 +1,446 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + Unknown + + + + Spring Hall Group Practice + + + + + + + + + Unknown + + + + Adrian + Tye + + + + Spring Hall Group Practice + + + 101 Yvonne Falls + West Carey + MK3 7SA + + + + + + + + + Unknown + + + + Peter + Aldore + + + + Spring Hall Group Practice + + + 101 Yvonne Falls + West Carey + MK3 7SA + + + + + + + + + + + Face to face + + + +
+ + + + + + + + + + + + + + Headache + + + +
+ + + + + + + History + + + +
+ + + + + + + + +
+ + + + + + + Allergy to pollen + + + +
+ + + + + + Status: Active Reaction 1 Severity: MILD Manifestation(s): NoInformation + + + + + + + + + + + + + + + + + + + + + + Examination + + + +
+ + + + + + + Weight + + + +
+ + + + + + + + + + + + + + + + Plan + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + tablet + + + + + + + + + + + + 1 + + + + + + + + + + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + tablet + + + + + + + + + + + + + + + + + 1 + + + + + + + + + + + + + + + + + +
+ + + + + + + + + + + + + + Implied consent for core Summary Care Record dataset upload + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file