diff --git a/.github/workflows/pull_request.yml b/.github/workflows/pull_request.yml index 420f0b34..6d4b46a1 100644 --- a/.github/workflows/pull_request.yml +++ b/.github/workflows/pull_request.yml @@ -59,7 +59,7 @@ jobs: needs: get_issue_number uses: ./.github/workflows/sam_package_code.yml - release_code: + release_dev: needs: [get_issue_number, package_code, get_commit_id] uses: ./.github/workflows/sam_release_code.yml with: @@ -74,3 +74,18 @@ jobs: ENABLE_ALERTS: false secrets: CLOUD_FORMATION_DEPLOY_ROLE: ${{ secrets.DEV_CLOUD_FORMATION_DEPLOY_ROLE }} + release_ref: + needs: [release_dev, get_issue_number, package_code, get_commit_id] + uses: ./.github/workflows/sam_release_code.yml + with: + ARTIFACT_BUCKET_PREFIX: fhir-validator-PR-${{needs.get_issue_number.outputs.issue_number}} + STACK_NAME: fhir-validator-pr-${{needs.get_issue_number.outputs.issue_number}} + TARGET_ENVIRONMENT: ref + BUILD_ARTIFACT: packaged_code + VERSION_NUMBER: fhir-validator-PR-${{ needs.get_issue_number.outputs.issue_number }} + COMMIT_ID: ${{needs.get_commit_id.outputs.commit_id}} + LOG_LEVEL: INFO + LOG_RETENTION_DAYS: 30 + ENABLE_ALERTS: true + secrets: + CLOUD_FORMATION_DEPLOY_ROLE: ${{ secrets.REF_CLOUD_FORMATION_DEPLOY_ROLE }} diff --git a/Makefile b/Makefile index 4d087096..fc6a4295 100644 --- a/Makefile +++ b/Makefile @@ -34,7 +34,26 @@ lint-githubaction-scripts: # test targets test: download-dependencies - mvn test + mvn clean test -Pcurrent + mvn clean test -Plegacy + +# build targets for SAM +# the target must be build- +# note - we skip tests here as they will have already been run as part of the pipeline +build-FHIRValidatorUKCore: download-dependencies + mvn clean package -Pcurrent -Dmaven.test.skip=true + mkdir -p $(ARTIFACTS_DIR)/lib + cp ./target/FHIRValidator-current.jar $(ARTIFACTS_DIR)/lib/ + +build-FHIRValidatorNHSDigitalLegacy: download-dependencies + mvn clean package -Plegacy -Dmaven.test.skip=true + mkdir -p $(ARTIFACTS_DIR)/lib + cp ./target/FHIRValidator-legacy.jar $(ARTIFACTS_DIR)/lib/ + +build-FHIRValidatorNHSDigitalCurrent: download-dependencies + mvn clean package -Pcurrent -Dmaven.test.skip=true + mkdir -p $(ARTIFACTS_DIR)/lib + cp ./target/FHIRValidator-current.jar $(ARTIFACTS_DIR)/lib/ check-licenses: check-licenses-python check-licenses-java @@ -67,7 +86,7 @@ deep-clean: clean # build targets compile: download-dependencies - mvn package + mvn package -Pcurrent download-dependencies: poetry run scripts/download_dependencies.py diff --git a/SAMtemplates/lambda_resources.yaml b/SAMtemplates/lambda_resources.yaml index c3802884..8f512b54 100644 --- a/SAMtemplates/lambda_resources.yaml +++ b/SAMtemplates/lambda_resources.yaml @@ -20,11 +20,6 @@ Parameters: Type: String Description: Splunk delivery stream Default: none - EnableSplunk: - Type: String - Description: Whether to use splunk - Default: false - AllowedValues: [true, false] LambdaName: Type: String Description: Name of lambda we are creating for @@ -60,9 +55,20 @@ Parameters: 3288, 3653, ] + ExecutePolicyExportName: + Type: String + IncludeAdditionalPolicies: + Type: String + Default: false + AdditionalPolicies: + Type: CommaDelimitedList + Description: A list of additional policies to attach the lambdas role (comma delimited). + Default: none Conditions: - ShouldUseSplunk: !Equals [true, !Ref EnableSplunk] + ShouldIncludeAdditionalPolicies: !Equals + - true + - !Ref IncludeAdditionalPolicies Resources: ExecuteLambdaManagedPolicy: @@ -87,15 +93,23 @@ Resources: Principal: Service: "lambda.amazonaws.com" Action: "sts:AssumeRole" - ManagedPolicyArns: - - !ImportValue lambda-resources:LambdaInsightsLogGroupPolicy - - !ImportValue account-resources:LambdaEncryptCloudwatchKMSPolicy + ManagedPolicyArns: !Split + - "," + - !Join + - "," + - - !Ref LambdaManagedPolicy + - !ImportValue lambda-resources:LambdaInsightsLogGroupPolicy + - !ImportValue account-resources:CloudwatchEncryptionKMSPolicyArn + - !If + - ShouldIncludeAdditionalPolicies + - !Join + - "," + - !Ref AdditionalPolicies + - !Ref AWS::NoValue LambdaManagedPolicy: Type: AWS::IAM::ManagedPolicy Properties: - Roles: - - !Ref LambdaRole PolicyDocument: Version: 2012-10-17 Statement: @@ -104,8 +118,8 @@ Resources: - logs:CreateLogStream - logs:PutLogEvents Resource: - - !Sub "arn:aws:logs:${AWS::Region}:${AWS::AccountId}:log-group:${LambdaLogGroup}" - - !Sub "arn:aws:logs:${AWS::Region}:${AWS::AccountId}:log-group:${LambdaLogGroup}:log-stream:*" + - !GetAtt LambdaLogGroup.Arn + - !Sub ${LambdaLogGroup.Arn}:log-stream:* LambdaLogGroup: Type: "AWS::Logs::LogGroup" @@ -119,7 +133,6 @@ Resources: KmsKeyId: !Ref CloudWatchKMSKey LambdaSplunkSubscriptionFilter: - Condition: ShouldUseSplunk Type: AWS::Logs::SubscriptionFilter Properties: RoleArn: !Ref SplunkSubscriptionFilterRole @@ -132,7 +145,12 @@ Outputs: Description: Lambda execution policy arn Value: !GetAtt ExecuteLambdaManagedPolicy.PolicyArn Export: - Name: !Sub ${StackName}:FHIRValidatorUKCoreExecuteLambdaPolicyArn + Name: !Sub ${StackName}:${ExecutePolicyExportName} + ExecuteLambdaPolicyArnNewFormat: + Description: Lambda execution policy arn + Value: !GetAtt ExecuteLambdaManagedPolicy.PolicyArn + Export: + Name: !Sub ${StackName}:functions:${LambdaName}:ExecutePolicy:Arn LambdaRoleArn: Description: "LambdaRole ARN" Value: !GetAtt LambdaRole.Arn diff --git a/SAMtemplates/main_template.yaml b/SAMtemplates/main_template.yaml index 038f85b4..fcc9144b 100644 --- a/SAMtemplates/main_template.yaml +++ b/SAMtemplates/main_template.yaml @@ -54,10 +54,10 @@ Resources: CloudWatchKMSKey: !ImportValue account-resources:CloudwatchLogsKmsKeyArn SplunkSubscriptionFilterRole: !ImportValue lambda-resources:SplunkSubscriptionFilterRole SplunkDeliveryStream: !ImportValue lambda-resources:SplunkDeliveryStream - EnableSplunk: "true" LambdaName: !Sub "${AWS::StackName}-FHIRValidatorUKCore" LambdaArn: !Sub arn:aws:lambda:${AWS::Region}:${AWS::AccountId}:function:${AWS::StackName}-FHIRValidatorUKCore LogRetentionDays: !Ref LogRetentionDays + ExecutePolicyExportName: FHIRValidatorUKCoreExecuteLambdaPolicyArn FHIRValidatorUKCore: Type: AWS::Serverless::Function @@ -75,19 +75,153 @@ Resources: - x86_64 Runtime: java21 Layers: - - !Sub "arn:aws:lambda:${AWS::Region}:580247275435:layer:LambdaInsightsExtension:38" + - !Sub "arn:aws:lambda:${AWS::Region}:580247275435:layer:LambdaInsightsExtension:56" Environment: Variables: AWS_LAMBDA_LOG_LEVEL: !Ref LogLevel POWERTOOLS_LOG_LEVEL: !Ref LogLevel PROFILE_MANIFEST_FILE: uk_core.manifest.json Metadata: + BuildMethod: makefile guard: SuppressedRules: - LAMBDA_DLQ_CHECK - LAMBDA_INSIDE_VPC - LAMBDA_CONCURRENCY_CHECK + SecurityGroupWithoutEgress: + Type: AWS::EC2::SecurityGroup + Properties: + GroupDescription: Limits security group egress traffic + # fix this to allow egress to service endpoints? + SecurityGroupEgress: + - CidrIp: 0.0.0.0/0 + IpProtocol: "-1" + SecurityGroupIngress: + - CidrIp: 0.0.0.0/0 + IpProtocol: "-1" + VpcId: !ImportValue vpc-resources:VpcId + + LambdaVPCPolicy: + Type: AWS::IAM::ManagedPolicy + Properties: + PolicyDocument: + Version: 2012-10-17 + Statement: + - Effect: Allow + Action: + - ec2:CreateNetworkInterface + - ec2:DescribeNetworkInterfaces + - ec2:DescribeSubnets + - ec2:DeleteNetworkInterface + - ec2:AssignPrivateIpAddresses + - ec2:UnassignPrivateIpAddresses + Resource: "*" + + FHIRValidatorNHSDigitalLegacyResources: + Type: AWS::Serverless::Application + Properties: + Location: lambda_resources.yaml + Parameters: + StackName: !Ref AWS::StackName + CloudWatchKMSKey: !ImportValue account-resources:CloudwatchLogsKmsKeyArn + SplunkSubscriptionFilterRole: !ImportValue lambda-resources:SplunkSubscriptionFilterRole + SplunkDeliveryStream: !ImportValue lambda-resources:SplunkDeliveryStream + LambdaName: !Sub "${AWS::StackName}-FHIRValidatorNHSDigitalLegacy" + LambdaArn: !Sub arn:aws:lambda:${AWS::Region}:${AWS::AccountId}:function:${AWS::StackName}-FHIRValidatorNHSDigitalLegacy + LogRetentionDays: !Ref LogRetentionDays + ExecutePolicyExportName: FHIRValidatorNHSDigitalLegacyExecuteLambdaPolicyArn + IncludeAdditionalPolicies: true + AdditionalPolicies: !Ref LambdaVPCPolicy + + FHIRValidatorNHSDigitalLegacy: + Type: AWS::Serverless::Function + Properties: + FunctionName: !Sub "${AWS::StackName}-FHIRValidatorNHSDigitalLegacy" + CodeUri: ../ + Handler: software.nhs.fhirvalidator.handler.HandlerStream::handleRequest + Role: !GetAtt FHIRValidatorNHSDigitalLegacyResources.Outputs.LambdaRoleArn + SnapStart: + ApplyOn: PublishedVersions + AutoPublishAlias: snap + Timeout: 600 + MemorySize: 4096 + Architectures: + - x86_64 + Runtime: java21 + Layers: + - !Sub "arn:aws:lambda:${AWS::Region}:580247275435:layer:LambdaInsightsExtension:56" + VpcConfig: + SecurityGroupIds: + - !Ref SecurityGroupWithoutEgress + SubnetIds: + - !ImportValue vpc-resources:PrivateSubnetA + - !ImportValue vpc-resources:PrivateSubnetB + - !ImportValue vpc-resources:PrivateSubnetC + Environment: + Variables: + AWS_LAMBDA_LOG_LEVEL: !Ref LogLevel + POWERTOOLS_LOG_LEVEL: !Ref LogLevel + PROFILE_MANIFEST_FILE: nhs_digital.manifest.json + Metadata: + BuildMethod: makefile + guard: + SuppressedRules: + - LAMBDA_DLQ_CHECK + - LAMBDA_CONCURRENCY_CHECK + + FHIRValidatorNHSDigitalCurrentResources: + Type: AWS::Serverless::Application + Properties: + Location: lambda_resources.yaml + Parameters: + StackName: !Ref AWS::StackName + CloudWatchKMSKey: !ImportValue account-resources:CloudwatchLogsKmsKeyArn + SplunkSubscriptionFilterRole: !ImportValue lambda-resources:SplunkSubscriptionFilterRole + SplunkDeliveryStream: !ImportValue lambda-resources:SplunkDeliveryStream + LambdaName: !Sub "${AWS::StackName}-FHIRValidatorNHSDigitalCurrent" + LambdaArn: !Sub arn:aws:lambda:${AWS::Region}:${AWS::AccountId}:function:${AWS::StackName}-FHIRValidatorNHSDigitalCurrent + LogRetentionDays: !Ref LogRetentionDays + ExecutePolicyExportName: FHIRValidatorNHSDigitalCurrentExecuteLambdaPolicyArn + IncludeAdditionalPolicies: true + AdditionalPolicies: !Ref LambdaVPCPolicy + + FHIRValidatorNHSDigitalCurrent: + Type: AWS::Serverless::Function + Properties: + FunctionName: !Sub "${AWS::StackName}-FHIRValidatorNHSDigitalCurrent" + CodeUri: ../ + Handler: software.nhs.fhirvalidator.handler.HandlerStream::handleRequest + Role: !GetAtt FHIRValidatorNHSDigitalCurrentResources.Outputs.LambdaRoleArn + SnapStart: + ApplyOn: PublishedVersions + AutoPublishAlias: snap + Timeout: 600 + MemorySize: 4096 + Architectures: + - x86_64 + Runtime: java21 + Layers: + - !Sub "arn:aws:lambda:${AWS::Region}:580247275435:layer:LambdaInsightsExtension:56" + VpcConfig: + SecurityGroupIds: + - !Ref SecurityGroupWithoutEgress + SubnetIds: + - !ImportValue vpc-resources:PrivateSubnetA + - !ImportValue vpc-resources:PrivateSubnetB + - !ImportValue vpc-resources:PrivateSubnetC + Environment: + Variables: + AWS_LAMBDA_LOG_LEVEL: !Ref LogLevel + POWERTOOLS_LOG_LEVEL: !Ref LogLevel + PROFILE_MANIFEST_FILE: nhs_digital.manifest.json + Metadata: + BuildMethod: makefile + guard: + SuppressedRules: + - LAMBDA_DLQ_CHECK + - LAMBDA_CONCURRENCY_CHECK + Alarms: Type: AWS::Serverless::Application Properties: @@ -104,8 +238,59 @@ Outputs: Export: Name: !Join [":", [!Ref "AWS::StackName", "FHIRValidatorUKCoreLambdaName"]] + FHIRValidatorUKCoreLambdaArn: Description: Arn of the FHIR validator UK Core lambda Value: !GetAtt FHIRValidatorUKCore.Arn Export: Name: !Join [":", [!Ref "AWS::StackName", "FHIRValidatorUKCoreLambdaArn"]] + + FHIRValidatorNHSDigitalLegacyLambdaName: + Description: Name of the FHIR validator NHS Digital lambda using legacy hapi fhir + Value: !Ref FHIRValidatorNHSDigitalLegacy + Export: + Name: + !Join [ + ":", + [ + !Ref "AWS::StackName", + "functions:FHIRValidatorNHSDigitalLegacy:Name", + ], + ] + FHIRValidatorNHSDigitalLegacyLambdaArn: + Description: Arn of the FHIR validator NHS Digital lambda using legacy hapi fhir + Value: !GetAtt FHIRValidatorNHSDigitalLegacy.Arn + Export: + Name: + !Join [ + ":", + [ + !Ref "AWS::StackName", + "functions:FHIRValidatorNHSDigitalLegacy:Arn", + ], + ] + + FHIRValidatorNHSDigitalCurrentLambdaName: + Description: Name of the FHIR validator NHS Digital lambda using current hapi fhir + Value: !Ref FHIRValidatorNHSDigitalCurrent + Export: + Name: + !Join [ + ":", + [ + !Ref "AWS::StackName", + "functions:FHIRValidatorNHSDigitalCurrent:Name", + ], + ] + FHIRValidatorNHSDigitalCurrentLambdaArn: + Description: Arn of the FHIR validator NHS Digital lambda using current hapi fhir + Value: !GetAtt FHIRValidatorNHSDigitalCurrent.Arn + Export: + Name: + !Join [ + ":", + [ + !Ref "AWS::StackName", + "functions:FHIRValidatorNHSDigitalCurrent:Arn", + ], + ] diff --git a/licenses/licenses.xml b/licenses/licenses.xml index 5543bd3f..c3cb5e76 100644 --- a/licenses/licenses.xml +++ b/licenses/licenses.xml @@ -138,6 +138,19 @@ http://creativecommons.org/publicdomain/zero/1.0 + + Indiana University Extreme! Lab Software License, vesion 1.1.1 + + Indiana University Extreme! Lab Software License, vesion 1.1.1 + Public Domain + Apache Software License, version 1.1 + + + http://www.extreme.indiana.edu/viewcvs/~checkout~/XPP3/java/LICENSE.txt + http://creativecommons.org/licenses/publicdomain + http://www.apache.org/licenses/LICENSE-1.1 + + diff --git a/pom.xml b/pom.xml index 22d26a29..a60e04e1 100644 --- a/pom.xml +++ b/pom.xml @@ -18,7 +18,8 @@ 21 21 UTF-8 - 7.6.1 + 5.4.2 + 7.6.1 2.24.3 2.19.2 nhsdigital @@ -49,31 +50,7 @@ - - ca.uhn.hapi.fhir - hapi-fhir-validation-resources-r4 - ${fhir.version} - - - ca.uhn.hapi.fhir - hapi-fhir-structures-r4 - ${fhir.version} - - - ca.uhn.hapi.fhir - hapi-fhir-validation - ${fhir.version} - - - ca.uhn.hapi.fhir - hapi-fhir-caching-caffeine - ${fhir.version} - - - ca.uhn.hapi.fhir - hapi-fhir-base - ${fhir.version} - + @@ -160,6 +137,113 @@ + + + legacy + + + + org.codehaus.mojo + build-helper-maven-plugin + 3.6.0 + + + generate-sources + + add-source + + + + src/legacy/java + + + + + + + FHIRValidator-legacy + + + + ca.uhn.hapi.fhir + hapi-fhir-validation-resources-r4 + ${legacy.fhir.version} + + + ca.uhn.hapi.fhir + hapi-fhir-structures-r4 + ${legacy.fhir.version} + + + ca.uhn.hapi.fhir + hapi-fhir-validation + ${legacy.fhir.version} + + + ca.uhn.hapi.fhir + hapi-fhir-base + ${legacy.fhir.version} + + + + + + true + + current + + + + org.codehaus.mojo + build-helper-maven-plugin + 3.6.0 + + + generate-sources + + add-source + + + + src/current/java + + + + + + + FHIRValidator-current + + + + ca.uhn.hapi.fhir + hapi-fhir-validation-resources-r4 + ${current.fhir.version} + + + ca.uhn.hapi.fhir + hapi-fhir-structures-r4 + ${current.fhir.version} + + + ca.uhn.hapi.fhir + hapi-fhir-validation + ${current.fhir.version} + + + ca.uhn.hapi.fhir + hapi-fhir-base + ${current.fhir.version} + + + ca.uhn.hapi.fhir + hapi-fhir-caching-caffeine + ${current.fhir.version} + + + + + @@ -168,6 +252,7 @@ log4j2.xml package/* + *.tgz primerPayload.json nhs_digital.manifest.json uk_core.manifest.json @@ -285,15 +370,20 @@ shade + + + *:* + + META-INF/*.SF + META-INF/*.DSA + META-INF/*.RSA + + + - - META-INF/TE-050AC.SF - META-INF/TE-050AC.RSA - diff --git a/scripts/download_dependencies.py b/scripts/download_dependencies.py index e29784f5..eef3eb30 100755 --- a/scripts/download_dependencies.py +++ b/scripts/download_dependencies.py @@ -12,7 +12,7 @@ def download_dependencies(manifest_file): packageName = entry["packageName"] version = entry["version"] packageData = requests.get(f"https://packages.simplifier.net/{packageName}/{version}").content - with open(f"src/main/resources/package/{packageName}-{version}.tgz", "wb") as packageFile: + with open(f"src/main/resources/{packageName}-{version}.tgz", "wb") as packageFile: packageFile.write(packageData) diff --git a/src/current/java/software/nhs/fhirvalidator/configuration/GetValueSetImpl.java b/src/current/java/software/nhs/fhirvalidator/configuration/GetValueSetImpl.java new file mode 100644 index 00000000..d4f46bb6 --- /dev/null +++ b/src/current/java/software/nhs/fhirvalidator/configuration/GetValueSetImpl.java @@ -0,0 +1,12 @@ +package software.nhs.fhirvalidator.configuration; + +import ca.uhn.fhir.context.FhirContext; +import org.hl7.fhir.instance.model.api.IBaseResource; +import software.nhs.fhirvalidator.configuration.GetValueSetInterface; +import org.hl7.fhir.common.hapi.validation.support.CommonCodeSystemsTerminologyService; + +public class GetValueSetImpl implements GetValueSetInterface { + public String getValueSetUrl(FhirContext fhirContext, IBaseResource theValueSet) { + return CommonCodeSystemsTerminologyService.getValueSetUrl(fhirContext, theValueSet); + } +} diff --git a/src/legacy/java/software/nhs/fhirvalidator/configuration/GetValueSetImpl.java b/src/legacy/java/software/nhs/fhirvalidator/configuration/GetValueSetImpl.java new file mode 100644 index 00000000..974dff94 --- /dev/null +++ b/src/legacy/java/software/nhs/fhirvalidator/configuration/GetValueSetImpl.java @@ -0,0 +1,12 @@ +package software.nhs.fhirvalidator.configuration; + +import ca.uhn.fhir.context.FhirContext; +import org.hl7.fhir.instance.model.api.IBaseResource; +import software.nhs.fhirvalidator.configuration.GetValueSetInterface; +import org.hl7.fhir.common.hapi.validation.support.CommonCodeSystemsTerminologyService; + +public class GetValueSetImpl implements GetValueSetInterface { + public String getValueSetUrl(FhirContext fhirContext, IBaseResource theValueSet) { + return CommonCodeSystemsTerminologyService.getValueSetUrl(theValueSet); + } +} diff --git a/src/main/java/software/nhs/fhirvalidator/configuration/GetValueSetInterface.java b/src/main/java/software/nhs/fhirvalidator/configuration/GetValueSetInterface.java new file mode 100644 index 00000000..35ff2518 --- /dev/null +++ b/src/main/java/software/nhs/fhirvalidator/configuration/GetValueSetInterface.java @@ -0,0 +1,8 @@ +package software.nhs.fhirvalidator.configuration; + +import ca.uhn.fhir.context.FhirContext; +import org.hl7.fhir.instance.model.api.IBaseResource; + +public interface GetValueSetInterface { + String getValueSetUrl(FhirContext fhirContext, IBaseResource theValueSet); +} diff --git a/src/main/java/software/nhs/fhirvalidator/configuration/ValidatorConfiguration.java b/src/main/java/software/nhs/fhirvalidator/configuration/ValidatorConfiguration.java index 3b9e39fb..65fa4451 100644 --- a/src/main/java/software/nhs/fhirvalidator/configuration/ValidatorConfiguration.java +++ b/src/main/java/software/nhs/fhirvalidator/configuration/ValidatorConfiguration.java @@ -4,20 +4,24 @@ import java.io.InputStream; import java.util.ArrayList; import java.util.List; +import java.util.stream.Collectors; import com.google.gson.Gson; import org.hl7.fhir.common.hapi.validation.support.CachingValidationSupport; import org.hl7.fhir.common.hapi.validation.support.CommonCodeSystemsTerminologyService; import org.hl7.fhir.common.hapi.validation.support.InMemoryTerminologyServerValidationSupport; -import org.hl7.fhir.common.hapi.validation.support.NpmPackageValidationSupport; +import org.hl7.fhir.common.hapi.validation.support.PrePopulatedValidationSupport; import org.hl7.fhir.common.hapi.validation.support.SnapshotGeneratingValidationSupport; import org.hl7.fhir.common.hapi.validation.support.ValidationSupportChain; import org.hl7.fhir.common.hapi.validation.validator.FhirInstanceValidator; import org.hl7.fhir.instance.model.api.IBaseResource; import org.hl7.fhir.r4.model.CanonicalType; +import org.hl7.fhir.r4.model.CodeSystem; import org.hl7.fhir.r4.model.ElementDefinition; +import org.hl7.fhir.r4.model.Resource; import org.hl7.fhir.r4.model.StructureDefinition; +import org.hl7.fhir.r4.model.ValueSet; import org.hl7.fhir.utilities.npm.NpmPackage; import ca.uhn.fhir.context.FhirContext; @@ -25,11 +29,13 @@ import ca.uhn.fhir.context.support.DefaultProfileValidationSupport; import ca.uhn.fhir.context.support.IValidationSupport; import ca.uhn.fhir.context.support.ValidationSupportContext; +import ca.uhn.fhir.parser.IParser; import ca.uhn.fhir.rest.server.exceptions.InternalErrorException; import ca.uhn.fhir.util.ClasspathUtil; import ca.uhn.fhir.validation.FhirValidator; import software.nhs.fhirvalidator.models.SimplifierPackage; import software.nhs.fhirvalidator.util.ResourceUtils; +import software.nhs.fhirvalidator.configuration.GetValueSetImpl; import org.apache.logging.log4j.LogManager; import org.apache.logging.log4j.Logger; @@ -48,6 +54,44 @@ public class ValidatorConfiguration { Logger log = LogManager.getLogger(ValidatorConfiguration.class); + private List getResourcesOfType(NpmPackage npmPackage, T resourceType) throws IOException { + IParser jsonParser = fhirContext.newJsonParser(); + + return npmPackage.listResources(resourceType.fhirType()).stream() + .map(t -> { + try { + return npmPackage.loadResource(t); + } catch (IOException e) { + // TODO Auto-generated catch block + e.printStackTrace(); + } + return null; + }) + .map(jsonParser::parseResource) + .filter(resource -> resourceType.getClass().isInstance(resource)) + .map(resource -> (T) resource) + .collect(Collectors.toList()); + } + + private PrePopulatedValidationSupport createPrePopulatedValidationSupport(InputStream inputStream) throws IOException { + NpmPackage npmPackage = NpmPackage.fromPackage(inputStream); + PrePopulatedValidationSupport prePopulatedSupport = new PrePopulatedValidationSupport(fhirContext); + + for (StructureDefinition sd : getResourcesOfType(npmPackage, new StructureDefinition())) { + prePopulatedSupport.addStructureDefinition(sd); + } + + for (CodeSystem cs : getResourcesOfType(npmPackage, new CodeSystem())) { + prePopulatedSupport.addCodeSystem(cs); + } + + for (ValueSet vs : getResourcesOfType(npmPackage, new ValueSet())) { + prePopulatedSupport.addValueSet(vs); + } + + return prePopulatedSupport; + } + public ValidatorConfiguration(String _PROFILE_MANIFEST_FILE) { PROFILE_MANIFEST_FILE = _PROFILE_MANIFEST_FILE; fhirContext = FhirContext.forR4(); @@ -60,13 +104,15 @@ public ValidatorConfiguration(String _PROFILE_MANIFEST_FILE) { new SnapshotGeneratingValidationSupport(fhirContext)); SimplifierPackage[] packages = getPackages(); - NpmPackageValidationSupport npmPackageSupport = new NpmPackageValidationSupport(fhirContext); try { for (SimplifierPackage individualPackage : packages) { - String packagePath = String.format("classpath:package/%s-%s.tgz", individualPackage.packageName, + String packagePath = String.format("%s-%s.tgz", individualPackage.packageName, individualPackage.version); - npmPackageSupport.loadPackageFromClasspath(packagePath); + try (InputStream is = ClasspathUtil.loadResourceAsStream(packagePath)) { + PrePopulatedValidationSupport prePopulatedValidationSupport = createPrePopulatedValidationSupport(is); + supportChain.addValidationSupport(prePopulatedValidationSupport); + } try (InputStream is = ClasspathUtil.loadResourceAsStream(packagePath)) { NpmPackage pkg = NpmPackage.fromPackage(is); npmPackages.add(pkg); @@ -76,7 +122,6 @@ public ValidatorConfiguration(String _PROFILE_MANIFEST_FILE) { log.error(ex.getMessage(), ex); throw new RuntimeException("error loading simplifier packages", ex); } - supportChain.addValidationSupport(npmPackageSupport); generateSnapshots(supportChain); supportChain.fetchCodeSystem("http://snomed.info/sct"); @@ -183,8 +228,8 @@ public IValidationSupport.CodeValidationResult validateCodeInValueSet( String theCode, String theDisplay, IBaseResource theValueSet) { - String valueSetUrl = CommonCodeSystemsTerminologyService.getValueSetUrl(fhirContext, theValueSet); - + GetValueSetInterface adapter = new GetValueSetImpl(); + String valueSetUrl = adapter.getValueSetUrl(fhirContext, theValueSet); if ("https://fhir.nhs.uk/ValueSet/NHSDigital-MedicationRequest-Code".equals(valueSetUrl) || "https://fhir.nhs.uk/ValueSet/NHSDigital-MedicationDispense-Code".equals(valueSetUrl) || "https://fhir.hl7.org.uk/ValueSet/UKCore-MedicationCode".equals(valueSetUrl)) { diff --git a/src/main/java/software/nhs/fhirvalidator/handler/HandlerStream.java b/src/main/java/software/nhs/fhirvalidator/handler/HandlerStream.java index 3fe331c5..6b33c799 100644 --- a/src/main/java/software/nhs/fhirvalidator/handler/HandlerStream.java +++ b/src/main/java/software/nhs/fhirvalidator/handler/HandlerStream.java @@ -6,6 +6,7 @@ import java.io.OutputStream; import java.io.PrintWriter; +import ca.uhn.fhir.util.VersionUtil; import com.amazonaws.services.lambda.runtime.Context; import com.amazonaws.services.lambda.runtime.RequestStreamHandler; import com.google.gson.JsonObject; @@ -22,9 +23,14 @@ public class HandlerStream implements RequestStreamHandler { private final ValidateController validateController; + private final String versionNumber; Logger log = LogManager.getLogger(HandlerStream.class); public HandlerStream() { + VersionUtil versionUtil = new VersionUtil(); + versionNumber = versionUtil.getVersion(); + LoggingUtils.appendKey("hapi.fhir.version", versionNumber); + log.info(String.format("hapi fhir version %s", versionNumber)); log.info("Creating the Validator instance for the first time..."); String manifest_file = System.getenv("PROFILE_MANIFEST_FILE"); if (manifest_file == null) { @@ -46,6 +52,7 @@ public HandlerStream() { public void handleRequest(InputStream inputStream, OutputStream outputStream, Context context) throws IOException { ByteArrayOutputStream result = new ByteArrayOutputStream(); byte[] buffer = new byte[1024]; + LoggingUtils.appendKey("hapi.fhir.version", versionNumber); try { for (int length; (length = inputStream.read(buffer)) != -1;) { result.write(buffer, 0, length); diff --git a/src/main/resources/nhs_digital.manifest.json b/src/main/resources/nhs_digital.manifest.json index a26b3c6a..c39ca89a 100644 --- a/src/main/resources/nhs_digital.manifest.json +++ b/src/main/resources/nhs_digital.manifest.json @@ -1,14 +1,14 @@ [ { "packageName": "fhir.r4.ukcore.stu3.currentbuild", - "version": "0.0.9-pre-release" + "version": "0.0.3-pre-release" }, { "packageName": "uk.nhsdigital.r4.test", - "version": "2.8.17-prerelease" + "version": "2.14.0-prerelease" }, { "packageName": "uk.nhsdigital.medicines.r4.test", - "version": "2.8.16-prerelease" + "version": "2.8.21-prerelease" } ] diff --git a/src/main/resources/package/.gitkeep b/src/main/resources/package/.gitkeep deleted file mode 100644 index e69de29b..00000000 diff --git a/src/main/resources/primerPayload.json b/src/main/resources/primerPayload.json index e3db6e19..648561e3 100644 --- a/src/main/resources/primerPayload.json +++ b/src/main/resources/primerPayload.json @@ -464,4 +464,4 @@ } } ] -} \ No newline at end of file +} diff --git a/src/main/resources/uk_core.manifest.json b/src/main/resources/uk_core.manifest.json index 99ef7657..29e8af08 100644 --- a/src/main/resources/uk_core.manifest.json +++ b/src/main/resources/uk_core.manifest.json @@ -1,6 +1,6 @@ [ { "packageName": "fhir.r4.ukcore.stu3.currentbuild", - "version": "0.0.9-pre-release" + "version": "0.0.3-pre-release" } ] diff --git a/src/test/java/software/nhs/fhirvalidator/HandlerTest.java b/src/test/java/software/nhs/fhirvalidator/HandlerTest.java index c2dc6fd6..4a2b8af2 100644 --- a/src/test/java/software/nhs/fhirvalidator/HandlerTest.java +++ b/src/test/java/software/nhs/fhirvalidator/HandlerTest.java @@ -12,6 +12,7 @@ import nl.altindag.log.LogCaptor; import software.nhs.fhirvalidator.handler.HandlerStream; import software.nhs.fhirvalidator.util.ResourceUtils; +import ca.uhn.fhir.util.VersionUtil; import com.amazonaws.services.lambda.runtime.Context; import com.google.gson.JsonObject; @@ -33,6 +34,8 @@ void logStartupMessage() { @Test void handlerCanProcessEvent() throws IOException { + VersionUtil versionUtil = new VersionUtil(); + String versionNumber = versionUtil.getVersion(); String stepFunctionEvent = ResourceUtils.getResourceContent("examples/stepFunctionEvent.json"); HandlerStream handlerStream = new HandlerStream(); @@ -43,7 +46,7 @@ void handlerCanProcessEvent() throws IOException { JsonObject actualJsonResult = JsonParser.parseString(outputStream.toString()).getAsJsonObject(); - String expectedResult = ResourceUtils.getResourceContent("results/stepFunctionResult.json"); + String expectedResult = ResourceUtils.getResourceContent(String.format("results/%s/stepFunctionResult.json", versionNumber)); JsonObject expectedJsonResult = JsonParser.parseString(expectedResult).getAsJsonObject(); assertEquals(expectedJsonResult, actualJsonResult); diff --git a/src/test/java/software/nhs/fhirvalidator/Validator_all_examples_Test.java b/src/test/java/software/nhs/fhirvalidator/Validator_all_examples_Test.java new file mode 100644 index 00000000..6784a997 --- /dev/null +++ b/src/test/java/software/nhs/fhirvalidator/Validator_all_examples_Test.java @@ -0,0 +1,67 @@ +package software.nhs.fhirvalidator; + +import org.hl7.fhir.r4.model.OperationOutcome; +import org.junit.jupiter.api.BeforeAll; +import org.junit.jupiter.api.DisplayName; +import org.junit.jupiter.api.TestInstance; +import org.junit.jupiter.api.TestInstance.Lifecycle; +import org.junit.jupiter.params.ParameterizedTest; +import org.junit.jupiter.params.provider.MethodSource; +import org.junit.jupiter.params.provider.Arguments; +import org.junit.jupiter.params.provider.ArgumentsProvider; +import org.junit.jupiter.params.provider.ArgumentsSource; +import org.opentest4j.AssertionFailedError; + +import software.nhs.fhirvalidator.controller.ValidateController; + +import java.io.File; +import java.io.IOException; +import java.net.URL; +import java.nio.file.Files; +import java.util.List; +import java.util.stream.Stream; + +class Validator_all_examples_Test { + + private final ClassLoader loader = Thread.currentThread().getContextClassLoader(); + private static ValidateController testValidateController; + + static Stream getExampleFhirFiles() { + try { + URL resource = Thread.currentThread().getContextClassLoader().getResource("examples/full_examples"); + if (resource == null) { + throw new IllegalStateException("Could not find examples directory"); + } + File dir = new File(resource.getFile()); + return Files.walk(dir.toPath()) + .filter(Files::isRegularFile) + .map(path -> path.toFile()) + .sorted(); + } catch (IOException e) { + throw new RuntimeException("Failed to load example files", e); + } + } + + @BeforeAll + static void setup() { + String manifest_file = "nhs_digital.manifest.json"; + testValidateController = new ValidateController(manifest_file); + } + + @DisplayName("Test all valid example files") + @ParameterizedTest(name = "Validating file: {0}") + @MethodSource("getExampleFhirFiles") + void testFhirExamples(File exampleFile) throws IOException { + List lines = Files.readAllLines(exampleFile.toPath()); + String fileContent = String.join(" ", lines); + + OperationOutcome actualResult = testValidateController.parseAndValidateResource(fileContent); + + for (OperationOutcome.OperationOutcomeIssueComponent issue : actualResult.getIssue()) { + if (issue.getSeverity() == OperationOutcome.IssueSeverity.ERROR) { + throw new AssertionFailedError("Error found checking file " + exampleFile.getAbsolutePath() + + ". Error: " + issue.getDiagnostics()); + } + } + } +} diff --git a/src/test/java/software/nhs/fhirvalidator/Validator_nhs_digital_Test.java b/src/test/java/software/nhs/fhirvalidator/Validator_nhs_digital_Test.java index 34bff1cc..7c469460 100644 --- a/src/test/java/software/nhs/fhirvalidator/Validator_nhs_digital_Test.java +++ b/src/test/java/software/nhs/fhirvalidator/Validator_nhs_digital_Test.java @@ -10,6 +10,7 @@ import com.google.gson.JsonParser; import ca.uhn.fhir.context.FhirContext; +import ca.uhn.fhir.util.VersionUtil; import software.nhs.fhirvalidator.controller.ValidateController; import software.nhs.fhirvalidator.util.ResourceUtils; @@ -26,6 +27,7 @@ class Validator_nhs_digital_Test { static ValidateController validateController; static FhirContext fhirContext; + static String versionNumber; Boolean issueListHasSeverity(List issueList, IssueSeverity severity) { for (OperationOutcomeIssueComponent issue : issueList) { @@ -40,7 +42,7 @@ Boolean issueListHasDiagnosticMessageAtSeverity(List issueList, IssueSeverity severity) { for (OperationOutcomeIssueComponent issue : issueList) { @@ -52,6 +54,8 @@ static void setup() { String manifest_file = "uk_core.manifest.json"; validateController = new ValidateController(manifest_file); fhirContext = FhirContext.forR4(); + VersionUtil versionUtil = new VersionUtil(); + versionNumber = versionUtil.getVersion(); } @Test @@ -61,7 +65,7 @@ void psuUpdate() { JsonObject actualJsonResult = JsonParser .parseString(fhirContext.newJsonParser().encodeResourceToString(validatorResult)).getAsJsonObject(); - String expectedResult = ResourceUtils.getResourceContent("results/psu_update.json"); + String expectedResult = ResourceUtils.getResourceContent(String.format("results/%s/psu_update.json", versionNumber)); JsonObject expectedJsonResult = JsonParser.parseString(expectedResult).getAsJsonObject(); assertEquals(expectedJsonResult, actualJsonResult); @@ -86,7 +90,7 @@ void empty() { JsonObject actualJsonResult = JsonParser .parseString(fhirContext.newJsonParser().encodeResourceToString(validatorResult)).getAsJsonObject(); - String expectedResult = ResourceUtils.getResourceContent("results/empty.json"); + String expectedResult = ResourceUtils.getResourceContent(String.format("results/%s/empty.json", versionNumber)); JsonObject expectedJsonResult = JsonParser.parseString(expectedResult).getAsJsonObject(); assertEquals(expectedJsonResult, actualJsonResult); @@ -100,7 +104,7 @@ void array() { JsonObject actualJsonResult = JsonParser .parseString(fhirContext.newJsonParser().encodeResourceToString(validatorResult)).getAsJsonObject(); - String expectedResult = ResourceUtils.getResourceContent("results/array.json"); + String expectedResult = ResourceUtils.getResourceContent(String.format("results/%s/array.json", versionNumber)); JsonObject expectedJsonResult = JsonParser.parseString(expectedResult).getAsJsonObject(); assertEquals(expectedJsonResult, actualJsonResult); @@ -114,7 +118,7 @@ void null_java() { JsonObject actualJsonResult = JsonParser .parseString(fhirContext.newJsonParser().encodeResourceToString(validatorResult)).getAsJsonObject(); - String expectedResult = ResourceUtils.getResourceContent("results/null_java.json"); + String expectedResult = ResourceUtils.getResourceContent(String.format("results/%s/null_java.json", versionNumber)); JsonObject expectedJsonResult = JsonParser.parseString(expectedResult).getAsJsonObject(); assertEquals(expectedJsonResult, actualJsonResult); @@ -128,7 +132,7 @@ void null_json() { JsonObject actualJsonResult = JsonParser .parseString(fhirContext.newJsonParser().encodeResourceToString(validatorResult)).getAsJsonObject(); - String expectedResult = ResourceUtils.getResourceContent("results/null_json.json"); + String expectedResult = ResourceUtils.getResourceContent(String.format("results/%s/null_json.json", versionNumber)); JsonObject expectedJsonResult = JsonParser.parseString(expectedResult).getAsJsonObject(); assertEquals(expectedJsonResult, actualJsonResult); @@ -142,7 +146,7 @@ void number_json() { JsonObject actualJsonResult = JsonParser .parseString(fhirContext.newJsonParser().encodeResourceToString(validatorResult)).getAsJsonObject(); - String expectedResult = ResourceUtils.getResourceContent("results/number_json.json"); + String expectedResult = ResourceUtils.getResourceContent(String.format("results/%s/number_json.json", versionNumber)); JsonObject expectedJsonResult = JsonParser.parseString(expectedResult).getAsJsonObject(); assertEquals(expectedJsonResult, actualJsonResult); @@ -156,7 +160,7 @@ void boolean_json() { JsonObject actualJsonResult = JsonParser .parseString(fhirContext.newJsonParser().encodeResourceToString(validatorResult)).getAsJsonObject(); - String expectedResult = ResourceUtils.getResourceContent("results/boolean_json.json"); + String expectedResult = ResourceUtils.getResourceContent(String.format("results/%s/boolean_json.json", versionNumber)); JsonObject expectedJsonResult = JsonParser.parseString(expectedResult).getAsJsonObject(); assertEquals(expectedJsonResult, actualJsonResult); @@ -170,7 +174,7 @@ void bad_json() { JsonObject actualJsonResult = JsonParser .parseString(fhirContext.newJsonParser().encodeResourceToString(validatorResult)).getAsJsonObject(); - String expectedResult = ResourceUtils.getResourceContent("results/bad_json.json"); + String expectedResult = ResourceUtils.getResourceContent(String.format("results/%s/bad_json.json", versionNumber)); JsonObject expectedJsonResult = JsonParser.parseString(expectedResult).getAsJsonObject(); assertEquals(expectedJsonResult, actualJsonResult); diff --git a/src/test/resources/examples/full_examples/primary-care/acute-and-repeat-prescribing/1-Prepare-Request-200_OK.json b/src/test/resources/examples/full_examples/primary-care/acute-and-repeat-prescribing/1-Prepare-Request-200_OK.json new file mode 100644 index 00000000..f91e65c4 --- /dev/null +++ b/src/test/resources/examples/full_examples/primary-care/acute-and-repeat-prescribing/1-Prepare-Request-200_OK.json @@ -0,0 +1,544 @@ +{ + "resourceType": "Bundle", + "id": "0cb82cfa-76c8-4fb2-a08e-bf0e326e5487", + "identifier": { + "system": "https://tools.ietf.org/html/rfc4122", + "value": "f7a3906b-8d1f-4f0a-aeb7-e8803a2db738" + }, + "type": "message", + "entry": [ + { + "fullUrl": "urn:uuid:17773b27-427e-4940-8c16-64cdac715001", + "resource": { + "resourceType": "MessageHeader", + "eventCoding": { + "system": "https://fhir.nhs.uk/CodeSystem/message-event", + "code": "prescription-order", + "display": "Prescription Order" + }, + "sender": { + "identifier": { + "system": "https://fhir.nhs.uk/Id/ods-organization-code", + "value": "A83008" + }, + "display": "HALLGARTH SURGERY" + }, + "source": { + "endpoint": "https://directory.spineservices.nhs.uk/STU3/Organization/A83008" + }, + "destination": [ + { + "endpoint": "https://sandbox.api.service.nhs.uk/electronic-prescriptions/$post-message", + "receiver": { + "identifier": { + "system": "https://fhir.nhs.uk/Id/ods-organization-code", + "value": "FCG71" + } + } + } + ], + "focus": [ + { + "reference": "urn:uuid:56166769-c1c4-4d07-afa8-132b5dfca666" + }, + { + "reference": "urn:uuid:5cb17f5a-11ac-4e18-825f-6470467238b3" + }, + { + "reference": "urn:uuid:a54219b8-f741-4c47-b662-e4f8dfa49ab6" + }, + { + "reference": "urn:uuid:51793ac0-112f-46c7-a891-9af8cefb206e" + } + ] + } + }, + { + "fullUrl": "urn:uuid:a54219b8-f741-4c47-b662-e4f8dfa49ab6", + "resource": { + "resourceType": "MedicationRequest", + "extension": [ + { + "url": "https://fhir.nhs.uk/StructureDefinition/Extension-DM-PrescriptionType", + "valueCoding": { + "system": "https://fhir.nhs.uk/CodeSystem/prescription-type", + "code": "0101", + "display": "Primary Care Prescriber - Medical Prescriber" + } + } + ], + "identifier": [ + { + "system": "https://fhir.nhs.uk/Id/prescription-order-item-number", + "value": "299c610b-f4f1-4eac-a7d7-4fb6b0556e11" + } + ], + "status": "active", + "intent": "order", + "category": [ + { + "coding": [ + { + "system": "http://terminology.hl7.org/CodeSystem/medicationrequest-category", + "code": "community", + "display": "Community" + } + ] + } + ], + "medicationCodeableConcept": { + "coding": [ + { + "system": "http://snomed.info/sct", + "code": "322237000", + "display": "Paracetamol 500mg soluble tablets" + } + ] + }, + "subject": { + "reference": "urn:uuid:78d3c2eb-009e-4ec8-a358-b042954aa9b2" + }, + "requester": { + "reference": "urn:uuid:56166769-c1c4-4d07-afa8-132b5dfca666" + }, + "groupIdentifier": { + "extension": [ + { + "url": "https://fhir.nhs.uk/StructureDefinition/Extension-DM-PrescriptionId", + "valueIdentifier": { + "system": "https://fhir.nhs.uk/Id/prescription", + "value": "9cabf097-2930-45b6-9db5-b011c3e8182d" + } + } + ], + "system": "https://fhir.nhs.uk/Id/prescription-order-number", + "value": "E3E6FA-A83008-41F09Y" + }, + "courseOfTherapyType": { + "coding": [ + { + "system": "http://terminology.hl7.org/CodeSystem/medicationrequest-course-of-therapy", + "code": "acute", + "display": "Acute" + } + ] + }, + "dosageInstruction": [ + { + "text": "4 times a day - Oral", + "timing": { + "repeat": { + "frequency": 4, + "period": 1, + "periodUnit": "d" + } + }, + "route": { + "coding": [ + { + "system": "http://snomed.info/sct", + "code": "26643006", + "display": "Oral" + } + ] + } + } + ], + "dispenseRequest": { + "extension": [ + { + "url": "https://fhir.nhs.uk/StructureDefinition/Extension-DM-PerformerSiteType", + "valueCoding": { + "system": "https://fhir.nhs.uk/CodeSystem/dispensing-site-preference", + "code": "P1" + } + } + ], + "expectedSupplyDuration": { + "value": 30, + "unit": "day", + "system": "http://unitsofmeasure.org", + "code": "d" + }, + "performer": { + "identifier": { + "system": "https://fhir.nhs.uk/Id/ods-organization-code", + "value": "FCG71" + } + }, + "quantity": { + "value": 100, + "unit": "tablet", + "system": "http://snomed.info/sct", + "code": "428673006" + } + }, + "substitution": { + "allowedBoolean": false + } + } + }, + { + "fullUrl": "urn:uuid:5cb17f5a-11ac-4e18-825f-6470467238b3", + "resource": { + "resourceType": "MedicationRequest", + "extension": [ + { + "url": "https://fhir.nhs.uk/StructureDefinition/Extension-DM-PrescriptionType", + "valueCoding": { + "system": "https://fhir.nhs.uk/CodeSystem/prescription-type", + "code": "0101", + "display": "Primary Care Prescriber - Medical Prescriber" + } + }, + { + "url": "https://fhir.hl7.org.uk/StructureDefinition/Extension-UKCore-MedicationRepeatInformation", + "extension": [ + { + "url": "authorisationExpiryDate", + "valueDateTime": "2024-11-30" + } + ] + } + ], + "identifier": [ + { + "system": "https://fhir.nhs.uk/Id/prescription-order-item-number", + "value": "5cb17f5a-11ac-4e18-825f-6470467238b3" + } + ], + "status": "active", + "intent": "original-order", + "category": [ + { + "coding": [ + { + "system": "http://terminology.hl7.org/CodeSystem/medicationrequest-category", + "code": "community", + "display": "Community" + } + ] + } + ], + "medicationCodeableConcept": { + "coding": [ + { + "system": "http://snomed.info/sct", + "code": "39113611000001102", + "display": "Salbutamol 100micrograms/dose inhaler CFC free" + } + ] + }, + "subject": { + "reference": "urn:uuid:78d3c2eb-009e-4ec8-a358-b042954aa9b2" + }, + "requester": { + "reference": "urn:uuid:56166769-c1c4-4d07-afa8-132b5dfca666" + }, + "groupIdentifier": { + "extension": [ + { + "url": "https://fhir.nhs.uk/StructureDefinition/Extension-DM-PrescriptionId", + "valueIdentifier": { + "system": "https://fhir.nhs.uk/Id/prescription", + "value": "9cabf097-2930-45b6-9db5-b011c3e8182d" + } + } + ], + "system": "https://fhir.nhs.uk/Id/prescription-order-number", + "value": "E3E6FA-A83008-41F09Y" + }, + "courseOfTherapyType": { + "coding": [ + { + "system": "http://terminology.hl7.org/CodeSystem/medicationrequest-course-of-therapy", + "code": "continuous", + "display": "Continuous long term therapy" + } + ] + }, + "dosageInstruction": [ + { + "text": "5 times a day - Inhalation", + "timing": { + "repeat": { + "frequency": 5, + "period": 1, + "periodUnit": "d" + } + }, + "route": { + "coding": [ + { + "system": "http://snomed.info/sct", + "code": "18679011000001101", + "display": "Inhalation" + } + ] + } + } + ], + "dispenseRequest": { + "extension": [ + { + "url": "https://fhir.nhs.uk/StructureDefinition/Extension-DM-PerformerSiteType", + "valueCoding": { + "system": "https://fhir.nhs.uk/CodeSystem/dispensing-site-preference", + "code": "P1" + } + } + ], + "expectedSupplyDuration": { + "value": 30, + "unit": "day", + "system": "http://unitsofmeasure.org", + "code": "d" + }, + "performer": { + "identifier": { + "system": "https://fhir.nhs.uk/Id/ods-organization-code", + "value": "FCG71" + } + }, + "quantity": { + "value": 200, + "unit": "dose", + "system": "http://snomed.info/sct", + "code": "3317411000001100" + } + }, + "substitution": { + "allowedBoolean": false + } + } + }, + { + "fullUrl": "urn:uuid:78d3c2eb-009e-4ec8-a358-b042954aa9b2", + "resource": { + "resourceType": "Patient", + "identifier": [ + { + "system": "https://fhir.nhs.uk/Id/nhs-number", + "value": "9990548609" + } + ], + "name": [ + { + "use": "usual", + "family": "XXTESTPATIENT-TGNP", + "given": [ + "DONOTUSE" + ], + "prefix": [ + "MR" + ] + } + ], + "gender": "male", + "birthDate": "1932-01-06", + "address": [ + { + "use": "home", + "line": [ + "1 Trevelyan Square", + "Boar Lane", + "Leeds", + "West Yorkshire" + ], + "postalCode": "LS1 6AE" + } + ], + "generalPractitioner": [ + { + "identifier": { + "system": "https://fhir.nhs.uk/Id/ods-organization-code", + "value": "A83008" + } + } + ] + } + }, + { + "fullUrl": "urn:uuid:56166769-c1c4-4d07-afa8-132b5dfca666", + "resource": { + "resourceType": "PractitionerRole", + "identifier": [ + { + "system": "https://fhir.nhs.uk/Id/sds-role-profile-id", + "value": "200102238987" + } + ], + "practitioner": { + "reference": "urn:uuid:a8c85454-f8cb-498d-9629-78e2cb5fa47a" + }, + "organization": { + "reference": "urn:uuid:3b4b03a5-52ba-4ba6-9b82-70350aa109d8" + }, + "code": [ + { + "coding": [ + { + "system": "https://fhir.nhs.uk/CodeSystem/NHSDigital-SDS-JobRoleCode", + "code": "S8000:G8000:R8000", + "display": "Clinical Practitioner Access Role" + } + ] + } + ], + "telecom": [ + { + "system": "phone", + "value": "01234567890", + "use": "work" + } + ] + } + }, + { + "fullUrl": "urn:uuid:a8c85454-f8cb-498d-9629-78e2cb5fa47a", + "resource": { + "resourceType": "Practitioner", + "identifier": [ + { + "system": "https://fhir.nhs.uk/Id/sds-user-id", + "value": "555086689106" + }, + { + "system": "https://fhir.hl7.org.uk/Id/gmc-number", + "value": "6095103" + }, + { + "system": "https://fhir.hl7.org.uk/Id/din-number", + "value": "977677" + } + ], + "name": [ + { + "family": "BOIN", + "given": [ + "C" + ], + "prefix": [ + "DR" + ] + } + ] + } + }, + { + "fullUrl": "urn:uuid:3b4b03a5-52ba-4ba6-9b82-70350aa109d8", + "resource": { + "resourceType": "Organization", + "identifier": [ + { + "system": "https://fhir.nhs.uk/Id/ods-organization-code", + "value": "A83008" + } + ], + "type": [ + { + "coding": [ + { + "system": "https://fhir.nhs.uk/CodeSystem/organisation-role", + "code": "76", + "display": "GP PRACTICE" + } + ] + } + ], + "name": "HALLGARTH SURGERY", + "address": [ + { + "use": "work", + "type": "both", + "line": [ + "HALLGARTH SURGERY", + "CHEAPSIDE" + ], + "city": "SHILDON", + "district": "COUNTY DURHAM", + "postalCode": "DL4 2HP" + } + ], + "telecom": [ + { + "system": "phone", + "value": "0115 9737320", + "use": "work" + } + ], + "partOf": { + "identifier": { + "system": "https://fhir.nhs.uk/Id/ods-organization-code", + "value": "84H" + }, + "display": "NHS COUNTY DURHAM CCG" + } + } + }, + { + "fullUrl": "urn:uuid:51793ac0-112f-46c7-a891-9af8cefb206e", + "resource": { + "resourceType": "CommunicationRequest", + "status": "unknown", + "subject": { + "reference": "urn:uuid:78d3c2eb-009e-4ec8-a358-b042954aa9b2" + }, + "payload": [ + { + "contentString": "Due to Coronavirus restrictions Church View Surgery is CLOSED until further notice" + }, + { + "contentReference": { + "reference": "urn:uuid:d0f003a0-8763-43d5-a264-ce52a38901c9", + "display": "List of Repeat Medications for re-ordering" + } + } + ], + "requester": { + "type": "Organization", + "identifier": { + "system": "https://fhir.nhs.uk/Id/ods-organization-code", + "value": "RBA" + }, + "display": "TAUNTON AND SOMERSET NHS FOUNDATION TRUST" + }, + "recipient": [ + { + "type": "Patient", + "identifier": { + "system": "https://fhir.nhs.uk/Id/nhs-number", + "value": "9453740519" + } + } + ] + } + }, + { + "fullUrl": "urn:uuid:d0f003a0-8763-43d5-a264-ce52a38901c9", + "resource": { + "resourceType": "List", + "status": "current", + "mode": "snapshot", + "code": { + "text": "Repeat Medications" + }, + "subject": { + "reference": "urn:uuid:78d3c2eb-009e-4ec8-a358-b042954aa9b2" + }, + "entry": [ + { + "item": { + "display": "Bendroflumethiazide 2.5mg tablets (3/6)" + } + }, + { + "item": { + "display": "Salbutamol 100micrograms/dose inhaler CFC free (2/6)" + } + } + ] + } + } + ] +} diff --git a/src/test/resources/examples/full_examples/primary-care/acute-and-repeat-prescribing/1-Prepare-Response-200_OK.json b/src/test/resources/examples/full_examples/primary-care/acute-and-repeat-prescribing/1-Prepare-Response-200_OK.json new file mode 100644 index 00000000..d436b282 --- /dev/null +++ b/src/test/resources/examples/full_examples/primary-care/acute-and-repeat-prescribing/1-Prepare-Response-200_OK.json @@ -0,0 +1,17 @@ +{ + "resourceType": "Parameters", + "parameter": [ + { + "name": "digest", + "valueString": "PFNpZ25lZEluZm8geG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvMDkveG1sZHNpZyMiPjxDYW5vbmljYWxpemF0aW9uTWV0aG9kIEFsZ29yaXRobT0iaHR0cDovL3d3dy53My5vcmcvMjAwMS8xMC94bWwtZXhjLWMxNG4jIj48L0Nhbm9uaWNhbGl6YXRpb25NZXRob2Q+PFNpZ25hdHVyZU1ldGhvZCBBbGdvcml0aG09Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvMDkveG1sZHNpZyNyc2Etc2hhMSI+PC9TaWduYXR1cmVNZXRob2Q+PFJlZmVyZW5jZT48VHJhbnNmb3Jtcz48VHJhbnNmb3JtIEFsZ29yaXRobT0iaHR0cDovL3d3dy53My5vcmcvMjAwMS8xMC94bWwtZXhjLWMxNG4jIj48L1RyYW5zZm9ybT48L1RyYW5zZm9ybXM+PERpZ2VzdE1ldGhvZCBBbGdvcml0aG09Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvMDkveG1sZHNpZyNzaGExIj48L0RpZ2VzdE1ldGhvZD48RGlnZXN0VmFsdWU+bkIwMUZJUG1yMVM4TVMveDVoYVk4U3dpT1Y4PTwvRGlnZXN0VmFsdWU+PC9SZWZlcmVuY2U+PC9TaWduZWRJbmZvPg==" + }, + { + "name": "timestamp", + "valueString": "2022-10-25T10:24:34+00:00" + }, + { + "name": "algorithm", + "valueString": "RS1" + } + ] +} diff --git a/src/test/resources/examples/full_examples/primary-care/acute-and-repeat-prescribing/1-Process-Request-Send-200_OK.json b/src/test/resources/examples/full_examples/primary-care/acute-and-repeat-prescribing/1-Process-Request-Send-200_OK.json new file mode 100644 index 00000000..b3ccebce --- /dev/null +++ b/src/test/resources/examples/full_examples/primary-care/acute-and-repeat-prescribing/1-Process-Request-Send-200_OK.json @@ -0,0 +1,582 @@ +{ + "resourceType": "Bundle", + "id": "0cb82cfa-76c8-4fb2-a08e-bf0e326e5487", + "identifier": { + "system": "https://tools.ietf.org/html/rfc4122", + "value": "b03b4c7d-65f8-4cc3-9e63-0733ef6c27ed" + }, + "type": "message", + "entry": [ + { + "fullUrl": "urn:uuid:17773b27-427e-4940-8c16-64cdac715001", + "resource": { + "resourceType": "MessageHeader", + "eventCoding": { + "system": "https://fhir.nhs.uk/CodeSystem/message-event", + "code": "prescription-order", + "display": "Prescription Order" + }, + "sender": { + "identifier": { + "system": "https://fhir.nhs.uk/Id/ods-organization-code", + "value": "A83008" + }, + "display": "HALLGARTH SURGERY" + }, + "source": { + "endpoint": "https://directory.spineservices.nhs.uk/STU3/Organization/A83008" + }, + "destination": [ + { + "endpoint": "https://sandbox.api.service.nhs.uk/electronic-prescriptions/$post-message", + "receiver": { + "identifier": { + "system": "https://fhir.nhs.uk/Id/ods-organization-code", + "value": "FCG71" + } + } + } + ], + "focus": [ + { + "reference": "urn:uuid:56166769-c1c4-4d07-afa8-132b5dfca666" + }, + { + "reference": "urn:uuid:5cb17f5a-11ac-4e18-825f-6470467238b3" + }, + { + "reference": "urn:uuid:a54219b8-f741-4c47-b662-e4f8dfa49ab6" + }, + { + "reference": "urn:uuid:51793ac0-112f-46c7-a891-9af8cefb206e" + } + ] + } + }, + { + "fullUrl": "urn:uuid:a54219b8-f741-4c47-b662-e4f8dfa49ab6", + "resource": { + "resourceType": "MedicationRequest", + "extension": [ + { + "url": "https://fhir.nhs.uk/StructureDefinition/Extension-DM-PrescriptionType", + "valueCoding": { + "system": "https://fhir.nhs.uk/CodeSystem/prescription-type", + "code": "0101", + "display": "Primary Care Prescriber - Medical Prescriber" + } + } + ], + "identifier": [ + { + "system": "https://fhir.nhs.uk/Id/prescription-order-item-number", + "value": "299c610b-f4f1-4eac-a7d7-4fb6b0556e11" + } + ], + "status": "active", + "intent": "order", + "category": [ + { + "coding": [ + { + "system": "http://terminology.hl7.org/CodeSystem/medicationrequest-category", + "code": "community", + "display": "Community" + } + ] + } + ], + "medicationCodeableConcept": { + "coding": [ + { + "system": "http://snomed.info/sct", + "code": "322237000", + "display": "Paracetamol 500mg soluble tablets" + } + ] + }, + "subject": { + "reference": "urn:uuid:78d3c2eb-009e-4ec8-a358-b042954aa9b2" + }, + "requester": { + "reference": "urn:uuid:56166769-c1c4-4d07-afa8-132b5dfca666" + }, + "groupIdentifier": { + "extension": [ + { + "url": "https://fhir.nhs.uk/StructureDefinition/Extension-DM-PrescriptionId", + "valueIdentifier": { + "system": "https://fhir.nhs.uk/Id/prescription", + "value": "9cabf097-2930-45b6-9db5-b011c3e8182d" + } + } + ], + "system": "https://fhir.nhs.uk/Id/prescription-order-number", + "value": "E3E6FA-A83008-41F09Y" + }, + "courseOfTherapyType": { + "coding": [ + { + "system": "http://terminology.hl7.org/CodeSystem/medicationrequest-course-of-therapy", + "code": "acute", + "display": "Acute" + } + ] + }, + "dosageInstruction": [ + { + "text": "4 times a day - Oral", + "timing": { + "repeat": { + "frequency": 4, + "period": 1, + "periodUnit": "d" + } + }, + "route": { + "coding": [ + { + "system": "http://snomed.info/sct", + "code": "26643006", + "display": "Oral" + } + ] + } + } + ], + "dispenseRequest": { + "extension": [ + { + "url": "https://fhir.nhs.uk/StructureDefinition/Extension-DM-PerformerSiteType", + "valueCoding": { + "system": "https://fhir.nhs.uk/CodeSystem/dispensing-site-preference", + "code": "P1" + } + } + ], + "expectedSupplyDuration": { + "value": 30, + "unit": "day", + "system": "http://unitsofmeasure.org", + "code": "d" + }, + "performer": { + "identifier": { + "system": "https://fhir.nhs.uk/Id/ods-organization-code", + "value": "FCG71" + } + }, + "quantity": { + "value": 100, + "unit": "tablet", + "system": "http://snomed.info/sct", + "code": "428673006" + } + }, + "substitution": { + "allowedBoolean": false + } + } + }, + { + "fullUrl": "urn:uuid:5cb17f5a-11ac-4e18-825f-6470467238b3", + "resource": { + "resourceType": "MedicationRequest", + "extension": [ + { + "url": "https://fhir.nhs.uk/StructureDefinition/Extension-DM-PrescriptionType", + "valueCoding": { + "system": "https://fhir.nhs.uk/CodeSystem/prescription-type", + "code": "0101", + "display": "Primary Care Prescriber - Medical Prescriber" + } + }, + { + "url": "https://fhir.hl7.org.uk/StructureDefinition/Extension-UKCore-MedicationRepeatInformation", + "extension": [ + { + "url": "authorisationExpiryDate", + "valueDateTime": "2024-11-30" + } + ] + } + ], + "identifier": [ + { + "system": "https://fhir.nhs.uk/Id/prescription-order-item-number", + "value": "5cb17f5a-11ac-4e18-825f-6470467238b3" + } + ], + "status": "active", + "intent": "original-order", + "category": [ + { + "coding": [ + { + "system": "http://terminology.hl7.org/CodeSystem/medicationrequest-category", + "code": "community", + "display": "Community" + } + ] + } + ], + "medicationCodeableConcept": { + "coding": [ + { + "system": "http://snomed.info/sct", + "code": "39113611000001102", + "display": "Salbutamol 100micrograms/dose inhaler CFC free" + } + ] + }, + "subject": { + "reference": "urn:uuid:78d3c2eb-009e-4ec8-a358-b042954aa9b2" + }, + "requester": { + "reference": "urn:uuid:56166769-c1c4-4d07-afa8-132b5dfca666" + }, + "groupIdentifier": { + "extension": [ + { + "url": "https://fhir.nhs.uk/StructureDefinition/Extension-DM-PrescriptionId", + "valueIdentifier": { + "system": "https://fhir.nhs.uk/Id/prescription", + "value": "9cabf097-2930-45b6-9db5-b011c3e8182d" + } + } + ], + "system": "https://fhir.nhs.uk/Id/prescription-order-number", + "value": "E3E6FA-A83008-41F09Y" + }, + "courseOfTherapyType": { + "coding": [ + { + "system": "http://terminology.hl7.org/CodeSystem/medicationrequest-course-of-therapy", + "code": "continuous", + "display": "Continuous long term therapy" + } + ] + }, + "dosageInstruction": [ + { + "text": "5 times a day - Inhalation", + "timing": { + "repeat": { + "frequency": 5, + "period": 1, + "periodUnit": "d" + } + }, + "route": { + "coding": [ + { + "system": "http://snomed.info/sct", + "code": "18679011000001101", + "display": "Inhalation" + } + ] + } + } + ], + "dispenseRequest": { + "extension": [ + { + "url": "https://fhir.nhs.uk/StructureDefinition/Extension-DM-PerformerSiteType", + "valueCoding": { + "system": "https://fhir.nhs.uk/CodeSystem/dispensing-site-preference", + "code": "P1" + } + } + ], + "expectedSupplyDuration": { + "value": 30, + "unit": "day", + "system": "http://unitsofmeasure.org", + "code": "d" + }, + "performer": { + "identifier": { + "system": "https://fhir.nhs.uk/Id/ods-organization-code", + "value": "FCG71" + } + }, + "quantity": { + "value": 200, + "unit": "dose", + "system": "http://snomed.info/sct", + "code": "3317411000001100" + } + }, + "substitution": { + "allowedBoolean": false + } + } + }, + { + "fullUrl": "urn:uuid:78d3c2eb-009e-4ec8-a358-b042954aa9b2", + "resource": { + "resourceType": "Patient", + "identifier": [ + { + "system": "https://fhir.nhs.uk/Id/nhs-number", + "value": "9990548609" + } + ], + "name": [ + { + "use": "usual", + "family": "XXTESTPATIENT-TGNP", + "given": [ + "DONOTUSE" + ], + "prefix": [ + "MR" + ] + } + ], + "gender": "male", + "birthDate": "1932-01-06", + "address": [ + { + "use": "home", + "line": [ + "1 Trevelyan Square", + "Boar Lane", + "Leeds", + "West Yorkshire" + ], + "postalCode": "LS1 6AE" + } + ], + "generalPractitioner": [ + { + "identifier": { + "system": "https://fhir.nhs.uk/Id/ods-organization-code", + "value": "A83008" + } + } + ] + } + }, + { + "fullUrl": "urn:uuid:56166769-c1c4-4d07-afa8-132b5dfca666", + "resource": { + "resourceType": "PractitionerRole", + "identifier": [ + { + "system": "https://fhir.nhs.uk/Id/sds-role-profile-id", + "value": "200102238987" + } + ], + "practitioner": { + "reference": "urn:uuid:a8c85454-f8cb-498d-9629-78e2cb5fa47a" + }, + "organization": { + "reference": "urn:uuid:3b4b03a5-52ba-4ba6-9b82-70350aa109d8" + }, + "code": [ + { + "coding": [ + { + "system": "https://fhir.nhs.uk/CodeSystem/NHSDigital-SDS-JobRoleCode", + "code": "S8000:G8000:R8000", + "display": "Clinical Practitioner Access Role" + } + ] + } + ], + "telecom": [ + { + "system": "phone", + "value": "01234567890", + "use": "work" + } + ] + } + }, + { + "fullUrl": "urn:uuid:a8c85454-f8cb-498d-9629-78e2cb5fa47a", + "resource": { + "resourceType": "Practitioner", + "identifier": [ + { + "system": "https://fhir.nhs.uk/Id/sds-user-id", + "value": "555086689106" + }, + { + "system": "https://fhir.hl7.org.uk/Id/gmc-number", + "value": "6095103" + }, + { + "system": "https://fhir.hl7.org.uk/Id/din-number", + "value": "977677" + } + ], + "name": [ + { + "family": "BOIN", + "given": [ + "C" + ], + "prefix": [ + "DR" + ] + } + ] + } + }, + { + "fullUrl": "urn:uuid:3b4b03a5-52ba-4ba6-9b82-70350aa109d8", + "resource": { + "resourceType": "Organization", + "identifier": [ + { + "system": "https://fhir.nhs.uk/Id/ods-organization-code", + "value": "A83008" + } + ], + "type": [ + { + "coding": [ + { + "system": "https://fhir.nhs.uk/CodeSystem/organisation-role", + "code": "76", + "display": "GP PRACTICE" + } + ] + } + ], + "name": "HALLGARTH SURGERY", + "address": [ + { + "use": "work", + "type": "both", + "line": [ + "HALLGARTH SURGERY", + "CHEAPSIDE" + ], + "city": "SHILDON", + "district": "COUNTY DURHAM", + "postalCode": "DL4 2HP" + } + ], + "telecom": [ + { + "system": "phone", + "value": "0115 9737320", + "use": "work" + } + ], + "partOf": { + "identifier": { + "system": "https://fhir.nhs.uk/Id/ods-organization-code", + "value": "84H" + }, + "display": "NHS COUNTY DURHAM CCG" + } + } + }, + { + "fullUrl": "urn:uuid:51793ac0-112f-46c7-a891-9af8cefb206e", + "resource": { + "resourceType": "CommunicationRequest", + "status": "unknown", + "subject": { + "reference": "urn:uuid:78d3c2eb-009e-4ec8-a358-b042954aa9b2" + }, + "payload": [ + { + "contentString": "Due to Coronavirus restrictions Church View Surgery is CLOSED until further notice" + }, + { + "contentReference": { + "reference": "urn:uuid:d0f003a0-8763-43d5-a264-ce52a38901c9", + "display": "List of Repeat Medications for re-ordering" + } + } + ], + "requester": { + "type": "Organization", + "identifier": { + "system": "https://fhir.nhs.uk/Id/ods-organization-code", + "value": "RBA" + }, + "display": "TAUNTON AND SOMERSET NHS FOUNDATION TRUST" + }, + "recipient": [ + { + "type": "Patient", + "identifier": { + "system": "https://fhir.nhs.uk/Id/nhs-number", + "value": "9453740519" + } + } + ] + } + }, + { + "fullUrl": "urn:uuid:d0f003a0-8763-43d5-a264-ce52a38901c9", + "resource": { + "resourceType": "List", + "status": "current", + "mode": "snapshot", + "code": { + "text": "Repeat Medications" + }, + "subject": { + "reference": "urn:uuid:78d3c2eb-009e-4ec8-a358-b042954aa9b2" + }, + "entry": [ + { + "item": { + "display": "Bendroflumethiazide 2.5mg tablets (3/6)" + } + }, + { + "item": { + "display": "Salbutamol 100micrograms/dose inhaler CFC free (2/6)" + } + } + ] + } + }, + { + "fullUrl": "urn:uuid:28828c55-8fa7-42d7-916f-fcf076e0c10e", + "resource": { + "resourceType": "Provenance", + "id": "28828c55-8fa7-42d7-916f-fcf076e0c10e", + "target": [ + { + "reference": "urn:uuid:a54219b8-f741-4c47-b662-e4f8dfa49ab6" + }, + { + "reference": "urn:uuid:5cb17f5a-11ac-4e18-825f-6470467238b3" + } + ], + "recorded": "2021-02-11T16:37:49+00:00", + "agent": [ + { + "who": { + "reference": "urn:uuid:56166769-c1c4-4d07-afa8-132b5dfca666" + } + } + ], + "signature": [ + { + "type": [ + { + "system": "urn:iso-astm:E1762-95:2013", + "code": "1.2.840.10065.1.12.1.1" + } + ], + "when": "2021-05-12T05:58:49+00:00", + "who": { + "reference": "urn:uuid:56166769-c1c4-4d07-afa8-132b5dfca666" + }, + "data": "DQo8U2lnbmF0dXJlIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwLzA5L3htbGRzaWcjIj4NCiAgICA8U2lnbmVkSW5mbz48Q2Fub25pY2FsaXphdGlvbk1ldGhvZCBBbGdvcml0aG09Imh0dHA6Ly93d3cudzMub3JnLzIwMDEvMTAveG1sLWV4Yy1jMTRuIyI+PC9DYW5vbmljYWxpemF0aW9uTWV0aG9kPjxTaWduYXR1cmVNZXRob2QgQWxnb3JpdGhtPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwLzA5L3htbGRzaWcjcnNhLXNoYTEiPjwvU2lnbmF0dXJlTWV0aG9kPjxSZWZlcmVuY2U+PFRyYW5zZm9ybXM+PFRyYW5zZm9ybSBBbGdvcml0aG09Imh0dHA6Ly93d3cudzMub3JnLzIwMDEvMTAveG1sLWV4Yy1jMTRuIyI+PC9UcmFuc2Zvcm0+PC9UcmFuc2Zvcm1zPjxEaWdlc3RNZXRob2QgQWxnb3JpdGhtPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwLzA5L3htbGRzaWcjc2hhMSI+PC9EaWdlc3RNZXRob2Q+PERpZ2VzdFZhbHVlPmVBTnAxdW15cFdjbE9zZFFNR2tUUkFrbjA4WT08L0RpZ2VzdFZhbHVlPjwvUmVmZXJlbmNlPjwvU2lnbmVkSW5mbz4NCiAgICA8U2lnbmF0dXJlVmFsdWU+YjFlVGFZUVdWYWR0K2VyTVU4MHV1L29NYW8xRE1FVjB0aVF5UG9qVXI1NHlubndSY3VYRVZwWmwyZXZqak8zU2w0NDJ5YVl4SFF1c1RWejRyTUN6RU11ZjNVVU1UR3gwbVc4U0ppL09RRkk5TGpkRUZQQjRxVm1VZ1QyZDg0TEl5YTB4bnhYQ0FKWG1lWjBqYW1lM2JzZmp3YkZ5RXNrcm9iWG5yTW1tbDlzPTwvU2lnbmF0dXJlVmFsdWU+DQogICAgPEtleUluZm8+DQogICAgICAgIDxYNTA5RGF0YT4NCiAgICAgICAgICAgIDxYNTA5Q2VydGlmaWNhdGU+TUlJRHVEQ0NBcUNnQXdJQkFnSUVYY210SHpBTkJna3Foa2lHOXcwQkFRc0ZBREEyTVF3d0NnWURWUVFLRXdOdWFITXhDekFKQmdOVkJBc1RBa05CTVJrd0Z3WURWUVFERXhCT1NGTWdTVTVVSUV4bGRtVnNJREZFTUI0WERUSXdNVEF5TWpFd01qRTFOVm9YRFRJeU1UQXlNakV3TlRFMU5Wb3dRekVNTUFvR0ExVUVDaE1EYm1oek1ROHdEUVlEVlFRTEV3WlFaVzl3YkdVeElqQWdCZ05WQkFNTUdUVTFOVEkxTXpVeU1URXdPRjlTUVU1RVQwMWZWVk5GVWxFd2daOHdEUVlKS29aSWh2Y05BUUVCQlFBRGdZMEFNSUdKQW9HQkFLdDRzek53N09BSDdBUVJyRGUveEJJbXNNbU1pUzlFc3JUM2EzcC9MaDNicmR6STlhYWpUVVoyYi9jdmJPYTdQZVlkN3UrSzRhMlpkMFhrKzBHRm1ZR3pTVlg2aVlqYmx3cjB2YWkzMXpWN0crbEd2SHhINnBTb0xDd0lDYVpBRndhYmVENU96OTQreUEzYVdOV3RHVjBEZmg5cXdIM1pGQ0lNUnN2ZXJOMXBBZ01CQUFHamdnRkRNSUlCUHpBT0JnTlZIUThCQWY4RUJBTUNCa0F3WlFZRFZSMGdBUUgvQkZzd1dUQlhCZ3NxaGpvQWlYdG1BQU1DQURCSU1FWUdDQ3NHQVFVRkJ3SUJGanBvZEhSd2N6b3ZMM0JyYVM1dWFITXVkV3N2WTJWeWRHbG1hV05oZEdWZmNHOXNhV05wWlhNdlkyOXVkR1Z1ZEY5amIyMXRhWFJ0Wlc1ME1ETUdBMVVkSHdRc01Db3dLS0Ftb0NTR0ltaDBkSEE2THk5amNtd3VibWh6TG5WckwybHVkQzh4WkM5amNteGpNeTVqY213d0t3WURWUjBRQkNRd0lvQVBNakF5TURFd01qSXhNREl4TlRWYWdROHlNREl5TURNeE56RXdOVEUxTlZvd0h3WURWUjBqQkJnd0ZvQVVvSllmZ1lUTlBkNkVVS0w2UUxJekh4WTVQRkl3SFFZRFZSME9CQllFRkx0eXZZU3lhcWc2MEFFVVpneGswd3JqUkpjK01Ba0dBMVVkRXdRQ01BQXdHUVlKS29aSWh2WjlCMEVBQkF3d0Noc0VWamd1TXdNQ0JMQXdEUVlKS29aSWh2Y05BUUVMQlFBRGdnRUJBQmN6eThCOGp1UHBJZmFUTkZjeHJDMjJhQ1gveFlabWhyTC9OdklCQWFYMUc1aGppd21rR0tFMmhSVElyNjdQeFp4bVhzSnhpZ1JCTUhQbEkrbFkvK29rekgwR2k3YjVicWx3N3B4R0lnSk8wMDB3OHBGc3ZvOXc0MklZaEhvZHN2bkRWU3hoTVQwSjQ2UWhrOXNvRTBMam9FVUxLUVBQbFlHa2UvR2wzbTE3SXRGWXdPYlFIMGZNRXdtaXFCeWVJZno3Z1NjY096TDVjSXA2UGNaVE9qbzJJcVFwZ0VtaGpPY1JJbkVxQU5pdFNkam9pSkFKenBhYVpqWVRSZEhVWDdpN2FqRWlING05MW5GVys0QXFrTnR0bGI0V2NHS3NTbVdnZktLaGVGNElvWktNRTgweGVyU2dNeTh2dGpMT0JKQ0dYejB3TEdtUXVSbXhNVHE4OHE0PTwvWDUwOUNlcnRpZmljYXRlPg0KICAgICAgICA8L1g1MDlEYXRhPg0KICAgIDwvS2V5SW5mbz4NCjwvU2lnbmF0dXJlPg0K" + } + ] + } + } + ] +} diff --git a/src/test/resources/examples/full_examples/primary-care/acute/no-nominated-pharmacy/medical-prescriber/author/gmc/responsible-party/din/1-Prepare-Request-200_OK.json b/src/test/resources/examples/full_examples/primary-care/acute/no-nominated-pharmacy/medical-prescriber/author/gmc/responsible-party/din/1-Prepare-Request-200_OK.json new file mode 100644 index 00000000..66bc6796 --- /dev/null +++ b/src/test/resources/examples/full_examples/primary-care/acute/no-nominated-pharmacy/medical-prescriber/author/gmc/responsible-party/din/1-Prepare-Request-200_OK.json @@ -0,0 +1,467 @@ +{ + "resourceType": "Bundle", + "id": "0cb82cfa-76c8-4fb2-a08e-bf0e326e5487", + "meta": { + "lastUpdated": "2022-10-21T13:47:00+00:00" + }, + "identifier": { + "system": "https://tools.ietf.org/html/rfc4122", + "value": "5ca1d5d1-fe4f-4c14-8584-7089d2000219" + }, + "type": "message", + "entry": [ + { + "fullUrl": "urn:uuid:17773b27-427e-4940-8c16-64cdac715001", + "resource": { + "resourceType": "MessageHeader", + "eventCoding": { + "system": "https://fhir.nhs.uk/CodeSystem/message-event", + "code": "prescription-order", + "display": "Prescription Order" + }, + "sender": { + "identifier": { + "system": "https://fhir.nhs.uk/Id/ods-organization-code", + "value": "A83008" + }, + "display": "HALLGARTH SURGERY" + }, + "source": { + "endpoint": "https://directory.spineservices.nhs.uk/STU3/Organization/A83008" + }, + "destination": [ + { + "endpoint": "https://sandbox.api.service.nhs.uk/electronic-prescriptions/$post-message", + "receiver": { + "identifier": { + "system": "https://fhir.nhs.uk/Id/ods-organization-code", + "value": "VNE51" + } + } + } + ], + "focus": [ + { + "reference": "urn:uuid:56166769-c1c4-4d07-afa8-132b5dfca666" + }, + { + "reference": "urn:uuid:5cb17f5a-11ac-4e18-825f-6470467238b3" + }, + { + "reference": "urn:uuid:a54219b8-f741-4c47-b662-e4f8dfa49ab6" + } + ] + } + }, + { + "fullUrl": "urn:uuid:a54219b8-f741-4c47-b662-e4f8dfa49ab6", + "resource": { + "resourceType": "MedicationRequest", + "extension": [ + { + "url": "https://fhir.nhs.uk/StructureDefinition/Extension-DM-PrescriptionType", + "valueCoding": { + "system": "https://fhir.nhs.uk/CodeSystem/prescription-type", + "code": "0101", + "display": "Primary Care Prescriber - Medical Prescriber" + } + } + ], + "identifier": [ + { + "system": "https://fhir.nhs.uk/Id/prescription-order-item-number", + "value": "299c610b-f4f1-4eac-a7d7-4fb6b0556e11" + } + ], + "status": "active", + "intent": "order", + "category": [ + { + "coding": [ + { + "system": "http://terminology.hl7.org/CodeSystem/medicationrequest-category", + "code": "community", + "display": "Community" + } + ] + } + ], + "medicationCodeableConcept": { + "coding": [ + { + "system": "http://snomed.info/sct", + "code": "322237000", + "display": "Paracetamol 500mg soluble tablets" + } + ] + }, + "subject": { + "reference": "urn:uuid:78d3c2eb-009e-4ec8-a358-b042954aa9b2" + }, + "requester": { + "reference": "urn:uuid:56166769-c1c4-4d07-afa8-132b5dfca666" + }, + "groupIdentifier": { + "extension": [ + { + "url": "https://fhir.nhs.uk/StructureDefinition/Extension-DM-PrescriptionId", + "valueIdentifier": { + "system": "https://fhir.nhs.uk/Id/prescription", + "value": "c59b0ad3-b6c9-49f1-a50a-0595b97c503d" + } + } + ], + "system": "https://fhir.nhs.uk/Id/prescription-order-number", + "value": "315A44-A83008-4C9BB1" + }, + "courseOfTherapyType": { + "coding": [ + { + "system": "http://terminology.hl7.org/CodeSystem/medicationrequest-course-of-therapy", + "code": "acute", + "display": "Short course (acute) therapy" + } + ] + }, + "dosageInstruction": [ + { + "text": "4 times a day - Oral", + "timing": { + "repeat": { + "frequency": 4, + "period": 1, + "periodUnit": "d" + } + }, + "route": { + "coding": [ + { + "system": "http://snomed.info/sct", + "code": "26643006", + "display": "Oral" + } + ] + } + } + ], + "dispenseRequest": { + "extension": [ + { + "url": "https://fhir.nhs.uk/StructureDefinition/Extension-DM-PerformerSiteType", + "valueCoding": { + "system": "https://fhir.nhs.uk/CodeSystem/dispensing-site-preference", + "code": "0004" + } + } + ], + "validityPeriod": { + "start": "2021-05-07", + "end": "2021-06-04" + }, + "expectedSupplyDuration": { + "value": 30, + "unit": "day", + "system": "http://unitsofmeasure.org", + "code": "d" + }, + "quantity": { + "value": 100, + "unit": "tablet", + "system": "http://snomed.info/sct", + "code": "428673006" + } + }, + "substitution": { + "allowedBoolean": false + } + } + }, + { + "fullUrl": "urn:uuid:5cb17f5a-11ac-4e18-825f-6470467238b3", + "resource": { + "resourceType": "MedicationRequest", + "extension": [ + { + "url": "https://fhir.nhs.uk/StructureDefinition/Extension-DM-PrescriptionType", + "valueCoding": { + "system": "https://fhir.nhs.uk/CodeSystem/prescription-type", + "code": "0101", + "display": "Primary Care Prescriber - Medical Prescriber" + } + } + ], + "identifier": [ + { + "system": "https://fhir.nhs.uk/Id/prescription-order-item-number", + "value": "5cb17f5a-11ac-4e18-825f-6470467238b3" + } + ], + "status": "active", + "intent": "order", + "category": [ + { + "coding": [ + { + "system": "http://terminology.hl7.org/CodeSystem/medicationrequest-category", + "code": "community", + "display": "Community" + } + ] + } + ], + "medicationCodeableConcept": { + "coding": [ + { + "system": "http://snomed.info/sct", + "code": "39113611000001102", + "display": "Salbutamol 100micrograms/dose inhaler CFC free" + } + ] + }, + "subject": { + "reference": "urn:uuid:78d3c2eb-009e-4ec8-a358-b042954aa9b2" + }, + "requester": { + "reference": "urn:uuid:56166769-c1c4-4d07-afa8-132b5dfca666" + }, + "groupIdentifier": { + "extension": [ + { + "url": "https://fhir.nhs.uk/StructureDefinition/Extension-DM-PrescriptionId", + "valueIdentifier": { + "system": "https://fhir.nhs.uk/Id/prescription", + "value": "c59b0ad3-b6c9-49f1-a50a-0595b97c503d" + } + } + ], + "system": "https://fhir.nhs.uk/Id/prescription-order-number", + "value": "315A44-A83008-4C9BB1" + }, + "courseOfTherapyType": { + "coding": [ + { + "system": "http://terminology.hl7.org/CodeSystem/medicationrequest-course-of-therapy", + "code": "acute", + "display": "Short course (acute) therapy" + } + ] + }, + "dosageInstruction": [ + { + "text": "5 times a day - Inhalation", + "timing": { + "repeat": { + "frequency": 5, + "period": 1, + "periodUnit": "d" + } + }, + "route": { + "coding": [ + { + "system": "http://snomed.info/sct", + "code": "18679011000001101", + "display": "Inhalation" + } + ] + } + } + ], + "dispenseRequest": { + "extension": [ + { + "url": "https://fhir.nhs.uk/StructureDefinition/Extension-DM-PerformerSiteType", + "valueCoding": { + "system": "https://fhir.nhs.uk/CodeSystem/dispensing-site-preference", + "code": "0004" + } + } + ], + "validityPeriod": { + "start": "2021-05-07", + "end": "2021-06-04" + }, + "expectedSupplyDuration": { + "value": 30, + "unit": "day", + "system": "http://unitsofmeasure.org", + "code": "d" + }, + "quantity": { + "value": 200, + "unit": "dose", + "system": "http://snomed.info/sct", + "code": "3317411000001100" + } + }, + "substitution": { + "allowedBoolean": false + } + } + }, + { + "fullUrl": "urn:uuid:78d3c2eb-009e-4ec8-a358-b042954aa9b2", + "resource": { + "resourceType": "Patient", + "identifier": [ + { + "system": "https://fhir.nhs.uk/Id/nhs-number", + "value": "9990548609" + } + ], + "name": [ + { + "use": "usual", + "family": "XXTESTPATIENT-TGNP", + "given": [ + "DONOTUSE" + ], + "prefix": [ + "MR" + ] + } + ], + "gender": "male", + "birthDate": "1932-01-06", + "address": [ + { + "use": "home", + "line": [ + "1 Trevelyan Square", + "Boar Lane", + "Leeds", + "West Yorkshire" + ], + "postalCode": "LS1 6AE" + } + ], + "generalPractitioner": [ + { + "identifier": { + "system": "https://fhir.nhs.uk/Id/ods-organization-code", + "value": "A83008" + } + } + ] + } + }, + { + "fullUrl": "urn:uuid:56166769-c1c4-4d07-afa8-132b5dfca666", + "resource": { + "resourceType": "PractitionerRole", + "identifier": [ + { + "system": "https://fhir.nhs.uk/Id/sds-role-profile-id", + "value": "200102238987" + } + ], + "practitioner": { + "reference": "urn:uuid:a8c85454-f8cb-498d-9629-78e2cb5fa47a" + }, + "organization": { + "reference": "urn:uuid:3b4b03a5-52ba-4ba6-9b82-70350aa109d8" + }, + "code": [ + { + "coding": [ + { + "system": "https://fhir.nhs.uk/CodeSystem/NHSDigital-SDS-JobRoleCode", + "code": "S8000:G8000:R8000", + "display": "Clinical Practitioner Access Role" + } + ] + } + ], + "telecom": [ + { + "system": "phone", + "value": "01234567890", + "use": "work" + } + ] + } + }, + { + "fullUrl": "urn:uuid:a8c85454-f8cb-498d-9629-78e2cb5fa47a", + "resource": { + "resourceType": "Practitioner", + "identifier": [ + { + "system": "https://fhir.nhs.uk/Id/sds-user-id", + "value": "555086689106" + }, + { + "system": "https://fhir.hl7.org.uk/Id/gmc-number", + "value": "6095103" + }, + { + "system": "https://fhir.hl7.org.uk/Id/din-number", + "value": "977677" + } + ], + "name": [ + { + "family": "BOIN", + "given": [ + "C" + ], + "prefix": [ + "DR" + ] + } + ] + } + }, + { + "fullUrl": "urn:uuid:3b4b03a5-52ba-4ba6-9b82-70350aa109d8", + "resource": { + "resourceType": "Organization", + "identifier": [ + { + "system": "https://fhir.nhs.uk/Id/ods-organization-code", + "value": "A83008" + } + ], + "type": [ + { + "coding": [ + { + "system": "https://fhir.nhs.uk/CodeSystem/organisation-role", + "code": "76", + "display": "GP PRACTICE" + } + ] + } + ], + "name": "HALLGARTH SURGERY", + "address": [ + { + "use": "work", + "type": "both", + "line": [ + "HALLGARTH SURGERY", + "CHEAPSIDE" + ], + "city": "SHILDON", + "district": "COUNTY DURHAM", + "postalCode": "DL4 2HP" + } + ], + "telecom": [ + { + "system": "phone", + "value": "0115 9737320", + "use": "work" + } + ], + "partOf": { + "identifier": { + "system": "https://fhir.nhs.uk/Id/ods-organization-code", + "value": "84H" + }, + "display": "NHS COUNTY DURHAM CCG" + } + } + } + ] +} diff --git a/src/test/resources/examples/full_examples/primary-care/acute/no-nominated-pharmacy/medical-prescriber/author/gmc/responsible-party/din/1-Prepare-Response-200_OK.json b/src/test/resources/examples/full_examples/primary-care/acute/no-nominated-pharmacy/medical-prescriber/author/gmc/responsible-party/din/1-Prepare-Response-200_OK.json new file mode 100644 index 00000000..718685a8 --- /dev/null +++ b/src/test/resources/examples/full_examples/primary-care/acute/no-nominated-pharmacy/medical-prescriber/author/gmc/responsible-party/din/1-Prepare-Response-200_OK.json @@ -0,0 +1,17 @@ +{ + "resourceType": "Parameters", + "parameter": [ + { + "name": "digest", + "valueString": "PFNpZ25lZEluZm8geG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvMDkveG1sZHNpZyMiPjxDYW5vbmljYWxpemF0aW9uTWV0aG9kIEFsZ29yaXRobT0iaHR0cDovL3d3dy53My5vcmcvMjAwMS8xMC94bWwtZXhjLWMxNG4jIj48L0Nhbm9uaWNhbGl6YXRpb25NZXRob2Q+PFNpZ25hdHVyZU1ldGhvZCBBbGdvcml0aG09Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvMDkveG1sZHNpZyNyc2Etc2hhMSI+PC9TaWduYXR1cmVNZXRob2Q+PFJlZmVyZW5jZT48VHJhbnNmb3Jtcz48VHJhbnNmb3JtIEFsZ29yaXRobT0iaHR0cDovL3d3dy53My5vcmcvMjAwMS8xMC94bWwtZXhjLWMxNG4jIj48L1RyYW5zZm9ybT48L1RyYW5zZm9ybXM+PERpZ2VzdE1ldGhvZCBBbGdvcml0aG09Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvMDkveG1sZHNpZyNzaGExIj48L0RpZ2VzdE1ldGhvZD48RGlnZXN0VmFsdWU+elc4czZ4V3lZcUpaNzFDYyt6Rks3TXhkZVlJPTwvRGlnZXN0VmFsdWU+PC9SZWZlcmVuY2U+PC9TaWduZWRJbmZvPg==" + }, + { + "name": "timestamp", + "valueString": "2022-10-25T10:24:34+00:00" + }, + { + "name": "algorithm", + "valueString": "RS1" + } + ] +} diff --git a/src/test/resources/examples/full_examples/primary-care/acute/no-nominated-pharmacy/medical-prescriber/author/gmc/responsible-party/din/1-Process-Request-Send-200_OK.json b/src/test/resources/examples/full_examples/primary-care/acute/no-nominated-pharmacy/medical-prescriber/author/gmc/responsible-party/din/1-Process-Request-Send-200_OK.json new file mode 100644 index 00000000..6d00b9d8 --- /dev/null +++ b/src/test/resources/examples/full_examples/primary-care/acute/no-nominated-pharmacy/medical-prescriber/author/gmc/responsible-party/din/1-Process-Request-Send-200_OK.json @@ -0,0 +1,505 @@ +{ + "resourceType": "Bundle", + "id": "0cb82cfa-76c8-4fb2-a08e-bf0e326e5487", + "meta": { + "lastUpdated": "2022-10-21T13:47:00+00:00" + }, + "identifier": { + "system": "https://tools.ietf.org/html/rfc4122", + "value": "a11a6118-634e-4e7e-a01b-cc2addb1b993" +}, + "type": "message", + "entry": [ + { + "fullUrl": "urn:uuid:17773b27-427e-4940-8c16-64cdac715001", + "resource": { + "resourceType": "MessageHeader", + "eventCoding": { + "system": "https://fhir.nhs.uk/CodeSystem/message-event", + "code": "prescription-order", + "display": "Prescription Order" + }, + "sender": { + "identifier": { + "system": "https://fhir.nhs.uk/Id/ods-organization-code", + "value": "A83008" + }, + "display": "HALLGARTH SURGERY" + }, + "source": { + "endpoint": "https://directory.spineservices.nhs.uk/STU3/Organization/A83008" + }, + "destination": [ + { + "endpoint": "https://sandbox.api.service.nhs.uk/electronic-prescriptions/$post-message", + "receiver": { + "identifier": { + "system": "https://fhir.nhs.uk/Id/ods-organization-code", + "value": "VNE51" + } + } + } + ], + "focus": [ + { + "reference": "urn:uuid:56166769-c1c4-4d07-afa8-132b5dfca666" + }, + { + "reference": "urn:uuid:5cb17f5a-11ac-4e18-825f-6470467238b3" + }, + { + "reference": "urn:uuid:a54219b8-f741-4c47-b662-e4f8dfa49ab6" + } + ] + } + }, + { + "fullUrl": "urn:uuid:a54219b8-f741-4c47-b662-e4f8dfa49ab6", + "resource": { + "resourceType": "MedicationRequest", + "extension": [ + { + "url": "https://fhir.nhs.uk/StructureDefinition/Extension-DM-PrescriptionType", + "valueCoding": { + "system": "https://fhir.nhs.uk/CodeSystem/prescription-type", + "code": "0101", + "display": "Primary Care Prescriber - Medical Prescriber" + } + } + ], + "identifier": [ + { + "system": "https://fhir.nhs.uk/Id/prescription-order-item-number", + "value": "299c610b-f4f1-4eac-a7d7-4fb6b0556e11" + } + ], + "status": "active", + "intent": "order", + "category": [ + { + "coding": [ + { + "system": "http://terminology.hl7.org/CodeSystem/medicationrequest-category", + "code": "community", + "display": "Community" + } + ] + } + ], + "medicationCodeableConcept": { + "coding": [ + { + "system": "http://snomed.info/sct", + "code": "322237000", + "display": "Paracetamol 500mg soluble tablets" + } + ] + }, + "subject": { + "reference": "urn:uuid:78d3c2eb-009e-4ec8-a358-b042954aa9b2" + }, + "requester": { + "reference": "urn:uuid:56166769-c1c4-4d07-afa8-132b5dfca666" + }, + "groupIdentifier": { + "extension": [ + { + "url": "https://fhir.nhs.uk/StructureDefinition/Extension-DM-PrescriptionId", + "valueIdentifier": { + "system": "https://fhir.nhs.uk/Id/prescription", + "value": "c59b0ad3-b6c9-49f1-a50a-0595b97c503d" + } + } + ], + "system": "https://fhir.nhs.uk/Id/prescription-order-number", + "value": "315A44-A83008-4C9BB1" + }, + "courseOfTherapyType": { + "coding": [ + { + "system": "http://terminology.hl7.org/CodeSystem/medicationrequest-course-of-therapy", + "code": "acute", + "display": "Short course (acute) therapy" + } + ] + }, + "dosageInstruction": [ + { + "text": "4 times a day - Oral", + "timing": { + "repeat": { + "frequency": 4, + "period": 1, + "periodUnit": "d" + } + }, + "route": { + "coding": [ + { + "system": "http://snomed.info/sct", + "code": "26643006", + "display": "Oral" + } + ] + } + } + ], + "dispenseRequest": { + "extension": [ + { + "url": "https://fhir.nhs.uk/StructureDefinition/Extension-DM-PerformerSiteType", + "valueCoding": { + "system": "https://fhir.nhs.uk/CodeSystem/dispensing-site-preference", + "code": "0004" + } + } + ], + "validityPeriod": { + "start": "2021-05-07", + "end": "2021-06-04" + }, + "expectedSupplyDuration": { + "value": 30, + "unit": "day", + "system": "http://unitsofmeasure.org", + "code": "d" + }, + "quantity": { + "value": 100, + "unit": "tablet", + "system": "http://snomed.info/sct", + "code": "428673006" + } + }, + "substitution": { + "allowedBoolean": false + } + } + }, + { + "fullUrl": "urn:uuid:5cb17f5a-11ac-4e18-825f-6470467238b3", + "resource": { + "resourceType": "MedicationRequest", + "extension": [ + { + "url": "https://fhir.nhs.uk/StructureDefinition/Extension-DM-PrescriptionType", + "valueCoding": { + "system": "https://fhir.nhs.uk/CodeSystem/prescription-type", + "code": "0101", + "display": "Primary Care Prescriber - Medical Prescriber" + } + } + ], + "identifier": [ + { + "system": "https://fhir.nhs.uk/Id/prescription-order-item-number", + "value": "5cb17f5a-11ac-4e18-825f-6470467238b3" + } + ], + "status": "active", + "intent": "order", + "category": [ + { + "coding": [ + { + "system": "http://terminology.hl7.org/CodeSystem/medicationrequest-category", + "code": "community", + "display": "Community" + } + ] + } + ], + "medicationCodeableConcept": { + "coding": [ + { + "system": "http://snomed.info/sct", + "code": "39113611000001102", + "display": "Salbutamol 100micrograms/dose inhaler CFC free" + } + ] + }, + "subject": { + "reference": "urn:uuid:78d3c2eb-009e-4ec8-a358-b042954aa9b2" + }, + "requester": { + "reference": "urn:uuid:56166769-c1c4-4d07-afa8-132b5dfca666" + }, + "groupIdentifier": { + "extension": [ + { + "url": "https://fhir.nhs.uk/StructureDefinition/Extension-DM-PrescriptionId", + "valueIdentifier": { + "system": "https://fhir.nhs.uk/Id/prescription", + "value": "c59b0ad3-b6c9-49f1-a50a-0595b97c503d" + } + } + ], + "system": "https://fhir.nhs.uk/Id/prescription-order-number", + "value": "315A44-A83008-4C9BB1" + }, + "courseOfTherapyType": { + "coding": [ + { + "system": "http://terminology.hl7.org/CodeSystem/medicationrequest-course-of-therapy", + "code": "acute", + "display": "Short course (acute) therapy" + } + ] + }, + "dosageInstruction": [ + { + "text": "5 times a day - Inhalation", + "timing": { + "repeat": { + "frequency": 5, + "period": 1, + "periodUnit": "d" + } + }, + "route": { + "coding": [ + { + "system": "http://snomed.info/sct", + "code": "18679011000001101", + "display": "Inhalation" + } + ] + } + } + ], + "dispenseRequest": { + "extension": [ + { + "url": "https://fhir.nhs.uk/StructureDefinition/Extension-DM-PerformerSiteType", + "valueCoding": { + "system": "https://fhir.nhs.uk/CodeSystem/dispensing-site-preference", + "code": "0004" + } + } + ], + "validityPeriod": { + "start": "2021-05-07", + "end": "2021-06-04" + }, + "expectedSupplyDuration": { + "value": 30, + "unit": "day", + "system": "http://unitsofmeasure.org", + "code": "d" + }, + "quantity": { + "value": 200, + "unit": "dose", + "system": "http://snomed.info/sct", + "code": "3317411000001100" + } + }, + "substitution": { + "allowedBoolean": false + } + } + }, + { + "fullUrl": "urn:uuid:78d3c2eb-009e-4ec8-a358-b042954aa9b2", + "resource": { + "resourceType": "Patient", + "identifier": [ + { + "system": "https://fhir.nhs.uk/Id/nhs-number", + "value": "9990548609" + } + ], + "name": [ + { + "use": "usual", + "family": "XXTESTPATIENT-TGNP", + "given": [ + "DONOTUSE" + ], + "prefix": [ + "MR" + ] + } + ], + "gender": "male", + "birthDate": "1932-01-06", + "address": [ + { + "use": "home", + "line": [ + "1 Trevelyan Square", + "Boar Lane", + "Leeds", + "West Yorkshire" + ], + "postalCode": "LS1 6AE" + } + ], + "generalPractitioner": [ + { + "identifier": { + "system": "https://fhir.nhs.uk/Id/ods-organization-code", + "value": "A83008" + } + } + ] + } + }, + { + "fullUrl": "urn:uuid:56166769-c1c4-4d07-afa8-132b5dfca666", + "resource": { + "resourceType": "PractitionerRole", + "identifier": [ + { + "system": "https://fhir.nhs.uk/Id/sds-role-profile-id", + "value": "200102238987" + } + ], + "practitioner": { + "reference": "urn:uuid:a8c85454-f8cb-498d-9629-78e2cb5fa47a" + }, + "organization": { + "reference": "urn:uuid:3b4b03a5-52ba-4ba6-9b82-70350aa109d8" + }, + "code": [ + { + "coding": [ + { + "system": "https://fhir.nhs.uk/CodeSystem/NHSDigital-SDS-JobRoleCode", + "code": "S8000:G8000:R8000", + "display": "Clinical Practitioner Access Role" + } + ] + } + ], + "telecom": [ + { + "system": "phone", + "value": "01234567890", + "use": "work" + } + ] + } + }, + { + "fullUrl": "urn:uuid:a8c85454-f8cb-498d-9629-78e2cb5fa47a", + "resource": { + "resourceType": "Practitioner", + "identifier": [ + { + "system": "https://fhir.nhs.uk/Id/sds-user-id", + "value": "555086689106" + }, + { + "system": "https://fhir.hl7.org.uk/Id/gmc-number", + "value": "6095103" + }, + { + "system": "https://fhir.hl7.org.uk/Id/din-number", + "value": "977677" + } + ], + "name": [ + { + "family": "BOIN", + "given": [ + "C" + ], + "prefix": [ + "DR" + ] + } + ] + } + }, + { + "fullUrl": "urn:uuid:3b4b03a5-52ba-4ba6-9b82-70350aa109d8", + "resource": { + "resourceType": "Organization", + "identifier": [ + { + "system": "https://fhir.nhs.uk/Id/ods-organization-code", + "value": "A83008" + } + ], + "type": [ + { + "coding": [ + { + "system": "https://fhir.nhs.uk/CodeSystem/organisation-role", + "code": "76", + "display": "GP PRACTICE" + } + ] + } + ], + "name": "HALLGARTH SURGERY", + "address": [ + { + "use": "work", + "type": "both", + "line": [ + "HALLGARTH SURGERY", + "CHEAPSIDE" + ], + "city": "SHILDON", + "district": "COUNTY DURHAM", + "postalCode": "DL4 2HP" + } + ], + "telecom": [ + { + "system": "phone", + "value": "0115 9737320", + "use": "work" + } + ], + "partOf": { + "identifier": { + "system": "https://fhir.nhs.uk/Id/ods-organization-code", + "value": "84H" + }, + "display": "NHS COUNTY DURHAM CCG" + } + } + }, + { + "fullUrl": "urn:uuid:28828c55-8fa7-42d7-916f-fcf076e0c10e", + "resource": { + "resourceType": "Provenance", + "id": "28828c55-8fa7-42d7-916f-fcf076e0c10e", + "target": [ + { + "reference": "urn:uuid:a54219b8-f741-4c47-b662-e4f8dfa49ab6" + }, + { + "reference": "urn:uuid:5cb17f5a-11ac-4e18-825f-6470467238b3" + } + ], + "recorded": "2021-02-11T16:32:11+00:00", + "agent": [ + { + "who": { + "reference": "urn:uuid:56166769-c1c4-4d07-afa8-132b5dfca666" + } + } + ], + "signature": [ + { + "type": [ + { + "system": "urn:iso-astm:E1762-95:2013", + "code": "1.2.840.10065.1.12.1.1" + } + ], + "when": "2021-05-07T14:47:56+00:00", + "who": { + "reference": "urn:uuid:56166769-c1c4-4d07-afa8-132b5dfca666" + }, + "data": "DQo8U2lnbmF0dXJlIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwLzA5L3htbGRzaWcjIj4NCiAgICA8U2lnbmVkSW5mbz48Q2Fub25pY2FsaXphdGlvbk1ldGhvZCBBbGdvcml0aG09Imh0dHA6Ly93d3cudzMub3JnLzIwMDEvMTAveG1sLWV4Yy1jMTRuIyI+PC9DYW5vbmljYWxpemF0aW9uTWV0aG9kPjxTaWduYXR1cmVNZXRob2QgQWxnb3JpdGhtPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwLzA5L3htbGRzaWcjcnNhLXNoYTEiPjwvU2lnbmF0dXJlTWV0aG9kPjxSZWZlcmVuY2U+PFRyYW5zZm9ybXM+PFRyYW5zZm9ybSBBbGdvcml0aG09Imh0dHA6Ly93d3cudzMub3JnLzIwMDEvMTAveG1sLWV4Yy1jMTRuIyI+PC9UcmFuc2Zvcm0+PC9UcmFuc2Zvcm1zPjxEaWdlc3RNZXRob2QgQWxnb3JpdGhtPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwLzA5L3htbGRzaWcjc2hhMSI+PC9EaWdlc3RNZXRob2Q+PERpZ2VzdFZhbHVlPmVZQ3ZscXZncGlSZU1uK3BRajg3ODRGMmJMOD08L0RpZ2VzdFZhbHVlPjwvUmVmZXJlbmNlPjwvU2lnbmVkSW5mbz4NCiAgICA8U2lnbmF0dXJlVmFsdWU+RmJPWmRJQ3Npb2RKejZlaDRrZy92RnV2RW1HL2QzNjh3am5jTUxyYWJxZW0xNjhSNkdVc0ZHTXRKT05PYlk3c0VZVXZRQ3FjdE81Smx3aU43Wm9teDdXRWs4WDAvZ1RVYkdlcGRiVFEzenp1dWhHb2xWNXhXdW5jeS9qSDc3NTF6d0JnN3hLVG5RdEhZMzNISjU1ZmVTN1JJbURMbmZBZHpuZkVidFU2TGE0PTwvU2lnbmF0dXJlVmFsdWU+DQogICAgPEtleUluZm8+DQogICAgICAgIDxYNTA5RGF0YT4NCiAgICAgICAgICAgIDxYNTA5Q2VydGlmaWNhdGU+TUlJRHVEQ0NBcUNnQXdJQkFnSUVYY210SHpBTkJna3Foa2lHOXcwQkFRc0ZBREEyTVF3d0NnWURWUVFLRXdOdWFITXhDekFKQmdOVkJBc1RBa05CTVJrd0Z3WURWUVFERXhCT1NGTWdTVTVVSUV4bGRtVnNJREZFTUI0WERUSXdNVEF5TWpFd01qRTFOVm9YRFRJeU1UQXlNakV3TlRFMU5Wb3dRekVNTUFvR0ExVUVDaE1EYm1oek1ROHdEUVlEVlFRTEV3WlFaVzl3YkdVeElqQWdCZ05WQkFNTUdUVTFOVEkxTXpVeU1URXdPRjlTUVU1RVQwMWZWVk5GVWxFd2daOHdEUVlKS29aSWh2Y05BUUVCQlFBRGdZMEFNSUdKQW9HQkFLdDRzek53N09BSDdBUVJyRGUveEJJbXNNbU1pUzlFc3JUM2EzcC9MaDNicmR6STlhYWpUVVoyYi9jdmJPYTdQZVlkN3UrSzRhMlpkMFhrKzBHRm1ZR3pTVlg2aVlqYmx3cjB2YWkzMXpWN0crbEd2SHhINnBTb0xDd0lDYVpBRndhYmVENU96OTQreUEzYVdOV3RHVjBEZmg5cXdIM1pGQ0lNUnN2ZXJOMXBBZ01CQUFHamdnRkRNSUlCUHpBT0JnTlZIUThCQWY4RUJBTUNCa0F3WlFZRFZSMGdBUUgvQkZzd1dUQlhCZ3NxaGpvQWlYdG1BQU1DQURCSU1FWUdDQ3NHQVFVRkJ3SUJGanBvZEhSd2N6b3ZMM0JyYVM1dWFITXVkV3N2WTJWeWRHbG1hV05oZEdWZmNHOXNhV05wWlhNdlkyOXVkR1Z1ZEY5amIyMXRhWFJ0Wlc1ME1ETUdBMVVkSHdRc01Db3dLS0Ftb0NTR0ltaDBkSEE2THk5amNtd3VibWh6TG5WckwybHVkQzh4WkM5amNteGpNeTVqY213d0t3WURWUjBRQkNRd0lvQVBNakF5TURFd01qSXhNREl4TlRWYWdROHlNREl5TURNeE56RXdOVEUxTlZvd0h3WURWUjBqQkJnd0ZvQVVvSllmZ1lUTlBkNkVVS0w2UUxJekh4WTVQRkl3SFFZRFZSME9CQllFRkx0eXZZU3lhcWc2MEFFVVpneGswd3JqUkpjK01Ba0dBMVVkRXdRQ01BQXdHUVlKS29aSWh2WjlCMEVBQkF3d0Noc0VWamd1TXdNQ0JMQXdEUVlKS29aSWh2Y05BUUVMQlFBRGdnRUJBQmN6eThCOGp1UHBJZmFUTkZjeHJDMjJhQ1gveFlabWhyTC9OdklCQWFYMUc1aGppd21rR0tFMmhSVElyNjdQeFp4bVhzSnhpZ1JCTUhQbEkrbFkvK29rekgwR2k3YjVicWx3N3B4R0lnSk8wMDB3OHBGc3ZvOXc0MklZaEhvZHN2bkRWU3hoTVQwSjQ2UWhrOXNvRTBMam9FVUxLUVBQbFlHa2UvR2wzbTE3SXRGWXdPYlFIMGZNRXdtaXFCeWVJZno3Z1NjY096TDVjSXA2UGNaVE9qbzJJcVFwZ0VtaGpPY1JJbkVxQU5pdFNkam9pSkFKenBhYVpqWVRSZEhVWDdpN2FqRWlING05MW5GVys0QXFrTnR0bGI0V2NHS3NTbVdnZktLaGVGNElvWktNRTgweGVyU2dNeTh2dGpMT0JKQ0dYejB3TEdtUXVSbXhNVHE4OHE0PTwvWDUwOUNlcnRpZmljYXRlPg0KICAgICAgICA8L1g1MDlEYXRhPg0KICAgIDwvS2V5SW5mbz4NCjwvU2lnbmF0dXJlPg0K" + } + ] + } + } + ] +} diff --git a/src/test/resources/examples/full_examples/primary-care/acute/no-nominated-pharmacy/medical-prescriber/author/gmc/responsible-party/din/IsleOfMan-1-Prepare-Request-200_OK.json b/src/test/resources/examples/full_examples/primary-care/acute/no-nominated-pharmacy/medical-prescriber/author/gmc/responsible-party/din/IsleOfMan-1-Prepare-Request-200_OK.json new file mode 100644 index 00000000..a2f614c1 --- /dev/null +++ b/src/test/resources/examples/full_examples/primary-care/acute/no-nominated-pharmacy/medical-prescriber/author/gmc/responsible-party/din/IsleOfMan-1-Prepare-Request-200_OK.json @@ -0,0 +1,467 @@ +{ + "resourceType": "Bundle", + "id": "0cb82cfa-76c8-4fb2-a08e-bf0e326e5487", + "meta": { + "lastUpdated": "2022-10-21T13:47:00+00:00" + }, + "identifier": { + "system": "https://tools.ietf.org/html/rfc4122", + "value": "5ca1d5d1-fe4f-4c14-8584-7089d2000219" + }, + "type": "message", + "entry": [ + { + "fullUrl": "urn:uuid:17773b27-427e-4940-8c16-64cdac715001", + "resource": { + "resourceType": "MessageHeader", + "eventCoding": { + "system": "https://fhir.nhs.uk/CodeSystem/message-event", + "code": "prescription-order", + "display": "Prescription Order" + }, + "sender": { + "identifier": { + "system": "https://fhir.nhs.uk/Id/ods-organization-code", + "value": "A83008" + }, + "display": "HALLGARTH SURGERY" + }, + "source": { + "endpoint": "https://directory.spineservices.nhs.uk/STU3/Organization/A83008" + }, + "destination": [ + { + "endpoint": "https://sandbox.api.service.nhs.uk/electronic-prescriptions/$post-message", + "receiver": { + "identifier": { + "system": "https://fhir.nhs.uk/Id/ods-organization-code", + "value": "VNE51" + } + } + } + ], + "focus": [ + { + "reference": "urn:uuid:56166769-c1c4-4d07-afa8-132b5dfca666" + }, + { + "reference": "urn:uuid:5cb17f5a-11ac-4e18-825f-6470467238b3" + }, + { + "reference": "urn:uuid:a54219b8-f741-4c47-b662-e4f8dfa49ab6" + } + ] + } + }, + { + "fullUrl": "urn:uuid:a54219b8-f741-4c47-b662-e4f8dfa49ab6", + "resource": { + "resourceType": "MedicationRequest", + "extension": [ + { + "url": "https://fhir.nhs.uk/StructureDefinition/Extension-DM-PrescriptionType", + "valueCoding": { + "system": "https://fhir.nhs.uk/CodeSystem/prescription-type", + "code": "0501", + "display": "Primary Care Prescriber - Medical Prescriber" + } + } + ], + "identifier": [ + { + "system": "https://fhir.nhs.uk/Id/prescription-order-item-number", + "value": "299c610b-f4f1-4eac-a7d7-4fb6b0556e11" + } + ], + "status": "active", + "intent": "order", + "category": [ + { + "coding": [ + { + "system": "http://terminology.hl7.org/CodeSystem/medicationrequest-category", + "code": "community", + "display": "Community" + } + ] + } + ], + "medicationCodeableConcept": { + "coding": [ + { + "system": "http://snomed.info/sct", + "code": "322237000", + "display": "Paracetamol 500mg soluble tablets" + } + ] + }, + "subject": { + "reference": "urn:uuid:78d3c2eb-009e-4ec8-a358-b042954aa9b2" + }, + "requester": { + "reference": "urn:uuid:56166769-c1c4-4d07-afa8-132b5dfca666" + }, + "groupIdentifier": { + "extension": [ + { + "url": "https://fhir.nhs.uk/StructureDefinition/Extension-DM-PrescriptionId", + "valueIdentifier": { + "system": "https://fhir.nhs.uk/Id/prescription", + "value": "c59b0ad3-b6c9-49f1-a50a-0595b97c503d" + } + } + ], + "system": "https://fhir.nhs.uk/Id/prescription-order-number", + "value": "315A44-A83008-4C9BB1" + }, + "courseOfTherapyType": { + "coding": [ + { + "system": "http://terminology.hl7.org/CodeSystem/medicationrequest-course-of-therapy", + "code": "acute", + "display": "Short course (acute) therapy" + } + ] + }, + "dosageInstruction": [ + { + "text": "4 times a day - Oral", + "timing": { + "repeat": { + "frequency": 4, + "period": 1, + "periodUnit": "d" + } + }, + "route": { + "coding": [ + { + "system": "http://snomed.info/sct", + "code": "26643006", + "display": "Oral" + } + ] + } + } + ], + "dispenseRequest": { + "extension": [ + { + "url": "https://fhir.nhs.uk/StructureDefinition/Extension-DM-PerformerSiteType", + "valueCoding": { + "system": "https://fhir.nhs.uk/CodeSystem/dispensing-site-preference", + "code": "0004" + } + } + ], + "validityPeriod": { + "start": "2021-05-07", + "end": "2021-06-04" + }, + "expectedSupplyDuration": { + "value": 30, + "unit": "day", + "system": "http://unitsofmeasure.org", + "code": "d" + }, + "quantity": { + "value": 100, + "unit": "tablet", + "system": "http://snomed.info/sct", + "code": "428673006" + } + }, + "substitution": { + "allowedBoolean": false + } + } + }, + { + "fullUrl": "urn:uuid:5cb17f5a-11ac-4e18-825f-6470467238b3", + "resource": { + "resourceType": "MedicationRequest", + "extension": [ + { + "url": "https://fhir.nhs.uk/StructureDefinition/Extension-DM-PrescriptionType", + "valueCoding": { + "system": "https://fhir.nhs.uk/CodeSystem/prescription-type", + "code": "0501", + "display": "Primary Care Prescriber - Medical Prescriber" + } + } + ], + "identifier": [ + { + "system": "https://fhir.nhs.uk/Id/prescription-order-item-number", + "value": "5cb17f5a-11ac-4e18-825f-6470467238b3" + } + ], + "status": "active", + "intent": "order", + "category": [ + { + "coding": [ + { + "system": "http://terminology.hl7.org/CodeSystem/medicationrequest-category", + "code": "community", + "display": "Community" + } + ] + } + ], + "medicationCodeableConcept": { + "coding": [ + { + "system": "http://snomed.info/sct", + "code": "39113611000001102", + "display": "Salbutamol 100micrograms/dose inhaler CFC free" + } + ] + }, + "subject": { + "reference": "urn:uuid:78d3c2eb-009e-4ec8-a358-b042954aa9b2" + }, + "requester": { + "reference": "urn:uuid:56166769-c1c4-4d07-afa8-132b5dfca666" + }, + "groupIdentifier": { + "extension": [ + { + "url": "https://fhir.nhs.uk/StructureDefinition/Extension-DM-PrescriptionId", + "valueIdentifier": { + "system": "https://fhir.nhs.uk/Id/prescription", + "value": "c59b0ad3-b6c9-49f1-a50a-0595b97c503d" + } + } + ], + "system": "https://fhir.nhs.uk/Id/prescription-order-number", + "value": "315A44-A83008-4C9BB1" + }, + "courseOfTherapyType": { + "coding": [ + { + "system": "http://terminology.hl7.org/CodeSystem/medicationrequest-course-of-therapy", + "code": "acute", + "display": "Short course (acute) therapy" + } + ] + }, + "dosageInstruction": [ + { + "text": "5 times a day - Inhalation", + "timing": { + "repeat": { + "frequency": 5, + "period": 1, + "periodUnit": "d" + } + }, + "route": { + "coding": [ + { + "system": "http://snomed.info/sct", + "code": "18679011000001101", + "display": "Inhalation" + } + ] + } + } + ], + "dispenseRequest": { + "extension": [ + { + "url": "https://fhir.nhs.uk/StructureDefinition/Extension-DM-PerformerSiteType", + "valueCoding": { + "system": "https://fhir.nhs.uk/CodeSystem/dispensing-site-preference", + "code": "0004" + } + } + ], + "validityPeriod": { + "start": "2021-05-07", + "end": "2021-06-04" + }, + "expectedSupplyDuration": { + "value": 30, + "unit": "day", + "system": "http://unitsofmeasure.org", + "code": "d" + }, + "quantity": { + "value": 200, + "unit": "dose", + "system": "http://snomed.info/sct", + "code": "3317411000001100" + } + }, + "substitution": { + "allowedBoolean": false + } + } + }, + { + "fullUrl": "urn:uuid:78d3c2eb-009e-4ec8-a358-b042954aa9b2", + "resource": { + "resourceType": "Patient", + "identifier": [ + { + "system": "https://fhir.nhs.uk/Id/nhs-number", + "value": "9990548609" + } + ], + "name": [ + { + "use": "usual", + "family": "XXTESTPATIENT-TGNP", + "given": [ + "DONOTUSE" + ], + "prefix": [ + "MR" + ] + } + ], + "gender": "male", + "birthDate": "1932-01-06", + "address": [ + { + "use": "home", + "line": [ + "1 Trevelyan Square", + "Boar Lane", + "Leeds", + "West Yorkshire" + ], + "postalCode": "LS1 6AE" + } + ], + "generalPractitioner": [ + { + "identifier": { + "system": "https://fhir.nhs.uk/Id/ods-organization-code", + "value": "A83008" + } + } + ] + } + }, + { + "fullUrl": "urn:uuid:56166769-c1c4-4d07-afa8-132b5dfca666", + "resource": { + "resourceType": "PractitionerRole", + "identifier": [ + { + "system": "https://fhir.nhs.uk/Id/sds-role-profile-id", + "value": "200102238987" + } + ], + "practitioner": { + "reference": "urn:uuid:a8c85454-f8cb-498d-9629-78e2cb5fa47a" + }, + "organization": { + "reference": "urn:uuid:3b4b03a5-52ba-4ba6-9b82-70350aa109d8" + }, + "code": [ + { + "coding": [ + { + "system": "https://fhir.nhs.uk/CodeSystem/NHSDigital-SDS-JobRoleCode", + "code": "S8000:G8000:R8000", + "display": "Clinical Practitioner Access Role" + } + ] + } + ], + "telecom": [ + { + "system": "phone", + "value": "01234567890", + "use": "work" + } + ] + } + }, + { + "fullUrl": "urn:uuid:a8c85454-f8cb-498d-9629-78e2cb5fa47a", + "resource": { + "resourceType": "Practitioner", + "identifier": [ + { + "system": "https://fhir.nhs.uk/Id/sds-user-id", + "value": "555086689106" + }, + { + "system": "https://fhir.hl7.org.uk/Id/gmc-number", + "value": "6095103" + }, + { + "system": "https://fhir.hl7.org.uk/Id/din-number", + "value": "977677" + } + ], + "name": [ + { + "family": "BOIN", + "given": [ + "C" + ], + "prefix": [ + "DR" + ] + } + ] + } + }, + { + "fullUrl": "urn:uuid:3b4b03a5-52ba-4ba6-9b82-70350aa109d8", + "resource": { + "resourceType": "Organization", + "identifier": [ + { + "system": "https://fhir.nhs.uk/Id/ods-organization-code", + "value": "A83008" + } + ], + "type": [ + { + "coding": [ + { + "system": "https://fhir.nhs.uk/CodeSystem/organisation-role", + "code": "76", + "display": "GP PRACTICE" + } + ] + } + ], + "name": "HALLGARTH SURGERY", + "address": [ + { + "use": "work", + "type": "both", + "line": [ + "HALLGARTH SURGERY", + "CHEAPSIDE" + ], + "city": "SHILDON", + "district": "COUNTY DURHAM", + "postalCode": "DL4 2HP" + } + ], + "telecom": [ + { + "system": "phone", + "value": "0115 9737320", + "use": "work" + } + ], + "partOf": { + "identifier": { + "system": "https://fhir.nhs.uk/Id/ods-organization-code", + "value": "84H" + }, + "display": "NHS COUNTY DURHAM CCG" + } + } + } + ] +} diff --git a/src/test/resources/examples/full_examples/primary-care/acute/no-nominated-pharmacy/medical-prescriber/author/gmc/responsible-party/din/Wales-1-Prepare-Request-200_OK.json b/src/test/resources/examples/full_examples/primary-care/acute/no-nominated-pharmacy/medical-prescriber/author/gmc/responsible-party/din/Wales-1-Prepare-Request-200_OK.json new file mode 100644 index 00000000..aed1d557 --- /dev/null +++ b/src/test/resources/examples/full_examples/primary-care/acute/no-nominated-pharmacy/medical-prescriber/author/gmc/responsible-party/din/Wales-1-Prepare-Request-200_OK.json @@ -0,0 +1,467 @@ +{ + "resourceType": "Bundle", + "id": "0cb82cfa-76c8-4fb2-a08e-bf0e326e5487", + "meta": { + "lastUpdated": "2022-10-21T13:47:00+00:00" + }, + "identifier": { + "system": "https://tools.ietf.org/html/rfc4122", + "value": "5ca1d5d1-fe4f-4c14-8584-7089d2000219" + }, + "type": "message", + "entry": [ + { + "fullUrl": "urn:uuid:17773b27-427e-4940-8c16-64cdac715001", + "resource": { + "resourceType": "MessageHeader", + "eventCoding": { + "system": "https://fhir.nhs.uk/CodeSystem/message-event", + "code": "prescription-order", + "display": "Prescription Order" + }, + "sender": { + "identifier": { + "system": "https://fhir.nhs.uk/Id/ods-organization-code", + "value": "A83008" + }, + "display": "HALLGARTH SURGERY" + }, + "source": { + "endpoint": "https://directory.spineservices.nhs.uk/STU3/Organization/A83008" + }, + "destination": [ + { + "endpoint": "https://sandbox.api.service.nhs.uk/electronic-prescriptions/$post-message", + "receiver": { + "identifier": { + "system": "https://fhir.nhs.uk/Id/ods-organization-code", + "value": "VNE51" + } + } + } + ], + "focus": [ + { + "reference": "urn:uuid:56166769-c1c4-4d07-afa8-132b5dfca666" + }, + { + "reference": "urn:uuid:5cb17f5a-11ac-4e18-825f-6470467238b3" + }, + { + "reference": "urn:uuid:a54219b8-f741-4c47-b662-e4f8dfa49ab6" + } + ] + } + }, + { + "fullUrl": "urn:uuid:a54219b8-f741-4c47-b662-e4f8dfa49ab6", + "resource": { + "resourceType": "MedicationRequest", + "extension": [ + { + "url": "https://fhir.nhs.uk/StructureDefinition/Extension-DM-PrescriptionType", + "valueCoding": { + "system": "https://fhir.nhs.uk/CodeSystem/prescription-type", + "code": "0201", + "display": "Primary Care Prescriber - Medical Prescriber" + } + } + ], + "identifier": [ + { + "system": "https://fhir.nhs.uk/Id/prescription-order-item-number", + "value": "299c610b-f4f1-4eac-a7d7-4fb6b0556e11" + } + ], + "status": "active", + "intent": "order", + "category": [ + { + "coding": [ + { + "system": "http://terminology.hl7.org/CodeSystem/medicationrequest-category", + "code": "community", + "display": "Community" + } + ] + } + ], + "medicationCodeableConcept": { + "coding": [ + { + "system": "http://snomed.info/sct", + "code": "322237000", + "display": "Paracetamol 500mg soluble tablets" + } + ] + }, + "subject": { + "reference": "urn:uuid:78d3c2eb-009e-4ec8-a358-b042954aa9b2" + }, + "requester": { + "reference": "urn:uuid:56166769-c1c4-4d07-afa8-132b5dfca666" + }, + "groupIdentifier": { + "extension": [ + { + "url": "https://fhir.nhs.uk/StructureDefinition/Extension-DM-PrescriptionId", + "valueIdentifier": { + "system": "https://fhir.nhs.uk/Id/prescription", + "value": "c59b0ad3-b6c9-49f1-a50a-0595b97c503d" + } + } + ], + "system": "https://fhir.nhs.uk/Id/prescription-order-number", + "value": "315A44-A83008-4C9BB1" + }, + "courseOfTherapyType": { + "coding": [ + { + "system": "http://terminology.hl7.org/CodeSystem/medicationrequest-course-of-therapy", + "code": "acute", + "display": "Short course (acute) therapy" + } + ] + }, + "dosageInstruction": [ + { + "text": "4 times a day - Oral", + "timing": { + "repeat": { + "frequency": 4, + "period": 1, + "periodUnit": "d" + } + }, + "route": { + "coding": [ + { + "system": "http://snomed.info/sct", + "code": "26643006", + "display": "Oral" + } + ] + } + } + ], + "dispenseRequest": { + "extension": [ + { + "url": "https://fhir.nhs.uk/StructureDefinition/Extension-DM-PerformerSiteType", + "valueCoding": { + "system": "https://fhir.nhs.uk/CodeSystem/dispensing-site-preference", + "code": "0004" + } + } + ], + "validityPeriod": { + "start": "2021-05-07", + "end": "2021-06-04" + }, + "expectedSupplyDuration": { + "value": 30, + "unit": "day", + "system": "http://unitsofmeasure.org", + "code": "d" + }, + "quantity": { + "value": 100, + "unit": "tablet", + "system": "http://snomed.info/sct", + "code": "428673006" + } + }, + "substitution": { + "allowedBoolean": false + } + } + }, + { + "fullUrl": "urn:uuid:5cb17f5a-11ac-4e18-825f-6470467238b3", + "resource": { + "resourceType": "MedicationRequest", + "extension": [ + { + "url": "https://fhir.nhs.uk/StructureDefinition/Extension-DM-PrescriptionType", + "valueCoding": { + "system": "https://fhir.nhs.uk/CodeSystem/prescription-type", + "code": "0201", + "display": "Primary Care Prescriber - Medical Prescriber" + } + } + ], + "identifier": [ + { + "system": "https://fhir.nhs.uk/Id/prescription-order-item-number", + "value": "5cb17f5a-11ac-4e18-825f-6470467238b3" + } + ], + "status": "active", + "intent": "order", + "category": [ + { + "coding": [ + { + "system": "http://terminology.hl7.org/CodeSystem/medicationrequest-category", + "code": "community", + "display": "Community" + } + ] + } + ], + "medicationCodeableConcept": { + "coding": [ + { + "system": "http://snomed.info/sct", + "code": "39113611000001102", + "display": "Salbutamol 100micrograms/dose inhaler CFC free" + } + ] + }, + "subject": { + "reference": "urn:uuid:78d3c2eb-009e-4ec8-a358-b042954aa9b2" + }, + "requester": { + "reference": "urn:uuid:56166769-c1c4-4d07-afa8-132b5dfca666" + }, + "groupIdentifier": { + "extension": [ + { + "url": "https://fhir.nhs.uk/StructureDefinition/Extension-DM-PrescriptionId", + "valueIdentifier": { + "system": "https://fhir.nhs.uk/Id/prescription", + "value": "c59b0ad3-b6c9-49f1-a50a-0595b97c503d" + } + } + ], + "system": "https://fhir.nhs.uk/Id/prescription-order-number", + "value": "315A44-A83008-4C9BB1" + }, + "courseOfTherapyType": { + "coding": [ + { + "system": "http://terminology.hl7.org/CodeSystem/medicationrequest-course-of-therapy", + "code": "acute", + "display": "Short course (acute) therapy" + } + ] + }, + "dosageInstruction": [ + { + "text": "5 times a day - Inhalation", + "timing": { + "repeat": { + "frequency": 5, + "period": 1, + "periodUnit": "d" + } + }, + "route": { + "coding": [ + { + "system": "http://snomed.info/sct", + "code": "18679011000001101", + "display": "Inhalation" + } + ] + } + } + ], + "dispenseRequest": { + "extension": [ + { + "url": "https://fhir.nhs.uk/StructureDefinition/Extension-DM-PerformerSiteType", + "valueCoding": { + "system": "https://fhir.nhs.uk/CodeSystem/dispensing-site-preference", + "code": "0004" + } + } + ], + "validityPeriod": { + "start": "2021-05-07", + "end": "2021-06-04" + }, + "expectedSupplyDuration": { + "value": 30, + "unit": "day", + "system": "http://unitsofmeasure.org", + "code": "d" + }, + "quantity": { + "value": 200, + "unit": "dose", + "system": "http://snomed.info/sct", + "code": "3317411000001100" + } + }, + "substitution": { + "allowedBoolean": false + } + } + }, + { + "fullUrl": "urn:uuid:78d3c2eb-009e-4ec8-a358-b042954aa9b2", + "resource": { + "resourceType": "Patient", + "identifier": [ + { + "system": "https://fhir.nhs.uk/Id/nhs-number", + "value": "9990548609" + } + ], + "name": [ + { + "use": "usual", + "family": "XXTESTPATIENT-TGNP", + "given": [ + "DONOTUSE" + ], + "prefix": [ + "MR" + ] + } + ], + "gender": "male", + "birthDate": "1932-01-06", + "address": [ + { + "use": "home", + "line": [ + "1 Trevelyan Square", + "Boar Lane", + "Leeds", + "West Yorkshire" + ], + "postalCode": "LS1 6AE" + } + ], + "generalPractitioner": [ + { + "identifier": { + "system": "https://fhir.nhs.uk/Id/ods-organization-code", + "value": "A83008" + } + } + ] + } + }, + { + "fullUrl": "urn:uuid:56166769-c1c4-4d07-afa8-132b5dfca666", + "resource": { + "resourceType": "PractitionerRole", + "identifier": [ + { + "system": "https://fhir.nhs.uk/Id/sds-role-profile-id", + "value": "200102238987" + } + ], + "practitioner": { + "reference": "urn:uuid:a8c85454-f8cb-498d-9629-78e2cb5fa47a" + }, + "organization": { + "reference": "urn:uuid:3b4b03a5-52ba-4ba6-9b82-70350aa109d8" + }, + "code": [ + { + "coding": [ + { + "system": "https://fhir.nhs.uk/CodeSystem/NHSDigital-SDS-JobRoleCode", + "code": "S8000:G8000:R8000", + "display": "Clinical Practitioner Access Role" + } + ] + } + ], + "telecom": [ + { + "system": "phone", + "value": "01234567890", + "use": "work" + } + ] + } + }, + { + "fullUrl": "urn:uuid:a8c85454-f8cb-498d-9629-78e2cb5fa47a", + "resource": { + "resourceType": "Practitioner", + "identifier": [ + { + "system": "https://fhir.nhs.uk/Id/sds-user-id", + "value": "555086689106" + }, + { + "system": "https://fhir.hl7.org.uk/Id/gmc-number", + "value": "6095103" + }, + { + "system": "https://fhir.hl7.org.uk/Id/din-number", + "value": "977677" + } + ], + "name": [ + { + "family": "BOIN", + "given": [ + "C" + ], + "prefix": [ + "DR" + ] + } + ] + } + }, + { + "fullUrl": "urn:uuid:3b4b03a5-52ba-4ba6-9b82-70350aa109d8", + "resource": { + "resourceType": "Organization", + "identifier": [ + { + "system": "https://fhir.nhs.uk/Id/ods-organization-code", + "value": "A83008" + } + ], + "type": [ + { + "coding": [ + { + "system": "https://fhir.nhs.uk/CodeSystem/organisation-role", + "code": "76", + "display": "GP PRACTICE" + } + ] + } + ], + "name": "HALLGARTH SURGERY", + "address": [ + { + "use": "work", + "type": "both", + "line": [ + "HALLGARTH SURGERY", + "CHEAPSIDE" + ], + "city": "SHILDON", + "district": "COUNTY DURHAM", + "postalCode": "DL4 2HP" + } + ], + "telecom": [ + { + "system": "phone", + "value": "0115 9737320", + "use": "work" + } + ], + "partOf": { + "identifier": { + "system": "https://fhir.nhs.uk/Id/ods-organization-code", + "value": "84H" + }, + "display": "NHS COUNTY DURHAM CCG" + } + } + } + ] +} diff --git a/src/test/resources/examples/full_examples/primary-care/acute/no-nominated-pharmacy/medical-prescriber/author/gmc/responsible-party/spurious-code/1-Prepare-Request-200_OK.json b/src/test/resources/examples/full_examples/primary-care/acute/no-nominated-pharmacy/medical-prescriber/author/gmc/responsible-party/spurious-code/1-Prepare-Request-200_OK.json new file mode 100644 index 00000000..0b501c1e --- /dev/null +++ b/src/test/resources/examples/full_examples/primary-care/acute/no-nominated-pharmacy/medical-prescriber/author/gmc/responsible-party/spurious-code/1-Prepare-Request-200_OK.json @@ -0,0 +1,468 @@ +{ + "resourceType": "Bundle", + "id": "0cb82cfa-76c8-4fb2-a08e-bf0e326e5487", + "identifier": { + "system": "https://tools.ietf.org/html/rfc4122", + "value": "bf88f123-f160-44ce-ac42-30aab6b4a120" + }, + "type": "message", + "entry": [ + { + "fullUrl": "urn:uuid:17773b27-427e-4940-8c16-64cdac715001", + "resource": { + "resourceType": "MessageHeader", + "eventCoding": { + "system": "https://fhir.nhs.uk/CodeSystem/message-event", + "code": "prescription-order", + "display": "Prescription Order" + }, + "sender": { + "identifier": { + "system": "https://fhir.nhs.uk/Id/ods-organization-code", + "value": "A83008" + }, + "display": "HALLGARTH SURGERY" + }, + "source": { + "endpoint": "https://directory.spineservices.nhs.uk/STU3/Organization/A83008" + }, + "destination": [ + { + "endpoint": "https://sandbox.api.service.nhs.uk/electronic-prescriptions/$post-message", + "receiver": { + "identifier": { + "system": "https://fhir.nhs.uk/Id/ods-organization-code", + "value": "VNE51" + } + } + } + ], + "focus": [ + { + "reference": "urn:uuid:56166769-c1c4-4d07-afa8-132b5dfca666" + }, + { + "reference": "urn:uuid:5cb17f5a-11ac-4e18-825f-6470467238b3" + }, + { + "reference": "urn:uuid:a54219b8-f741-4c47-b662-e4f8dfa49ab6" + } + ] + } + }, + { + "fullUrl": "urn:uuid:a54219b8-f741-4c47-b662-e4f8dfa49ab6", + "resource": { + "resourceType": "MedicationRequest", + "extension": [ + { + "url": "https://fhir.nhs.uk/StructureDefinition/Extension-DM-PrescriptionType", + "valueCoding": { + "system": "https://fhir.nhs.uk/CodeSystem/prescription-type", + "code": "0101", + "display": "Primary Care Prescriber - Medical Prescriber" + } + } + ], + "identifier": [ + { + "system": "https://fhir.nhs.uk/Id/prescription-order-item-number", + "value": "299c610b-f4f1-4eac-a7d7-4fb6b0556e11" + } + ], + "status": "active", + "intent": "order", + "category": [ + { + "coding": [ + { + "system": "http://terminology.hl7.org/CodeSystem/medicationrequest-category", + "code": "community", + "display": "Community" + } + ] + } + ], + "medicationCodeableConcept": { + "coding": [ + { + "system": "http://snomed.info/sct", + "code": "322237000", + "display": "Paracetamol 500mg soluble tablets" + } + ] + }, + "subject": { + "reference": "urn:uuid:78d3c2eb-009e-4ec8-a358-b042954aa9b2" + }, + "requester": { + "reference": "urn:uuid:56166769-c1c4-4d07-afa8-132b5dfca666" + }, + "groupIdentifier": { + "extension": [ + { + "url": "https://fhir.nhs.uk/StructureDefinition/Extension-DM-PrescriptionId", + "valueIdentifier": { + "system": "https://fhir.nhs.uk/Id/prescription", + "value": "04365992-bb37-413d-80e7-90c0b0f2755e" + } + } + ], + "system": "https://fhir.nhs.uk/Id/prescription-order-number", + "value": "FF33AE-A83008-4DDAA4" + }, + "courseOfTherapyType": { + "coding": [ + { + "system": "http://terminology.hl7.org/CodeSystem/medicationrequest-course-of-therapy", + "code": "acute", + "display": "Short course (acute) therapy" + } + ] + }, + "dosageInstruction": [ + { + "text": "4 times a day - Oral", + "timing": { + "repeat": { + "frequency": 4, + "period": 1, + "periodUnit": "d" + } + }, + "route": { + "coding": [ + { + "system": "http://snomed.info/sct", + "code": "26643006", + "display": "Oral" + } + ] + } + } + ], + "dispenseRequest": { + "extension": [ + { + "url": "https://fhir.nhs.uk/StructureDefinition/Extension-DM-PerformerSiteType", + "valueCoding": { + "system": "https://fhir.nhs.uk/CodeSystem/dispensing-site-preference", + "code": "0004" + } + } + ], + "validityPeriod": { + "start": "2021-05-07", + "end": "2021-06-04" + }, + "expectedSupplyDuration": { + "value": 30, + "unit": "day", + "system": "http://unitsofmeasure.org", + "code": "d" + }, + "quantity": { + "value": 100, + "unit": "tablet", + "system": "http://snomed.info/sct", + "code": "428673006" + } + }, + "substitution": { + "allowedBoolean": false + } + } + }, + { + "fullUrl": "urn:uuid:5cb17f5a-11ac-4e18-825f-6470467238b3", + "resource": { + "resourceType": "MedicationRequest", + "extension": [ + { + "url": "https://fhir.nhs.uk/StructureDefinition/Extension-DM-PrescriptionType", + "valueCoding": { + "system": "https://fhir.nhs.uk/CodeSystem/prescription-type", + "code": "0101", + "display": "Primary Care Prescriber - Medical Prescriber" + } + } + ], + "identifier": [ + { + "system": "https://fhir.nhs.uk/Id/prescription-order-item-number", + "value": "5cb17f5a-11ac-4e18-825f-6470467238b3" + } + ], + "status": "active", + "intent": "order", + "category": [ + { + "coding": [ + { + "system": "http://terminology.hl7.org/CodeSystem/medicationrequest-category", + "code": "community", + "display": "Community" + } + ] + } + ], + "medicationCodeableConcept": { + "coding": [ + { + "system": "http://snomed.info/sct", + "code": "39113611000001102", + "display": "Salbutamol 100micrograms/dose inhaler CFC free" + } + ] + }, + "subject": { + "reference": "urn:uuid:78d3c2eb-009e-4ec8-a358-b042954aa9b2" + }, + "requester": { + "reference": "urn:uuid:56166769-c1c4-4d07-afa8-132b5dfca666" + }, + "groupIdentifier": { + "extension": [ + { + "url": "https://fhir.nhs.uk/StructureDefinition/Extension-DM-PrescriptionId", + "valueIdentifier": { + "system": "https://fhir.nhs.uk/Id/prescription", + "value": "04365992-bb37-413d-80e7-90c0b0f2755e" + } + } + ], + "system": "https://fhir.nhs.uk/Id/prescription-order-number", + "value": "FF33AE-A83008-4DDAA4" + }, + "courseOfTherapyType": { + "coding": [ + { + "system": "http://terminology.hl7.org/CodeSystem/medicationrequest-course-of-therapy", + "code": "acute", + "display": "Short course (acute) therapy" + } + ] + }, + "dosageInstruction": [ + { + "text": "5 times a day - Inhalation", + "timing": { + "repeat": { + "frequency": 5, + "period": 1, + "periodUnit": "d" + } + }, + "route": { + "coding": [ + { + "system": "http://snomed.info/sct", + "code": "18679011000001101", + "display": "Inhalation" + } + ] + } + } + ], + "dispenseRequest": { + "extension": [ + { + "url": "https://fhir.nhs.uk/StructureDefinition/Extension-DM-PerformerSiteType", + "valueCoding": { + "system": "https://fhir.nhs.uk/CodeSystem/dispensing-site-preference", + "code": "0004" + } + } + ], + "validityPeriod": { + "start": "2021-05-07", + "end": "2021-06-04" + }, + "expectedSupplyDuration": { + "value": 30, + "unit": "day", + "system": "http://unitsofmeasure.org", + "code": "d" + }, + "quantity": { + "value": 200, + "unit": "dose", + "system": "http://snomed.info/sct", + "code": "3317411000001100" + } + }, + "substitution": { + "allowedBoolean": false + } + } + }, + { + "fullUrl": "urn:uuid:78d3c2eb-009e-4ec8-a358-b042954aa9b2", + "resource": { + "resourceType": "Patient", + "identifier": [ + { + "system": "https://fhir.nhs.uk/Id/nhs-number", + "value": "9990548609" + } + ], + "name": [ + { + "use": "usual", + "family": "XXTESTPATIENT-TGNP", + "given": [ + "DONOTUSE" + ], + "prefix": [ + "MR" + ] + } + ], + "gender": "male", + "birthDate": "1932-01-06", + "address": [ + { + "use": "home", + "line": [ + "1 Trevelyan Square", + "Boar Lane", + "Leeds", + "West Yorkshire" + ], + "postalCode": "LS1 6AE" + } + ], + "generalPractitioner": [ + { + "identifier": { + "system": "https://fhir.nhs.uk/Id/ods-organization-code", + "value": "A83008" + } + } + ] + } + }, + { + "fullUrl": "urn:uuid:56166769-c1c4-4d07-afa8-132b5dfca666", + "resource": { + "resourceType": "PractitionerRole", + "identifier": [ + { + "system": "https://fhir.nhs.uk/Id/sds-role-profile-id", + "value": "200102238987" + }, + { + "system": "https://fhir.hl7.org.uk/Id/nhsbsa-spurious-code", + "value": "666666" + } + ], + "practitioner": { + "reference": "urn:uuid:a8c85454-f8cb-498d-9629-78e2cb5fa47a" + }, + "organization": { + "reference": "urn:uuid:3b4b03a5-52ba-4ba6-9b82-70350aa109d8" + }, + "code": [ + { + "coding": [ + { + "system": "https://fhir.nhs.uk/CodeSystem/NHSDigital-SDS-JobRoleCode", + "code": "S8000:G8000:R8000", + "display": "Clinical Practitioner Access Role" + } + ] + } + ], + "telecom": [ + { + "system": "phone", + "value": "01234567890", + "use": "work" + } + ] + } + }, + { + "fullUrl": "urn:uuid:a8c85454-f8cb-498d-9629-78e2cb5fa47a", + "resource": { + "resourceType": "Practitioner", + "identifier": [ + { + "system": "https://fhir.nhs.uk/Id/sds-user-id", + "value": "555086689106" + }, + { + "system": "https://fhir.hl7.org.uk/Id/gmc-number", + "value": "6095103" + }, + { + "system": "https://fhir.hl7.org.uk/Id/din-number", + "value": "977677" + } + ], + "name": [ + { + "family": "BOIN", + "given": [ + "C" + ], + "prefix": [ + "DR" + ] + } + ] + } + }, + { + "fullUrl": "urn:uuid:3b4b03a5-52ba-4ba6-9b82-70350aa109d8", + "resource": { + "resourceType": "Organization", + "identifier": [ + { + "system": "https://fhir.nhs.uk/Id/ods-organization-code", + "value": "A83008" + } + ], + "type": [ + { + "coding": [ + { + "system": "https://fhir.nhs.uk/CodeSystem/organisation-role", + "code": "76", + "display": "GP PRACTICE" + } + ] + } + ], + "name": "HALLGARTH SURGERY", + "address": [ + { + "use": "work", + "type": "both", + "line": [ + "HALLGARTH SURGERY", + "CHEAPSIDE" + ], + "city": "SHILDON", + "district": "COUNTY DURHAM", + "postalCode": "DL4 2HP" + } + ], + "telecom": [ + { + "system": "phone", + "value": "0115 9737320", + "use": "work" + } + ], + "partOf": { + "identifier": { + "system": "https://fhir.nhs.uk/Id/ods-organization-code", + "value": "84H" + }, + "display": "NHS COUNTY DURHAM CCG" + } + } + } + ] +} diff --git a/src/test/resources/examples/full_examples/primary-care/acute/no-nominated-pharmacy/medical-prescriber/author/gmc/responsible-party/spurious-code/1-Prepare-Response-200_OK.json b/src/test/resources/examples/full_examples/primary-care/acute/no-nominated-pharmacy/medical-prescriber/author/gmc/responsible-party/spurious-code/1-Prepare-Response-200_OK.json new file mode 100644 index 00000000..b88c780b --- /dev/null +++ b/src/test/resources/examples/full_examples/primary-care/acute/no-nominated-pharmacy/medical-prescriber/author/gmc/responsible-party/spurious-code/1-Prepare-Response-200_OK.json @@ -0,0 +1,17 @@ +{ + "resourceType": "Parameters", + "parameter": [ + { + "name": "digest", + "valueString": "PFNpZ25lZEluZm8geG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvMDkveG1sZHNpZyMiPjxDYW5vbmljYWxpemF0aW9uTWV0aG9kIEFsZ29yaXRobT0iaHR0cDovL3d3dy53My5vcmcvMjAwMS8xMC94bWwtZXhjLWMxNG4jIj48L0Nhbm9uaWNhbGl6YXRpb25NZXRob2Q+PFNpZ25hdHVyZU1ldGhvZCBBbGdvcml0aG09Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvMDkveG1sZHNpZyNyc2Etc2hhMSI+PC9TaWduYXR1cmVNZXRob2Q+PFJlZmVyZW5jZT48VHJhbnNmb3Jtcz48VHJhbnNmb3JtIEFsZ29yaXRobT0iaHR0cDovL3d3dy53My5vcmcvMjAwMS8xMC94bWwtZXhjLWMxNG4jIj48L1RyYW5zZm9ybT48L1RyYW5zZm9ybXM+PERpZ2VzdE1ldGhvZCBBbGdvcml0aG09Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvMDkveG1sZHNpZyNzaGExIj48L0RpZ2VzdE1ldGhvZD48RGlnZXN0VmFsdWU+dGphSXdLWmszdnRNd05oUzBNU1RCL2RUMHBzPTwvRGlnZXN0VmFsdWU+PC9SZWZlcmVuY2U+PC9TaWduZWRJbmZvPg==" + }, + { + "name": "timestamp", + "valueString": "2022-10-25T10:24:34+00:00" + }, + { + "name": "algorithm", + "valueString": "RS1" + } + ] +} diff --git a/src/test/resources/examples/full_examples/primary-care/acute/no-nominated-pharmacy/medical-prescriber/author/gmc/responsible-party/spurious-code/1-Process-Request-Send-200_OK.json b/src/test/resources/examples/full_examples/primary-care/acute/no-nominated-pharmacy/medical-prescriber/author/gmc/responsible-party/spurious-code/1-Process-Request-Send-200_OK.json new file mode 100644 index 00000000..3420062e --- /dev/null +++ b/src/test/resources/examples/full_examples/primary-care/acute/no-nominated-pharmacy/medical-prescriber/author/gmc/responsible-party/spurious-code/1-Process-Request-Send-200_OK.json @@ -0,0 +1,506 @@ +{ + "resourceType": "Bundle", + "id": "0cb82cfa-76c8-4fb2-a08e-bf0e326e5487", + "identifier": { + "system": "https://tools.ietf.org/html/rfc4122", + "value": "a5b66b8f-f437-4af5-a0db-09dac6edb1fc" + }, + "type": "message", + "entry": [ + { + "fullUrl": "urn:uuid:17773b27-427e-4940-8c16-64cdac715001", + "resource": { + "resourceType": "MessageHeader", + "eventCoding": { + "system": "https://fhir.nhs.uk/CodeSystem/message-event", + "code": "prescription-order", + "display": "Prescription Order" + }, + "sender": { + "identifier": { + "system": "https://fhir.nhs.uk/Id/ods-organization-code", + "value": "A83008" + }, + "display": "HALLGARTH SURGERY" + }, + "source": { + "endpoint": "https://directory.spineservices.nhs.uk/STU3/Organization/A83008" + }, + "destination": [ + { + "endpoint": "https://sandbox.api.service.nhs.uk/electronic-prescriptions/$post-message", + "receiver": { + "identifier": { + "system": "https://fhir.nhs.uk/Id/ods-organization-code", + "value": "VNE51" + } + } + } + ], + "focus": [ + { + "reference": "urn:uuid:56166769-c1c4-4d07-afa8-132b5dfca666" + }, + { + "reference": "urn:uuid:5cb17f5a-11ac-4e18-825f-6470467238b3" + }, + { + "reference": "urn:uuid:a54219b8-f741-4c47-b662-e4f8dfa49ab6" + } + ] + } + }, + { + "fullUrl": "urn:uuid:a54219b8-f741-4c47-b662-e4f8dfa49ab6", + "resource": { + "resourceType": "MedicationRequest", + "extension": [ + { + "url": "https://fhir.nhs.uk/StructureDefinition/Extension-DM-PrescriptionType", + "valueCoding": { + "system": "https://fhir.nhs.uk/CodeSystem/prescription-type", + "code": "0101", + "display": "Primary Care Prescriber - Medical Prescriber" + } + } + ], + "identifier": [ + { + "system": "https://fhir.nhs.uk/Id/prescription-order-item-number", + "value": "299c610b-f4f1-4eac-a7d7-4fb6b0556e11" + } + ], + "status": "active", + "intent": "order", + "category": [ + { + "coding": [ + { + "system": "http://terminology.hl7.org/CodeSystem/medicationrequest-category", + "code": "community", + "display": "Community" + } + ] + } + ], + "medicationCodeableConcept": { + "coding": [ + { + "system": "http://snomed.info/sct", + "code": "322237000", + "display": "Paracetamol 500mg soluble tablets" + } + ] + }, + "subject": { + "reference": "urn:uuid:78d3c2eb-009e-4ec8-a358-b042954aa9b2" + }, + "requester": { + "reference": "urn:uuid:56166769-c1c4-4d07-afa8-132b5dfca666" + }, + "groupIdentifier": { + "extension": [ + { + "url": "https://fhir.nhs.uk/StructureDefinition/Extension-DM-PrescriptionId", + "valueIdentifier": { + "system": "https://fhir.nhs.uk/Id/prescription", + "value": "04365992-bb37-413d-80e7-90c0b0f2755e" + } + } + ], + "system": "https://fhir.nhs.uk/Id/prescription-order-number", + "value": "FF33AE-A83008-4DDAA4" + }, + "courseOfTherapyType": { + "coding": [ + { + "system": "http://terminology.hl7.org/CodeSystem/medicationrequest-course-of-therapy", + "code": "acute", + "display": "Short course (acute) therapy" + } + ] + }, + "dosageInstruction": [ + { + "text": "4 times a day - Oral", + "timing": { + "repeat": { + "frequency": 4, + "period": 1, + "periodUnit": "d" + } + }, + "route": { + "coding": [ + { + "system": "http://snomed.info/sct", + "code": "26643006", + "display": "Oral" + } + ] + } + } + ], + "dispenseRequest": { + "extension": [ + { + "url": "https://fhir.nhs.uk/StructureDefinition/Extension-DM-PerformerSiteType", + "valueCoding": { + "system": "https://fhir.nhs.uk/CodeSystem/dispensing-site-preference", + "code": "0004" + } + } + ], + "validityPeriod": { + "start": "2021-05-07", + "end": "2021-06-04" + }, + "expectedSupplyDuration": { + "value": 30, + "unit": "day", + "system": "http://unitsofmeasure.org", + "code": "d" + }, + "quantity": { + "value": 100, + "unit": "tablet", + "system": "http://snomed.info/sct", + "code": "428673006" + } + }, + "substitution": { + "allowedBoolean": false + } + } + }, + { + "fullUrl": "urn:uuid:5cb17f5a-11ac-4e18-825f-6470467238b3", + "resource": { + "resourceType": "MedicationRequest", + "extension": [ + { + "url": "https://fhir.nhs.uk/StructureDefinition/Extension-DM-PrescriptionType", + "valueCoding": { + "system": "https://fhir.nhs.uk/CodeSystem/prescription-type", + "code": "0101", + "display": "Primary Care Prescriber - Medical Prescriber" + } + } + ], + "identifier": [ + { + "system": "https://fhir.nhs.uk/Id/prescription-order-item-number", + "value": "5cb17f5a-11ac-4e18-825f-6470467238b3" + } + ], + "status": "active", + "intent": "order", + "category": [ + { + "coding": [ + { + "system": "http://terminology.hl7.org/CodeSystem/medicationrequest-category", + "code": "community", + "display": "Community" + } + ] + } + ], + "medicationCodeableConcept": { + "coding": [ + { + "system": "http://snomed.info/sct", + "code": "39113611000001102", + "display": "Salbutamol 100micrograms/dose inhaler CFC free" + } + ] + }, + "subject": { + "reference": "urn:uuid:78d3c2eb-009e-4ec8-a358-b042954aa9b2" + }, + "requester": { + "reference": "urn:uuid:56166769-c1c4-4d07-afa8-132b5dfca666" + }, + "groupIdentifier": { + "extension": [ + { + "url": "https://fhir.nhs.uk/StructureDefinition/Extension-DM-PrescriptionId", + "valueIdentifier": { + "system": "https://fhir.nhs.uk/Id/prescription", + "value": "04365992-bb37-413d-80e7-90c0b0f2755e" + } + } + ], + "system": "https://fhir.nhs.uk/Id/prescription-order-number", + "value": "FF33AE-A83008-4DDAA4" + }, + "courseOfTherapyType": { + "coding": [ + { + "system": "http://terminology.hl7.org/CodeSystem/medicationrequest-course-of-therapy", + "code": "acute", + "display": "Short course (acute) therapy" + } + ] + }, + "dosageInstruction": [ + { + "text": "5 times a day - Inhalation", + "timing": { + "repeat": { + "frequency": 5, + "period": 1, + "periodUnit": "d" + } + }, + "route": { + "coding": [ + { + "system": "http://snomed.info/sct", + "code": "18679011000001101", + "display": "Inhalation" + } + ] + } + } + ], + "dispenseRequest": { + "extension": [ + { + "url": "https://fhir.nhs.uk/StructureDefinition/Extension-DM-PerformerSiteType", + "valueCoding": { + "system": "https://fhir.nhs.uk/CodeSystem/dispensing-site-preference", + "code": "0004" + } + } + ], + "validityPeriod": { + "start": "2021-05-07", + "end": "2021-06-04" + }, + "expectedSupplyDuration": { + "value": 30, + "unit": "day", + "system": "http://unitsofmeasure.org", + "code": "d" + }, + "quantity": { + "value": 200, + "unit": "dose", + "system": "http://snomed.info/sct", + "code": "3317411000001100" + } + }, + "substitution": { + "allowedBoolean": false + } + } + }, + { + "fullUrl": "urn:uuid:78d3c2eb-009e-4ec8-a358-b042954aa9b2", + "resource": { + "resourceType": "Patient", + "identifier": [ + { + "system": "https://fhir.nhs.uk/Id/nhs-number", + "value": "9990548609" + } + ], + "name": [ + { + "use": "usual", + "family": "XXTESTPATIENT-TGNP", + "given": [ + "DONOTUSE" + ], + "prefix": [ + "MR" + ] + } + ], + "gender": "male", + "birthDate": "1932-01-06", + "address": [ + { + "use": "home", + "line": [ + "1 Trevelyan Square", + "Boar Lane", + "Leeds", + "West Yorkshire" + ], + "postalCode": "LS1 6AE" + } + ], + "generalPractitioner": [ + { + "identifier": { + "system": "https://fhir.nhs.uk/Id/ods-organization-code", + "value": "A83008" + } + } + ] + } + }, + { + "fullUrl": "urn:uuid:56166769-c1c4-4d07-afa8-132b5dfca666", + "resource": { + "resourceType": "PractitionerRole", + "identifier": [ + { + "system": "https://fhir.nhs.uk/Id/sds-role-profile-id", + "value": "200102238987" + }, + { + "system": "https://fhir.hl7.org.uk/Id/nhsbsa-spurious-code", + "value": "666666" + } + ], + "practitioner": { + "reference": "urn:uuid:a8c85454-f8cb-498d-9629-78e2cb5fa47a" + }, + "organization": { + "reference": "urn:uuid:3b4b03a5-52ba-4ba6-9b82-70350aa109d8" + }, + "code": [ + { + "coding": [ + { + "system": "https://fhir.nhs.uk/CodeSystem/NHSDigital-SDS-JobRoleCode", + "code": "S8000:G8000:R8000", + "display": "Clinical Practitioner Access Role" + } + ] + } + ], + "telecom": [ + { + "system": "phone", + "value": "01234567890", + "use": "work" + } + ] + } + }, + { + "fullUrl": "urn:uuid:a8c85454-f8cb-498d-9629-78e2cb5fa47a", + "resource": { + "resourceType": "Practitioner", + "identifier": [ + { + "system": "https://fhir.nhs.uk/Id/sds-user-id", + "value": "555086689106" + }, + { + "system": "https://fhir.hl7.org.uk/Id/gmc-number", + "value": "6095103" + }, + { + "system": "https://fhir.hl7.org.uk/Id/din-number", + "value": "977677" + } + ], + "name": [ + { + "family": "BOIN", + "given": [ + "C" + ], + "prefix": [ + "DR" + ] + } + ] + } + }, + { + "fullUrl": "urn:uuid:3b4b03a5-52ba-4ba6-9b82-70350aa109d8", + "resource": { + "resourceType": "Organization", + "identifier": [ + { + "system": "https://fhir.nhs.uk/Id/ods-organization-code", + "value": "A83008" + } + ], + "type": [ + { + "coding": [ + { + "system": "https://fhir.nhs.uk/CodeSystem/organisation-role", + "code": "76", + "display": "GP PRACTICE" + } + ] + } + ], + "name": "HALLGARTH SURGERY", + "address": [ + { + "use": "work", + "type": "both", + "line": [ + "HALLGARTH SURGERY", + "CHEAPSIDE" + ], + "city": "SHILDON", + "district": "COUNTY DURHAM", + "postalCode": "DL4 2HP" + } + ], + "telecom": [ + { + "system": "phone", + "value": "0115 9737320", + "use": "work" + } + ], + "partOf": { + "identifier": { + "system": "https://fhir.nhs.uk/Id/ods-organization-code", + "value": "84H" + }, + "display": "NHS COUNTY DURHAM CCG" + } + } + }, + { + "fullUrl": "urn:uuid:28828c55-8fa7-42d7-916f-fcf076e0c10e", + "resource": { + "resourceType": "Provenance", + "id": "28828c55-8fa7-42d7-916f-fcf076e0c10e", + "target": [ + { + "reference": "urn:uuid:a54219b8-f741-4c47-b662-e4f8dfa49ab6" + }, + { + "reference": "urn:uuid:5cb17f5a-11ac-4e18-825f-6470467238b3" + } + ], + "recorded": "2021-02-11T16:32:11+00:00", + "agent": [ + { + "who": { + "reference": "urn:uuid:56166769-c1c4-4d07-afa8-132b5dfca666" + } + } + ], + "signature": [ + { + "type": [ + { + "system": "urn:iso-astm:E1762-95:2013", + "code": "1.2.840.10065.1.12.1.1" + } + ], + "when": "2021-05-07T14:47:55+00:00", + "who": { + "reference": "urn:uuid:56166769-c1c4-4d07-afa8-132b5dfca666" + }, + "data": "DQo8U2lnbmF0dXJlIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwLzA5L3htbGRzaWcjIj4NCiAgICA8U2lnbmVkSW5mbz48Q2Fub25pY2FsaXphdGlvbk1ldGhvZCBBbGdvcml0aG09Imh0dHA6Ly93d3cudzMub3JnLzIwMDEvMTAveG1sLWV4Yy1jMTRuIyI+PC9DYW5vbmljYWxpemF0aW9uTWV0aG9kPjxTaWduYXR1cmVNZXRob2QgQWxnb3JpdGhtPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwLzA5L3htbGRzaWcjcnNhLXNoYTEiPjwvU2lnbmF0dXJlTWV0aG9kPjxSZWZlcmVuY2U+PFRyYW5zZm9ybXM+PFRyYW5zZm9ybSBBbGdvcml0aG09Imh0dHA6Ly93d3cudzMub3JnLzIwMDEvMTAveG1sLWV4Yy1jMTRuIyI+PC9UcmFuc2Zvcm0+PC9UcmFuc2Zvcm1zPjxEaWdlc3RNZXRob2QgQWxnb3JpdGhtPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwLzA5L3htbGRzaWcjc2hhMSI+PC9EaWdlc3RNZXRob2Q+PERpZ2VzdFZhbHVlPkIrM0hHenp5RGp4MENPOFdjZGFaOTQzSmladz08L0RpZ2VzdFZhbHVlPjwvUmVmZXJlbmNlPjwvU2lnbmVkSW5mbz4NCiAgICA8U2lnbmF0dXJlVmFsdWU+VDZGbnJORGIrdWZDSjhzTC9ZeDJ1UDVwU1RJRUpqdmJOdmE0ODl4NFhSSVh4Y25pNnhFZVZ1TlI1RVBOZWIwOHlxaW1uWDB0UVdqdGo5aTRwMG9ZWUE5blNqTUZIVEIwKzJVMTZ1SnRrNFM5OEpjcXMyUHh1U0hvVFl0cWJJcDNOT0xuSHR4R1pSRFdlSG1ZNm1LR0lNd0NyMFVwbExZcnYxU2xBQ0tycUJrPTwvU2lnbmF0dXJlVmFsdWU+DQogICAgPEtleUluZm8+DQogICAgICAgIDxYNTA5RGF0YT4NCiAgICAgICAgICAgIDxYNTA5Q2VydGlmaWNhdGU+TUlJRHVEQ0NBcUNnQXdJQkFnSUVYY210SHpBTkJna3Foa2lHOXcwQkFRc0ZBREEyTVF3d0NnWURWUVFLRXdOdWFITXhDekFKQmdOVkJBc1RBa05CTVJrd0Z3WURWUVFERXhCT1NGTWdTVTVVSUV4bGRtVnNJREZFTUI0WERUSXdNVEF5TWpFd01qRTFOVm9YRFRJeU1UQXlNakV3TlRFMU5Wb3dRekVNTUFvR0ExVUVDaE1EYm1oek1ROHdEUVlEVlFRTEV3WlFaVzl3YkdVeElqQWdCZ05WQkFNTUdUVTFOVEkxTXpVeU1URXdPRjlTUVU1RVQwMWZWVk5GVWxFd2daOHdEUVlKS29aSWh2Y05BUUVCQlFBRGdZMEFNSUdKQW9HQkFLdDRzek53N09BSDdBUVJyRGUveEJJbXNNbU1pUzlFc3JUM2EzcC9MaDNicmR6STlhYWpUVVoyYi9jdmJPYTdQZVlkN3UrSzRhMlpkMFhrKzBHRm1ZR3pTVlg2aVlqYmx3cjB2YWkzMXpWN0crbEd2SHhINnBTb0xDd0lDYVpBRndhYmVENU96OTQreUEzYVdOV3RHVjBEZmg5cXdIM1pGQ0lNUnN2ZXJOMXBBZ01CQUFHamdnRkRNSUlCUHpBT0JnTlZIUThCQWY4RUJBTUNCa0F3WlFZRFZSMGdBUUgvQkZzd1dUQlhCZ3NxaGpvQWlYdG1BQU1DQURCSU1FWUdDQ3NHQVFVRkJ3SUJGanBvZEhSd2N6b3ZMM0JyYVM1dWFITXVkV3N2WTJWeWRHbG1hV05oZEdWZmNHOXNhV05wWlhNdlkyOXVkR1Z1ZEY5amIyMXRhWFJ0Wlc1ME1ETUdBMVVkSHdRc01Db3dLS0Ftb0NTR0ltaDBkSEE2THk5amNtd3VibWh6TG5WckwybHVkQzh4WkM5amNteGpNeTVqY213d0t3WURWUjBRQkNRd0lvQVBNakF5TURFd01qSXhNREl4TlRWYWdROHlNREl5TURNeE56RXdOVEUxTlZvd0h3WURWUjBqQkJnd0ZvQVVvSllmZ1lUTlBkNkVVS0w2UUxJekh4WTVQRkl3SFFZRFZSME9CQllFRkx0eXZZU3lhcWc2MEFFVVpneGswd3JqUkpjK01Ba0dBMVVkRXdRQ01BQXdHUVlKS29aSWh2WjlCMEVBQkF3d0Noc0VWamd1TXdNQ0JMQXdEUVlKS29aSWh2Y05BUUVMQlFBRGdnRUJBQmN6eThCOGp1UHBJZmFUTkZjeHJDMjJhQ1gveFlabWhyTC9OdklCQWFYMUc1aGppd21rR0tFMmhSVElyNjdQeFp4bVhzSnhpZ1JCTUhQbEkrbFkvK29rekgwR2k3YjVicWx3N3B4R0lnSk8wMDB3OHBGc3ZvOXc0MklZaEhvZHN2bkRWU3hoTVQwSjQ2UWhrOXNvRTBMam9FVUxLUVBQbFlHa2UvR2wzbTE3SXRGWXdPYlFIMGZNRXdtaXFCeWVJZno3Z1NjY096TDVjSXA2UGNaVE9qbzJJcVFwZ0VtaGpPY1JJbkVxQU5pdFNkam9pSkFKenBhYVpqWVRSZEhVWDdpN2FqRWlING05MW5GVys0QXFrTnR0bGI0V2NHS3NTbVdnZktLaGVGNElvWktNRTgweGVyU2dNeTh2dGpMT0JKQ0dYejB3TEdtUXVSbXhNVHE4OHE0PTwvWDUwOUNlcnRpZmljYXRlPg0KICAgICAgICA8L1g1MDlEYXRhPg0KICAgIDwvS2V5SW5mbz4NCjwvU2lnbmF0dXJlPg0K" + } + ] + } + } + ] +} diff --git a/src/test/resources/examples/full_examples/primary-care/acute/no-nominated-pharmacy/medical-prescriber/author/unknown/1-Prepare-Request-200_OK.json b/src/test/resources/examples/full_examples/primary-care/acute/no-nominated-pharmacy/medical-prescriber/author/unknown/1-Prepare-Request-200_OK.json new file mode 100644 index 00000000..cd7b9015 --- /dev/null +++ b/src/test/resources/examples/full_examples/primary-care/acute/no-nominated-pharmacy/medical-prescriber/author/unknown/1-Prepare-Request-200_OK.json @@ -0,0 +1,460 @@ +{ + "resourceType": "Bundle", + "id": "0cb82cfa-76c8-4fb2-a08e-bf0e326e5487", + "identifier": { + "system": "https://tools.ietf.org/html/rfc4122", + "value": "6d8dd788-105a-4d8d-a790-3d90edc5a6ae" + }, + "type": "message", + "entry": [ + { + "fullUrl": "urn:uuid:17773b27-427e-4940-8c16-64cdac715001", + "resource": { + "resourceType": "MessageHeader", + "eventCoding": { + "system": "https://fhir.nhs.uk/CodeSystem/message-event", + "code": "prescription-order", + "display": "Prescription Order" + }, + "sender": { + "identifier": { + "system": "https://fhir.nhs.uk/Id/ods-organization-code", + "value": "A83008" + }, + "display": "HALLGARTH SURGERY" + }, + "source": { + "endpoint": "https://directory.spineservices.nhs.uk/STU3/Organization/A83008" + }, + "destination": [ + { + "endpoint": "https://sandbox.api.service.nhs.uk/electronic-prescriptions/$post-message", + "receiver": { + "identifier": { + "system": "https://fhir.nhs.uk/Id/ods-organization-code", + "value": "VNE51" + } + } + } + ], + "focus": [ + { + "reference": "urn:uuid:56166769-c1c4-4d07-afa8-132b5dfca666" + }, + { + "reference": "urn:uuid:5cb17f5a-11ac-4e18-825f-6470467238b3" + }, + { + "reference": "urn:uuid:a54219b8-f741-4c47-b662-e4f8dfa49ab6" + } + ] + } + }, + { + "fullUrl": "urn:uuid:a54219b8-f741-4c47-b662-e4f8dfa49ab6", + "resource": { + "resourceType": "MedicationRequest", + "extension": [ + { + "url": "https://fhir.nhs.uk/StructureDefinition/Extension-DM-PrescriptionType", + "valueCoding": { + "system": "https://fhir.nhs.uk/CodeSystem/prescription-type", + "code": "0101", + "display": "Primary Care Prescriber - Medical Prescriber" + } + } + ], + "identifier": [ + { + "system": "https://fhir.nhs.uk/Id/prescription-order-item-number", + "value": "299c610b-f4f1-4eac-a7d7-4fb6b0556e11" + } + ], + "status": "active", + "intent": "order", + "category": [ + { + "coding": [ + { + "system": "http://terminology.hl7.org/CodeSystem/medicationrequest-category", + "code": "community", + "display": "Community" + } + ] + } + ], + "medicationCodeableConcept": { + "coding": [ + { + "system": "http://snomed.info/sct", + "code": "322237000", + "display": "Paracetamol 500mg soluble tablets" + } + ] + }, + "subject": { + "reference": "urn:uuid:78d3c2eb-009e-4ec8-a358-b042954aa9b2" + }, + "requester": { + "reference": "urn:uuid:56166769-c1c4-4d07-afa8-132b5dfca666" + }, + "groupIdentifier": { + "extension": [ + { + "url": "https://fhir.nhs.uk/StructureDefinition/Extension-DM-PrescriptionId", + "valueIdentifier": { + "system": "https://fhir.nhs.uk/Id/prescription", + "value": "44232843-8607-4a72-ba0c-e7c0862a3754" + } + } + ], + "system": "https://fhir.nhs.uk/Id/prescription-order-number", + "value": "C3A429-A83008-49E0AP" + }, + "courseOfTherapyType": { + "coding": [ + { + "system": "http://terminology.hl7.org/CodeSystem/medicationrequest-course-of-therapy", + "code": "acute", + "display": "Short course (acute) therapy" + } + ] + }, + "dosageInstruction": [ + { + "text": "4 times a day - Oral", + "timing": { + "repeat": { + "frequency": 4, + "period": 1, + "periodUnit": "d" + } + }, + "route": { + "coding": [ + { + "system": "http://snomed.info/sct", + "code": "26643006", + "display": "Oral" + } + ] + } + } + ], + "dispenseRequest": { + "extension": [ + { + "url": "https://fhir.nhs.uk/StructureDefinition/Extension-DM-PerformerSiteType", + "valueCoding": { + "system": "https://fhir.nhs.uk/CodeSystem/dispensing-site-preference", + "code": "0004" + } + } + ], + "validityPeriod": { + "start": "2021-05-07", + "end": "2021-06-04" + }, + "expectedSupplyDuration": { + "value": 30, + "unit": "day", + "system": "http://unitsofmeasure.org", + "code": "d" + }, + "quantity": { + "value": 100, + "unit": "tablet", + "system": "http://snomed.info/sct", + "code": "428673006" + } + }, + "substitution": { + "allowedBoolean": false + } + } + }, + { + "fullUrl": "urn:uuid:5cb17f5a-11ac-4e18-825f-6470467238b3", + "resource": { + "resourceType": "MedicationRequest", + "extension": [ + { + "url": "https://fhir.nhs.uk/StructureDefinition/Extension-DM-PrescriptionType", + "valueCoding": { + "system": "https://fhir.nhs.uk/CodeSystem/prescription-type", + "code": "0101", + "display": "Primary Care Prescriber - Medical Prescriber" + } + } + ], + "identifier": [ + { + "system": "https://fhir.nhs.uk/Id/prescription-order-item-number", + "value": "5cb17f5a-11ac-4e18-825f-6470467238b3" + } + ], + "status": "active", + "intent": "order", + "category": [ + { + "coding": [ + { + "system": "http://terminology.hl7.org/CodeSystem/medicationrequest-category", + "code": "community", + "display": "Community" + } + ] + } + ], + "medicationCodeableConcept": { + "coding": [ + { + "system": "http://snomed.info/sct", + "code": "39113611000001102", + "display": "Salbutamol 100micrograms/dose inhaler CFC free" + } + ] + }, + "subject": { + "reference": "urn:uuid:78d3c2eb-009e-4ec8-a358-b042954aa9b2" + }, + "requester": { + "reference": "urn:uuid:56166769-c1c4-4d07-afa8-132b5dfca666" + }, + "groupIdentifier": { + "extension": [ + { + "url": "https://fhir.nhs.uk/StructureDefinition/Extension-DM-PrescriptionId", + "valueIdentifier": { + "system": "https://fhir.nhs.uk/Id/prescription", + "value": "44232843-8607-4a72-ba0c-e7c0862a3754" + } + } + ], + "system": "https://fhir.nhs.uk/Id/prescription-order-number", + "value": "C3A429-A83008-49E0AP" + }, + "courseOfTherapyType": { + "coding": [ + { + "system": "http://terminology.hl7.org/CodeSystem/medicationrequest-course-of-therapy", + "code": "acute", + "display": "Short course (acute) therapy" + } + ] + }, + "dosageInstruction": [ + { + "text": "5 times a day - Inhalation", + "timing": { + "repeat": { + "frequency": 5, + "period": 1, + "periodUnit": "d" + } + }, + "route": { + "coding": [ + { + "system": "http://snomed.info/sct", + "code": "18679011000001101", + "display": "Inhalation" + } + ] + } + } + ], + "dispenseRequest": { + "extension": [ + { + "url": "https://fhir.nhs.uk/StructureDefinition/Extension-DM-PerformerSiteType", + "valueCoding": { + "system": "https://fhir.nhs.uk/CodeSystem/dispensing-site-preference", + "code": "0004" + } + } + ], + "validityPeriod": { + "start": "2021-05-07", + "end": "2021-06-04" + }, + "expectedSupplyDuration": { + "value": 30, + "unit": "day", + "system": "http://unitsofmeasure.org", + "code": "d" + }, + "quantity": { + "value": 200, + "unit": "dose", + "system": "http://snomed.info/sct", + "code": "3317411000001100" + } + }, + "substitution": { + "allowedBoolean": false + } + } + }, + { + "fullUrl": "urn:uuid:78d3c2eb-009e-4ec8-a358-b042954aa9b2", + "resource": { + "resourceType": "Patient", + "identifier": [ + { + "system": "https://fhir.nhs.uk/Id/nhs-number", + "value": "9990548609" + } + ], + "name": [ + { + "use": "usual", + "family": "XXTESTPATIENT-TGNP", + "given": [ + "DONOTUSE" + ], + "prefix": [ + "MR" + ] + } + ], + "gender": "male", + "birthDate": "1932-01-06", + "address": [ + { + "use": "home", + "line": [ + "1 Trevelyan Square", + "Boar Lane", + "Leeds", + "West Yorkshire" + ], + "postalCode": "LS1 6AE" + } + ], + "generalPractitioner": [ + { + "identifier": { + "system": "https://fhir.nhs.uk/Id/ods-organization-code", + "value": "A83008" + } + } + ] + } + }, + { + "fullUrl": "urn:uuid:56166769-c1c4-4d07-afa8-132b5dfca666", + "resource": { + "resourceType": "PractitionerRole", + "identifier": [ + { + "system": "https://fhir.nhs.uk/Id/sds-role-profile-id", + "value": "200102238987" + } + ], + "practitioner": { + "reference": "urn:uuid:a8c85454-f8cb-498d-9629-78e2cb5fa47a" + }, + "organization": { + "reference": "urn:uuid:3b4b03a5-52ba-4ba6-9b82-70350aa109d8" + }, + "code": [ + { + "coding": [ + { + "system": "https://fhir.nhs.uk/CodeSystem/NHSDigital-SDS-JobRoleCode", + "code": "S8000:G8000:R8000", + "display": "Clinical Practitioner Access Role" + } + ] + } + ], + "telecom": [ + { + "system": "phone", + "value": "01234567890", + "use": "work" + } + ] + } + }, + { + "fullUrl": "urn:uuid:a8c85454-f8cb-498d-9629-78e2cb5fa47a", + "resource": { + "resourceType": "Practitioner", + "identifier": [ + { + "system": "https://fhir.nhs.uk/Id/sds-user-id", + "value": "555086689106" + }, + { + "system": "https://fhir.hl7.org.uk/Id/professional-code", + "value": "999999" + } + ], + "name": [ + { + "family": "BOIN", + "given": [ + "C" + ], + "prefix": [ + "DR" + ] + } + ] + } + }, + { + "fullUrl": "urn:uuid:3b4b03a5-52ba-4ba6-9b82-70350aa109d8", + "resource": { + "resourceType": "Organization", + "identifier": [ + { + "system": "https://fhir.nhs.uk/Id/ods-organization-code", + "value": "A83008" + } + ], + "type": [ + { + "coding": [ + { + "system": "https://fhir.nhs.uk/CodeSystem/organisation-role", + "code": "76", + "display": "GP PRACTICE" + } + ] + } + ], + "name": "HALLGARTH SURGERY", + "address": [ + { + "use": "work", + "type": "both", + "line": [ + "HALLGARTH SURGERY", + "CHEAPSIDE" + ], + "city": "SHILDON", + "district": "COUNTY DURHAM", + "postalCode": "DL4 2HP" + } + ], + "telecom": [ + { + "system": "phone", + "value": "0115 9737320", + "use": "work" + } + ], + "partOf": { + "identifier": { + "system": "https://fhir.nhs.uk/Id/ods-organization-code", + "value": "84H" + }, + "display": "NHS COUNTY DURHAM CCG" + } + } + } + ] +} diff --git a/src/test/resources/examples/full_examples/primary-care/acute/no-nominated-pharmacy/medical-prescriber/author/unknown/1-Prepare-Response-200_OK.json b/src/test/resources/examples/full_examples/primary-care/acute/no-nominated-pharmacy/medical-prescriber/author/unknown/1-Prepare-Response-200_OK.json new file mode 100644 index 00000000..26960148 --- /dev/null +++ b/src/test/resources/examples/full_examples/primary-care/acute/no-nominated-pharmacy/medical-prescriber/author/unknown/1-Prepare-Response-200_OK.json @@ -0,0 +1,17 @@ +{ + "resourceType": "Parameters", + "parameter": [ + { + "name": "digest", + "valueString": "PFNpZ25lZEluZm8geG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvMDkveG1sZHNpZyMiPjxDYW5vbmljYWxpemF0aW9uTWV0aG9kIEFsZ29yaXRobT0iaHR0cDovL3d3dy53My5vcmcvMjAwMS8xMC94bWwtZXhjLWMxNG4jIj48L0Nhbm9uaWNhbGl6YXRpb25NZXRob2Q+PFNpZ25hdHVyZU1ldGhvZCBBbGdvcml0aG09Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvMDkveG1sZHNpZyNyc2Etc2hhMSI+PC9TaWduYXR1cmVNZXRob2Q+PFJlZmVyZW5jZT48VHJhbnNmb3Jtcz48VHJhbnNmb3JtIEFsZ29yaXRobT0iaHR0cDovL3d3dy53My5vcmcvMjAwMS8xMC94bWwtZXhjLWMxNG4jIj48L1RyYW5zZm9ybT48L1RyYW5zZm9ybXM+PERpZ2VzdE1ldGhvZCBBbGdvcml0aG09Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvMDkveG1sZHNpZyNzaGExIj48L0RpZ2VzdE1ldGhvZD48RGlnZXN0VmFsdWU+UWIreGR2aEVhZVk4aXZDZlBqaGFGRnFMdmlnPTwvRGlnZXN0VmFsdWU+PC9SZWZlcmVuY2U+PC9TaWduZWRJbmZvPg==" + }, + { + "name": "timestamp", + "valueString": "2022-10-25T10:24:34+00:00" + }, + { + "name": "algorithm", + "valueString": "RS1" + } + ] +} diff --git a/src/test/resources/examples/full_examples/primary-care/acute/no-nominated-pharmacy/medical-prescriber/author/unknown/1-Process-Request-Send-200_OK.json b/src/test/resources/examples/full_examples/primary-care/acute/no-nominated-pharmacy/medical-prescriber/author/unknown/1-Process-Request-Send-200_OK.json new file mode 100644 index 00000000..210a8a26 --- /dev/null +++ b/src/test/resources/examples/full_examples/primary-care/acute/no-nominated-pharmacy/medical-prescriber/author/unknown/1-Process-Request-Send-200_OK.json @@ -0,0 +1,498 @@ +{ + "resourceType": "Bundle", + "id": "0cb82cfa-76c8-4fb2-a08e-bf0e326e5487", + "identifier": { + "system": "https://tools.ietf.org/html/rfc4122", + "value": "740a735a-8895-4b79-8f89-83627a5c932e" + }, + "type": "message", + "entry": [ + { + "fullUrl": "urn:uuid:17773b27-427e-4940-8c16-64cdac715001", + "resource": { + "resourceType": "MessageHeader", + "eventCoding": { + "system": "https://fhir.nhs.uk/CodeSystem/message-event", + "code": "prescription-order", + "display": "Prescription Order" + }, + "sender": { + "identifier": { + "system": "https://fhir.nhs.uk/Id/ods-organization-code", + "value": "A83008" + }, + "display": "HALLGARTH SURGERY" + }, + "source": { + "endpoint": "https://directory.spineservices.nhs.uk/STU3/Organization/A83008" + }, + "destination": [ + { + "endpoint": "https://sandbox.api.service.nhs.uk/electronic-prescriptions/$post-message", + "receiver": { + "identifier": { + "system": "https://fhir.nhs.uk/Id/ods-organization-code", + "value": "VNE51" + } + } + } + ], + "focus": [ + { + "reference": "urn:uuid:56166769-c1c4-4d07-afa8-132b5dfca666" + }, + { + "reference": "urn:uuid:5cb17f5a-11ac-4e18-825f-6470467238b3" + }, + { + "reference": "urn:uuid:a54219b8-f741-4c47-b662-e4f8dfa49ab6" + } + ] + } + }, + { + "fullUrl": "urn:uuid:a54219b8-f741-4c47-b662-e4f8dfa49ab6", + "resource": { + "resourceType": "MedicationRequest", + "extension": [ + { + "url": "https://fhir.nhs.uk/StructureDefinition/Extension-DM-PrescriptionType", + "valueCoding": { + "system": "https://fhir.nhs.uk/CodeSystem/prescription-type", + "code": "0101", + "display": "Primary Care Prescriber - Medical Prescriber" + } + } + ], + "identifier": [ + { + "system": "https://fhir.nhs.uk/Id/prescription-order-item-number", + "value": "299c610b-f4f1-4eac-a7d7-4fb6b0556e11" + } + ], + "status": "active", + "intent": "order", + "category": [ + { + "coding": [ + { + "system": "http://terminology.hl7.org/CodeSystem/medicationrequest-category", + "code": "community", + "display": "Community" + } + ] + } + ], + "medicationCodeableConcept": { + "coding": [ + { + "system": "http://snomed.info/sct", + "code": "322237000", + "display": "Paracetamol 500mg soluble tablets" + } + ] + }, + "subject": { + "reference": "urn:uuid:78d3c2eb-009e-4ec8-a358-b042954aa9b2" + }, + "requester": { + "reference": "urn:uuid:56166769-c1c4-4d07-afa8-132b5dfca666" + }, + "groupIdentifier": { + "extension": [ + { + "url": "https://fhir.nhs.uk/StructureDefinition/Extension-DM-PrescriptionId", + "valueIdentifier": { + "system": "https://fhir.nhs.uk/Id/prescription", + "value": "44232843-8607-4a72-ba0c-e7c0862a3754" + } + } + ], + "system": "https://fhir.nhs.uk/Id/prescription-order-number", + "value": "C3A429-A83008-49E0AP" + }, + "courseOfTherapyType": { + "coding": [ + { + "system": "http://terminology.hl7.org/CodeSystem/medicationrequest-course-of-therapy", + "code": "acute", + "display": "Short course (acute) therapy" + } + ] + }, + "dosageInstruction": [ + { + "text": "4 times a day - Oral", + "timing": { + "repeat": { + "frequency": 4, + "period": 1, + "periodUnit": "d" + } + }, + "route": { + "coding": [ + { + "system": "http://snomed.info/sct", + "code": "26643006", + "display": "Oral" + } + ] + } + } + ], + "dispenseRequest": { + "extension": [ + { + "url": "https://fhir.nhs.uk/StructureDefinition/Extension-DM-PerformerSiteType", + "valueCoding": { + "system": "https://fhir.nhs.uk/CodeSystem/dispensing-site-preference", + "code": "0004" + } + } + ], + "validityPeriod": { + "start": "2021-05-07", + "end": "2021-06-04" + }, + "expectedSupplyDuration": { + "value": 30, + "unit": "day", + "system": "http://unitsofmeasure.org", + "code": "d" + }, + "quantity": { + "value": 100, + "unit": "tablet", + "system": "http://snomed.info/sct", + "code": "428673006" + } + }, + "substitution": { + "allowedBoolean": false + } + } + }, + { + "fullUrl": "urn:uuid:5cb17f5a-11ac-4e18-825f-6470467238b3", + "resource": { + "resourceType": "MedicationRequest", + "extension": [ + { + "url": "https://fhir.nhs.uk/StructureDefinition/Extension-DM-PrescriptionType", + "valueCoding": { + "system": "https://fhir.nhs.uk/CodeSystem/prescription-type", + "code": "0101", + "display": "Primary Care Prescriber - Medical Prescriber" + } + } + ], + "identifier": [ + { + "system": "https://fhir.nhs.uk/Id/prescription-order-item-number", + "value": "5cb17f5a-11ac-4e18-825f-6470467238b3" + } + ], + "status": "active", + "intent": "order", + "category": [ + { + "coding": [ + { + "system": "http://terminology.hl7.org/CodeSystem/medicationrequest-category", + "code": "community", + "display": "Community" + } + ] + } + ], + "medicationCodeableConcept": { + "coding": [ + { + "system": "http://snomed.info/sct", + "code": "39113611000001102", + "display": "Salbutamol 100micrograms/dose inhaler CFC free" + } + ] + }, + "subject": { + "reference": "urn:uuid:78d3c2eb-009e-4ec8-a358-b042954aa9b2" + }, + "requester": { + "reference": "urn:uuid:56166769-c1c4-4d07-afa8-132b5dfca666" + }, + "groupIdentifier": { + "extension": [ + { + "url": "https://fhir.nhs.uk/StructureDefinition/Extension-DM-PrescriptionId", + "valueIdentifier": { + "system": "https://fhir.nhs.uk/Id/prescription", + "value": "44232843-8607-4a72-ba0c-e7c0862a3754" + } + } + ], + "system": "https://fhir.nhs.uk/Id/prescription-order-number", + "value": "C3A429-A83008-49E0AP" + }, + "courseOfTherapyType": { + "coding": [ + { + "system": "http://terminology.hl7.org/CodeSystem/medicationrequest-course-of-therapy", + "code": "acute", + "display": "Short course (acute) therapy" + } + ] + }, + "dosageInstruction": [ + { + "text": "5 times a day - Inhalation", + "timing": { + "repeat": { + "frequency": 5, + "period": 1, + "periodUnit": "d" + } + }, + "route": { + "coding": [ + { + "system": "http://snomed.info/sct", + "code": "18679011000001101", + "display": "Inhalation" + } + ] + } + } + ], + "dispenseRequest": { + "extension": [ + { + "url": "https://fhir.nhs.uk/StructureDefinition/Extension-DM-PerformerSiteType", + "valueCoding": { + "system": "https://fhir.nhs.uk/CodeSystem/dispensing-site-preference", + "code": "0004" + } + } + ], + "validityPeriod": { + "start": "2021-05-07", + "end": "2021-06-04" + }, + "expectedSupplyDuration": { + "value": 30, + "unit": "day", + "system": "http://unitsofmeasure.org", + "code": "d" + }, + "quantity": { + "value": 200, + "unit": "dose", + "system": "http://snomed.info/sct", + "code": "3317411000001100" + } + }, + "substitution": { + "allowedBoolean": false + } + } + }, + { + "fullUrl": "urn:uuid:78d3c2eb-009e-4ec8-a358-b042954aa9b2", + "resource": { + "resourceType": "Patient", + "identifier": [ + { + "system": "https://fhir.nhs.uk/Id/nhs-number", + "value": "9990548609" + } + ], + "name": [ + { + "use": "usual", + "family": "XXTESTPATIENT-TGNP", + "given": [ + "DONOTUSE" + ], + "prefix": [ + "MR" + ] + } + ], + "gender": "male", + "birthDate": "1932-01-06", + "address": [ + { + "use": "home", + "line": [ + "1 Trevelyan Square", + "Boar Lane", + "Leeds", + "West Yorkshire" + ], + "postalCode": "LS1 6AE" + } + ], + "generalPractitioner": [ + { + "identifier": { + "system": "https://fhir.nhs.uk/Id/ods-organization-code", + "value": "A83008" + } + } + ] + } + }, + { + "fullUrl": "urn:uuid:56166769-c1c4-4d07-afa8-132b5dfca666", + "resource": { + "resourceType": "PractitionerRole", + "identifier": [ + { + "system": "https://fhir.nhs.uk/Id/sds-role-profile-id", + "value": "200102238987" + } + ], + "practitioner": { + "reference": "urn:uuid:a8c85454-f8cb-498d-9629-78e2cb5fa47a" + }, + "organization": { + "reference": "urn:uuid:3b4b03a5-52ba-4ba6-9b82-70350aa109d8" + }, + "code": [ + { + "coding": [ + { + "system": "https://fhir.nhs.uk/CodeSystem/NHSDigital-SDS-JobRoleCode", + "code": "S8000:G8000:R8000", + "display": "Clinical Practitioner Access Role" + } + ] + } + ], + "telecom": [ + { + "system": "phone", + "value": "01234567890", + "use": "work" + } + ] + } + }, + { + "fullUrl": "urn:uuid:a8c85454-f8cb-498d-9629-78e2cb5fa47a", + "resource": { + "resourceType": "Practitioner", + "identifier": [ + { + "system": "https://fhir.nhs.uk/Id/sds-user-id", + "value": "555086689106" + }, + { + "system": "https://fhir.hl7.org.uk/Id/professional-code", + "value": "999999" + } + ], + "name": [ + { + "family": "BOIN", + "given": [ + "C" + ], + "prefix": [ + "DR" + ] + } + ] + } + }, + { + "fullUrl": "urn:uuid:3b4b03a5-52ba-4ba6-9b82-70350aa109d8", + "resource": { + "resourceType": "Organization", + "identifier": [ + { + "system": "https://fhir.nhs.uk/Id/ods-organization-code", + "value": "A83008" + } + ], + "type": [ + { + "coding": [ + { + "system": "https://fhir.nhs.uk/CodeSystem/organisation-role", + "code": "76", + "display": "GP PRACTICE" + } + ] + } + ], + "name": "HALLGARTH SURGERY", + "address": [ + { + "use": "work", + "type": "both", + "line": [ + "HALLGARTH SURGERY", + "CHEAPSIDE" + ], + "city": "SHILDON", + "district": "COUNTY DURHAM", + "postalCode": "DL4 2HP" + } + ], + "telecom": [ + { + "system": "phone", + "value": "0115 9737320", + "use": "work" + } + ], + "partOf": { + "identifier": { + "system": "https://fhir.nhs.uk/Id/ods-organization-code", + "value": "84H" + }, + "display": "NHS COUNTY DURHAM CCG" + } + } + }, + { + "fullUrl": "urn:uuid:28828c55-8fa7-42d7-916f-fcf076e0c10e", + "resource": { + "resourceType": "Provenance", + "id": "28828c55-8fa7-42d7-916f-fcf076e0c10e", + "target": [ + { + "reference": "urn:uuid:a54219b8-f741-4c47-b662-e4f8dfa49ab6" + }, + { + "reference": "urn:uuid:5cb17f5a-11ac-4e18-825f-6470467238b3" + } + ], + "recorded": "2021-02-11T16:32:11+00:00", + "agent": [ + { + "who": { + "reference": "urn:uuid:56166769-c1c4-4d07-afa8-132b5dfca666" + } + } + ], + "signature": [ + { + "type": [ + { + "system": "urn:iso-astm:E1762-95:2013", + "code": "1.2.840.10065.1.12.1.1" + } + ], + "when": "2021-05-07T14:47:57+00:00", + "who": { + "reference": "urn:uuid:56166769-c1c4-4d07-afa8-132b5dfca666" + }, + "data": "DQo8U2lnbmF0dXJlIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwLzA5L3htbGRzaWcjIj4NCiAgICA8U2lnbmVkSW5mbz48Q2Fub25pY2FsaXphdGlvbk1ldGhvZCBBbGdvcml0aG09Imh0dHA6Ly93d3cudzMub3JnLzIwMDEvMTAveG1sLWV4Yy1jMTRuIyI+PC9DYW5vbmljYWxpemF0aW9uTWV0aG9kPjxTaWduYXR1cmVNZXRob2QgQWxnb3JpdGhtPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwLzA5L3htbGRzaWcjcnNhLXNoYTEiPjwvU2lnbmF0dXJlTWV0aG9kPjxSZWZlcmVuY2U+PFRyYW5zZm9ybXM+PFRyYW5zZm9ybSBBbGdvcml0aG09Imh0dHA6Ly93d3cudzMub3JnLzIwMDEvMTAveG1sLWV4Yy1jMTRuIyI+PC9UcmFuc2Zvcm0+PC9UcmFuc2Zvcm1zPjxEaWdlc3RNZXRob2QgQWxnb3JpdGhtPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwLzA5L3htbGRzaWcjc2hhMSI+PC9EaWdlc3RNZXRob2Q+PERpZ2VzdFZhbHVlPkIrM0hHenp5RGp4MENPOFdjZGFaOTQzSmladz08L0RpZ2VzdFZhbHVlPjwvUmVmZXJlbmNlPjwvU2lnbmVkSW5mbz4NCiAgICA8U2lnbmF0dXJlVmFsdWU+VDZGbnJORGIrdWZDSjhzTC9ZeDJ1UDVwU1RJRUpqdmJOdmE0ODl4NFhSSVh4Y25pNnhFZVZ1TlI1RVBOZWIwOHlxaW1uWDB0UVdqdGo5aTRwMG9ZWUE5blNqTUZIVEIwKzJVMTZ1SnRrNFM5OEpjcXMyUHh1U0hvVFl0cWJJcDNOT0xuSHR4R1pSRFdlSG1ZNm1LR0lNd0NyMFVwbExZcnYxU2xBQ0tycUJrPTwvU2lnbmF0dXJlVmFsdWU+DQogICAgPEtleUluZm8+DQogICAgICAgIDxYNTA5RGF0YT4NCiAgICAgICAgICAgIDxYNTA5Q2VydGlmaWNhdGU+TUlJRHVEQ0NBcUNnQXdJQkFnSUVYY210SHpBTkJna3Foa2lHOXcwQkFRc0ZBREEyTVF3d0NnWURWUVFLRXdOdWFITXhDekFKQmdOVkJBc1RBa05CTVJrd0Z3WURWUVFERXhCT1NGTWdTVTVVSUV4bGRtVnNJREZFTUI0WERUSXdNVEF5TWpFd01qRTFOVm9YRFRJeU1UQXlNakV3TlRFMU5Wb3dRekVNTUFvR0ExVUVDaE1EYm1oek1ROHdEUVlEVlFRTEV3WlFaVzl3YkdVeElqQWdCZ05WQkFNTUdUVTFOVEkxTXpVeU1URXdPRjlTUVU1RVQwMWZWVk5GVWxFd2daOHdEUVlKS29aSWh2Y05BUUVCQlFBRGdZMEFNSUdKQW9HQkFLdDRzek53N09BSDdBUVJyRGUveEJJbXNNbU1pUzlFc3JUM2EzcC9MaDNicmR6STlhYWpUVVoyYi9jdmJPYTdQZVlkN3UrSzRhMlpkMFhrKzBHRm1ZR3pTVlg2aVlqYmx3cjB2YWkzMXpWN0crbEd2SHhINnBTb0xDd0lDYVpBRndhYmVENU96OTQreUEzYVdOV3RHVjBEZmg5cXdIM1pGQ0lNUnN2ZXJOMXBBZ01CQUFHamdnRkRNSUlCUHpBT0JnTlZIUThCQWY4RUJBTUNCa0F3WlFZRFZSMGdBUUgvQkZzd1dUQlhCZ3NxaGpvQWlYdG1BQU1DQURCSU1FWUdDQ3NHQVFVRkJ3SUJGanBvZEhSd2N6b3ZMM0JyYVM1dWFITXVkV3N2WTJWeWRHbG1hV05oZEdWZmNHOXNhV05wWlhNdlkyOXVkR1Z1ZEY5amIyMXRhWFJ0Wlc1ME1ETUdBMVVkSHdRc01Db3dLS0Ftb0NTR0ltaDBkSEE2THk5amNtd3VibWh6TG5WckwybHVkQzh4WkM5amNteGpNeTVqY213d0t3WURWUjBRQkNRd0lvQVBNakF5TURFd01qSXhNREl4TlRWYWdROHlNREl5TURNeE56RXdOVEUxTlZvd0h3WURWUjBqQkJnd0ZvQVVvSllmZ1lUTlBkNkVVS0w2UUxJekh4WTVQRkl3SFFZRFZSME9CQllFRkx0eXZZU3lhcWc2MEFFVVpneGswd3JqUkpjK01Ba0dBMVVkRXdRQ01BQXdHUVlKS29aSWh2WjlCMEVBQkF3d0Noc0VWamd1TXdNQ0JMQXdEUVlKS29aSWh2Y05BUUVMQlFBRGdnRUJBQmN6eThCOGp1UHBJZmFUTkZjeHJDMjJhQ1gveFlabWhyTC9OdklCQWFYMUc1aGppd21rR0tFMmhSVElyNjdQeFp4bVhzSnhpZ1JCTUhQbEkrbFkvK29rekgwR2k3YjVicWx3N3B4R0lnSk8wMDB3OHBGc3ZvOXc0MklZaEhvZHN2bkRWU3hoTVQwSjQ2UWhrOXNvRTBMam9FVUxLUVBQbFlHa2UvR2wzbTE3SXRGWXdPYlFIMGZNRXdtaXFCeWVJZno3Z1NjY096TDVjSXA2UGNaVE9qbzJJcVFwZ0VtaGpPY1JJbkVxQU5pdFNkam9pSkFKenBhYVpqWVRSZEhVWDdpN2FqRWlING05MW5GVys0QXFrTnR0bGI0V2NHS3NTbVdnZktLaGVGNElvWktNRTgweGVyU2dNeTh2dGpMT0JKQ0dYejB3TEdtUXVSbXhNVHE4OHE0PTwvWDUwOUNlcnRpZmljYXRlPg0KICAgICAgICA8L1g1MDlEYXRhPg0KICAgIDwvS2V5SW5mbz4NCjwvU2lnbmF0dXJlPg0K" + } + ] + } + } + ] +} diff --git a/src/test/resources/examples/full_examples/primary-care/acute/nominated-pharmacy/medical-prescriber/1-Prepare-Request-200_OK.json b/src/test/resources/examples/full_examples/primary-care/acute/nominated-pharmacy/medical-prescriber/1-Prepare-Request-200_OK.json new file mode 100644 index 00000000..7874c13d --- /dev/null +++ b/src/test/resources/examples/full_examples/primary-care/acute/nominated-pharmacy/medical-prescriber/1-Prepare-Request-200_OK.json @@ -0,0 +1,745 @@ +{ + "resourceType": "Bundle", + "id": "0cb82cfa-76c8-4fb2-a08e-bf0e326e5487", + "identifier": { + "system": "https://tools.ietf.org/html/rfc4122", + "value": "46183abc-9fad-4673-85db-ce2cb6614732" + }, + "type": "message", + "entry": [ + { + "fullUrl": "urn:uuid:17773b27-427e-4940-8c16-64cdac715001", + "resource": { + "resourceType": "MessageHeader", + "eventCoding": { + "system": "https://fhir.nhs.uk/CodeSystem/message-event", + "code": "prescription-order", + "display": "Prescription Order" + }, + "destination": [ + { + "endpoint": "https://sandbox.api.service.nhs.uk/electronic-prescriptions/$post-message", + "receiver": { + "identifier": { + "system": "https://fhir.nhs.uk/Id/ods-organization-code", + "value": "VNE51" + }, + "display": "The Simple Pharmacy" + } + } + ], + "sender": { + "identifier": { + "system": "https://fhir.nhs.uk/Id/ods-organization-code", + "value": "A83008" + }, + "display": "HALLGARTH SURGERY" + }, + "source": { + "endpoint": "https://directory.spineservices.nhs.uk/STU3/Organization/A83008" + }, + "focus": [ + { + "reference": "urn:uuid:a54219b8-f741-4c47-b662-e4f8dfa49ab6" + }, + { + "reference": "urn:uuid:6989b7bd-8db6-428c-a593-4022e3044c00" + }, + { + "reference": "urn:uuid:2868554c-5565-4d31-b92a-c5b8dab8b90a" + }, + { + "reference": "urn:uuid:5cb17f5a-11ac-4e18-825f-6470467238b3" + }, + { + "reference": "urn:uuid:56166769-c1c4-4d07-afa8-132b5dfca666" + }, + { + "reference": "urn:uuid:78d3c2eb-009e-4ec8-a358-b042954aa9b2" + } + ] + } + }, + { + "fullUrl": "urn:uuid:a54219b8-f741-4c47-b662-e4f8dfa49ab6", + "resource": { + "resourceType": "MedicationRequest", + "extension": [ + { + "url": "https://fhir.nhs.uk/StructureDefinition/Extension-DM-PrescriptionType", + "valueCoding": { + "system": "https://fhir.nhs.uk/CodeSystem/prescription-type", + "code": "0101", + "display": "Primary Care Prescriber - Medical Prescriber" + } + } + ], + "identifier": [ + { + "system": "https://fhir.nhs.uk/Id/prescription-order-item-number", + "value": "a54219b8-f741-4c47-b662-e4f8dfa49ab6" + } + ], + "status": "active", + "intent": "order", + "category": [ + { + "coding": [ + { + "system": "http://terminology.hl7.org/CodeSystem/medicationrequest-category", + "code": "community", + "display": "Community" + } + ] + } + ], + "medicationCodeableConcept": { + "coding": [ + { + "system": "http://snomed.info/sct", + "code": "39732311000001104", + "display": "Amoxicillin 250mg capsules" + } + ] + }, + "subject": { + "reference": "urn:uuid:78d3c2eb-009e-4ec8-a358-b042954aa9b2" + }, + "requester": { + "reference": "urn:uuid:56166769-c1c4-4d07-afa8-132b5dfca666" + }, + "groupIdentifier": { + "system": "https://fhir.nhs.uk/Id/prescription-order-number", + "value": "24F5DA-A83008-7EFE6Z", + "extension": [ + { + "url": "https://fhir.nhs.uk/StructureDefinition/Extension-DM-PrescriptionId", + "valueIdentifier": { + "system": "https://fhir.nhs.uk/Id/prescription", + "value": "20ba5fb5-cb58-462c-923e-22d180b09356" + } + } + ] + }, + "courseOfTherapyType": { + "coding": [ + { + "system": "http://terminology.hl7.org/CodeSystem/medicationrequest-course-of-therapy", + "code": "acute", + "display": "Short course (acute) therapy" + } + ] + }, + "dosageInstruction": [ + { + "text": "2 times a day for 10 days", + "timing": { + "repeat": { + "frequency": 2, + "period": 1, + "periodUnit": "d" + } + }, + "route": { + "coding": [ + { + "system": "http://snomed.info/sct", + "code": "26643006", + "display": "Oral" + } + ] + } + } + ], + "dispenseRequest": { + "extension": [ + { + "url": "https://fhir.nhs.uk/StructureDefinition/Extension-DM-PerformerSiteType", + "valueCoding": { + "system": "https://fhir.nhs.uk/CodeSystem/dispensing-site-preference", + "code": "P1" + } + } + ], + "validityPeriod": { + "start": "2022-10-21" + }, + "quantity": { + "value": 20, + "unit": "tablet", + "system": "http://snomed.info/sct", + "code": "428673006" + }, + "expectedSupplyDuration": { + "value": 10, + "unit": "day", + "system": "http://unitsofmeasure.org", + "code": "d" + }, + "performer": { + "identifier": { + "system": "https://fhir.nhs.uk/Id/ods-organization-code", + "value": "VNE51" + } + } + }, + "substitution": { + "allowedBoolean": false + } + } + }, + { + "fullUrl": "urn:uuid:6989b7bd-8db6-428c-a593-4022e3044c00", + "resource": { + "resourceType": "MedicationRequest", + "extension": [ + { + "url": "https://fhir.nhs.uk/StructureDefinition/Extension-DM-PrescriptionType", + "valueCoding": { + "system": "https://fhir.nhs.uk/CodeSystem/prescription-type", + "code": "0101", + "display": "Primary Care Prescriber - Medical Prescriber" + } + } + ], + "identifier": [ + { + "system": "https://fhir.nhs.uk/Id/prescription-order-item-number", + "value": "6989b7bd-8db6-428c-a593-4022e3044c00" + } + ], + "status": "active", + "intent": "order", + "category": [ + { + "coding": [ + { + "system": "http://terminology.hl7.org/CodeSystem/medicationrequest-category", + "code": "community", + "display": "Community" + } + ] + } + ], + "medicationCodeableConcept": { + "coding": [ + { + "system": "http://snomed.info/sct", + "code": "322341003", + "display": "Co-codamol 30mg/500mg tablets" + } + ] + }, + "subject": { + "reference": "urn:uuid:78d3c2eb-009e-4ec8-a358-b042954aa9b2" + }, + "requester": { + "reference": "urn:uuid:56166769-c1c4-4d07-afa8-132b5dfca666" + }, + "groupIdentifier": { + "system": "https://fhir.nhs.uk/Id/prescription-order-number", + "value": "24F5DA-A83008-7EFE6Z", + "extension": [ + { + "url": "https://fhir.nhs.uk/StructureDefinition/Extension-DM-PrescriptionId", + "valueIdentifier": { + "system": "https://fhir.nhs.uk/Id/prescription", + "value": "20ba5fb5-cb58-462c-923e-22d180b09356" + } + } + ] + }, + "courseOfTherapyType": { + "coding": [ + { + "system": "http://terminology.hl7.org/CodeSystem/medicationrequest-course-of-therapy", + "code": "acute", + "display": "Short course (acute) therapy" + } + ] + }, + "dosageInstruction": [ + { + "text": "2 times a day for 10 days", + "timing": { + "repeat": { + "frequency": 2, + "period": 1, + "periodUnit": "d" + } + }, + "route": { + "coding": [ + { + "system": "http://snomed.info/sct", + "code": "26643006", + "display": "Oral" + } + ] + } + } + ], + "dispenseRequest": { + "extension": [ + { + "url": "https://fhir.nhs.uk/StructureDefinition/Extension-DM-PerformerSiteType", + "valueCoding": { + "system": "https://fhir.nhs.uk/CodeSystem/dispensing-site-preference", + "code": "P1" + } + } + ], + "validityPeriod": { + "start": "2022-10-21" + }, + "quantity": { + "value": 20, + "unit": "tablet", + "system": "http://snomed.info/sct", + "code": "428673006" + }, + "expectedSupplyDuration": { + "value": 10, + "unit": "day", + "system": "http://unitsofmeasure.org", + "code": "d" + }, + "performer": { + "identifier": { + "system": "https://fhir.nhs.uk/Id/ods-organization-code", + "value": "VNE51" + } + } + }, + "substitution": { + "allowedBoolean": false + } + } + }, + { + "fullUrl": "urn:uuid:2868554c-5565-4d31-b92a-c5b8dab8b90a", + "resource": { + "resourceType": "MedicationRequest", + "extension": [ + { + "url": "https://fhir.nhs.uk/StructureDefinition/Extension-DM-PrescriptionType", + "valueCoding": { + "system": "https://fhir.nhs.uk/CodeSystem/prescription-type", + "code": "0101", + "display": "Primary Care Prescriber - Medical Prescriber" + } + } + ], + "identifier": [ + { + "system": "https://fhir.nhs.uk/Id/prescription-order-item-number", + "value": "2868554c-5565-4d31-b92a-c5b8dab8b90a" + } + ], + "status": "active", + "intent": "order", + "category": [ + { + "coding": [ + { + "system": "http://terminology.hl7.org/CodeSystem/medicationrequest-category", + "code": "community", + "display": "Community" + } + ] + } + ], + "medicationCodeableConcept": { + "coding": [ + { + "system": "http://snomed.info/sct", + "code": "321080004", + "display": "Pseudoephedrine hydrochloride 60mg tablets" + } + ] + }, + "subject": { + "reference": "urn:uuid:78d3c2eb-009e-4ec8-a358-b042954aa9b2" + }, + "requester": { + "reference": "urn:uuid:56166769-c1c4-4d07-afa8-132b5dfca666" + }, + "groupIdentifier": { + "system": "https://fhir.nhs.uk/Id/prescription-order-number", + "value": "24F5DA-A83008-7EFE6Z", + "extension": [ + { + "url": "https://fhir.nhs.uk/StructureDefinition/Extension-DM-PrescriptionId", + "valueIdentifier": { + "system": "https://fhir.nhs.uk/Id/prescription", + "value": "20ba5fb5-cb58-462c-923e-22d180b09356" + } + } + ] + }, + "courseOfTherapyType": { + "coding": [ + { + "system": "http://terminology.hl7.org/CodeSystem/medicationrequest-course-of-therapy", + "code": "acute", + "display": "Short course (acute) therapy" + } + ] + }, + "dosageInstruction": [ + { + "text": "3 times a day for 10 days", + "timing": { + "repeat": { + "frequency": 3, + "period": 1, + "periodUnit": "d" + } + }, + "route": { + "coding": [ + { + "system": "http://snomed.info/sct", + "code": "26643006", + "display": "Oral" + } + ] + } + } + ], + "dispenseRequest": { + "extension": [ + { + "url": "https://fhir.nhs.uk/StructureDefinition/Extension-DM-PerformerSiteType", + "valueCoding": { + "system": "https://fhir.nhs.uk/CodeSystem/dispensing-site-preference", + "code": "P1" + } + } + ], + "validityPeriod": { + "start": "2022-10-21" + }, + "quantity": { + "value": 30, + "unit": "tablet", + "system": "http://snomed.info/sct", + "code": "428673006" + }, + "expectedSupplyDuration": { + "value": 10, + "unit": "day", + "system": "http://unitsofmeasure.org", + "code": "d" + }, + "performer": { + "identifier": { + "system": "https://fhir.nhs.uk/Id/ods-organization-code", + "value": "VNE51" + } + } + }, + "substitution": { + "allowedBoolean": false + } + } + }, + { + "fullUrl": "urn:uuid:5cb17f5a-11ac-4e18-825f-6470467238b3", + "resource": { + "resourceType": "MedicationRequest", + "extension": [ + { + "url": "https://fhir.nhs.uk/StructureDefinition/Extension-DM-PrescriptionType", + "valueCoding": { + "system": "https://fhir.nhs.uk/CodeSystem/prescription-type", + "code": "0101", + "display": "Primary Care Prescriber - Medical Prescriber" + } + } + ], + "identifier": [ + { + "system": "https://fhir.nhs.uk/Id/prescription-order-item-number", + "value": "5cb17f5a-11ac-4e18-825f-6470467238b3" + } + ], + "status": "active", + "intent": "order", + "category": [ + { + "coding": [ + { + "system": "http://terminology.hl7.org/CodeSystem/medicationrequest-category", + "code": "community", + "display": "Community" + } + ] + } + ], + "medicationCodeableConcept": { + "coding": [ + { + "system": "http://snomed.info/sct", + "code": "324252006", + "display": "Azithromycin 250mg capsules" + } + ] + }, + "subject": { + "reference": "urn:uuid:78d3c2eb-009e-4ec8-a358-b042954aa9b2" + }, + "requester": { + "reference": "urn:uuid:56166769-c1c4-4d07-afa8-132b5dfca666" + }, + "groupIdentifier": { + "system": "https://fhir.nhs.uk/Id/prescription-order-number", + "value": "24F5DA-A83008-7EFE6Z", + "extension": [ + { + "url": "https://fhir.nhs.uk/StructureDefinition/Extension-DM-PrescriptionId", + "valueIdentifier": { + "system": "https://fhir.nhs.uk/Id/prescription", + "value": "20ba5fb5-cb58-462c-923e-22d180b09356" + } + } + ] + }, + "courseOfTherapyType": { + "coding": [ + { + "system": "http://terminology.hl7.org/CodeSystem/medicationrequest-course-of-therapy", + "code": "acute", + "display": "Short course (acute) therapy" + } + ] + }, + "dosageInstruction": [ + { + "text": "3 times a day for 10 days", + "timing": { + "repeat": { + "frequency": 3, + "period": 1, + "periodUnit": "d" + } + }, + "route": { + "coding": [ + { + "system": "http://snomed.info/sct", + "code": "26643006", + "display": "Oral" + } + ] + } + } + ], + "dispenseRequest": { + "extension": [ + { + "url": "https://fhir.nhs.uk/StructureDefinition/Extension-DM-PerformerSiteType", + "valueCoding": { + "system": "https://fhir.nhs.uk/CodeSystem/dispensing-site-preference", + "code": "P1" + } + } + ], + "validityPeriod": { + "start": "2022-10-21" + }, + "quantity": { + "value": 30, + "unit": "tablet", + "system": "http://snomed.info/sct", + "code": "428673006" + }, + "expectedSupplyDuration": { + "value": 10, + "unit": "day", + "system": "http://unitsofmeasure.org", + "code": "d" + }, + "performer": { + "identifier": { + "system": "https://fhir.nhs.uk/Id/ods-organization-code", + "value": "VNE51" + } + } + }, + "substitution": { + "allowedBoolean": false + } + } + }, + { + "fullUrl": "urn:uuid:78d3c2eb-009e-4ec8-a358-b042954aa9b2", + "resource": { + "resourceType": "Patient", + "identifier": [ + { + "system": "https://fhir.nhs.uk/Id/nhs-number", + "value": "9449304130" + } + ], + "name": [ + { + "use": "usual", + "family": "TWITCHETT", + "given": [ + "STACEY", + "MARISA" + ], + "prefix": [ + "MS" + ] + } + ], + "gender": "female", + "birthDate": "1948-04-30", + "address": [ + { + "use": "home", + "line": [ + "10 HEATHFIELD", + "COBHAM", + "SURREY" + ], + "postalCode": "KT11 2QY" + } + ], + "generalPractitioner": [ + { + "identifier": { + "system": "https://fhir.nhs.uk/Id/ods-organization-code", + "value": "A83008" + } + } + ] + } + }, + { + "fullUrl": "urn:uuid:56166769-c1c4-4d07-afa8-132b5dfca666", + "resource": { + "resourceType": "PractitionerRole", + "identifier": [ + { + "system": "https://fhir.nhs.uk/Id/sds-role-profile-id", + "value": "200102238987" + } + ], + "practitioner": { + "reference": "urn:uuid:a8c85454-f8cb-498d-9629-78e2cb5fa47a" + }, + "organization": { + "reference": "urn:uuid:3b4b03a5-52ba-4ba6-9b82-70350aa109d8" + }, + "code": [ + { + "coding": [ + { + "system": "https://fhir.nhs.uk/CodeSystem/NHSDigital-SDS-JobRoleCode", + "code": "R8000", + "display": "Clinical Practitioner Access Role" + }, + { + "system": "https://fhir.hl7.org.uk/CodeSystem/UKCore-SDSJobRoleName", + "code": "R8000", + "display": "Clinical Practitioner Access Role" + } + ] + } + ], + "telecom": [ + { + "system": "phone", + "use": "work", + "value": "01234567890" + } + ] + } + }, + { + "fullUrl": "urn:uuid:a8c85454-f8cb-498d-9629-78e2cb5fa47a", + "resource": { + "resourceType": "Practitioner", + "identifier": [ + { + "system": "https://fhir.nhs.uk/Id/sds-user-id", + "value": "555086689106" + }, + { + "system": "https://fhir.hl7.org.uk/Id/gmc-number", + "value": "6095103" + }, + { + "system": "https://fhir.hl7.org.uk/Id/din-number", + "value": "977677" + } + ], + "name": [ + { + "family": "BOIN", + "given": [ + "C" + ], + "prefix": [ + "DR" + ] + } + ] + } + }, + { + "fullUrl": "urn:uuid:3b4b03a5-52ba-4ba6-9b82-70350aa109d8", + "resource": { + "resourceType": "Organization", + "identifier": [ + { + "system": "https://fhir.nhs.uk/Id/ods-organization-code", + "value": "A83008" + } + ], + "type": [ + { + "coding": [ + { + "system": "https://fhir.nhs.uk/CodeSystem/organisation-role", + "code": "76", + "display": "GP PRACTICE" + } + ] + } + ], + "name": "HALLGARTH SURGERY", + "telecom": [ + { + "system": "phone", + "use": "work", + "value": "0115 9737320" + } + ], + "address": [ + { + "use": "work", + "type": "both", + "line": [ + "HALLGARTH SURGERY", + "CHEAPSIDE" + ], + "city": "SHILDON", + "district": "COUNTY DURHAM", + "postalCode": "DL4 2HP" + } + ], + "partOf": { + "identifier": { + "system": "https://fhir.nhs.uk/Id/ods-organization-code", + "value": "84H" + }, + "display": "NHS COUNTY DURHAM CCG" + } + } + } + ] +} diff --git a/src/test/resources/examples/full_examples/primary-care/acute/nominated-pharmacy/medical-prescriber/1-Prepare-Response-200_OK.json b/src/test/resources/examples/full_examples/primary-care/acute/nominated-pharmacy/medical-prescriber/1-Prepare-Response-200_OK.json new file mode 100644 index 00000000..b7d4857d --- /dev/null +++ b/src/test/resources/examples/full_examples/primary-care/acute/nominated-pharmacy/medical-prescriber/1-Prepare-Response-200_OK.json @@ -0,0 +1,17 @@ +{ + "resourceType": "Parameters", + "parameter": [ + { + "name": "digest", + "valueString": "PFNpZ25lZEluZm8geG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvMDkveG1sZHNpZyMiPjxDYW5vbmljYWxpemF0aW9uTWV0aG9kIEFsZ29yaXRobT0iaHR0cDovL3d3dy53My5vcmcvMjAwMS8xMC94bWwtZXhjLWMxNG4jIj48L0Nhbm9uaWNhbGl6YXRpb25NZXRob2Q+PFNpZ25hdHVyZU1ldGhvZCBBbGdvcml0aG09Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvMDkveG1sZHNpZyNyc2Etc2hhMSI+PC9TaWduYXR1cmVNZXRob2Q+PFJlZmVyZW5jZT48VHJhbnNmb3Jtcz48VHJhbnNmb3JtIEFsZ29yaXRobT0iaHR0cDovL3d3dy53My5vcmcvMjAwMS8xMC94bWwtZXhjLWMxNG4jIj48L1RyYW5zZm9ybT48L1RyYW5zZm9ybXM+PERpZ2VzdE1ldGhvZCBBbGdvcml0aG09Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvMDkveG1sZHNpZyNzaGExIj48L0RpZ2VzdE1ldGhvZD48RGlnZXN0VmFsdWU+aDBHZnFHSjl4VG4rMTMvbytlbG1iT05JRFY0PTwvRGlnZXN0VmFsdWU+PC9SZWZlcmVuY2U+PC9TaWduZWRJbmZvPg==" + }, + { + "name": "timestamp", + "valueString": "2022-10-21T13:47:00+00:00" + }, + { + "name": "algorithm", + "valueString": "RS1" + } + ] +} diff --git a/src/test/resources/examples/full_examples/primary-care/acute/nominated-pharmacy/medical-prescriber/1-Process-Request-Send-200_OK.json b/src/test/resources/examples/full_examples/primary-care/acute/nominated-pharmacy/medical-prescriber/1-Process-Request-Send-200_OK.json new file mode 100644 index 00000000..b1ba98a8 --- /dev/null +++ b/src/test/resources/examples/full_examples/primary-care/acute/nominated-pharmacy/medical-prescriber/1-Process-Request-Send-200_OK.json @@ -0,0 +1,780 @@ +{ + "resourceType": "Bundle", + "id": "0cb82cfa-76c8-4fb2-a08e-bf0e326e5487", + "identifier": { + "system": "https://tools.ietf.org/html/rfc4122", + "value": "46183abc-9fad-4673-85db-ce2cb6614732" + }, + "type": "message", + "entry": [ + { + "fullUrl": "urn:uuid:17773b27-427e-4940-8c16-64cdac715001", + "resource": { + "resourceType": "MessageHeader", + "eventCoding": { + "system": "https://fhir.nhs.uk/CodeSystem/message-event", + "code": "prescription-order", + "display": "Prescription Order" + }, + "destination": [ + { + "endpoint": "https://sandbox.api.service.nhs.uk/electronic-prescriptions/$post-message", + "receiver": { + "identifier": { + "system": "https://fhir.nhs.uk/Id/ods-organization-code", + "value": "VNE51" + }, + "display": "The Simple Pharmacy" + } + } + ], + "sender": { + "identifier": { + "system": "https://fhir.nhs.uk/Id/ods-organization-code", + "value": "A83008" + }, + "display": "HALLGARTH SURGERY" + }, + "source": { + "endpoint": "https://directory.spineservices.nhs.uk/STU3/Organization/A83008" + }, + "focus": [ + { + "reference": "urn:uuid:a54219b8-f741-4c47-b662-e4f8dfa49ab6" + }, + { + "reference": "urn:uuid:6989b7bd-8db6-428c-a593-4022e3044c00" + }, + { + "reference": "urn:uuid:2868554c-5565-4d31-b92a-c5b8dab8b90a" + }, + { + "reference": "urn:uuid:5cb17f5a-11ac-4e18-825f-6470467238b3" + }, + { + "reference": "urn:uuid:56166769-c1c4-4d07-afa8-132b5dfca666" + }, + { + "reference": "urn:uuid:78d3c2eb-009e-4ec8-a358-b042954aa9b2" + } + ] + } + }, + { + "fullUrl": "urn:uuid:a54219b8-f741-4c47-b662-e4f8dfa49ab6", + "resource": { + "resourceType": "MedicationRequest", + "extension": [ + { + "url": "https://fhir.nhs.uk/StructureDefinition/Extension-DM-PrescriptionType", + "valueCoding": { + "system": "https://fhir.nhs.uk/CodeSystem/prescription-type", + "code": "0101", + "display": "Primary Care Prescriber - Medical Prescriber" + } + } + ], + "identifier": [ + { + "system": "https://fhir.nhs.uk/Id/prescription-order-item-number", + "value": "a54219b8-f741-4c47-b662-e4f8dfa49ab6" + } + ], + "status": "active", + "intent": "order", + "category": [ + { + "coding": [ + { + "system": "http://terminology.hl7.org/CodeSystem/medicationrequest-category", + "code": "community", + "display": "Community" + } + ] + } + ], + "medicationCodeableConcept": { + "coding": [ + { + "system": "http://snomed.info/sct", + "code": "39732311000001104", + "display": "Amoxicillin 250mg capsules" + } + ] + }, + "subject": { + "reference": "urn:uuid:78d3c2eb-009e-4ec8-a358-b042954aa9b2" + }, + "requester": { + "reference": "urn:uuid:56166769-c1c4-4d07-afa8-132b5dfca666" + }, + "groupIdentifier": { + "system": "https://fhir.nhs.uk/Id/prescription-order-number", + "value": "24F5DA-A83008-7EFE6Z", + "extension": [ + { + "url": "https://fhir.nhs.uk/StructureDefinition/Extension-DM-PrescriptionId", + "valueIdentifier": { + "system": "https://fhir.nhs.uk/Id/prescription", + "value": "20ba5fb5-cb58-462c-923e-22d180b09356" + } + } + ] + }, + "courseOfTherapyType": { + "coding": [ + { + "system": "http://terminology.hl7.org/CodeSystem/medicationrequest-course-of-therapy", + "code": "acute", + "display": "Short course (acute) therapy" + } + ] + }, + "dosageInstruction": [ + { + "text": "2 times a day for 10 days", + "timing": { + "repeat": { + "frequency": 2, + "period": 1, + "periodUnit": "d" + } + }, + "route": { + "coding": [ + { + "system": "http://snomed.info/sct", + "code": "26643006", + "display": "Oral" + } + ] + } + } + ], + "dispenseRequest": { + "extension": [ + { + "url": "https://fhir.nhs.uk/StructureDefinition/Extension-DM-PerformerSiteType", + "valueCoding": { + "system": "https://fhir.nhs.uk/CodeSystem/dispensing-site-preference", + "code": "P1" + } + } + ], + "validityPeriod": { + "start": "2022-10-21" + }, + "quantity": { + "value": 20, + "unit": "tablet", + "system": "http://snomed.info/sct", + "code": "428673006" + }, + "expectedSupplyDuration": { + "value": 10, + "unit": "day", + "system": "http://unitsofmeasure.org", + "code": "d" + }, + "performer": { + "identifier": { + "system": "https://fhir.nhs.uk/Id/ods-organization-code", + "value": "VNE51" + } + } + }, + "substitution": { + "allowedBoolean": false + } + } + }, + { + "fullUrl": "urn:uuid:6989b7bd-8db6-428c-a593-4022e3044c00", + "resource": { + "resourceType": "MedicationRequest", + "extension": [ + { + "url": "https://fhir.nhs.uk/StructureDefinition/Extension-DM-PrescriptionType", + "valueCoding": { + "system": "https://fhir.nhs.uk/CodeSystem/prescription-type", + "code": "0101", + "display": "Primary Care Prescriber - Medical Prescriber" + } + } + ], + "identifier": [ + { + "system": "https://fhir.nhs.uk/Id/prescription-order-item-number", + "value": "6989b7bd-8db6-428c-a593-4022e3044c00" + } + ], + "status": "active", + "intent": "order", + "category": [ + { + "coding": [ + { + "system": "http://terminology.hl7.org/CodeSystem/medicationrequest-category", + "code": "community", + "display": "Community" + } + ] + } + ], + "medicationCodeableConcept": { + "coding": [ + { + "system": "http://snomed.info/sct", + "code": "322341003", + "display": "Co-codamol 30mg/500mg tablets" + } + ] + }, + "subject": { + "reference": "urn:uuid:78d3c2eb-009e-4ec8-a358-b042954aa9b2" + }, + "requester": { + "reference": "urn:uuid:56166769-c1c4-4d07-afa8-132b5dfca666" + }, + "groupIdentifier": { + "system": "https://fhir.nhs.uk/Id/prescription-order-number", + "value": "24F5DA-A83008-7EFE6Z", + "extension": [ + { + "url": "https://fhir.nhs.uk/StructureDefinition/Extension-DM-PrescriptionId", + "valueIdentifier": { + "system": "https://fhir.nhs.uk/Id/prescription", + "value": "20ba5fb5-cb58-462c-923e-22d180b09356" + } + } + ] + }, + "courseOfTherapyType": { + "coding": [ + { + "system": "http://terminology.hl7.org/CodeSystem/medicationrequest-course-of-therapy", + "code": "acute", + "display": "Short course (acute) therapy" + } + ] + }, + "dosageInstruction": [ + { + "text": "2 times a day for 10 days", + "timing": { + "repeat": { + "frequency": 2, + "period": 1, + "periodUnit": "d" + } + }, + "route": { + "coding": [ + { + "system": "http://snomed.info/sct", + "code": "26643006", + "display": "Oral" + } + ] + } + } + ], + "dispenseRequest": { + "extension": [ + { + "url": "https://fhir.nhs.uk/StructureDefinition/Extension-DM-PerformerSiteType", + "valueCoding": { + "system": "https://fhir.nhs.uk/CodeSystem/dispensing-site-preference", + "code": "P1" + } + } + ], + "validityPeriod": { + "start": "2022-10-21" + }, + "quantity": { + "value": 20, + "unit": "tablet", + "system": "http://snomed.info/sct", + "code": "428673006" + }, + "expectedSupplyDuration": { + "value": 10, + "unit": "day", + "system": "http://unitsofmeasure.org", + "code": "d" + }, + "performer": { + "identifier": { + "system": "https://fhir.nhs.uk/Id/ods-organization-code", + "value": "VNE51" + } + } + }, + "substitution": { + "allowedBoolean": false + } + } + }, + { + "fullUrl": "urn:uuid:2868554c-5565-4d31-b92a-c5b8dab8b90a", + "resource": { + "resourceType": "MedicationRequest", + "extension": [ + { + "url": "https://fhir.nhs.uk/StructureDefinition/Extension-DM-PrescriptionType", + "valueCoding": { + "system": "https://fhir.nhs.uk/CodeSystem/prescription-type", + "code": "0101", + "display": "Primary Care Prescriber - Medical Prescriber" + } + } + ], + "identifier": [ + { + "system": "https://fhir.nhs.uk/Id/prescription-order-item-number", + "value": "2868554c-5565-4d31-b92a-c5b8dab8b90a" + } + ], + "status": "active", + "intent": "order", + "category": [ + { + "coding": [ + { + "system": "http://terminology.hl7.org/CodeSystem/medicationrequest-category", + "code": "community", + "display": "Community" + } + ] + } + ], + "medicationCodeableConcept": { + "coding": [ + { + "system": "http://snomed.info/sct", + "code": "321080004", + "display": "Pseudoephedrine hydrochloride 60mg tablets" + } + ] + }, + "subject": { + "reference": "urn:uuid:78d3c2eb-009e-4ec8-a358-b042954aa9b2" + }, + "requester": { + "reference": "urn:uuid:56166769-c1c4-4d07-afa8-132b5dfca666" + }, + "groupIdentifier": { + "system": "https://fhir.nhs.uk/Id/prescription-order-number", + "value": "24F5DA-A83008-7EFE6Z", + "extension": [ + { + "url": "https://fhir.nhs.uk/StructureDefinition/Extension-DM-PrescriptionId", + "valueIdentifier": { + "system": "https://fhir.nhs.uk/Id/prescription", + "value": "20ba5fb5-cb58-462c-923e-22d180b09356" + } + } + ] + }, + "courseOfTherapyType": { + "coding": [ + { + "system": "http://terminology.hl7.org/CodeSystem/medicationrequest-course-of-therapy", + "code": "acute", + "display": "Short course (acute) therapy" + } + ] + }, + "dosageInstruction": [ + { + "text": "3 times a day for 10 days", + "timing": { + "repeat": { + "frequency": 3, + "period": 1, + "periodUnit": "d" + } + }, + "route": { + "coding": [ + { + "system": "http://snomed.info/sct", + "code": "26643006", + "display": "Oral" + } + ] + } + } + ], + "dispenseRequest": { + "extension": [ + { + "url": "https://fhir.nhs.uk/StructureDefinition/Extension-DM-PerformerSiteType", + "valueCoding": { + "system": "https://fhir.nhs.uk/CodeSystem/dispensing-site-preference", + "code": "P1" + } + } + ], + "validityPeriod": { + "start": "2022-10-21" + }, + "quantity": { + "value": 30, + "unit": "tablet", + "system": "http://snomed.info/sct", + "code": "428673006" + }, + "expectedSupplyDuration": { + "value": 10, + "unit": "day", + "system": "http://unitsofmeasure.org", + "code": "d" + }, + "performer": { + "identifier": { + "system": "https://fhir.nhs.uk/Id/ods-organization-code", + "value": "VNE51" + } + } + }, + "substitution": { + "allowedBoolean": false + } + } + }, + { + "fullUrl": "urn:uuid:5cb17f5a-11ac-4e18-825f-6470467238b3", + "resource": { + "resourceType": "MedicationRequest", + "extension": [ + { + "url": "https://fhir.nhs.uk/StructureDefinition/Extension-DM-PrescriptionType", + "valueCoding": { + "system": "https://fhir.nhs.uk/CodeSystem/prescription-type", + "code": "0101", + "display": "Primary Care Prescriber - Medical Prescriber" + } + } + ], + "identifier": [ + { + "system": "https://fhir.nhs.uk/Id/prescription-order-item-number", + "value": "5cb17f5a-11ac-4e18-825f-6470467238b3" + } + ], + "status": "active", + "intent": "order", + "category": [ + { + "coding": [ + { + "system": "http://terminology.hl7.org/CodeSystem/medicationrequest-category", + "code": "community", + "display": "Community" + } + ] + } + ], + "medicationCodeableConcept": { + "coding": [ + { + "system": "http://snomed.info/sct", + "code": "324252006", + "display": "Azithromycin 250mg capsules" + } + ] + }, + "subject": { + "reference": "urn:uuid:78d3c2eb-009e-4ec8-a358-b042954aa9b2" + }, + "requester": { + "reference": "urn:uuid:56166769-c1c4-4d07-afa8-132b5dfca666" + }, + "groupIdentifier": { + "system": "https://fhir.nhs.uk/Id/prescription-order-number", + "value": "24F5DA-A83008-7EFE6Z", + "extension": [ + { + "url": "https://fhir.nhs.uk/StructureDefinition/Extension-DM-PrescriptionId", + "valueIdentifier": { + "system": "https://fhir.nhs.uk/Id/prescription", + "value": "20ba5fb5-cb58-462c-923e-22d180b09356" + } + } + ] + }, + "courseOfTherapyType": { + "coding": [ + { + "system": "http://terminology.hl7.org/CodeSystem/medicationrequest-course-of-therapy", + "code": "acute", + "display": "Short course (acute) therapy" + } + ] + }, + "dosageInstruction": [ + { + "text": "3 times a day for 10 days", + "timing": { + "repeat": { + "frequency": 3, + "period": 1, + "periodUnit": "d" + } + }, + "route": { + "coding": [ + { + "system": "http://snomed.info/sct", + "code": "26643006", + "display": "Oral" + } + ] + } + } + ], + "dispenseRequest": { + "extension": [ + { + "url": "https://fhir.nhs.uk/StructureDefinition/Extension-DM-PerformerSiteType", + "valueCoding": { + "system": "https://fhir.nhs.uk/CodeSystem/dispensing-site-preference", + "code": "P1" + } + } + ], + "validityPeriod": { + "start": "2022-10-21" + }, + "quantity": { + "value": 30, + "unit": "tablet", + "system": "http://snomed.info/sct", + "code": "428673006" + }, + "expectedSupplyDuration": { + "value": 10, + "unit": "day", + "system": "http://unitsofmeasure.org", + "code": "d" + }, + "performer": { + "identifier": { + "system": "https://fhir.nhs.uk/Id/ods-organization-code", + "value": "VNE51" + } + } + }, + "substitution": { + "allowedBoolean": false + } + } + }, + { + "fullUrl": "urn:uuid:78d3c2eb-009e-4ec8-a358-b042954aa9b2", + "resource": { + "resourceType": "Patient", + "identifier": [ + { + "system": "https://fhir.nhs.uk/Id/nhs-number", + "value": "9449304130" + } + ], + "name": [ + { + "use": "usual", + "family": "TWITCHETT", + "given": [ + "STACEY", + "MARISA" + ], + "prefix": [ + "MS" + ] + } + ], + "gender": "female", + "birthDate": "1948-04-30", + "address": [ + { + "use": "home", + "line": [ + "10 HEATHFIELD", + "COBHAM", + "SURREY" + ], + "postalCode": "KT11 2QY" + } + ], + "generalPractitioner": [ + { + "identifier": { + "system": "https://fhir.nhs.uk/Id/ods-organization-code", + "value": "A83008" + } + } + ] + } + }, + { + "fullUrl": "urn:uuid:56166769-c1c4-4d07-afa8-132b5dfca666", + "resource": { + "resourceType": "PractitionerRole", + "identifier": [ + { + "system": "https://fhir.nhs.uk/Id/sds-role-profile-id", + "value": "200102238987" + } + ], + "practitioner": { + "reference": "urn:uuid:a8c85454-f8cb-498d-9629-78e2cb5fa47a" + }, + "organization": { + "reference": "urn:uuid:3b4b03a5-52ba-4ba6-9b82-70350aa109d8" + }, + "code": [ + { + "coding": [ + { + "system": "https://fhir.nhs.uk/CodeSystem/NHSDigital-SDS-JobRoleCode", + "code": "R8000", + "display": "Clinical Practitioner Access Role" + }, + { + "system": "https://fhir.hl7.org.uk/CodeSystem/UKCore-SDSJobRoleName", + "code": "R8000", + "display": "Clinical Practitioner Access Role" + } + ] + } + ], + "telecom": [ + { + "system": "phone", + "use": "work", + "value": "01234567890" + } + ] + } + }, + { + "fullUrl": "urn:uuid:a8c85454-f8cb-498d-9629-78e2cb5fa47a", + "resource": { + "resourceType": "Practitioner", + "identifier": [ + { + "system": "https://fhir.nhs.uk/Id/sds-user-id", + "value": "555086689106" + }, + { + "system": "https://fhir.hl7.org.uk/Id/gmc-number", + "value": "6095103" + }, + { + "system": "https://fhir.hl7.org.uk/Id/din-number", + "value": "977677" + } + ], + "name": [ + { + "family": "BOIN", + "given": [ + "C" + ], + "prefix": [ + "DR" + ] + } + ] + } + }, + { + "fullUrl": "urn:uuid:3b4b03a5-52ba-4ba6-9b82-70350aa109d8", + "resource": { + "resourceType": "Organization", + "identifier": [ + { + "system": "https://fhir.nhs.uk/Id/ods-organization-code", + "value": "A83008" + } + ], + "type": [ + { + "coding": [ + { + "system": "https://fhir.nhs.uk/CodeSystem/organisation-role", + "code": "76", + "display": "GP PRACTICE" + } + ] + } + ], + "name": "HALLGARTH SURGERY", + "telecom": [ + { + "system": "phone", + "use": "work", + "value": "0115 9737320" + } + ], + "address": [ + { + "use": "work", + "type": "both", + "line": [ + "HALLGARTH SURGERY", + "CHEAPSIDE" + ], + "city": "SHILDON", + "district": "COUNTY DURHAM", + "postalCode": "DL4 2HP" + } + ], + "partOf": { + "identifier": { + "system": "https://fhir.nhs.uk/Id/ods-organization-code", + "value": "84H" + }, + "display": "NHS COUNTY DURHAM CCG" + } + } + }, + { + "fullUrl": "urn:uuid:28828c55-8fa7-42d7-916f-fcf076e0c10e", + "resource": { + "resourceType": "Provenance", + "id": "28828c55-8fa7-42d7-916f-fcf076e0c10e", + "target": [ + { + "reference": "urn:uuid:0cb82cfa-76c8-4fb2-a08e-bf0e326e5487" + } + ], + "recorded": "2022-10-21T13:47:00+00:00", + "agent": [ + { + "who": { + "reference": "urn:uuid:56166769-c1c4-4d07-afa8-132b5dfca666" + } + } + ], + "signature": [ + { + "type": [ + { + "system": "urn:iso-astm:E1762-95:2013", + "code": "1.2.840.10065.1.12.1.1" + } + ], + "when": "2022-10-21T13:47:00+00:00", + "who": { + "reference": "urn:uuid:56166769-c1c4-4d07-afa8-132b5dfca666" + }, + "data": "PFNpZ25hdHVyZSB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC8wOS94bWxkc2lnIyI+CiAgICAgICAgICAgIDxTaWduZWRJbmZvPjxDYW5vbmljYWxpemF0aW9uTWV0aG9kIEFsZ29yaXRobT0iaHR0cDovL3d3dy53My5vcmcvMjAwMS8xMC94bWwtZXhjLWMxNG4jIj48L0Nhbm9uaWNhbGl6YXRpb25NZXRob2Q+PFNpZ25hdHVyZU1ldGhvZCBBbGdvcml0aG09Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvMDkveG1sZHNpZyNyc2Etc2hhMSI+PC9TaWduYXR1cmVNZXRob2Q+PFJlZmVyZW5jZT48VHJhbnNmb3Jtcz48VHJhbnNmb3JtIEFsZ29yaXRobT0iaHR0cDovL3d3dy53My5vcmcvMjAwMS8xMC94bWwtZXhjLWMxNG4jIj48L1RyYW5zZm9ybT48L1RyYW5zZm9ybXM+PERpZ2VzdE1ldGhvZCBBbGdvcml0aG09Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvMDkveG1sZHNpZyNzaGExIj48L0RpZ2VzdE1ldGhvZD48RGlnZXN0VmFsdWU+WTg5YWNmSC90VkVtSXI2aVlrRVJrWWMxbG1jPTwvRGlnZXN0VmFsdWU+PC9SZWZlcmVuY2U+PC9TaWduZWRJbmZvPgogICAgICAgICAgICA8U2lnbmF0dXJlVmFsdWU+PC9TaWduYXR1cmVWYWx1ZT4KICAgICAgICAgICAgPEtleUluZm8+PFg1MDlEYXRhPjxYNTA5Q2VydGlmaWNhdGU+PC9YNTA5Q2VydGlmaWNhdGU+PC9YNTA5RGF0YT48L0tleUluZm8+CiAgICAgICAgICA8L1NpZ25hdHVyZT4=" + } + ] + } + } + ] +} diff --git a/src/test/resources/examples/full_examples/primary-care/acute/nominated-pharmacy/medical-prescriber/1-Process-Response-Send-200_OK.json b/src/test/resources/examples/full_examples/primary-care/acute/nominated-pharmacy/medical-prescriber/1-Process-Response-Send-200_OK.json new file mode 100644 index 00000000..d0c17019 --- /dev/null +++ b/src/test/resources/examples/full_examples/primary-care/acute/nominated-pharmacy/medical-prescriber/1-Process-Response-Send-200_OK.json @@ -0,0 +1,12 @@ +{ + "resourceType": "OperationOutcome", + "meta": { + "lastUpdated": "2022-10-21T13:47:00+00:00" + }, + "issue": [ + { + "severity": "information", + "code": "informational" + } + ] +} diff --git a/src/test/resources/examples/full_examples/primary-care/acute/nominated-pharmacy/medical-prescriber/1-Task-Request-Release-200_OK.json b/src/test/resources/examples/full_examples/primary-care/acute/nominated-pharmacy/medical-prescriber/1-Task-Request-Release-200_OK.json new file mode 100644 index 00000000..47e29bb6 --- /dev/null +++ b/src/test/resources/examples/full_examples/primary-care/acute/nominated-pharmacy/medical-prescriber/1-Task-Request-Release-200_OK.json @@ -0,0 +1,99 @@ +{ + "resourceType": "Parameters", + "id": "36c69896-c280-4460-ad0d-65f73d79aee5", + "parameter": [ + { + "name": "owner", + "resource": { + "resourceType": "Organization", + "id": "organization", + "identifier": [ + { + "system": "https://fhir.nhs.uk/Id/ods-organization-code", + "value": "VNE51" + } + ], + "address": [ + { + "city": "West Yorkshire", + "use": "work", + "line": [ + "17 Austhorpe Road", + "Crossgates", + "Leeds" + ], + "postalCode": "LS15 8BA" + } + ], + "active": true, + "type": [ + { + "coding": [ + { + "system": "https://fhir.nhs.uk/CodeSystem/organisation-role", + "code": "182", + "display": "PHARMACY" + } + ] + } + ], + "name": "The Simple Pharmacy", + "telecom": [ + { + "system": "phone", + "use": "work", + "value": "0113 3180277" + } + ] + } + }, + { + "name": "status", + "valueCode": "accepted" + }, + { + "name": "agent", + "resource": { + "resourceType": "PractitionerRole", + "telecom": [ + { + "system": "phone", + "value": "02380798431", + "use": "work" + } + ], + "identifier": [ + { + "system": "https://fhir.nhs.uk/Id/sds-role-profile-id", + "value": "555086415105" + } + ], + "practitioner": { + "identifier": { + "system": "https://fhir.nhs.uk/Id/sds-user-id", + "value": "3415870201" + }, + "display": "Jackie Clark" + }, + "code": [ + { + "coding": [ + { + "system": "https://fhir.nhs.uk/CodeSystem/NHSDigital-SDS-JobRoleCode", + "code": "R8000", + "display": "Clinical Practitioner Access Role" + } + ] + } + ] + } + }, + { + "name": "group-identifier", + "valueIdentifier": { + "system": "https://fhir.nhs.uk/Id/prescription-order-number", + "value": "24F5DA-A83008-7EFE6Z" + } + } + ] +} diff --git a/src/test/resources/examples/full_examples/primary-care/acute/nominated-pharmacy/medical-prescriber/2-Claim-Request-400_Missing_Endorsement_Code.json b/src/test/resources/examples/full_examples/primary-care/acute/nominated-pharmacy/medical-prescriber/2-Claim-Request-400_Missing_Endorsement_Code.json new file mode 100644 index 00000000..255a231f --- /dev/null +++ b/src/test/resources/examples/full_examples/primary-care/acute/nominated-pharmacy/medical-prescriber/2-Claim-Request-400_Missing_Endorsement_Code.json @@ -0,0 +1,554 @@ +{ + "resourceType": "Claim", + "contained": [ + { + "resourceType": "PractitionerRole", + "id": "performer", + "identifier": [ + { + "system": "https://fhir.nhs.uk/Id/sds-role-profile-id", + "value": "555086415105" + } + ], + "practitioner": { + "identifier": { + "system": "https://fhir.nhs.uk/Id/sds-user-id", + "value": "3415870201" + }, + "display": "Mr Peter Potion" + }, + "organization": { + "reference": "#organizationId" + }, + "code": [ + { + "coding": [ + { + "system": "https://fhir.nhs.uk/CodeSystem/NHSDigital-SDS-JobRoleCode", + "code": "S8000:G8000:R8000", + "display": "Clinical Practitioner Access Role" + } + ] + } + ], + "telecom": [ + { + "system": "phone", + "use": "work", + "value": "0532567890" + } + ] + }, + { + "resourceType": "Organization", + "extension": [ + { + "url": "https://fhir.nhs.uk/StructureDefinition/Extension-ODS-OrganisationRelationships", + "extension": [ + { + "url": "reimbursementAuthority", + "valueIdentifier": { + "system": "https://fhir.nhs.uk/Id/ods-organization-code", + "value": "T1450" + } + } + ] + } + ], + "identifier": [ + { + "system": "https://fhir.nhs.uk/Id/ods-organization-code", + "value": "VNE51" + } + ], + "id": "organizationId", + "address": [ + { + "city": "West Yorkshire", + "use": "work", + "line": [ + "17 Austhorpe Road", + "Crossgates", + "Leeds" + ], + "postalCode": "LS15 8BA" + } + ], + "active": true, + "type": [ + { + "coding": [ + { + "system": "https://fhir.nhs.uk/CodeSystem/organisation-role", + "code": "182", + "display": "PHARMACY" + } + ] + } + ], + "name": "The Simple Pharmacy", + "telecom": [ + { + "system": "phone", + "use": "work", + "value": "0113 3180277" + } + ] + } + ], + "created": "2024-01-09T09:29:02.725Z", + "extension": [ + { + "url": "https://fhir.nhs.uk/StructureDefinition/Extension-Provenance-agent", + "valueReference": { + "identifier": { + "system": "https://fhir.nhs.uk/Id/sds-role-profile-id", + "value": "555086415105" + }, + "display": "dummy full name" + } + } + ], + "identifier": [ + { + "system": "https://tools.ietf.org/html/rfc4122", + "value": "22dc23c8-cd73-47f7-940e-8ecc15e8330f" + } + ], + "status": "active", + "type": { + "coding": [ + { + "system": "http://terminology.hl7.org/CodeSystem/claim-type", + "code": "pharmacy", + "display": "Pharmacy" + } + ] + }, + "use": "claim", + "patient": { + "identifier": { + "system": "https://fhir.nhs.uk/Id/nhs-number", + "value": "9449304130" + } + }, + "provider": { + "reference": "#performer" + }, + "priority": { + "coding": [ + { + "system": "http://terminology.hl7.org/CodeSystem/processpriority", + "code": "normal" + } + ] + }, + "insurance": [ + { + "sequence": 1, + "focal": true, + "coverage": { + "identifier": { + "system": "https://fhir.nhs.uk/Id/ods-organization-code", + "value": "T1450" + }, + "display": "NHS BUSINESS SERVICES AUTHORITY" + } + } + ], + "payee": { + "type": { + "coding": [ + { + "system": "http://terminology.hl7.org/CodeSystem/payeetype", + "code": "provider", + "display": "Provider" + } + ] + }, + "party": { + "reference": "#organizationId" + } + }, + "prescription": { + "extension": [ + { + "url": "https://fhir.nhs.uk/StructureDefinition/Extension-DM-GroupIdentifier", + "extension": [ + { + "url": "shortForm", + "valueIdentifier": { + "system": "https://fhir.nhs.uk/Id/prescription-order-number", + "value": "2CAE80-A83008-A2D65U" + } + }, + { + "url": "UUID", + "valueIdentifier": { + "system": "https://fhir.nhs.uk/Id/prescription", + "value": "{{prescription_uuid}}" + } + } + ] + } + ] + }, + "item": [ + { + "extension": [ + { + "url": "https://fhir.nhs.uk/StructureDefinition/Extension-EPS-TaskBusinessStatus", + "valueCoding": { + "code": "0006", + "system": "https://fhir.nhs.uk/CodeSystem/EPS-task-business-status", + "display": "Dispensed" + } + } + ], + "sequence": 1, + "productOrService": { + "coding": [ + { + "system": "http://snomed.info/sct", + "code": "16076005", + "display": "Prescription" + } + ] + }, + "programCode": [ + { + "coding": [ + { + "code": "0001", + "system": "https://fhir.nhs.uk/CodeSystem/prescription-charge-exemption", + "display": "Patient has paid appropriate charges" + } + ] + }, + { + "coding": [ + { + "system": "https://fhir.nhs.uk/CodeSystem/DM-exemption-evidence", + "code": "evidence-seen", + "display": "Evidence Seen" + } + ] + } + ], + "detail": [ + { + "extension": [ + { + "url": "https://fhir.nhs.uk/StructureDefinition/Extension-ClaimSequenceIdentifier", + "valueIdentifier": { + "system": "https://fhir.nhs.uk/Id/claim-sequence-identifier", + "value": "67b960e8-e064-4f8a-a1ea-9ca9cf989f22" + } + }, + { + "url": "https://fhir.nhs.uk/StructureDefinition/Extension-ClaimMedicationRequestReference", + "valueReference": { + "identifier": { + "system": "https://fhir.nhs.uk/Id/prescription-order-item-number", + "value": "7d34e1c9-ebb1-454a-8471-93ba96c6d54b" + } + } + } + ], + "sequence": 1, + "productOrService": { + "coding": [ + { + "system": "http://snomed.info/sct", + "code": "39732311000001104", + "display": "Amoxicillin 250mg capsules" + } + ] + }, + "modifier": [ + { + "coding": [ + { + "code": "0001", + "system": "https://fhir.nhs.uk/CodeSystem/medicationdispense-type", + "display": "Item fully dispensed" + } + ] + } + ], + "quantity": { + "value": 20, + "unit": "tablet", + "system": "http://snomed.info/sct", + "code": "428673006" + }, + "programCode": [ + { + "coding": [ + { + "system": "https://fhir.nhs.uk/CodeSystem/DM-prescription-charge", + "code": "paid-once", + "display": "Paid Once" + } + ] + } + ], + "subDetail": [ + { + "sequence": 1, + "productOrService": { + "coding": [ + { + "system": "http://snomed.info/sct", + "code": "39732311000001104", + "display": "Amoxicillin 250mg capsules" + } + ] + }, + "quantity": { + "value": 20, + "unit": "tablet", + "system": "http://snomed.info/sct", + "code": "428673006" + } + } + ] + }, + { + "extension": [ + { + "url": "https://fhir.nhs.uk/StructureDefinition/Extension-ClaimSequenceIdentifier", + "valueIdentifier": { + "system": "https://fhir.nhs.uk/Id/claim-sequence-identifier", + "value": "8c90cffa-dbe1-488e-9442-35afe02943c6" + } + }, + { + "url": "https://fhir.nhs.uk/StructureDefinition/Extension-ClaimMedicationRequestReference", + "valueReference": { + "identifier": { + "system": "https://fhir.nhs.uk/Id/prescription-order-item-number", + "value": "c5dbd6da-4b4f-42eb-9e3b-16623e1b2579" + } + } + } + ], + "sequence": 2, + "productOrService": { + "coding": [ + { + "system": "http://snomed.info/sct", + "code": "322341003", + "display": "Co-codamol 30mg/500mg tablets" + } + ] + }, + "modifier": [ + { + "coding": [ + { + "code": "0001", + "system": "https://fhir.nhs.uk/CodeSystem/medicationdispense-type", + "display": "Item fully dispensed" + } + ] + } + ], + "quantity": { + "value": 20, + "unit": "tablet", + "system": "http://snomed.info/sct", + "code": "428673006" + }, + "programCode": [ + { + "coding": [ + { + "system": "https://fhir.nhs.uk/CodeSystem/DM-prescription-charge", + "code": "paid-once", + "display": "Paid Once" + } + ] + } + ], + "subDetail": [ + { + "sequence": 1, + "productOrService": { + "coding": [ + { + "system": "http://snomed.info/sct", + "code": "322341003", + "display": "Co-codamol 30mg/500mg tablets" + } + ] + }, + "quantity": { + "value": 20, + "unit": "tablet", + "system": "http://snomed.info/sct", + "code": "428673006" + } + } + ] + }, + { + "extension": [ + { + "url": "https://fhir.nhs.uk/StructureDefinition/Extension-ClaimSequenceIdentifier", + "valueIdentifier": { + "system": "https://fhir.nhs.uk/Id/claim-sequence-identifier", + "value": "24ef63f2-d2be-44df-9289-4d3cb8ea853f" + } + }, + { + "url": "https://fhir.nhs.uk/StructureDefinition/Extension-ClaimMedicationRequestReference", + "valueReference": { + "identifier": { + "system": "https://fhir.nhs.uk/Id/prescription-order-item-number", + "value": "c7174db1-437f-471c-baad-3373a83113aa" + } + } + } + ], + "sequence": 3, + "productOrService": { + "coding": [ + { + "system": "http://snomed.info/sct", + "code": "321080004", + "display": "Pseudoephedrine hydrochloride 60mg tablets" + } + ] + }, + "modifier": [ + { + "coding": [ + { + "code": "0001", + "system": "https://fhir.nhs.uk/CodeSystem/medicationdispense-type", + "display": "Item fully dispensed" + } + ] + } + ], + "quantity": { + "value": 30, + "unit": "tablet", + "system": "http://snomed.info/sct", + "code": "428673006" + }, + "programCode": [ + { + "coding": [ + { + "system": "https://fhir.nhs.uk/CodeSystem/DM-prescription-charge", + "code": "paid-once", + "display": "Paid Once" + } + ] + } + ], + "subDetail": [ + { + "sequence": 1, + "productOrService": { + "coding": [ + { + "system": "http://snomed.info/sct", + "code": "321080004", + "display": "Pseudoephedrine hydrochloride 60mg tablets" + } + ] + }, + "quantity": { + "value": 30, + "unit": "tablet", + "system": "http://snomed.info/sct", + "code": "428673006" + } + } + ] + }, + { + "extension": [ + { + "url": "https://fhir.nhs.uk/StructureDefinition/Extension-ClaimSequenceIdentifier", + "valueIdentifier": { + "system": "https://fhir.nhs.uk/Id/claim-sequence-identifier", + "value": "44c28650-d71d-49d1-9edb-b275b00ab2c6" + } + }, + { + "url": "https://fhir.nhs.uk/StructureDefinition/Extension-ClaimMedicationRequestReference", + "valueReference": { + "identifier": { + "system": "https://fhir.nhs.uk/Id/prescription-order-item-number", + "value": "6358db7a-bf1a-446a-b0de-a46ecdcceb34" + } + } + } + ], + "sequence": 4, + "productOrService": { + "coding": [ + { + "system": "http://snomed.info/sct", + "code": "324252006", + "display": "Azithromycin 250mg capsules" + } + ] + }, + "modifier": [ + { + "coding": [ + { + "code": "0001", + "system": "https://fhir.nhs.uk/CodeSystem/medicationdispense-type", + "display": "Item fully dispensed" + } + ] + } + ], + "quantity": { + "value": 30, + "unit": "tablet", + "system": "http://snomed.info/sct", + "code": "428673006" + }, + "programCode": [ + { + "coding": [ + { + "system": "https://fhir.nhs.uk/CodeSystem/DM-prescription-charge", + "code": "paid-once", + "display": "Paid Once" + } + ] + } + ], + "subDetail": [ + { + "sequence": 1, + "productOrService": { + "coding": [ + { + "system": "http://snomed.info/sct", + "code": "324252006", + "display": "Azithromycin 250mg capsules" + } + ] + }, + "quantity": { + "value": 30, + "unit": "tablet", + "system": "http://snomed.info/sct", + "code": "428673006" + } + } + ] + } + ] + } + ] +} diff --git a/src/test/resources/examples/full_examples/primary-care/acute/nominated-pharmacy/medical-prescriber/3-Process-Request-Multiple-DosageInstructions-Send_200_OK.json b/src/test/resources/examples/full_examples/primary-care/acute/nominated-pharmacy/medical-prescriber/3-Process-Request-Multiple-DosageInstructions-Send_200_OK.json new file mode 100644 index 00000000..22490ef9 --- /dev/null +++ b/src/test/resources/examples/full_examples/primary-care/acute/nominated-pharmacy/medical-prescriber/3-Process-Request-Multiple-DosageInstructions-Send_200_OK.json @@ -0,0 +1,805 @@ +{ + "resourceType": "Bundle", + "id": "0cb82cfa-76c8-4fb2-a08e-bf0e326e5487", + "identifier": { + "system": "https://tools.ietf.org/html/rfc4122", + "value": "a3f5d78a-17aa-4877-a1af-3fa7d42a23b3" + }, + "type": "message", + "entry": [ + { + "fullUrl": "urn:uuid:17773b27-427e-4940-8c16-64cdac715001", + "resource": { + "resourceType": "MessageHeader", + "eventCoding": { + "system": "https://fhir.nhs.uk/CodeSystem/message-event", + "code": "prescription-order", + "display": "Prescription Order" + }, + "destination": [ + { + "endpoint": "https://sandbox.api.service.nhs.uk/electronic-prescriptions/$post-message", + "receiver": { + "identifier": { + "system": "https://fhir.nhs.uk/Id/ods-organization-code", + "value": "VNE51" + }, + "display": "The Simple Pharmacy" + } + } + ], + "sender": { + "identifier": { + "system": "https://fhir.nhs.uk/Id/ods-organization-code", + "value": "A83008" + }, + "display": "HALLGARTH SURGERY" + }, + "source": { + "endpoint": "https://directory.spineservices.nhs.uk/STU3/Organization/A83008" + }, + "focus": [ + { + "reference": "urn:uuid:a54219b8-f741-4c47-b662-e4f8dfa49ab6" + }, + { + "reference": "urn:uuid:6989b7bd-8db6-428c-a593-4022e3044c00" + }, + { + "reference": "urn:uuid:2868554c-5565-4d31-b92a-c5b8dab8b90a" + }, + { + "reference": "urn:uuid:5cb17f5a-11ac-4e18-825f-6470467238b3" + }, + { + "reference": "urn:uuid:56166769-c1c4-4d07-afa8-132b5dfca666" + }, + { + "reference": "urn:uuid:78d3c2eb-009e-4ec8-a358-b042954aa9b2" + } + ] + } + }, + { + "fullUrl": "urn:uuid:a54219b8-f741-4c47-b662-e4f8dfa49ab6", + "resource": { + "resourceType": "MedicationRequest", + "extension": [ + { + "url": "https://fhir.nhs.uk/StructureDefinition/Extension-DM-PrescriptionType", + "valueCoding": { + "system": "https://fhir.nhs.uk/CodeSystem/prescription-type", + "code": "0101", + "display": "Primary Care Prescriber - Medical Prescriber" + } + } + ], + "identifier": [ + { + "system": "https://fhir.nhs.uk/Id/prescription-order-item-number", + "value": "dd0cdc7b-db3f-4f2f-aa21-cb4d77432264" + } + ], + "status": "active", + "intent": "order", + "category": [ + { + "coding": [ + { + "system": "http://terminology.hl7.org/CodeSystem/medicationrequest-category", + "code": "community", + "display": "Community" + } + ] + } + ], + "medicationCodeableConcept": { + "coding": [ + { + "system": "http://snomed.info/sct", + "code": "39732311000001104", + "display": "Amoxicillin 250mg capsules" + } + ] + }, + "subject": { + "reference": "urn:uuid:78d3c2eb-009e-4ec8-a358-b042954aa9b2" + }, + "requester": { + "reference": "urn:uuid:56166769-c1c4-4d07-afa8-132b5dfca666" + }, + "groupIdentifier": { + "system": "https://fhir.nhs.uk/Id/prescription-order-number", + "value": "62DB25-A83008-5CBA2Z", + "extension": [ + { + "url": "https://fhir.nhs.uk/StructureDefinition/Extension-DM-PrescriptionId", + "valueIdentifier": { + "system": "https://fhir.nhs.uk/Id/prescription", + "value": "733524a7-5789-442b-b7ab-6a96cf522871" + } + } + ] + }, + "courseOfTherapyType": { + "coding": [ + { + "system": "http://terminology.hl7.org/CodeSystem/medicationrequest-course-of-therapy", + "code": "acute", + "display": "Short course (acute) therapy" + } + ] + }, + "dosageInstruction": [ + { + "sequence": 1, + "text": "2 times a day for 10 days", + "timing": { + "repeat": { + "frequency": 2, + "period": 1, + "periodUnit": "d" + } + }, + "route": { + "coding": [ + { + "system": "http://snomed.info/sct", + "code": "26643006", + "display": "Oral" + } + ] + } + }, + { + "sequence": 1, + "text": "2 times a day for 10 days", + "timing": { + "repeat": { + "frequency": 2, + "period": 1, + "periodUnit": "d" + } + }, + "route": { + "coding": [ + { + "system": "http://snomed.info/sct", + "code": "26643006", + "display": "Oral" + } + ] + } + } + ], + "dispenseRequest": { + "extension": [ + { + "url": "https://fhir.nhs.uk/StructureDefinition/Extension-DM-PerformerSiteType", + "valueCoding": { + "system": "https://fhir.nhs.uk/CodeSystem/dispensing-site-preference", + "code": "P1" + } + } + ], + "validityPeriod": { + "start": "2024-03-05", + "end": "2024-04-05" + }, + "quantity": { + "value": 20, + "unit": "tablet", + "system": "http://snomed.info/sct", + "code": "428673006" + }, + "expectedSupplyDuration": { + "value": 10, + "unit": "day", + "system": "http://unitsofmeasure.org", + "code": "d" + }, + "performer": { + "identifier": { + "system": "https://fhir.nhs.uk/Id/ods-organization-code", + "value": "VNE51" + } + } + }, + "substitution": { + "allowedBoolean": false + } + } + }, + { + "fullUrl": "urn:uuid:6989b7bd-8db6-428c-a593-4022e3044c00", + "resource": { + "resourceType": "MedicationRequest", + "extension": [ + { + "url": "https://fhir.nhs.uk/StructureDefinition/Extension-DM-PrescriptionType", + "valueCoding": { + "system": "https://fhir.nhs.uk/CodeSystem/prescription-type", + "code": "0101", + "display": "Primary Care Prescriber - Medical Prescriber" + } + } + ], + "identifier": [ + { + "system": "https://fhir.nhs.uk/Id/prescription-order-item-number", + "value": "8a3a3a72-7a3d-41a1-851d-e7232d752089" + } + ], + "status": "active", + "intent": "order", + "category": [ + { + "coding": [ + { + "system": "http://terminology.hl7.org/CodeSystem/medicationrequest-category", + "code": "community", + "display": "Community" + } + ] + } + ], + "medicationCodeableConcept": { + "coding": [ + { + "system": "http://snomed.info/sct", + "code": "322341003", + "display": "Co-codamol 30mg/500mg tablets" + } + ] + }, + "subject": { + "reference": "urn:uuid:78d3c2eb-009e-4ec8-a358-b042954aa9b2" + }, + "requester": { + "reference": "urn:uuid:56166769-c1c4-4d07-afa8-132b5dfca666" + }, + "groupIdentifier": { + "system": "https://fhir.nhs.uk/Id/prescription-order-number", + "value": "62DB25-A83008-5CBA2Z", + "extension": [ + { + "url": "https://fhir.nhs.uk/StructureDefinition/Extension-DM-PrescriptionId", + "valueIdentifier": { + "system": "https://fhir.nhs.uk/Id/prescription", + "value": "733524a7-5789-442b-b7ab-6a96cf522871" + } + } + ] + }, + "courseOfTherapyType": { + "coding": [ + { + "system": "http://terminology.hl7.org/CodeSystem/medicationrequest-course-of-therapy", + "code": "acute", + "display": "Short course (acute) therapy" + } + ] + }, + "dosageInstruction": [ + { + "text": "2 times a day for 10 days", + "timing": { + "repeat": { + "frequency": 2, + "period": 1, + "periodUnit": "d" + } + }, + "route": { + "coding": [ + { + "system": "http://snomed.info/sct", + "code": "26643006", + "display": "Oral" + } + ] + } + } + ], + "dispenseRequest": { + "extension": [ + { + "url": "https://fhir.nhs.uk/StructureDefinition/Extension-DM-PerformerSiteType", + "valueCoding": { + "system": "https://fhir.nhs.uk/CodeSystem/dispensing-site-preference", + "code": "P1" + } + } + ], + "validityPeriod": { + "start": "2024-03-05", + "end": "2024-04-05" + }, + "quantity": { + "value": 20, + "unit": "tablet", + "system": "http://snomed.info/sct", + "code": "428673006" + }, + "expectedSupplyDuration": { + "value": 10, + "unit": "day", + "system": "http://unitsofmeasure.org", + "code": "d" + }, + "performer": { + "identifier": { + "system": "https://fhir.nhs.uk/Id/ods-organization-code", + "value": "VNE51" + } + } + }, + "substitution": { + "allowedBoolean": false + } + } + }, + { + "fullUrl": "urn:uuid:2868554c-5565-4d31-b92a-c5b8dab8b90a", + "resource": { + "resourceType": "MedicationRequest", + "extension": [ + { + "url": "https://fhir.nhs.uk/StructureDefinition/Extension-DM-PrescriptionType", + "valueCoding": { + "system": "https://fhir.nhs.uk/CodeSystem/prescription-type", + "code": "0101", + "display": "Primary Care Prescriber - Medical Prescriber" + } + } + ], + "identifier": [ + { + "system": "https://fhir.nhs.uk/Id/prescription-order-item-number", + "value": "e4e3b6b9-b2b5-4776-a22f-9dba5063f4ba" + } + ], + "status": "active", + "intent": "order", + "category": [ + { + "coding": [ + { + "system": "http://terminology.hl7.org/CodeSystem/medicationrequest-category", + "code": "community", + "display": "Community" + } + ] + } + ], + "medicationCodeableConcept": { + "coding": [ + { + "system": "http://snomed.info/sct", + "code": "321080004", + "display": "Pseudoephedrine hydrochloride 60mg tablets" + } + ] + }, + "subject": { + "reference": "urn:uuid:78d3c2eb-009e-4ec8-a358-b042954aa9b2" + }, + "requester": { + "reference": "urn:uuid:56166769-c1c4-4d07-afa8-132b5dfca666" + }, + "groupIdentifier": { + "system": "https://fhir.nhs.uk/Id/prescription-order-number", + "value": "62DB25-A83008-5CBA2Z", + "extension": [ + { + "url": "https://fhir.nhs.uk/StructureDefinition/Extension-DM-PrescriptionId", + "valueIdentifier": { + "system": "https://fhir.nhs.uk/Id/prescription", + "value": "733524a7-5789-442b-b7ab-6a96cf522871" + } + } + ] + }, + "courseOfTherapyType": { + "coding": [ + { + "system": "http://terminology.hl7.org/CodeSystem/medicationrequest-course-of-therapy", + "code": "acute", + "display": "Short course (acute) therapy" + } + ] + }, + "dosageInstruction": [ + { + "text": "3 times a day for 10 days", + "timing": { + "repeat": { + "frequency": 3, + "period": 1, + "periodUnit": "d" + } + }, + "route": { + "coding": [ + { + "system": "http://snomed.info/sct", + "code": "26643006", + "display": "Oral" + } + ] + } + } + ], + "dispenseRequest": { + "extension": [ + { + "url": "https://fhir.nhs.uk/StructureDefinition/Extension-DM-PerformerSiteType", + "valueCoding": { + "system": "https://fhir.nhs.uk/CodeSystem/dispensing-site-preference", + "code": "P1" + } + } + ], + "validityPeriod": { + "start": "2024-03-05", + "end": "2024-04-05" + }, + "quantity": { + "value": 30, + "unit": "tablet", + "system": "http://snomed.info/sct", + "code": "428673006" + }, + "expectedSupplyDuration": { + "value": 10, + "unit": "day", + "system": "http://unitsofmeasure.org", + "code": "d" + }, + "performer": { + "identifier": { + "system": "https://fhir.nhs.uk/Id/ods-organization-code", + "value": "VNE51" + } + } + }, + "substitution": { + "allowedBoolean": false + } + } + }, + { + "fullUrl": "urn:uuid:5cb17f5a-11ac-4e18-825f-6470467238b3", + "resource": { + "resourceType": "MedicationRequest", + "extension": [ + { + "url": "https://fhir.nhs.uk/StructureDefinition/Extension-DM-PrescriptionType", + "valueCoding": { + "system": "https://fhir.nhs.uk/CodeSystem/prescription-type", + "code": "0101", + "display": "Primary Care Prescriber - Medical Prescriber" + } + } + ], + "identifier": [ + { + "system": "https://fhir.nhs.uk/Id/prescription-order-item-number", + "value": "1567a273-834b-410d-b739-b5519d1d4b24" + } + ], + "status": "active", + "intent": "order", + "category": [ + { + "coding": [ + { + "system": "http://terminology.hl7.org/CodeSystem/medicationrequest-category", + "code": "community", + "display": "Community" + } + ] + } + ], + "medicationCodeableConcept": { + "coding": [ + { + "system": "http://snomed.info/sct", + "code": "324252006", + "display": "Azithromycin 250mg capsules" + } + ] + }, + "subject": { + "reference": "urn:uuid:78d3c2eb-009e-4ec8-a358-b042954aa9b2" + }, + "requester": { + "reference": "urn:uuid:56166769-c1c4-4d07-afa8-132b5dfca666" + }, + "groupIdentifier": { + "system": "https://fhir.nhs.uk/Id/prescription-order-number", + "value": "62DB25-A83008-5CBA2Z", + "extension": [ + { + "url": "https://fhir.nhs.uk/StructureDefinition/Extension-DM-PrescriptionId", + "valueIdentifier": { + "system": "https://fhir.nhs.uk/Id/prescription", + "value": "733524a7-5789-442b-b7ab-6a96cf522871" + } + } + ] + }, + "courseOfTherapyType": { + "coding": [ + { + "system": "http://terminology.hl7.org/CodeSystem/medicationrequest-course-of-therapy", + "code": "acute", + "display": "Short course (acute) therapy" + } + ] + }, + "dosageInstruction": [ + { + "text": "3 times a day for 10 days", + "timing": { + "repeat": { + "frequency": 3, + "period": 1, + "periodUnit": "d" + } + }, + "route": { + "coding": [ + { + "system": "http://snomed.info/sct", + "code": "26643006", + "display": "Oral" + } + ] + } + } + ], + "dispenseRequest": { + "extension": [ + { + "url": "https://fhir.nhs.uk/StructureDefinition/Extension-DM-PerformerSiteType", + "valueCoding": { + "system": "https://fhir.nhs.uk/CodeSystem/dispensing-site-preference", + "code": "P1" + } + } + ], + "validityPeriod": { + "start": "2024-03-05", + "end": "2024-04-05" + }, + "quantity": { + "value": 30, + "unit": "tablet", + "system": "http://snomed.info/sct", + "code": "428673006" + }, + "expectedSupplyDuration": { + "value": 10, + "unit": "day", + "system": "http://unitsofmeasure.org", + "code": "d" + }, + "performer": { + "identifier": { + "system": "https://fhir.nhs.uk/Id/ods-organization-code", + "value": "VNE51" + } + } + }, + "substitution": { + "allowedBoolean": false + } + } + }, + { + "fullUrl": "urn:uuid:78d3c2eb-009e-4ec8-a358-b042954aa9b2", + "resource": { + "resourceType": "Patient", + "identifier": [ + { + "system": "https://fhir.nhs.uk/Id/nhs-number", + "value": "9449304130" + } + ], + "name": [ + { + "use": "usual", + "family": "TWITCHETT", + "given": [ + "STACEY", + "MARISA" + ], + "prefix": [ + "MS" + ] + } + ], + "gender": "female", + "birthDate": "1948-04-30", + "address": [ + { + "use": "home", + "line": [ + "10 HEATHFIELD", + "COBHAM", + "SURREY" + ], + "postalCode": "KT11 2QY" + } + ], + "generalPractitioner": [ + { + "identifier": { + "system": "https://fhir.nhs.uk/Id/ods-organization-code", + "value": "A83008" + } + } + ] + } + }, + { + "fullUrl": "urn:uuid:56166769-c1c4-4d07-afa8-132b5dfca666", + "resource": { + "resourceType": "PractitionerRole", + "identifier": [ + { + "system": "https://fhir.nhs.uk/Id/sds-role-profile-id", + "value": "200102238987" + } + ], + "practitioner": { + "reference": "urn:uuid:a8c85454-f8cb-498d-9629-78e2cb5fa47a" + }, + "organization": { + "reference": "urn:uuid:3b4b03a5-52ba-4ba6-9b82-70350aa109d8" + }, + "code": [ + { + "coding": [ + { + "system": "https://fhir.nhs.uk/CodeSystem/NHSDigital-SDS-JobRoleCode", + "code": "R8000", + "display": "Clinical Practitioner Access Role" + }, + { + "system": "https://fhir.hl7.org.uk/CodeSystem/UKCore-SDSJobRoleName", + "code": "R8000", + "display": "Clinical Practitioner Access Role" + } + ] + } + ], + "telecom": [ + { + "system": "phone", + "use": "work", + "value": "01234567890" + } + ] + } + }, + { + "fullUrl": "urn:uuid:a8c85454-f8cb-498d-9629-78e2cb5fa47a", + "resource": { + "resourceType": "Practitioner", + "identifier": [ + { + "system": "https://fhir.nhs.uk/Id/sds-user-id", + "value": "555086689106" + }, + { + "system": "https://fhir.hl7.org.uk/Id/gmc-number", + "value": "6095103" + }, + { + "system": "https://fhir.hl7.org.uk/Id/din-number", + "value": "977677" + } + ], + "name": [ + { + "family": "BOIN", + "given": [ + "C" + ], + "prefix": [ + "DR" + ] + } + ] + } + }, + { + "fullUrl": "urn:uuid:3b4b03a5-52ba-4ba6-9b82-70350aa109d8", + "resource": { + "resourceType": "Organization", + "identifier": [ + { + "system": "https://fhir.nhs.uk/Id/ods-organization-code", + "value": "A83008" + } + ], + "type": [ + { + "coding": [ + { + "system": "https://fhir.nhs.uk/CodeSystem/organisation-role", + "code": "76", + "display": "GP PRACTICE" + } + ] + } + ], + "name": "HALLGARTH SURGERY", + "telecom": [ + { + "system": "phone", + "use": "work", + "value": "0115 9737320" + } + ], + "address": [ + { + "use": "work", + "type": "both", + "line": [ + "HALLGARTH SURGERY", + "CHEAPSIDE" + ], + "city": "SHILDON", + "district": "COUNTY DURHAM", + "postalCode": "DL4 2HP" + } + ], + "partOf": { + "identifier": { + "system": "https://fhir.nhs.uk/Id/ods-organization-code", + "value": "84H" + }, + "display": "NHS COUNTY DURHAM CCG" + } + } + }, + { + "fullUrl": "urn:uuid:28828c55-8fa7-42d7-916f-fcf076e0c10e", + "resource": { + "resourceType": "Provenance", + "id": "28828c55-8fa7-42d7-916f-fcf076e0c10e", + "target": [ + { + "reference": "urn:uuid:a54219b8-f741-4c47-b662-e4f8dfa49ab6" + } + ], + "recorded": "2021-02-11T16:35:38+00:00", + "agent": [ + { + "who": { + "reference": "urn:uuid:56166769-c1c4-4d07-afa8-132b5dfca666" + } + } + ], + "signature": [ + { + "type": [ + { + "system": "urn:iso-astm:E1762-95:2013", + "code": "1.2.840.10065.1.12.1.1" + } + ], + "when": "2024-03-05T13:28:16+00:00", + "who": { + "reference": "urn:uuid:56166769-c1c4-4d07-afa8-132b5dfca666" + }, + "data": "PFNpZ25hdHVyZSB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC8wOS94bWxkc2lnIyI+CiAgICAgICAgICAgIDxTaWduZWRJbmZvPjxDYW5vbmljYWxpemF0aW9uTWV0aG9kIEFsZ29yaXRobT0iaHR0cDovL3d3dy53My5vcmcvMjAwMS8xMC94bWwtZXhjLWMxNG4jIj48L0Nhbm9uaWNhbGl6YXRpb25NZXRob2Q+PFNpZ25hdHVyZU1ldGhvZCBBbGdvcml0aG09Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvMDkveG1sZHNpZyNyc2Etc2hhMSI+PC9TaWduYXR1cmVNZXRob2Q+PFJlZmVyZW5jZT48VHJhbnNmb3Jtcz48VHJhbnNmb3JtIEFsZ29yaXRobT0iaHR0cDovL3d3dy53My5vcmcvMjAwMS8xMC94bWwtZXhjLWMxNG4jIj48L1RyYW5zZm9ybT48L1RyYW5zZm9ybXM+PERpZ2VzdE1ldGhvZCBBbGdvcml0aG09Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvMDkveG1sZHNpZyNzaGExIj48L0RpZ2VzdE1ldGhvZD48RGlnZXN0VmFsdWU+dTN3STVZdjVTY29SckhyRlB0UThzK2Jqb084PTwvRGlnZXN0VmFsdWU+PC9SZWZlcmVuY2U+PC9TaWduZWRJbmZvPgogICAgICAgICAgICA8U2lnbmF0dXJlVmFsdWU+PC9TaWduYXR1cmVWYWx1ZT4KICAgICAgICAgICAgPEtleUluZm8+PFg1MDlEYXRhPjxYNTA5Q2VydGlmaWNhdGU+PC9YNTA5Q2VydGlmaWNhdGU+PC9YNTA5RGF0YT48L0tleUluZm8+CiAgICAgICAgICA8L1NpZ25hdHVyZT4=" + } + ] + } + } + ] +} diff --git a/src/test/resources/examples/full_examples/primary-care/acute/nominated-pharmacy/medical-prescriber/3-Process-Response-Multiple-DosageInstructions-Send_200_OK.json b/src/test/resources/examples/full_examples/primary-care/acute/nominated-pharmacy/medical-prescriber/3-Process-Response-Multiple-DosageInstructions-Send_200_OK.json new file mode 100644 index 00000000..4d90c94d --- /dev/null +++ b/src/test/resources/examples/full_examples/primary-care/acute/nominated-pharmacy/medical-prescriber/3-Process-Response-Multiple-DosageInstructions-Send_200_OK.json @@ -0,0 +1,12 @@ +{ + "resourceType": "OperationOutcome", + "meta": { + "lastUpdated": "2022-10-21T13:47:00+00:00" + }, + "issue": [ + { + "severity": "information", + "code": "informational" + } + ] +} diff --git a/src/test/resources/examples/full_examples/primary-care/acute/nominated-pharmacy/medical-prescriber/4-Prepare-Request-Multiple-Dosages-200_OK.json b/src/test/resources/examples/full_examples/primary-care/acute/nominated-pharmacy/medical-prescriber/4-Prepare-Request-Multiple-Dosages-200_OK.json new file mode 100644 index 00000000..0cb0fef4 --- /dev/null +++ b/src/test/resources/examples/full_examples/primary-care/acute/nominated-pharmacy/medical-prescriber/4-Prepare-Request-Multiple-Dosages-200_OK.json @@ -0,0 +1,766 @@ +{ + "resourceType": "Bundle", + "id": "0cb82cfa-76c8-4fb2-a08e-bf0e326e5487", + "identifier": { + "system": "https://tools.ietf.org/html/rfc4122", + "value": "46183abc-9fad-4673-85db-ce2cb6614732" + }, + "type": "message", + "entry": [ + { + "fullUrl": "urn:uuid:17773b27-427e-4940-8c16-64cdac715001", + "resource": { + "resourceType": "MessageHeader", + "eventCoding": { + "system": "https://fhir.nhs.uk/CodeSystem/message-event", + "code": "prescription-order", + "display": "Prescription Order" + }, + "destination": [ + { + "endpoint": "https://sandbox.api.service.nhs.uk/electronic-prescriptions/$post-message", + "receiver": { + "identifier": { + "system": "https://fhir.nhs.uk/Id/ods-organization-code", + "value": "VNE51" + }, + "display": "The Simple Pharmacy" + } + } + ], + "sender": { + "identifier": { + "system": "https://fhir.nhs.uk/Id/ods-organization-code", + "value": "A83008" + }, + "display": "HALLGARTH SURGERY" + }, + "source": { + "endpoint": "https://directory.spineservices.nhs.uk/STU3/Organization/A83008" + }, + "focus": [ + { + "reference": "urn:uuid:a54219b8-f741-4c47-b662-e4f8dfa49ab6" + }, + { + "reference": "urn:uuid:6989b7bd-8db6-428c-a593-4022e3044c00" + }, + { + "reference": "urn:uuid:2868554c-5565-4d31-b92a-c5b8dab8b90a" + }, + { + "reference": "urn:uuid:5cb17f5a-11ac-4e18-825f-6470467238b3" + }, + { + "reference": "urn:uuid:56166769-c1c4-4d07-afa8-132b5dfca666" + }, + { + "reference": "urn:uuid:78d3c2eb-009e-4ec8-a358-b042954aa9b2" + } + ] + } + }, + { + "fullUrl": "urn:uuid:a54219b8-f741-4c47-b662-e4f8dfa49ab6", + "resource": { + "resourceType": "MedicationRequest", + "extension": [ + { + "url": "https://fhir.nhs.uk/StructureDefinition/Extension-DM-PrescriptionType", + "valueCoding": { + "system": "https://fhir.nhs.uk/CodeSystem/prescription-type", + "code": "0101", + "display": "Primary Care Prescriber - Medical Prescriber" + } + } + ], + "identifier": [ + { + "system": "https://fhir.nhs.uk/Id/prescription-order-item-number", + "value": "a54219b8-f741-4c47-b662-e4f8dfa49ab6" + } + ], + "status": "active", + "intent": "order", + "category": [ + { + "coding": [ + { + "system": "http://terminology.hl7.org/CodeSystem/medicationrequest-category", + "code": "community", + "display": "Community" + } + ] + } + ], + "medicationCodeableConcept": { + "coding": [ + { + "system": "http://snomed.info/sct", + "code": "39732311000001104", + "display": "Amoxicillin 250mg capsules" + } + ] + }, + "subject": { + "reference": "urn:uuid:78d3c2eb-009e-4ec8-a358-b042954aa9b2" + }, + "requester": { + "reference": "urn:uuid:56166769-c1c4-4d07-afa8-132b5dfca666" + }, + "groupIdentifier": { + "system": "https://fhir.nhs.uk/Id/prescription-order-number", + "value": "24F5DA-A83008-7EFE6Z", + "extension": [ + { + "url": "https://fhir.nhs.uk/StructureDefinition/Extension-DM-PrescriptionId", + "valueIdentifier": { + "system": "https://fhir.nhs.uk/Id/prescription", + "value": "20ba5fb5-cb58-462c-923e-22d180b09356" + } + } + ] + }, + "courseOfTherapyType": { + "coding": [ + { + "system": "http://terminology.hl7.org/CodeSystem/medicationrequest-course-of-therapy", + "code": "acute", + "display": "Short course (acute) therapy" + } + ] + }, + "dosageInstruction": [ + { + "sequence": 1, + "text": "2 times a day for 10 days", + "timing": { + "repeat": { + "frequency": 2, + "period": 1, + "periodUnit": "d" + } + }, + "route": { + "coding": [ + { + "system": "http://snomed.info/sct", + "code": "26643006", + "display": "Oral" + } + ] + } + }, + { + "sequence": 2, + "text": "2 times a day for 10 days", + "timing": { + "repeat": { + "frequency": 2, + "period": 1, + "periodUnit": "d" + } + }, + "route": { + "coding": [ + { + "system": "http://snomed.info/sct", + "code": "26643006", + "display": "Oral" + } + ] + } + } + ], + "dispenseRequest": { + "extension": [ + { + "url": "https://fhir.nhs.uk/StructureDefinition/Extension-DM-PerformerSiteType", + "valueCoding": { + "system": "https://fhir.nhs.uk/CodeSystem/dispensing-site-preference", + "code": "P1" + } + } + ], + "validityPeriod": { + "start": "2022-10-21" + }, + "quantity": { + "value": 20, + "unit": "tablet", + "system": "http://snomed.info/sct", + "code": "428673006" + }, + "expectedSupplyDuration": { + "value": 10, + "unit": "day", + "system": "http://unitsofmeasure.org", + "code": "d" + }, + "performer": { + "identifier": { + "system": "https://fhir.nhs.uk/Id/ods-organization-code", + "value": "VNE51" + } + } + }, + "substitution": { + "allowedBoolean": false + } + } + }, + { + "fullUrl": "urn:uuid:6989b7bd-8db6-428c-a593-4022e3044c00", + "resource": { + "resourceType": "MedicationRequest", + "extension": [ + { + "url": "https://fhir.nhs.uk/StructureDefinition/Extension-DM-PrescriptionType", + "valueCoding": { + "system": "https://fhir.nhs.uk/CodeSystem/prescription-type", + "code": "0101", + "display": "Primary Care Prescriber - Medical Prescriber" + } + } + ], + "identifier": [ + { + "system": "https://fhir.nhs.uk/Id/prescription-order-item-number", + "value": "6989b7bd-8db6-428c-a593-4022e3044c00" + } + ], + "status": "active", + "intent": "order", + "category": [ + { + "coding": [ + { + "system": "http://terminology.hl7.org/CodeSystem/medicationrequest-category", + "code": "community", + "display": "Community" + } + ] + } + ], + "medicationCodeableConcept": { + "coding": [ + { + "system": "http://snomed.info/sct", + "code": "322341003", + "display": "Co-codamol 30mg/500mg tablets" + } + ] + }, + "subject": { + "reference": "urn:uuid:78d3c2eb-009e-4ec8-a358-b042954aa9b2" + }, + "requester": { + "reference": "urn:uuid:56166769-c1c4-4d07-afa8-132b5dfca666" + }, + "groupIdentifier": { + "system": "https://fhir.nhs.uk/Id/prescription-order-number", + "value": "24F5DA-A83008-7EFE6Z", + "extension": [ + { + "url": "https://fhir.nhs.uk/StructureDefinition/Extension-DM-PrescriptionId", + "valueIdentifier": { + "system": "https://fhir.nhs.uk/Id/prescription", + "value": "20ba5fb5-cb58-462c-923e-22d180b09356" + } + } + ] + }, + "courseOfTherapyType": { + "coding": [ + { + "system": "http://terminology.hl7.org/CodeSystem/medicationrequest-course-of-therapy", + "code": "acute", + "display": "Short course (acute) therapy" + } + ] + }, + "dosageInstruction": [ + { + "text": "2 times a day for 10 days", + "timing": { + "repeat": { + "frequency": 2, + "period": 1, + "periodUnit": "d" + } + }, + "route": { + "coding": [ + { + "system": "http://snomed.info/sct", + "code": "26643006", + "display": "Oral" + } + ] + } + } + ], + "dispenseRequest": { + "extension": [ + { + "url": "https://fhir.nhs.uk/StructureDefinition/Extension-DM-PerformerSiteType", + "valueCoding": { + "system": "https://fhir.nhs.uk/CodeSystem/dispensing-site-preference", + "code": "P1" + } + } + ], + "validityPeriod": { + "start": "2022-10-21" + }, + "quantity": { + "value": 20, + "unit": "tablet", + "system": "http://snomed.info/sct", + "code": "428673006" + }, + "expectedSupplyDuration": { + "value": 10, + "unit": "day", + "system": "http://unitsofmeasure.org", + "code": "d" + }, + "performer": { + "identifier": { + "system": "https://fhir.nhs.uk/Id/ods-organization-code", + "value": "VNE51" + } + } + }, + "substitution": { + "allowedBoolean": false + } + } + }, + { + "fullUrl": "urn:uuid:2868554c-5565-4d31-b92a-c5b8dab8b90a", + "resource": { + "resourceType": "MedicationRequest", + "extension": [ + { + "url": "https://fhir.nhs.uk/StructureDefinition/Extension-DM-PrescriptionType", + "valueCoding": { + "system": "https://fhir.nhs.uk/CodeSystem/prescription-type", + "code": "0101", + "display": "Primary Care Prescriber - Medical Prescriber" + } + } + ], + "identifier": [ + { + "system": "https://fhir.nhs.uk/Id/prescription-order-item-number", + "value": "2868554c-5565-4d31-b92a-c5b8dab8b90a" + } + ], + "status": "active", + "intent": "order", + "category": [ + { + "coding": [ + { + "system": "http://terminology.hl7.org/CodeSystem/medicationrequest-category", + "code": "community", + "display": "Community" + } + ] + } + ], + "medicationCodeableConcept": { + "coding": [ + { + "system": "http://snomed.info/sct", + "code": "321080004", + "display": "Pseudoephedrine hydrochloride 60mg tablets" + } + ] + }, + "subject": { + "reference": "urn:uuid:78d3c2eb-009e-4ec8-a358-b042954aa9b2" + }, + "requester": { + "reference": "urn:uuid:56166769-c1c4-4d07-afa8-132b5dfca666" + }, + "groupIdentifier": { + "system": "https://fhir.nhs.uk/Id/prescription-order-number", + "value": "24F5DA-A83008-7EFE6Z", + "extension": [ + { + "url": "https://fhir.nhs.uk/StructureDefinition/Extension-DM-PrescriptionId", + "valueIdentifier": { + "system": "https://fhir.nhs.uk/Id/prescription", + "value": "20ba5fb5-cb58-462c-923e-22d180b09356" + } + } + ] + }, + "courseOfTherapyType": { + "coding": [ + { + "system": "http://terminology.hl7.org/CodeSystem/medicationrequest-course-of-therapy", + "code": "acute", + "display": "Short course (acute) therapy" + } + ] + }, + "dosageInstruction": [ + { + "text": "3 times a day for 10 days", + "timing": { + "repeat": { + "frequency": 3, + "period": 1, + "periodUnit": "d" + } + }, + "route": { + "coding": [ + { + "system": "http://snomed.info/sct", + "code": "26643006", + "display": "Oral" + } + ] + } + } + ], + "dispenseRequest": { + "extension": [ + { + "url": "https://fhir.nhs.uk/StructureDefinition/Extension-DM-PerformerSiteType", + "valueCoding": { + "system": "https://fhir.nhs.uk/CodeSystem/dispensing-site-preference", + "code": "P1" + } + } + ], + "validityPeriod": { + "start": "2022-10-21" + }, + "quantity": { + "value": 30, + "unit": "tablet", + "system": "http://snomed.info/sct", + "code": "428673006" + }, + "expectedSupplyDuration": { + "value": 10, + "unit": "day", + "system": "http://unitsofmeasure.org", + "code": "d" + }, + "performer": { + "identifier": { + "system": "https://fhir.nhs.uk/Id/ods-organization-code", + "value": "VNE51" + } + } + }, + "substitution": { + "allowedBoolean": false + } + } + }, + { + "fullUrl": "urn:uuid:5cb17f5a-11ac-4e18-825f-6470467238b3", + "resource": { + "resourceType": "MedicationRequest", + "extension": [ + { + "url": "https://fhir.nhs.uk/StructureDefinition/Extension-DM-PrescriptionType", + "valueCoding": { + "system": "https://fhir.nhs.uk/CodeSystem/prescription-type", + "code": "0101", + "display": "Primary Care Prescriber - Medical Prescriber" + } + } + ], + "identifier": [ + { + "system": "https://fhir.nhs.uk/Id/prescription-order-item-number", + "value": "5cb17f5a-11ac-4e18-825f-6470467238b3" + } + ], + "status": "active", + "intent": "order", + "category": [ + { + "coding": [ + { + "system": "http://terminology.hl7.org/CodeSystem/medicationrequest-category", + "code": "community", + "display": "Community" + } + ] + } + ], + "medicationCodeableConcept": { + "coding": [ + { + "system": "http://snomed.info/sct", + "code": "324252006", + "display": "Azithromycin 250mg capsules" + } + ] + }, + "subject": { + "reference": "urn:uuid:78d3c2eb-009e-4ec8-a358-b042954aa9b2" + }, + "requester": { + "reference": "urn:uuid:56166769-c1c4-4d07-afa8-132b5dfca666" + }, + "groupIdentifier": { + "system": "https://fhir.nhs.uk/Id/prescription-order-number", + "value": "24F5DA-A83008-7EFE6Z", + "extension": [ + { + "url": "https://fhir.nhs.uk/StructureDefinition/Extension-DM-PrescriptionId", + "valueIdentifier": { + "system": "https://fhir.nhs.uk/Id/prescription", + "value": "20ba5fb5-cb58-462c-923e-22d180b09356" + } + } + ] + }, + "courseOfTherapyType": { + "coding": [ + { + "system": "http://terminology.hl7.org/CodeSystem/medicationrequest-course-of-therapy", + "code": "acute", + "display": "Short course (acute) therapy" + } + ] + }, + "dosageInstruction": [ + { + "text": "3 times a day for 10 days", + "timing": { + "repeat": { + "frequency": 3, + "period": 1, + "periodUnit": "d" + } + }, + "route": { + "coding": [ + { + "system": "http://snomed.info/sct", + "code": "26643006", + "display": "Oral" + } + ] + } + } + ], + "dispenseRequest": { + "extension": [ + { + "url": "https://fhir.nhs.uk/StructureDefinition/Extension-DM-PerformerSiteType", + "valueCoding": { + "system": "https://fhir.nhs.uk/CodeSystem/dispensing-site-preference", + "code": "P1" + } + } + ], + "validityPeriod": { + "start": "2022-10-21" + }, + "quantity": { + "value": 30, + "unit": "tablet", + "system": "http://snomed.info/sct", + "code": "428673006" + }, + "expectedSupplyDuration": { + "value": 10, + "unit": "day", + "system": "http://unitsofmeasure.org", + "code": "d" + }, + "performer": { + "identifier": { + "system": "https://fhir.nhs.uk/Id/ods-organization-code", + "value": "VNE51" + } + } + }, + "substitution": { + "allowedBoolean": false + } + } + }, + { + "fullUrl": "urn:uuid:78d3c2eb-009e-4ec8-a358-b042954aa9b2", + "resource": { + "resourceType": "Patient", + "identifier": [ + { + "system": "https://fhir.nhs.uk/Id/nhs-number", + "value": "9449304130" + } + ], + "name": [ + { + "use": "usual", + "family": "TWITCHETT", + "given": [ + "STACEY", + "MARISA" + ], + "prefix": [ + "MS" + ] + } + ], + "gender": "female", + "birthDate": "1948-04-30", + "address": [ + { + "use": "home", + "line": [ + "10 HEATHFIELD", + "COBHAM", + "SURREY" + ], + "postalCode": "KT11 2QY" + } + ], + "generalPractitioner": [ + { + "identifier": { + "system": "https://fhir.nhs.uk/Id/ods-organization-code", + "value": "A83008" + } + } + ] + } + }, + { + "fullUrl": "urn:uuid:56166769-c1c4-4d07-afa8-132b5dfca666", + "resource": { + "resourceType": "PractitionerRole", + "identifier": [ + { + "system": "https://fhir.nhs.uk/Id/sds-role-profile-id", + "value": "200102238987" + } + ], + "practitioner": { + "reference": "urn:uuid:a8c85454-f8cb-498d-9629-78e2cb5fa47a" + }, + "organization": { + "reference": "urn:uuid:3b4b03a5-52ba-4ba6-9b82-70350aa109d8" + }, + "code": [ + { + "coding": [ + { + "system": "https://fhir.nhs.uk/CodeSystem/NHSDigital-SDS-JobRoleCode", + "code": "R8000", + "display": "Clinical Practitioner Access Role" + }, + { + "system": "https://fhir.hl7.org.uk/CodeSystem/UKCore-SDSJobRoleName", + "code": "R8000", + "display": "Clinical Practitioner Access Role" + } + ] + } + ], + "telecom": [ + { + "system": "phone", + "use": "work", + "value": "01234567890" + } + ] + } + }, + { + "fullUrl": "urn:uuid:a8c85454-f8cb-498d-9629-78e2cb5fa47a", + "resource": { + "resourceType": "Practitioner", + "identifier": [ + { + "system": "https://fhir.nhs.uk/Id/sds-user-id", + "value": "555086689106" + }, + { + "system": "https://fhir.hl7.org.uk/Id/gmc-number", + "value": "6095103" + }, + { + "system": "https://fhir.hl7.org.uk/Id/din-number", + "value": "977677" + } + ], + "name": [ + { + "family": "BOIN", + "given": [ + "C" + ], + "prefix": [ + "DR" + ] + } + ] + } + }, + { + "fullUrl": "urn:uuid:3b4b03a5-52ba-4ba6-9b82-70350aa109d8", + "resource": { + "resourceType": "Organization", + "identifier": [ + { + "system": "https://fhir.nhs.uk/Id/ods-organization-code", + "value": "A83008" + } + ], + "type": [ + { + "coding": [ + { + "system": "https://fhir.nhs.uk/CodeSystem/organisation-role", + "code": "76", + "display": "GP PRACTICE" + } + ] + } + ], + "name": "HALLGARTH SURGERY", + "telecom": [ + { + "system": "phone", + "use": "work", + "value": "0115 9737320" + } + ], + "address": [ + { + "use": "work", + "type": "both", + "line": [ + "HALLGARTH SURGERY", + "CHEAPSIDE" + ], + "city": "SHILDON", + "district": "COUNTY DURHAM", + "postalCode": "DL4 2HP" + } + ], + "partOf": { + "identifier": { + "system": "https://fhir.nhs.uk/Id/ods-organization-code", + "value": "84H" + }, + "display": "NHS COUNTY DURHAM CCG" + } + } + } + ] +} diff --git a/src/test/resources/examples/full_examples/primary-care/acute/nominated-pharmacy/medical-prescriber/4-Prepare-Response-Multiple-Dosages-200_OK.json b/src/test/resources/examples/full_examples/primary-care/acute/nominated-pharmacy/medical-prescriber/4-Prepare-Response-Multiple-Dosages-200_OK.json new file mode 100644 index 00000000..b7d4857d --- /dev/null +++ b/src/test/resources/examples/full_examples/primary-care/acute/nominated-pharmacy/medical-prescriber/4-Prepare-Response-Multiple-Dosages-200_OK.json @@ -0,0 +1,17 @@ +{ + "resourceType": "Parameters", + "parameter": [ + { + "name": "digest", + "valueString": "PFNpZ25lZEluZm8geG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvMDkveG1sZHNpZyMiPjxDYW5vbmljYWxpemF0aW9uTWV0aG9kIEFsZ29yaXRobT0iaHR0cDovL3d3dy53My5vcmcvMjAwMS8xMC94bWwtZXhjLWMxNG4jIj48L0Nhbm9uaWNhbGl6YXRpb25NZXRob2Q+PFNpZ25hdHVyZU1ldGhvZCBBbGdvcml0aG09Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvMDkveG1sZHNpZyNyc2Etc2hhMSI+PC9TaWduYXR1cmVNZXRob2Q+PFJlZmVyZW5jZT48VHJhbnNmb3Jtcz48VHJhbnNmb3JtIEFsZ29yaXRobT0iaHR0cDovL3d3dy53My5vcmcvMjAwMS8xMC94bWwtZXhjLWMxNG4jIj48L1RyYW5zZm9ybT48L1RyYW5zZm9ybXM+PERpZ2VzdE1ldGhvZCBBbGdvcml0aG09Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvMDkveG1sZHNpZyNzaGExIj48L0RpZ2VzdE1ldGhvZD48RGlnZXN0VmFsdWU+aDBHZnFHSjl4VG4rMTMvbytlbG1iT05JRFY0PTwvRGlnZXN0VmFsdWU+PC9SZWZlcmVuY2U+PC9TaWduZWRJbmZvPg==" + }, + { + "name": "timestamp", + "valueString": "2022-10-21T13:47:00+00:00" + }, + { + "name": "algorithm", + "valueString": "RS1" + } + ] +} diff --git a/src/test/resources/examples/full_examples/primary-care/acute/nominated-pharmacy/medical-prescriber/cancellations/1-Process-Request-Cancel-200_OK.json b/src/test/resources/examples/full_examples/primary-care/acute/nominated-pharmacy/medical-prescriber/cancellations/1-Process-Request-Cancel-200_OK.json new file mode 100644 index 00000000..12ff3f7e --- /dev/null +++ b/src/test/resources/examples/full_examples/primary-care/acute/nominated-pharmacy/medical-prescriber/cancellations/1-Process-Request-Cancel-200_OK.json @@ -0,0 +1,384 @@ +{ + "resourceType": "Bundle", + "id": "0cb82cfa-76c8-4fb2-a08e-bf0e326e5487", + "identifier": { + "system": "https://tools.ietf.org/html/rfc4122", + "value": "22d28bbf-e9ed-4c77-8374-3aaf88596109" + }, + "type": "message", + "entry": [ + { + "fullUrl": "urn:uuid:17773b27-427e-4940-8c16-64cdac715001", + "resource": { + "resourceType": "MessageHeader", + "eventCoding": { + "system": "https://fhir.nhs.uk/CodeSystem/message-event", + "code": "prescription-order-update", + "display": "Prescription Order Update" + }, + "sender": { + "identifier": { + "system": "https://fhir.nhs.uk/Id/ods-organization-code", + "value": "A83008" + }, + "display": "HALLGARTH SURGERY" + }, + "source": { + "endpoint": "https://directory.spineservices.nhs.uk/STU3/Organization/A83008" + }, + "destination": [ + { + "endpoint": "https://sandbox.api.service.nhs.uk/electronic-prescriptions/$post-message", + "receiver": { + "identifier": { + "system": "https://fhir.nhs.uk/Id/ods-organization-code", + "value": "FCG71" + } + } + } + ], + "focus": [ + { + "reference": "urn:uuid:56166769-c1c4-4d07-afa8-132b5dfca666" + }, + { + "reference": "urn:uuid:a54219b8-f741-4c47-b662-e4f8dfa49ab6" + } + ] + } + }, + { + "fullUrl": "urn:uuid:a54219b8-f741-4c47-b662-e4f8dfa49ab6", + "resource": { + "resourceType": "MedicationRequest", + "extension": [ + { + "url": "https://fhir.nhs.uk/StructureDefinition/Extension-DM-PrescriptionType", + "valueCoding": { + "system": "https://fhir.nhs.uk/CodeSystem/prescription-type", + "code": "0101", + "display": "Primary Care Prescriber - Medical Prescriber" + } + } + ], + "identifier": [ + { + "system": "https://fhir.nhs.uk/Id/prescription-order-item-number", + "value": "299c610b-f4f1-4eac-a7d7-4fb6b0556e11" + } + ], + "status": "cancelled", + "statusReason": { + "coding": [ + { + "system": "https://fhir.nhs.uk/CodeSystem/medicationrequest-status-reason", + "code": "0001", + "display": "Prescribing Error" + } + ] + }, + "intent": "order", + "category": [ + { + "coding": [ + { + "system": "http://terminology.hl7.org/CodeSystem/medicationrequest-category", + "code": "community", + "display": "Community" + } + ] + } + ], + "medicationCodeableConcept": { + "coding": [ + { + "system": "http://snomed.info/sct", + "code": "322237000", + "display": "Paracetamol 500mg soluble tablets" + } + ] + }, + "subject": { + "reference": "urn:uuid:78d3c2eb-009e-4ec8-a358-b042954aa9b2" + }, + "requester": { + "reference": "urn:uuid:56166769-c1c4-4d07-afa8-132b5dfca666" + }, + "groupIdentifier": { + "extension": [ + { + "url": "https://fhir.nhs.uk/StructureDefinition/Extension-DM-PrescriptionId", + "valueIdentifier": { + "system": "https://fhir.nhs.uk/Id/prescription", + "value": "942fd768-d9a6-4062-8768-6e2faa486c38" + } + } + ], + "system": "https://fhir.nhs.uk/Id/prescription-order-number", + "value": "58E241-A83008-4E2F8R" + }, + "courseOfTherapyType": { + "coding": [ + { + "system": "http://terminology.hl7.org/CodeSystem/medicationrequest-course-of-therapy", + "code": "acute", + "display": "Short course (acute) therapy" + } + ] + }, + "dosageInstruction": [ + { + "text": "4 times a day - Oral", + "timing": { + "repeat": { + "frequency": 4, + "period": 1, + "periodUnit": "d" + } + }, + "route": { + "coding": [ + { + "system": "http://snomed.info/sct", + "code": "26643006", + "display": "Oral" + } + ] + } + } + ], + "dispenseRequest": { + "extension": [ + { + "url": "https://fhir.nhs.uk/StructureDefinition/Extension-DM-PerformerSiteType", + "valueCoding": { + "system": "https://fhir.nhs.uk/CodeSystem/dispensing-site-preference", + "code": "P1" + } + } + ], + "validityPeriod": { + "start": "2021-04-20", + "end": "2021-05-18" + }, + "expectedSupplyDuration": { + "value": 30, + "unit": "day", + "system": "http://unitsofmeasure.org", + "code": "d" + }, + "performer": { + "identifier": { + "system": "https://fhir.nhs.uk/Id/ods-organization-code", + "value": "FCG71" + } + }, + "quantity": { + "value": 100, + "unit": "tablet", + "system": "http://snomed.info/sct", + "code": "428673006" + } + }, + "substitution": { + "allowedBoolean": false + } + } + }, + { + "fullUrl": "urn:uuid:78d3c2eb-009e-4ec8-a358-b042954aa9b2", + "resource": { + "resourceType": "Patient", + "identifier": [ + { + "system": "https://fhir.nhs.uk/Id/nhs-number", + "value": "9990548609" + } + ], + "name": [ + { + "use": "usual", + "family": "XXTESTPATIENT-TGNP", + "given": [ + "DONOTUSE" + ], + "prefix": [ + "MR" + ] + } + ], + "gender": "male", + "birthDate": "1932-01-06", + "address": [ + { + "use": "home", + "line": [ + "1 Trevelyan Square", + "Boar Lane", + "Leeds", + "West Yorkshire" + ], + "postalCode": "LS1 6AE" + } + ], + "generalPractitioner": [ + { + "identifier": { + "system": "https://fhir.nhs.uk/Id/ods-organization-code", + "value": "A83008" + } + } + ] + } + }, + { + "fullUrl": "urn:uuid:56166769-c1c4-4d07-afa8-132b5dfca666", + "resource": { + "resourceType": "PractitionerRole", + "identifier": [ + { + "system": "https://fhir.nhs.uk/Id/sds-role-profile-id", + "value": "200102238987" + } + ], + "practitioner": { + "reference": "urn:uuid:a8c85454-f8cb-498d-9629-78e2cb5fa47a" + }, + "organization": { + "reference": "urn:uuid:3b4b03a5-52ba-4ba6-9b82-70350aa109d8" + }, + "code": [ + { + "coding": [ + { + "system": "https://fhir.nhs.uk/CodeSystem/NHSDigital-SDS-JobRoleCode", + "code": "S8006:G8006:R8006", + "display": "Medical Secetary Access Role" + } + ] + } + ], + "telecom": [ + { + "system": "phone", + "value": "01234567890", + "use": "work" + } + ] + } + }, + { + "fullUrl": "urn:uuid:a8c85454-f8cb-498d-9629-78e2cb5fa47a", + "resource": { + "resourceType": "Practitioner", + "identifier": [ + { + "system": "https://fhir.nhs.uk/Id/sds-user-id", + "value": "555086718101" + }, + { + "system": "https://fhir.hl7.org.uk/Id/professional-code", + "value": "unknown" + } + ], + "name": [ + { + "family": "Secetary", + "given": [ + "Medical" + ], + "prefix": [ + "MS" + ] + } + ] + } + }, + { + "fullUrl": "urn:uuid:3b4b03a5-52ba-4ba6-9b82-70350aa109d8", + "resource": { + "resourceType": "Organization", + "identifier": [ + { + "system": "https://fhir.nhs.uk/Id/ods-organization-code", + "value": "A83008" + } + ], + "type": [ + { + "coding": [ + { + "system": "https://fhir.nhs.uk/CodeSystem/organisation-role", + "code": "76", + "display": "GP PRACTICE" + } + ] + } + ], + "name": "HALLGARTH SURGERY", + "address": [ + { + "use": "work", + "type": "both", + "line": [ + "HALLGARTH SURGERY", + "CHEAPSIDE" + ], + "city": "SHILDON", + "district": "COUNTY DURHAM", + "postalCode": "DL4 2HP" + } + ], + "telecom": [ + { + "system": "phone", + "value": "0115 9737320", + "use": "work" + } + ], + "partOf": { + "identifier": { + "system": "https://fhir.nhs.uk/Id/ods-organization-code", + "value": "84H" + }, + "display": "NHS COUNTY DURHAM CCG" + } + } + }, + { + "fullUrl": "urn:uuid:28828c55-8fa7-42d7-916f-fcf076e0c10e", + "resource": { + "resourceType": "Provenance", + "id": "28828c55-8fa7-42d7-916f-fcf076e0c10e", + "target": [ + { + "reference": "urn:uuid:a54219b8-f741-4c47-b662-e4f8dfa49ab6" + } + ], + "recorded": "2021-02-11T16:35:38+00:00", + "agent": [ + { + "who": { + "reference": "urn:uuid:56166769-c1c4-4d07-afa8-132b5dfca666" + } + } + ], + "signature": [ + { + "type": [ + { + "system": "urn:iso-astm:E1762-95:2013", + "code": "1.2.840.10065.1.12.1.1" + } + ], + "when": "2021-04-20T05:45:31+00:00", + "who": { + "reference": "urn:uuid:56166769-c1c4-4d07-afa8-132b5dfca666" + }, + "data": "DQo8U2lnbmF0dXJlIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwLzA5L3htbGRzaWcjIj4NCiAgICA8U2lnbmVkSW5mbz48Q2Fub25pY2FsaXphdGlvbk1ldGhvZCBBbGdvcml0aG09Imh0dHA6Ly93d3cudzMub3JnLzIwMDEvMTAveG1sLWV4Yy1jMTRuIyI+PC9DYW5vbmljYWxpemF0aW9uTWV0aG9kPjxTaWduYXR1cmVNZXRob2QgQWxnb3JpdGhtPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwLzA5L3htbGRzaWcjcnNhLXNoYTEiPjwvU2lnbmF0dXJlTWV0aG9kPjxSZWZlcmVuY2U+PFRyYW5zZm9ybXM+PFRyYW5zZm9ybSBBbGdvcml0aG09Imh0dHA6Ly93d3cudzMub3JnLzIwMDEvMTAveG1sLWV4Yy1jMTRuIyI+PC9UcmFuc2Zvcm0+PC9UcmFuc2Zvcm1zPjxEaWdlc3RNZXRob2QgQWxnb3JpdGhtPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwLzA5L3htbGRzaWcjc2hhMSI+PC9EaWdlc3RNZXRob2Q+PERpZ2VzdFZhbHVlPjVWem5UWG9FUmpDamRGQ3NTaUljcHIvNDJDUT08L0RpZ2VzdFZhbHVlPjwvUmVmZXJlbmNlPjwvU2lnbmVkSW5mbz4NCiAgICA8U2lnbmF0dXJlVmFsdWU+ZjFsSHpFSzRMazRNQUR2UVhOSEdhaUVlYkdtM3BXeFl5MzR3dE5kYzZ2Lzd2QnNTdXMvcUhqU3Q3YkFHMVpCa2JidTVsZjRFN2tvbHBCVDBUMFVKK3RUQ1hxaWxleVRRanNEMG9iQ1QwZ0xPYk9uL2VXZk11REQ5MUI3WExvdmVONzlzK3VtVXI5Y0JCTVdlNWIxQnZpWjUyaGVhNlJnU3hXR3NGMVJ0NXFFPTwvU2lnbmF0dXJlVmFsdWU+DQogICAgPEtleUluZm8+DQogICAgICAgIDxYNTA5RGF0YT4NCiAgICAgICAgICAgIDxYNTA5Q2VydGlmaWNhdGU+TUlJRHVEQ0NBcUNnQXdJQkFnSUVYY210SHpBTkJna3Foa2lHOXcwQkFRc0ZBREEyTVF3d0NnWURWUVFLRXdOdWFITXhDekFKQmdOVkJBc1RBa05CTVJrd0Z3WURWUVFERXhCT1NGTWdTVTVVSUV4bGRtVnNJREZFTUI0WERUSXdNVEF5TWpFd01qRTFOVm9YRFRJeU1UQXlNakV3TlRFMU5Wb3dRekVNTUFvR0ExVUVDaE1EYm1oek1ROHdEUVlEVlFRTEV3WlFaVzl3YkdVeElqQWdCZ05WQkFNTUdUVTFOVEkxTXpVeU1URXdPRjlTUVU1RVQwMWZWVk5GVWxFd2daOHdEUVlKS29aSWh2Y05BUUVCQlFBRGdZMEFNSUdKQW9HQkFLdDRzek53N09BSDdBUVJyRGUveEJJbXNNbU1pUzlFc3JUM2EzcC9MaDNicmR6STlhYWpUVVoyYi9jdmJPYTdQZVlkN3UrSzRhMlpkMFhrKzBHRm1ZR3pTVlg2aVlqYmx3cjB2YWkzMXpWN0crbEd2SHhINnBTb0xDd0lDYVpBRndhYmVENU96OTQreUEzYVdOV3RHVjBEZmg5cXdIM1pGQ0lNUnN2ZXJOMXBBZ01CQUFHamdnRkRNSUlCUHpBT0JnTlZIUThCQWY4RUJBTUNCa0F3WlFZRFZSMGdBUUgvQkZzd1dUQlhCZ3NxaGpvQWlYdG1BQU1DQURCSU1FWUdDQ3NHQVFVRkJ3SUJGanBvZEhSd2N6b3ZMM0JyYVM1dWFITXVkV3N2WTJWeWRHbG1hV05oZEdWZmNHOXNhV05wWlhNdlkyOXVkR1Z1ZEY5amIyMXRhWFJ0Wlc1ME1ETUdBMVVkSHdRc01Db3dLS0Ftb0NTR0ltaDBkSEE2THk5amNtd3VibWh6TG5WckwybHVkQzh4WkM5amNteGpNeTVqY213d0t3WURWUjBRQkNRd0lvQVBNakF5TURFd01qSXhNREl4TlRWYWdROHlNREl5TURNeE56RXdOVEUxTlZvd0h3WURWUjBqQkJnd0ZvQVVvSllmZ1lUTlBkNkVVS0w2UUxJekh4WTVQRkl3SFFZRFZSME9CQllFRkx0eXZZU3lhcWc2MEFFVVpneGswd3JqUkpjK01Ba0dBMVVkRXdRQ01BQXdHUVlKS29aSWh2WjlCMEVBQkF3d0Noc0VWamd1TXdNQ0JMQXdEUVlKS29aSWh2Y05BUUVMQlFBRGdnRUJBQmN6eThCOGp1UHBJZmFUTkZjeHJDMjJhQ1gveFlabWhyTC9OdklCQWFYMUc1aGppd21rR0tFMmhSVElyNjdQeFp4bVhzSnhpZ1JCTUhQbEkrbFkvK29rekgwR2k3YjVicWx3N3B4R0lnSk8wMDB3OHBGc3ZvOXc0MklZaEhvZHN2bkRWU3hoTVQwSjQ2UWhrOXNvRTBMam9FVUxLUVBQbFlHa2UvR2wzbTE3SXRGWXdPYlFIMGZNRXdtaXFCeWVJZno3Z1NjY096TDVjSXA2UGNaVE9qbzJJcVFwZ0VtaGpPY1JJbkVxQU5pdFNkam9pSkFKenBhYVpqWVRSZEhVWDdpN2FqRWlING05MW5GVys0QXFrTnR0bGI0V2NHS3NTbVdnZktLaGVGNElvWktNRTgweGVyU2dNeTh2dGpMT0JKQ0dYejB3TEdtUXVSbXhNVHE4OHE0PTwvWDUwOUNlcnRpZmljYXRlPg0KICAgICAgICA8L1g1MDlEYXRhPg0KICAgIDwvS2V5SW5mbz4NCjwvU2lnbmF0dXJlPg0K" + } + ] + } + } + ] +} diff --git a/src/test/resources/examples/full_examples/primary-care/acute/nominated-pharmacy/medical-prescriber/cancellations/1-Process-Request-Send-200_OK.json b/src/test/resources/examples/full_examples/primary-care/acute/nominated-pharmacy/medical-prescriber/cancellations/1-Process-Request-Send-200_OK.json new file mode 100644 index 00000000..831a5b36 --- /dev/null +++ b/src/test/resources/examples/full_examples/primary-care/acute/nominated-pharmacy/medical-prescriber/cancellations/1-Process-Request-Send-200_OK.json @@ -0,0 +1,379 @@ +{ + "resourceType": "Bundle", + "id": "0cb82cfa-76c8-4fb2-a08e-bf0e326e5487", + "identifier": { + "system": "https://tools.ietf.org/html/rfc4122", + "value": "ba4a1f5a-41fb-4517-b12f-cb5b9fcd85cb" + }, + "type": "message", + "entry": [ + { + "fullUrl": "urn:uuid:17773b27-427e-4940-8c16-64cdac715001", + "resource": { + "resourceType": "MessageHeader", + "eventCoding": { + "system": "https://fhir.nhs.uk/CodeSystem/message-event", + "code": "prescription-order", + "display": "Prescription Order" + }, + "sender": { + "identifier": { + "system": "https://fhir.nhs.uk/Id/ods-organization-code", + "value": "A83008" + }, + "display": "HALLGARTH SURGERY" + }, + "source": { + "endpoint": "https://directory.spineservices.nhs.uk/STU3/Organization/A83008" + }, + "destination": [ + { + "endpoint": "https://sandbox.api.service.nhs.uk/electronic-prescriptions/$post-message", + "receiver": { + "identifier": { + "system": "https://fhir.nhs.uk/Id/ods-organization-code", + "value": "FCG71" + } + } + } + ], + "focus": [ + { + "reference": "urn:uuid:56166769-c1c4-4d07-afa8-132b5dfca666" + }, + { + "reference": "urn:uuid:a54219b8-f741-4c47-b662-e4f8dfa49ab6" + } + ] + } + }, + { + "fullUrl": "urn:uuid:a54219b8-f741-4c47-b662-e4f8dfa49ab6", + "resource": { + "resourceType": "MedicationRequest", + "extension": [ + { + "url": "https://fhir.nhs.uk/StructureDefinition/Extension-DM-PrescriptionType", + "valueCoding": { + "system": "https://fhir.nhs.uk/CodeSystem/prescription-type", + "code": "0101", + "display": "Primary Care Prescriber - Medical Prescriber" + } + } + ], + "identifier": [ + { + "system": "https://fhir.nhs.uk/Id/prescription-order-item-number", + "value": "299c610b-f4f1-4eac-a7d7-4fb6b0556e11" + } + ], + "status": "active", + "intent": "order", + "category": [ + { + "coding": [ + { + "system": "http://terminology.hl7.org/CodeSystem/medicationrequest-category", + "code": "community", + "display": "Community" + } + ] + } + ], + "medicationCodeableConcept": { + "coding": [ + { + "system": "http://snomed.info/sct", + "code": "322237000", + "display": "Paracetamol 500mg soluble tablets" + } + ] + }, + "subject": { + "reference": "urn:uuid:78d3c2eb-009e-4ec8-a358-b042954aa9b2" + }, + "requester": { + "reference": "urn:uuid:56166769-c1c4-4d07-afa8-132b5dfca666" + }, + "groupIdentifier": { + "extension": [ + { + "url": "https://fhir.nhs.uk/StructureDefinition/Extension-DM-PrescriptionId", + "valueIdentifier": { + "system": "https://fhir.nhs.uk/Id/prescription", + "value": "942fd768-d9a6-4062-8768-6e2faa486c38" + } + } + ], + "system": "https://fhir.nhs.uk/Id/prescription-order-number", + "value": "58E241-A83008-4E2F8R" + }, + "courseOfTherapyType": { + "coding": [ + { + "system": "http://terminology.hl7.org/CodeSystem/medicationrequest-course-of-therapy", + "code": "acute", + "display": "Short course (acute) therapy" + } + ] + }, + "dosageInstruction": [ + { + "text": "4 times a day - Oral", + "timing": { + "repeat": { + "frequency": 4, + "period": 1, + "periodUnit": "d" + } + }, + "route": { + "coding": [ + { + "system": "http://snomed.info/sct", + "code": "26643006", + "display": "Oral" + } + ] + } + } + ], + "dispenseRequest": { + "extension": [ + { + "url": "https://fhir.nhs.uk/StructureDefinition/Extension-DM-PerformerSiteType", + "valueCoding": { + "system": "https://fhir.nhs.uk/CodeSystem/dispensing-site-preference", + "code": "P1" + } + } + ], + "validityPeriod": { + "start": "2021-04-20", + "end": "2021-05-18" + }, + "expectedSupplyDuration": { + "value": 30, + "unit": "day", + "system": "http://unitsofmeasure.org", + "code": "d" + }, + "performer": { + "identifier": { + "system": "https://fhir.nhs.uk/Id/ods-organization-code", + "value": "FCG71" + } + }, + "quantity": { + "value": 100, + "unit": "tablet", + "system": "http://snomed.info/sct", + "code": "428673006" + } + }, + "substitution": { + "allowedBoolean": false + } + } + }, + { + "fullUrl": "urn:uuid:78d3c2eb-009e-4ec8-a358-b042954aa9b2", + "resource": { + "resourceType": "Patient", + "identifier": [ + { + "system": "https://fhir.nhs.uk/Id/nhs-number", + "value": "9990548609" + } + ], + "name": [ + { + "use": "usual", + "family": "XXTESTPATIENT-TGNP", + "given": [ + "DONOTUSE" + ], + "prefix": [ + "MR" + ] + } + ], + "gender": "male", + "birthDate": "1932-01-06", + "address": [ + { + "use": "home", + "line": [ + "1 Trevelyan Square", + "Boar Lane", + "Leeds", + "West Yorkshire" + ], + "postalCode": "LS1 6AE" + } + ], + "generalPractitioner": [ + { + "identifier": { + "system": "https://fhir.nhs.uk/Id/ods-organization-code", + "value": "A83008" + } + } + ] + } + }, + { + "fullUrl": "urn:uuid:56166769-c1c4-4d07-afa8-132b5dfca666", + "resource": { + "resourceType": "PractitionerRole", + "identifier": [ + { + "system": "https://fhir.nhs.uk/Id/sds-role-profile-id", + "value": "200102238987" + } + ], + "practitioner": { + "reference": "urn:uuid:a8c85454-f8cb-498d-9629-78e2cb5fa47a" + }, + "organization": { + "reference": "urn:uuid:3b4b03a5-52ba-4ba6-9b82-70350aa109d8" + }, + "code": [ + { + "coding": [ + { + "system": "https://fhir.nhs.uk/CodeSystem/NHSDigital-SDS-JobRoleCode", + "code": "S8000:G8000:R8000", + "display": "Clinical Practitioner Access Role" + } + ] + } + ], + "telecom": [ + { + "system": "phone", + "value": "01234567890", + "use": "work" + } + ] + } + }, + { + "fullUrl": "urn:uuid:a8c85454-f8cb-498d-9629-78e2cb5fa47a", + "resource": { + "resourceType": "Practitioner", + "identifier": [ + { + "system": "https://fhir.nhs.uk/Id/sds-user-id", + "value": "555086689106" + }, + { + "system": "https://fhir.hl7.org.uk/Id/gmc-number", + "value": "6095103" + }, + { + "system": "https://fhir.hl7.org.uk/Id/din-number", + "value": "977677" + } + ], + "name": [ + { + "family": "BOIN", + "given": [ + "C" + ], + "prefix": [ + "DR" + ] + } + ] + } + }, + { + "fullUrl": "urn:uuid:3b4b03a5-52ba-4ba6-9b82-70350aa109d8", + "resource": { + "resourceType": "Organization", + "identifier": [ + { + "system": "https://fhir.nhs.uk/Id/ods-organization-code", + "value": "A83008" + } + ], + "type": [ + { + "coding": [ + { + "system": "https://fhir.nhs.uk/CodeSystem/organisation-role", + "code": "76", + "display": "GP PRACTICE" + } + ] + } + ], + "name": "HALLGARTH SURGERY", + "address": [ + { + "use": "work", + "type": "both", + "line": [ + "HALLGARTH SURGERY", + "CHEAPSIDE" + ], + "city": "SHILDON", + "district": "COUNTY DURHAM", + "postalCode": "DL4 2HP" + } + ], + "telecom": [ + { + "system": "phone", + "value": "0115 9737320", + "use": "work" + } + ], + "partOf": { + "identifier": { + "system": "https://fhir.nhs.uk/Id/ods-organization-code", + "value": "84H" + }, + "display": "NHS COUNTY DURHAM CCG" + } + } + }, + { + "fullUrl": "urn:uuid:28828c55-8fa7-42d7-916f-fcf076e0c10e", + "resource": { + "resourceType": "Provenance", + "id": "28828c55-8fa7-42d7-916f-fcf076e0c10e", + "target": [ + { + "reference": "urn:uuid:a54219b8-f741-4c47-b662-e4f8dfa49ab6" + } + ], + "recorded": "2021-02-11T16:35:38+00:00", + "agent": [ + { + "who": { + "reference": "urn:uuid:56166769-c1c4-4d07-afa8-132b5dfca666" + } + } + ], + "signature": [ + { + "type": [ + { + "system": "urn:iso-astm:E1762-95:2013", + "code": "1.2.840.10065.1.12.1.1" + } + ], + "when": "2021-04-20T05:45:31+00:00", + "who": { + "reference": "urn:uuid:56166769-c1c4-4d07-afa8-132b5dfca666" + }, + "data": "DQo8U2lnbmF0dXJlIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwLzA5L3htbGRzaWcjIj4NCiAgICA8U2lnbmVkSW5mbz48Q2Fub25pY2FsaXphdGlvbk1ldGhvZCBBbGdvcml0aG09Imh0dHA6Ly93d3cudzMub3JnLzIwMDEvMTAveG1sLWV4Yy1jMTRuIyI+PC9DYW5vbmljYWxpemF0aW9uTWV0aG9kPjxTaWduYXR1cmVNZXRob2QgQWxnb3JpdGhtPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwLzA5L3htbGRzaWcjcnNhLXNoYTEiPjwvU2lnbmF0dXJlTWV0aG9kPjxSZWZlcmVuY2U+PFRyYW5zZm9ybXM+PFRyYW5zZm9ybSBBbGdvcml0aG09Imh0dHA6Ly93d3cudzMub3JnLzIwMDEvMTAveG1sLWV4Yy1jMTRuIyI+PC9UcmFuc2Zvcm0+PC9UcmFuc2Zvcm1zPjxEaWdlc3RNZXRob2QgQWxnb3JpdGhtPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwLzA5L3htbGRzaWcjc2hhMSI+PC9EaWdlc3RNZXRob2Q+PERpZ2VzdFZhbHVlPjVWem5UWG9FUmpDamRGQ3NTaUljcHIvNDJDUT08L0RpZ2VzdFZhbHVlPjwvUmVmZXJlbmNlPjwvU2lnbmVkSW5mbz4NCiAgICA8U2lnbmF0dXJlVmFsdWU+ZjFsSHpFSzRMazRNQUR2UVhOSEdhaUVlYkdtM3BXeFl5MzR3dE5kYzZ2Lzd2QnNTdXMvcUhqU3Q3YkFHMVpCa2JidTVsZjRFN2tvbHBCVDBUMFVKK3RUQ1hxaWxleVRRanNEMG9iQ1QwZ0xPYk9uL2VXZk11REQ5MUI3WExvdmVONzlzK3VtVXI5Y0JCTVdlNWIxQnZpWjUyaGVhNlJnU3hXR3NGMVJ0NXFFPTwvU2lnbmF0dXJlVmFsdWU+DQogICAgPEtleUluZm8+DQogICAgICAgIDxYNTA5RGF0YT4NCiAgICAgICAgICAgIDxYNTA5Q2VydGlmaWNhdGU+TUlJRHVEQ0NBcUNnQXdJQkFnSUVYY210SHpBTkJna3Foa2lHOXcwQkFRc0ZBREEyTVF3d0NnWURWUVFLRXdOdWFITXhDekFKQmdOVkJBc1RBa05CTVJrd0Z3WURWUVFERXhCT1NGTWdTVTVVSUV4bGRtVnNJREZFTUI0WERUSXdNVEF5TWpFd01qRTFOVm9YRFRJeU1UQXlNakV3TlRFMU5Wb3dRekVNTUFvR0ExVUVDaE1EYm1oek1ROHdEUVlEVlFRTEV3WlFaVzl3YkdVeElqQWdCZ05WQkFNTUdUVTFOVEkxTXpVeU1URXdPRjlTUVU1RVQwMWZWVk5GVWxFd2daOHdEUVlKS29aSWh2Y05BUUVCQlFBRGdZMEFNSUdKQW9HQkFLdDRzek53N09BSDdBUVJyRGUveEJJbXNNbU1pUzlFc3JUM2EzcC9MaDNicmR6STlhYWpUVVoyYi9jdmJPYTdQZVlkN3UrSzRhMlpkMFhrKzBHRm1ZR3pTVlg2aVlqYmx3cjB2YWkzMXpWN0crbEd2SHhINnBTb0xDd0lDYVpBRndhYmVENU96OTQreUEzYVdOV3RHVjBEZmg5cXdIM1pGQ0lNUnN2ZXJOMXBBZ01CQUFHamdnRkRNSUlCUHpBT0JnTlZIUThCQWY4RUJBTUNCa0F3WlFZRFZSMGdBUUgvQkZzd1dUQlhCZ3NxaGpvQWlYdG1BQU1DQURCSU1FWUdDQ3NHQVFVRkJ3SUJGanBvZEhSd2N6b3ZMM0JyYVM1dWFITXVkV3N2WTJWeWRHbG1hV05oZEdWZmNHOXNhV05wWlhNdlkyOXVkR1Z1ZEY5amIyMXRhWFJ0Wlc1ME1ETUdBMVVkSHdRc01Db3dLS0Ftb0NTR0ltaDBkSEE2THk5amNtd3VibWh6TG5WckwybHVkQzh4WkM5amNteGpNeTVqY213d0t3WURWUjBRQkNRd0lvQVBNakF5TURFd01qSXhNREl4TlRWYWdROHlNREl5TURNeE56RXdOVEUxTlZvd0h3WURWUjBqQkJnd0ZvQVVvSllmZ1lUTlBkNkVVS0w2UUxJekh4WTVQRkl3SFFZRFZSME9CQllFRkx0eXZZU3lhcWc2MEFFVVpneGswd3JqUkpjK01Ba0dBMVVkRXdRQ01BQXdHUVlKS29aSWh2WjlCMEVBQkF3d0Noc0VWamd1TXdNQ0JMQXdEUVlKS29aSWh2Y05BUUVMQlFBRGdnRUJBQmN6eThCOGp1UHBJZmFUTkZjeHJDMjJhQ1gveFlabWhyTC9OdklCQWFYMUc1aGppd21rR0tFMmhSVElyNjdQeFp4bVhzSnhpZ1JCTUhQbEkrbFkvK29rekgwR2k3YjVicWx3N3B4R0lnSk8wMDB3OHBGc3ZvOXc0MklZaEhvZHN2bkRWU3hoTVQwSjQ2UWhrOXNvRTBMam9FVUxLUVBQbFlHa2UvR2wzbTE3SXRGWXdPYlFIMGZNRXdtaXFCeWVJZno3Z1NjY096TDVjSXA2UGNaVE9qbzJJcVFwZ0VtaGpPY1JJbkVxQU5pdFNkam9pSkFKenBhYVpqWVRSZEhVWDdpN2FqRWlING05MW5GVys0QXFrTnR0bGI0V2NHS3NTbVdnZktLaGVGNElvWktNRTgweGVyU2dNeTh2dGpMT0JKQ0dYejB3TEdtUXVSbXhNVHE4OHE0PTwvWDUwOUNlcnRpZmljYXRlPg0KICAgICAgICA8L1g1MDlEYXRhPg0KICAgIDwvS2V5SW5mbz4NCjwvU2lnbmF0dXJlPg0K" + } + ] + } + } + ] +} diff --git a/src/test/resources/examples/full_examples/primary-care/acute/nominated-pharmacy/medical-prescriber/cancellations/2-Process-Request-Cancel-200_OK.json b/src/test/resources/examples/full_examples/primary-care/acute/nominated-pharmacy/medical-prescriber/cancellations/2-Process-Request-Cancel-200_OK.json new file mode 100644 index 00000000..edc8198f --- /dev/null +++ b/src/test/resources/examples/full_examples/primary-care/acute/nominated-pharmacy/medical-prescriber/cancellations/2-Process-Request-Cancel-200_OK.json @@ -0,0 +1,358 @@ +{ + "resourceType": "Bundle", + "id": "0cb82cfa-76c8-4fb2-a08e-bf0e326e5487", + "identifier": { + "system": "https://tools.ietf.org/html/rfc4122", + "value": "46183abc-9fad-4673-85db-ce2cb6614732" + }, + "type": "message", + "entry": [ + { + "fullUrl": "urn:uuid:17773b27-427e-4940-8c16-64cdac715001", + "resource": { + "resourceType": "MessageHeader", + "eventCoding": { + "system": "https://fhir.nhs.uk/CodeSystem/message-event", + "code": "prescription-order-update", + "display": "Prescription Order Update" + }, + "sender": { + "identifier": { + "system": "https://fhir.nhs.uk/Id/ods-organization-code", + "value": "A83008" + }, + "display": "HALLGARTH SURGERY" + }, + "source": { + "endpoint": "https://directory.spineservices.nhs.uk/STU3/Organization/A83008" + }, + "reason": { + "coding": [ + { + "system": "https://fhir.nhs.uk/CodeSystem/message-reason-prescription", + "code": "cancel", + "display": "Cancel" + } + ] + }, + "focus": [ + { + "reference": "urn:uuid:5cb17f5a-11ac-4e18-825f-6470467238b3" + }, + { + "reference": "urn:uuid:56166769-c1c4-4d07-afa8-132b5dfca666" + }, + { + "reference": "urn:uuid:78d3c2eb-009e-4ec8-a358-b042954aa9b2" + } + ] + } + }, + { + "fullUrl": "urn:uuid:5cb17f5a-11ac-4e18-825f-6470467238b3", + "resource": { + "resourceType": "MedicationRequest", + "extension": [ + { + "url": "https://fhir.nhs.uk/StructureDefinition/Extension-DM-PrescriptionType", + "valueCoding": { + "system": "https://fhir.nhs.uk/CodeSystem/prescription-type", + "code": "0101", + "display": "Primary Care Prescriber - Medical Prescriber" + } + } + ], + "identifier": [ + { + "system": "https://fhir.nhs.uk/Id/prescription-order-item-number", + "value": "5cb17f5a-11ac-4e18-825f-6470467238b3" + } + ], + "status": "cancelled", + "statusReason": { + "coding": [ + { + "system": "https://fhir.nhs.uk/CodeSystem/medicationrequest-status-reason", + "code": "0002", + "display": "Clinical contra-indication" + } + ] + }, + "intent": "order", + "category": [ + { + "coding": [ + { + "system": "http://terminology.hl7.org/CodeSystem/medicationrequest-category", + "code": "community", + "display": "Community" + } + ] + } + ], + "medicationCodeableConcept": { + "coding": [ + { + "system": "http://snomed.info/sct", + "code": "324252006", + "display": "Azithromycin 250mg capsules" + } + ] + }, + "subject": { + "reference": "urn:uuid:78d3c2eb-009e-4ec8-a358-b042954aa9b2" + }, + "requester": { + "reference": "urn:uuid:56166769-c1c4-4d07-afa8-132b5dfca666" + }, + "groupIdentifier": { + "system": "https://fhir.nhs.uk/Id/prescription-order-number", + "value": "24F5DA-A83008-7EFE6Z", + "extension": [ + { + "url": "https://fhir.nhs.uk/StructureDefinition/Extension-DM-PrescriptionId", + "valueIdentifier": { + "system": "https://fhir.nhs.uk/Id/prescription", + "value": "20ba5fb5-cb58-462c-923e-22d180b09356" + } + } + ] + }, + "courseOfTherapyType": { + "coding": [ + { + "system": "http://terminology.hl7.org/CodeSystem/medicationrequest-course-of-therapy", + "code": "acute", + "display": "Short course (acute) therapy" + } + ] + }, + "dosageInstruction": [ + { + "text": "3 times a day for 10 days", + "timing": { + "repeat": { + "frequency": 3, + "period": 1, + "periodUnit": "d" + } + }, + "route": { + "coding": [ + { + "system": "http://snomed.info/sct", + "code": "26643006", + "display": "Oral" + } + ] + } + } + ], + "dispenseRequest": { + "extension": [ + { + "url": "https://fhir.nhs.uk/StructureDefinition/Extension-DM-PerformerSiteType", + "valueCoding": { + "system": "https://fhir.nhs.uk/CodeSystem/dispensing-site-preference", + "code": "P1" + } + } + ], + "validityPeriod": { + "start": "2022-10-21" + }, + "quantity": { + "value": 30, + "unit": "tablet", + "system": "http://snomed.info/sct", + "code": "428673006" + }, + "expectedSupplyDuration": { + "value": 10, + "unit": "day", + "system": "http://unitsofmeasure.org", + "code": "d" + }, + "performer": { + "identifier": { + "system": "https://fhir.nhs.uk/Id/ods-organization-code", + "value": "VNE51" + } + } + }, + "substitution": { + "allowedBoolean": false + } + } + }, + { + "fullUrl": "urn:uuid:78d3c2eb-009e-4ec8-a358-b042954aa9b2", + "resource": { + "resourceType": "Patient", + "identifier": [ + { + "system": "https://fhir.nhs.uk/Id/nhs-number", + "value": "9449304130" + } + ], + "name": [ + { + "use": "usual", + "family": "TWITCHETT", + "given": [ + "STACEY", + "MARISA" + ], + "prefix": [ + "MS" + ] + } + ], + "gender": "female", + "birthDate": "1948-04-30", + "address": [ + { + "use": "home", + "line": [ + "10 HEATHFIELD", + "COBHAM", + "SURREY" + ], + "postalCode": "KT11 2QY" + } + ], + "generalPractitioner": [ + { + "identifier": { + "system": "https://fhir.nhs.uk/Id/ods-organization-code", + "value": "A83008" + } + } + ] + } + }, + { + "fullUrl": "urn:uuid:56166769-c1c4-4d07-afa8-132b5dfca666", + "resource": { + "resourceType": "PractitionerRole", + "identifier": [ + { + "system": "https://fhir.nhs.uk/Id/sds-role-profile-id", + "value": "200102238987" + } + ], + "practitioner": { + "reference": "urn:uuid:a8c85454-f8cb-498d-9629-78e2cb5fa47a" + }, + "organization": { + "reference": "urn:uuid:3b4b03a5-52ba-4ba6-9b82-70350aa109d8" + }, + "code": [ + { + "coding": [ + { + "system": "https://fhir.nhs.uk/CodeSystem/NHSDigital-SDS-JobRoleCode", + "code": "R8000", + "display": "Clinical Practitioner Access Role" + }, + { + "system": "https://fhir.hl7.org.uk/CodeSystem/UKCore-SDSJobRoleName", + "code": "R8000", + "display": "Clinical Practitioner Access Role" + } + ] + } + ], + "telecom": [ + { + "system": "phone", + "use": "work", + "value": "01234567890" + } + ] + } + }, + { + "fullUrl": "urn:uuid:a8c85454-f8cb-498d-9629-78e2cb5fa47a", + "resource": { + "resourceType": "Practitioner", + "identifier": [ + { + "system": "https://fhir.nhs.uk/Id/sds-user-id", + "value": "555086689106" + }, + { + "system": "https://fhir.hl7.org.uk/Id/gmc-number", + "value": "6095103" + }, + { + "system": "https://fhir.hl7.org.uk/Id/din-number", + "value": "977677" + } + ], + "name": [ + { + "family": "BOIN", + "given": [ + "C" + ], + "prefix": [ + "DR" + ] + } + ] + } + }, + { + "fullUrl": "urn:uuid:3b4b03a5-52ba-4ba6-9b82-70350aa109d8", + "resource": { + "resourceType": "Organization", + "identifier": [ + { + "system": "https://fhir.nhs.uk/Id/ods-organization-code", + "value": "A83008" + } + ], + "type": [ + { + "coding": [ + { + "system": "https://fhir.nhs.uk/CodeSystem/organisation-role", + "code": "76", + "display": "GP PRACTICE" + } + ] + } + ], + "name": "HALLGARTH SURGERY", + "telecom": [ + { + "system": "phone", + "use": "work", + "value": "0115 9737320" + } + ], + "address": [ + { + "use": "work", + "type": "both", + "line": [ + "HALLGARTH SURGERY", + "CHEAPSIDE" + ], + "city": "SHILDON", + "district": "COUNTY DURHAM", + "postalCode": "DL4 2HP" + } + ], + "partOf": { + "identifier": { + "system": "https://fhir.nhs.uk/Id/ods-organization-code", + "value": "84H" + }, + "display": "NHS COUNTY DURHAM CCG" + } + } + } + ] +} diff --git a/src/test/resources/examples/full_examples/primary-care/acute/nominated-pharmacy/medical-prescriber/cancellations/2-Process-Request-Send-200_OK.json b/src/test/resources/examples/full_examples/primary-care/acute/nominated-pharmacy/medical-prescriber/cancellations/2-Process-Request-Send-200_OK.json new file mode 100644 index 00000000..b1117a48 --- /dev/null +++ b/src/test/resources/examples/full_examples/primary-care/acute/nominated-pharmacy/medical-prescriber/cancellations/2-Process-Request-Send-200_OK.json @@ -0,0 +1,379 @@ +{ + "resourceType": "Bundle", + "id": "0cb82cfa-76c8-4fb2-a08e-bf0e326e5487", + "identifier": { + "system": "https://tools.ietf.org/html/rfc4122", + "value": "78f956d8-28dc-434f-8eaa-fc5de4faaa6b" + }, + "type": "message", + "entry": [ + { + "fullUrl": "urn:uuid:17773b27-427e-4940-8c16-64cdac715001", + "resource": { + "resourceType": "MessageHeader", + "eventCoding": { + "system": "https://fhir.nhs.uk/CodeSystem/message-event", + "code": "prescription-order", + "display": "Prescription Order" + }, + "sender": { + "identifier": { + "system": "https://fhir.nhs.uk/Id/ods-organization-code", + "value": "A83008" + }, + "display": "HALLGARTH SURGERY" + }, + "source": { + "endpoint": "https://directory.spineservices.nhs.uk/STU3/Organization/A83008" + }, + "destination": [ + { + "endpoint": "https://sandbox.api.service.nhs.uk/electronic-prescriptions/$post-message", + "receiver": { + "identifier": { + "system": "https://fhir.nhs.uk/Id/ods-organization-code", + "value": "FCG71" + } + } + } + ], + "focus": [ + { + "reference": "urn:uuid:56166769-c1c4-4d07-afa8-132b5dfca666" + }, + { + "reference": "urn:uuid:a54219b8-f741-4c47-b662-e4f8dfa49ab6" + } + ] + } + }, + { + "fullUrl": "urn:uuid:a54219b8-f741-4c47-b662-e4f8dfa49ab6", + "resource": { + "resourceType": "MedicationRequest", + "extension": [ + { + "url": "https://fhir.nhs.uk/StructureDefinition/Extension-DM-PrescriptionType", + "valueCoding": { + "system": "https://fhir.nhs.uk/CodeSystem/prescription-type", + "code": "0101", + "display": "Primary Care Prescriber - Medical Prescriber" + } + } + ], + "identifier": [ + { + "system": "https://fhir.nhs.uk/Id/prescription-order-item-number", + "value": "299c610b-f4f1-4eac-a7d7-4fb6b0556e11" + } + ], + "status": "active", + "intent": "order", + "category": [ + { + "coding": [ + { + "system": "http://terminology.hl7.org/CodeSystem/medicationrequest-category", + "code": "community", + "display": "Community" + } + ] + } + ], + "medicationCodeableConcept": { + "coding": [ + { + "system": "http://snomed.info/sct", + "code": "322237000", + "display": "Paracetamol 500mg soluble tablets" + } + ] + }, + "subject": { + "reference": "urn:uuid:78d3c2eb-009e-4ec8-a358-b042954aa9b2" + }, + "requester": { + "reference": "urn:uuid:56166769-c1c4-4d07-afa8-132b5dfca666" + }, + "groupIdentifier": { + "extension": [ + { + "url": "https://fhir.nhs.uk/StructureDefinition/Extension-DM-PrescriptionId", + "valueIdentifier": { + "system": "https://fhir.nhs.uk/Id/prescription", + "value": "3812ba48-a00b-4980-8123-0cfc67ff784e" + } + } + ], + "system": "https://fhir.nhs.uk/Id/prescription-order-number", + "value": "5018BB-A83008-4E5885" + }, + "courseOfTherapyType": { + "coding": [ + { + "system": "http://terminology.hl7.org/CodeSystem/medicationrequest-course-of-therapy", + "code": "acute", + "display": "Short course (acute) therapy" + } + ] + }, + "dosageInstruction": [ + { + "text": "4 times a day - Oral", + "timing": { + "repeat": { + "frequency": 4, + "period": 1, + "periodUnit": "d" + } + }, + "route": { + "coding": [ + { + "system": "http://snomed.info/sct", + "code": "26643006", + "display": "Oral" + } + ] + } + } + ], + "dispenseRequest": { + "extension": [ + { + "url": "https://fhir.nhs.uk/StructureDefinition/Extension-DM-PerformerSiteType", + "valueCoding": { + "system": "https://fhir.nhs.uk/CodeSystem/dispensing-site-preference", + "code": "P1" + } + } + ], + "validityPeriod": { + "start": "2021-04-20", + "end": "2021-05-18" + }, + "expectedSupplyDuration": { + "value": 30, + "unit": "day", + "system": "http://unitsofmeasure.org", + "code": "d" + }, + "performer": { + "identifier": { + "system": "https://fhir.nhs.uk/Id/ods-organization-code", + "value": "FCG71" + } + }, + "quantity": { + "value": 100, + "unit": "tablet", + "system": "http://snomed.info/sct", + "code": "428673006" + } + }, + "substitution": { + "allowedBoolean": false + } + } + }, + { + "fullUrl": "urn:uuid:78d3c2eb-009e-4ec8-a358-b042954aa9b2", + "resource": { + "resourceType": "Patient", + "identifier": [ + { + "system": "https://fhir.nhs.uk/Id/nhs-number", + "value": "9990548609" + } + ], + "name": [ + { + "use": "usual", + "family": "XXTESTPATIENT-TGNP", + "given": [ + "DONOTUSE" + ], + "prefix": [ + "MR" + ] + } + ], + "gender": "male", + "birthDate": "1932-01-06", + "address": [ + { + "use": "home", + "line": [ + "1 Trevelyan Square", + "Boar Lane", + "Leeds", + "West Yorkshire" + ], + "postalCode": "LS1 6AE" + } + ], + "generalPractitioner": [ + { + "identifier": { + "system": "https://fhir.nhs.uk/Id/ods-organization-code", + "value": "A83008" + } + } + ] + } + }, + { + "fullUrl": "urn:uuid:56166769-c1c4-4d07-afa8-132b5dfca666", + "resource": { + "resourceType": "PractitionerRole", + "identifier": [ + { + "system": "https://fhir.nhs.uk/Id/sds-role-profile-id", + "value": "200102238987" + } + ], + "practitioner": { + "reference": "urn:uuid:a8c85454-f8cb-498d-9629-78e2cb5fa47a" + }, + "organization": { + "reference": "urn:uuid:3b4b03a5-52ba-4ba6-9b82-70350aa109d8" + }, + "code": [ + { + "coding": [ + { + "system": "https://fhir.nhs.uk/CodeSystem/NHSDigital-SDS-JobRoleCode", + "code": "S8000:G8000:R8000", + "display": "Clinical Practitioner Access Role" + } + ] + } + ], + "telecom": [ + { + "system": "phone", + "value": "01234567890", + "use": "work" + } + ] + } + }, + { + "fullUrl": "urn:uuid:a8c85454-f8cb-498d-9629-78e2cb5fa47a", + "resource": { + "resourceType": "Practitioner", + "identifier": [ + { + "system": "https://fhir.nhs.uk/Id/sds-user-id", + "value": "555086689106" + }, + { + "system": "https://fhir.hl7.org.uk/Id/gmc-number", + "value": "6095103" + }, + { + "system": "https://fhir.hl7.org.uk/Id/din-number", + "value": "977677" + } + ], + "name": [ + { + "family": "BOIN", + "given": [ + "C" + ], + "prefix": [ + "DR" + ] + } + ] + } + }, + { + "fullUrl": "urn:uuid:3b4b03a5-52ba-4ba6-9b82-70350aa109d8", + "resource": { + "resourceType": "Organization", + "identifier": [ + { + "system": "https://fhir.nhs.uk/Id/ods-organization-code", + "value": "A83008" + } + ], + "type": [ + { + "coding": [ + { + "system": "https://fhir.nhs.uk/CodeSystem/organisation-role", + "code": "76", + "display": "GP PRACTICE" + } + ] + } + ], + "name": "HALLGARTH SURGERY", + "address": [ + { + "use": "work", + "type": "both", + "line": [ + "HALLGARTH SURGERY", + "CHEAPSIDE" + ], + "city": "SHILDON", + "district": "COUNTY DURHAM", + "postalCode": "DL4 2HP" + } + ], + "telecom": [ + { + "system": "phone", + "value": "0115 9737320", + "use": "work" + } + ], + "partOf": { + "identifier": { + "system": "https://fhir.nhs.uk/Id/ods-organization-code", + "value": "84H" + }, + "display": "NHS COUNTY DURHAM CCG" + } + } + }, + { + "fullUrl": "urn:uuid:28828c55-8fa7-42d7-916f-fcf076e0c10e", + "resource": { + "resourceType": "Provenance", + "id": "28828c55-8fa7-42d7-916f-fcf076e0c10e", + "target": [ + { + "reference": "urn:uuid:a54219b8-f741-4c47-b662-e4f8dfa49ab6" + } + ], + "recorded": "2021-02-11T16:35:38+00:00", + "agent": [ + { + "who": { + "reference": "urn:uuid:56166769-c1c4-4d07-afa8-132b5dfca666" + } + } + ], + "signature": [ + { + "type": [ + { + "system": "urn:iso-astm:E1762-95:2013", + "code": "1.2.840.10065.1.12.1.1" + } + ], + "when": "2021-04-20T05:45:32+00:00", + "who": { + "reference": "urn:uuid:56166769-c1c4-4d07-afa8-132b5dfca666" + }, + "data": "DQo8U2lnbmF0dXJlIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwLzA5L3htbGRzaWcjIj4NCiAgICA8U2lnbmVkSW5mbz48Q2Fub25pY2FsaXphdGlvbk1ldGhvZCBBbGdvcml0aG09Imh0dHA6Ly93d3cudzMub3JnLzIwMDEvMTAveG1sLWV4Yy1jMTRuIyI+PC9DYW5vbmljYWxpemF0aW9uTWV0aG9kPjxTaWduYXR1cmVNZXRob2QgQWxnb3JpdGhtPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwLzA5L3htbGRzaWcjcnNhLXNoYTEiPjwvU2lnbmF0dXJlTWV0aG9kPjxSZWZlcmVuY2U+PFRyYW5zZm9ybXM+PFRyYW5zZm9ybSBBbGdvcml0aG09Imh0dHA6Ly93d3cudzMub3JnLzIwMDEvMTAveG1sLWV4Yy1jMTRuIyI+PC9UcmFuc2Zvcm0+PC9UcmFuc2Zvcm1zPjxEaWdlc3RNZXRob2QgQWxnb3JpdGhtPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwLzA5L3htbGRzaWcjc2hhMSI+PC9EaWdlc3RNZXRob2Q+PERpZ2VzdFZhbHVlPjVWem5UWG9FUmpDamRGQ3NTaUljcHIvNDJDUT08L0RpZ2VzdFZhbHVlPjwvUmVmZXJlbmNlPjwvU2lnbmVkSW5mbz4NCiAgICA8U2lnbmF0dXJlVmFsdWU+ZjFsSHpFSzRMazRNQUR2UVhOSEdhaUVlYkdtM3BXeFl5MzR3dE5kYzZ2Lzd2QnNTdXMvcUhqU3Q3YkFHMVpCa2JidTVsZjRFN2tvbHBCVDBUMFVKK3RUQ1hxaWxleVRRanNEMG9iQ1QwZ0xPYk9uL2VXZk11REQ5MUI3WExvdmVONzlzK3VtVXI5Y0JCTVdlNWIxQnZpWjUyaGVhNlJnU3hXR3NGMVJ0NXFFPTwvU2lnbmF0dXJlVmFsdWU+DQogICAgPEtleUluZm8+DQogICAgICAgIDxYNTA5RGF0YT4NCiAgICAgICAgICAgIDxYNTA5Q2VydGlmaWNhdGU+TUlJRHVEQ0NBcUNnQXdJQkFnSUVYY210SHpBTkJna3Foa2lHOXcwQkFRc0ZBREEyTVF3d0NnWURWUVFLRXdOdWFITXhDekFKQmdOVkJBc1RBa05CTVJrd0Z3WURWUVFERXhCT1NGTWdTVTVVSUV4bGRtVnNJREZFTUI0WERUSXdNVEF5TWpFd01qRTFOVm9YRFRJeU1UQXlNakV3TlRFMU5Wb3dRekVNTUFvR0ExVUVDaE1EYm1oek1ROHdEUVlEVlFRTEV3WlFaVzl3YkdVeElqQWdCZ05WQkFNTUdUVTFOVEkxTXpVeU1URXdPRjlTUVU1RVQwMWZWVk5GVWxFd2daOHdEUVlKS29aSWh2Y05BUUVCQlFBRGdZMEFNSUdKQW9HQkFLdDRzek53N09BSDdBUVJyRGUveEJJbXNNbU1pUzlFc3JUM2EzcC9MaDNicmR6STlhYWpUVVoyYi9jdmJPYTdQZVlkN3UrSzRhMlpkMFhrKzBHRm1ZR3pTVlg2aVlqYmx3cjB2YWkzMXpWN0crbEd2SHhINnBTb0xDd0lDYVpBRndhYmVENU96OTQreUEzYVdOV3RHVjBEZmg5cXdIM1pGQ0lNUnN2ZXJOMXBBZ01CQUFHamdnRkRNSUlCUHpBT0JnTlZIUThCQWY4RUJBTUNCa0F3WlFZRFZSMGdBUUgvQkZzd1dUQlhCZ3NxaGpvQWlYdG1BQU1DQURCSU1FWUdDQ3NHQVFVRkJ3SUJGanBvZEhSd2N6b3ZMM0JyYVM1dWFITXVkV3N2WTJWeWRHbG1hV05oZEdWZmNHOXNhV05wWlhNdlkyOXVkR1Z1ZEY5amIyMXRhWFJ0Wlc1ME1ETUdBMVVkSHdRc01Db3dLS0Ftb0NTR0ltaDBkSEE2THk5amNtd3VibWh6TG5WckwybHVkQzh4WkM5amNteGpNeTVqY213d0t3WURWUjBRQkNRd0lvQVBNakF5TURFd01qSXhNREl4TlRWYWdROHlNREl5TURNeE56RXdOVEUxTlZvd0h3WURWUjBqQkJnd0ZvQVVvSllmZ1lUTlBkNkVVS0w2UUxJekh4WTVQRkl3SFFZRFZSME9CQllFRkx0eXZZU3lhcWc2MEFFVVpneGswd3JqUkpjK01Ba0dBMVVkRXdRQ01BQXdHUVlKS29aSWh2WjlCMEVBQkF3d0Noc0VWamd1TXdNQ0JMQXdEUVlKS29aSWh2Y05BUUVMQlFBRGdnRUJBQmN6eThCOGp1UHBJZmFUTkZjeHJDMjJhQ1gveFlabWhyTC9OdklCQWFYMUc1aGppd21rR0tFMmhSVElyNjdQeFp4bVhzSnhpZ1JCTUhQbEkrbFkvK29rekgwR2k3YjVicWx3N3B4R0lnSk8wMDB3OHBGc3ZvOXc0MklZaEhvZHN2bkRWU3hoTVQwSjQ2UWhrOXNvRTBMam9FVUxLUVBQbFlHa2UvR2wzbTE3SXRGWXdPYlFIMGZNRXdtaXFCeWVJZno3Z1NjY096TDVjSXA2UGNaVE9qbzJJcVFwZ0VtaGpPY1JJbkVxQU5pdFNkam9pSkFKenBhYVpqWVRSZEhVWDdpN2FqRWlING05MW5GVys0QXFrTnR0bGI0V2NHS3NTbVdnZktLaGVGNElvWktNRTgweGVyU2dNeTh2dGpMT0JKQ0dYejB3TEdtUXVSbXhNVHE4OHE0PTwvWDUwOUNlcnRpZmljYXRlPg0KICAgICAgICA8L1g1MDlEYXRhPg0KICAgIDwvS2V5SW5mbz4NCjwvU2lnbmF0dXJlPg0K" + } + ] + } + } + ] +} diff --git a/src/test/resources/examples/full_examples/primary-care/acute/nominated-pharmacy/medical-prescriber/cancellations/2-Process-Response-Cancel-200_OK.json b/src/test/resources/examples/full_examples/primary-care/acute/nominated-pharmacy/medical-prescriber/cancellations/2-Process-Response-Cancel-200_OK.json new file mode 100644 index 00000000..97899142 --- /dev/null +++ b/src/test/resources/examples/full_examples/primary-care/acute/nominated-pharmacy/medical-prescriber/cancellations/2-Process-Response-Cancel-200_OK.json @@ -0,0 +1,370 @@ +{ + "resourceType": "Bundle", + "id": "0cb82cfa-76c8-4fb2-a08e-bf0e326e5487", + "identifier": { + "system": "https://tools.ietf.org/html/rfc4122", + "value": "46183abc-9fad-4673-85db-ce2cb6614732" + }, + "timestamp": "2022-10-21T13:48:00+00:00", + "type": "message", + "entry": [ + { + "fullUrl": "urn:uuid:17773b27-427e-4940-8c16-64cdac715001", + "resource": { + "resourceType": "MessageHeader", + "extension": [ + { + "url": "https://fhir.nhs.uk/StructureDefinition/Extension-MessageHeader-messageId", + "valueIdentifier": { + "system": "https://tools.ietf.org/html/rfc4122", + "value": "0cb82cfa-76c8-4fb2-a08e-bf0e326e5487" + } + } + ], + "eventCoding": { + "system": "https://fhir.nhs.uk/CodeSystem/message-event", + "code": "prescription-order-response", + "display": "Prescription Order Response" + }, + "destination": [ + { + "endpoint": "https://directory.spineservices.nhs.uk/STU3/Organization/A83008", + "receiver": { + "identifier": { + "system": "https://fhir.nhs.uk/Id/ods-organization-code", + "value": "A83008" + } + } + } + ], + "sender": { + "identifier": { + "system": "https://fhir.nhs.uk/Id/ods-organization-code", + "value": "X2601" + }, + "display": "NHS Digital Spine" + }, + "source": { + "name": "NHS Spine", + "endpoint": "https://internal-dev.api.service.nhs.uk/electronic-prescriptions/$process-message" + }, + "response": { + "identifier": "d03e713b-e62c-4a2f-964d-d83b68d825a9", + "code": "ok" + }, + "focus": [ + { + "reference": "urn:uuid:5cb17f5a-11ac-4e18-825f-6470467238b3" + } + ] + } + }, + { + "fullUrl": "urn:uuid:5cb17f5a-11ac-4e18-825f-6470467238b3", + "resource": { + "resourceType": "MedicationRequest", + "extension": [ + { + "url": "https://fhir.nhs.uk/StructureDefinition/Extension-DM-PrescriptionType", + "valueCoding": { + "system": "https://fhir.nhs.uk/CodeSystem/prescription-type", + "code": "0101", + "display": "Primary Care Prescriber - Medical Prescriber" + } + }, + { + "url": "https://fhir.nhs.uk/StructureDefinition/Extension-DM-PrescriptionStatusHistory", + "extension": [ + { + "url": "status", + "valueCoding": { + "system": "https://fhir.nhs.uk/CodeSystem/medicationrequest-status-history", + "code": "R-0001", + "display": "Prescription/item was cancelled" + } + }, + { + "url": "statusDate", + "valueDateTime": "2022-10-21T13:48:00+00:00" + } + ] + } + ], + "identifier": [ + { + "system": "https://fhir.nhs.uk/Id/prescription-order-item-number", + "value": "5cb17f5a-11ac-4e18-825f-6470467238b3" + } + ], + "status": "cancelled", + "statusReason": { + "coding": [ + { + "system": "https://fhir.nhs.uk/CodeSystem/medicationrequest-status-reason", + "code": "0002", + "display": "Clinical contra-indication" + } + ] + }, + "intent": "order", + "category": [ + { + "coding": [ + { + "system": "http://terminology.hl7.org/CodeSystem/medicationrequest-category", + "code": "community", + "display": "Community" + } + ] + } + ], + "medicationCodeableConcept": { + "coding": [ + { + "system": "http://snomed.info/sct", + "code": "324252006", + "display": "Azithromycin 250mg capsules" + } + ] + }, + "subject": { + "reference": "urn:uuid:78d3c2eb-009e-4ec8-a358-b042954aa9b2" + }, + "requester": { + "reference": "urn:uuid:56166769-c1c4-4d07-afa8-132b5dfca666" + }, + "groupIdentifier": { + "system": "https://fhir.nhs.uk/Id/prescription-order-number", + "value": "24F5DA-A83008-7EFE6Z", + "extension": [ + { + "url": "https://fhir.nhs.uk/StructureDefinition/Extension-DM-PrescriptionId", + "valueIdentifier": { + "system": "https://fhir.nhs.uk/Id/prescription", + "value": "20ba5fb5-cb58-462c-923e-22d180b09356" + } + } + ] + }, + "courseOfTherapyType": { + "coding": [ + { + "system": "http://terminology.hl7.org/CodeSystem/medicationrequest-course-of-therapy", + "code": "acute", + "display": "Short course (acute) therapy" + } + ] + }, + "dosageInstruction": [ + { + "text": "3 times a day for 10 days", + "timing": { + "repeat": { + "frequency": 3, + "period": 1, + "periodUnit": "d" + } + }, + "route": { + "coding": [ + { + "system": "http://snomed.info/sct", + "code": "26643006", + "display": "Oral" + } + ] + } + } + ], + "dispenseRequest": { + "extension": [ + { + "url": "https://fhir.nhs.uk/StructureDefinition/Extension-DM-PerformerSiteType", + "valueCoding": { + "system": "https://fhir.nhs.uk/CodeSystem/dispensing-site-preference", + "code": "P1" + } + } + ], + "validityPeriod": { + "start": "2022-10-21" + }, + "quantity": { + "value": 30, + "unit": "tablet", + "system": "http://snomed.info/sct", + "code": "428673006" + }, + "expectedSupplyDuration": { + "value": 10, + "unit": "day", + "system": "http://unitsofmeasure.org", + "code": "d" + }, + "performer": { + "identifier": { + "system": "https://fhir.nhs.uk/Id/ods-organization-code", + "value": "VNE51" + } + } + }, + "substitution": { + "allowedBoolean": false + } + } + }, + { + "fullUrl": "urn:uuid:78d3c2eb-009e-4ec8-a358-b042954aa9b2", + "resource": { + "resourceType": "Patient", + "identifier": [ + { + "system": "https://fhir.nhs.uk/Id/nhs-number", + "value": "9449304130" + } + ], + "name": [ + { + "use": "usual", + "family": "TWITCHETT", + "given": ["STACEY", "MARISA"], + "prefix": ["MS"] + } + ], + "gender": "female", + "birthDate": "1948-04-30", + "address": [ + { + "use": "home", + "line": ["10 HEATHFIELD", "COBHAM", "SURREY"], + "postalCode": "KT11 2QY" + } + ], + "generalPractitioner": [ + { + "identifier": { + "system": "https://fhir.nhs.uk/Id/ods-organization-code", + "value": "A83008" + } + } + ] + } + }, + { + "fullUrl": "urn:uuid:56166769-c1c4-4d07-afa8-132b5dfca666", + "resource": { + "resourceType": "PractitionerRole", + "identifier": [ + { + "system": "https://fhir.nhs.uk/Id/sds-role-profile-id", + "value": "200102238987" + } + ], + "practitioner": { + "reference": "urn:uuid:a8c85454-f8cb-498d-9629-78e2cb5fa47a" + }, + "organization": { + "reference": "urn:uuid:3b4b03a5-52ba-4ba6-9b82-70350aa109d8" + }, + "code": [ + { + "coding": [ + { + "system": "https://fhir.nhs.uk/CodeSystem/NHSDigital-SDS-JobRoleCode", + "code": "R8000", + "display": "Clinical Practitioner Access Role" + }, + { + "system": "https://fhir.hl7.org.uk/CodeSystem/UKCore-SDSJobRoleName", + "code": "R8000", + "display": "Clinical Practitioner Access Role" + } + ] + } + ], + "telecom": [ + { + "system": "phone", + "use": "work", + "value": "01234567890" + } + ] + } + }, + { + "fullUrl": "urn:uuid:a8c85454-f8cb-498d-9629-78e2cb5fa47a", + "resource": { + "resourceType": "Practitioner", + "identifier": [ + { + "system": "https://fhir.nhs.uk/Id/sds-user-id", + "value": "555086689106" + }, + { + "system": "https://fhir.hl7.org.uk/Id/gmc-number", + "value": "6095103" + }, + { + "system": "https://fhir.hl7.org.uk/Id/din-number", + "value": "977677" + } + ], + "name": [ + { + "family": "BOIN", + "given": ["C"], + "prefix": ["DR"] + } + ] + } + }, + { + "fullUrl": "urn:uuid:3b4b03a5-52ba-4ba6-9b82-70350aa109d8", + "resource": { + "resourceType": "Organization", + "identifier": [ + { + "system": "https://fhir.nhs.uk/Id/ods-organization-code", + "value": "A83008" + } + ], + "type": [ + { + "coding": [ + { + "system": "https://fhir.nhs.uk/CodeSystem/organisation-role", + "code": "76", + "display": "GP PRACTICE" + } + ] + } + ], + "name": "HALLGARTH SURGERY", + "telecom": [ + { + "system": "phone", + "use": "work", + "value": "0115 9737320" + } + ], + "address": [ + { + "use": "work", + "type": "both", + "line": ["HALLGARTH SURGERY", "CHEAPSIDE"], + "city": "SHILDON", + "district": "COUNTY DURHAM", + "postalCode": "DL4 2HP" + } + ], + "partOf": { + "identifier": { + "system": "https://fhir.nhs.uk/Id/ods-organization-code", + "value": "84H" + }, + "display": "NHS COUNTY DURHAM CCG" + } + } + } + ] +} diff --git a/src/test/resources/examples/full_examples/primary-care/acute/nominated-pharmacy/medical-prescriber/cancellations/3-Process-Request-Cancel-200_OK.json b/src/test/resources/examples/full_examples/primary-care/acute/nominated-pharmacy/medical-prescriber/cancellations/3-Process-Request-Cancel-200_OK.json new file mode 100644 index 00000000..52febc7b --- /dev/null +++ b/src/test/resources/examples/full_examples/primary-care/acute/nominated-pharmacy/medical-prescriber/cancellations/3-Process-Request-Cancel-200_OK.json @@ -0,0 +1,388 @@ +{ + "resourceType": "Bundle", + "id": "0cb82cfa-76c8-4fb2-a08e-bf0e326e5487", + "identifier": { + "system": "https://tools.ietf.org/html/rfc4122", + "value": "fcf0d0d0-d976-43e6-9c10-6dbe67816428" + }, + "type": "message", + "entry": [ + { + "fullUrl": "urn:uuid:17773b27-427e-4940-8c16-64cdac715001", + "resource": { + "resourceType": "MessageHeader", + "eventCoding": { + "system": "https://fhir.nhs.uk/CodeSystem/message-event", + "code": "prescription-order-update", + "display": "Prescription Order Update" + }, + "sender": { + "identifier": { + "system": "https://fhir.nhs.uk/Id/ods-organization-code", + "value": "A83008" + }, + "display": "HALLGARTH SURGERY" + }, + "source": { + "endpoint": "https://directory.spineservices.nhs.uk/STU3/Organization/A83008" + }, + "destination": [ + { + "endpoint": "https://sandbox.api.service.nhs.uk/electronic-prescriptions/$post-message", + "receiver": { + "identifier": { + "system": "https://fhir.nhs.uk/Id/ods-organization-code", + "value": "FCG71" + } + } + } + ], + "focus": [ + { + "reference": "urn:uuid:56166769-c1c4-4d07-afa8-132b5dfca666" + }, + { + "reference": "urn:uuid:a54219b8-f741-4c47-b662-e4f8dfa49ab6" + } + ] + } + }, + { + "fullUrl": "urn:uuid:a54219b8-f741-4c47-b662-e4f8dfa49ab6", + "resource": { + "resourceType": "MedicationRequest", + "extension": [ + { + "url": "https://fhir.nhs.uk/StructureDefinition/Extension-DM-PrescriptionType", + "valueCoding": { + "system": "https://fhir.nhs.uk/CodeSystem/prescription-type", + "code": "0101", + "display": "Primary Care Prescriber - Medical Prescriber" + } + } + ], + "identifier": [ + { + "system": "https://fhir.nhs.uk/Id/prescription-order-item-number", + "value": "299c610b-f4f1-4eac-a7d7-4fb6b0556e11" + } + ], + "status": "cancelled", + "statusReason": { + "coding": [ + { + "system": "https://fhir.nhs.uk/CodeSystem/medicationrequest-status-reason", + "code": "0003", + "display": "Change to medication treatment regime" + } + ] + }, + "intent": "order", + "category": [ + { + "coding": [ + { + "system": "http://terminology.hl7.org/CodeSystem/medicationrequest-category", + "code": "community", + "display": "Community" + } + ] + } + ], + "medicationCodeableConcept": { + "coding": [ + { + "system": "http://snomed.info/sct", + "code": "322237000", + "display": "Paracetamol 500mg soluble tablets" + } + ] + }, + "subject": { + "reference": "urn:uuid:78d3c2eb-009e-4ec8-a358-b042954aa9b2" + }, + "requester": { + "reference": "urn:uuid:56166769-c1c4-4d07-afa8-132b5dfca666" + }, + "groupIdentifier": { + "extension": [ + { + "url": "https://fhir.nhs.uk/StructureDefinition/Extension-DM-PrescriptionId", + "valueIdentifier": { + "system": "https://fhir.nhs.uk/Id/prescription", + "value": "a5d38e66-570f-4e65-855e-0514ed4f1049" + } + } + ], + "system": "https://fhir.nhs.uk/Id/prescription-order-number", + "value": "7388B7-A83008-40BB9A" + }, + "courseOfTherapyType": { + "coding": [ + { + "system": "http://terminology.hl7.org/CodeSystem/medicationrequest-course-of-therapy", + "code": "acute", + "display": "Short course (acute) therapy" + } + ] + }, + "dosageInstruction": [ + { + "text": "4 times a day - Oral", + "timing": { + "repeat": { + "frequency": 4, + "period": 1, + "periodUnit": "d" + } + }, + "route": { + "coding": [ + { + "system": "http://snomed.info/sct", + "code": "26643006", + "display": "Oral" + } + ] + } + } + ], + "dispenseRequest": { + "extension": [ + { + "url": "https://fhir.nhs.uk/StructureDefinition/Extension-DM-PerformerSiteType", + "valueCoding": { + "system": "https://fhir.nhs.uk/CodeSystem/dispensing-site-preference", + "code": "P1" + } + } + ], + "validityPeriod": { + "start": "2021-04-20", + "end": "2021-05-18" + }, + "expectedSupplyDuration": { + "value": 30, + "unit": "day", + "system": "http://unitsofmeasure.org", + "code": "d" + }, + "performer": { + "identifier": { + "system": "https://fhir.nhs.uk/Id/ods-organization-code", + "value": "FCG71" + } + }, + "quantity": { + "value": 100, + "unit": "tablet", + "system": "http://snomed.info/sct", + "code": "428673006" + } + }, + "substitution": { + "allowedBoolean": false + } + } + }, + { + "fullUrl": "urn:uuid:78d3c2eb-009e-4ec8-a358-b042954aa9b2", + "resource": { + "resourceType": "Patient", + "identifier": [ + { + "system": "https://fhir.nhs.uk/Id/nhs-number", + "value": "9990548609" + } + ], + "name": [ + { + "use": "usual", + "family": "XXTESTPATIENT-TGNP", + "given": [ + "DONOTUSE" + ], + "prefix": [ + "MR" + ] + } + ], + "gender": "male", + "birthDate": "1932-01-06", + "address": [ + { + "use": "home", + "line": [ + "1 Trevelyan Square", + "Boar Lane", + "Leeds", + "West Yorkshire" + ], + "postalCode": "LS1 6AE" + } + ], + "generalPractitioner": [ + { + "identifier": { + "system": "https://fhir.nhs.uk/Id/ods-organization-code", + "value": "A83008" + } + } + ] + } + }, + { + "fullUrl": "urn:uuid:56166769-c1c4-4d07-afa8-132b5dfca666", + "resource": { + "resourceType": "PractitionerRole", + "identifier": [ + { + "system": "https://fhir.nhs.uk/Id/sds-role-profile-id", + "value": "200102238987" + } + ], + "practitioner": { + "reference": "urn:uuid:a8c85454-f8cb-498d-9629-78e2cb5fa47a" + }, + "organization": { + "reference": "urn:uuid:3b4b03a5-52ba-4ba6-9b82-70350aa109d8" + }, + "code": [ + { + "coding": [ + { + "system": "https://fhir.nhs.uk/CodeSystem/NHSDigital-SDS-JobRoleCode", + "code": "S8000:G8000:R8000", + "display": "Clinical Practitioner Access Role" + } + ] + } + ], + "telecom": [ + { + "system": "phone", + "value": "01234567890", + "use": "work" + } + ] + } + }, + { + "fullUrl": "urn:uuid:a8c85454-f8cb-498d-9629-78e2cb5fa47a", + "resource": { + "resourceType": "Practitioner", + "identifier": [ + { + "system": "https://fhir.nhs.uk/Id/sds-user-id", + "value": "555086689106" + }, + { + "system": "https://fhir.hl7.org.uk/Id/gmc-number", + "value": "6095103" + }, + { + "system": "https://fhir.hl7.org.uk/Id/din-number", + "value": "977677" + } + ], + "name": [ + { + "family": "BOIN", + "given": [ + "C" + ], + "prefix": [ + "DR" + ] + } + ] + } + }, + { + "fullUrl": "urn:uuid:3b4b03a5-52ba-4ba6-9b82-70350aa109d8", + "resource": { + "resourceType": "Organization", + "identifier": [ + { + "system": "https://fhir.nhs.uk/Id/ods-organization-code", + "value": "A83008" + } + ], + "type": [ + { + "coding": [ + { + "system": "https://fhir.nhs.uk/CodeSystem/organisation-role", + "code": "76", + "display": "GP PRACTICE" + } + ] + } + ], + "name": "HALLGARTH SURGERY", + "address": [ + { + "use": "work", + "type": "both", + "line": [ + "HALLGARTH SURGERY", + "CHEAPSIDE" + ], + "city": "SHILDON", + "district": "COUNTY DURHAM", + "postalCode": "DL4 2HP" + } + ], + "telecom": [ + { + "system": "phone", + "value": "0115 9737320", + "use": "work" + } + ], + "partOf": { + "identifier": { + "system": "https://fhir.nhs.uk/Id/ods-organization-code", + "value": "84H" + }, + "display": "NHS COUNTY DURHAM CCG" + } + } + }, + { + "fullUrl": "urn:uuid:28828c55-8fa7-42d7-916f-fcf076e0c10e", + "resource": { + "resourceType": "Provenance", + "id": "28828c55-8fa7-42d7-916f-fcf076e0c10e", + "target": [ + { + "reference": "urn:uuid:a54219b8-f741-4c47-b662-e4f8dfa49ab6" + } + ], + "recorded": "2021-02-11T16:35:38+00:00", + "agent": [ + { + "who": { + "reference": "urn:uuid:56166769-c1c4-4d07-afa8-132b5dfca666" + } + } + ], + "signature": [ + { + "type": [ + { + "system": "urn:iso-astm:E1762-95:2013", + "code": "1.2.840.10065.1.12.1.1" + } + ], + "when": "2021-04-20T05:45:33+00:00", + "who": { + "reference": "urn:uuid:56166769-c1c4-4d07-afa8-132b5dfca666" + }, + "data": "DQo8U2lnbmF0dXJlIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwLzA5L3htbGRzaWcjIj4NCiAgICA8U2lnbmVkSW5mbz48Q2Fub25pY2FsaXphdGlvbk1ldGhvZCBBbGdvcml0aG09Imh0dHA6Ly93d3cudzMub3JnLzIwMDEvMTAveG1sLWV4Yy1jMTRuIyI+PC9DYW5vbmljYWxpemF0aW9uTWV0aG9kPjxTaWduYXR1cmVNZXRob2QgQWxnb3JpdGhtPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwLzA5L3htbGRzaWcjcnNhLXNoYTEiPjwvU2lnbmF0dXJlTWV0aG9kPjxSZWZlcmVuY2U+PFRyYW5zZm9ybXM+PFRyYW5zZm9ybSBBbGdvcml0aG09Imh0dHA6Ly93d3cudzMub3JnLzIwMDEvMTAveG1sLWV4Yy1jMTRuIyI+PC9UcmFuc2Zvcm0+PC9UcmFuc2Zvcm1zPjxEaWdlc3RNZXRob2QgQWxnb3JpdGhtPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwLzA5L3htbGRzaWcjc2hhMSI+PC9EaWdlc3RNZXRob2Q+PERpZ2VzdFZhbHVlPjVWem5UWG9FUmpDamRGQ3NTaUljcHIvNDJDUT08L0RpZ2VzdFZhbHVlPjwvUmVmZXJlbmNlPjwvU2lnbmVkSW5mbz4NCiAgICA8U2lnbmF0dXJlVmFsdWU+ZjFsSHpFSzRMazRNQUR2UVhOSEdhaUVlYkdtM3BXeFl5MzR3dE5kYzZ2Lzd2QnNTdXMvcUhqU3Q3YkFHMVpCa2JidTVsZjRFN2tvbHBCVDBUMFVKK3RUQ1hxaWxleVRRanNEMG9iQ1QwZ0xPYk9uL2VXZk11REQ5MUI3WExvdmVONzlzK3VtVXI5Y0JCTVdlNWIxQnZpWjUyaGVhNlJnU3hXR3NGMVJ0NXFFPTwvU2lnbmF0dXJlVmFsdWU+DQogICAgPEtleUluZm8+DQogICAgICAgIDxYNTA5RGF0YT4NCiAgICAgICAgICAgIDxYNTA5Q2VydGlmaWNhdGU+TUlJRHVEQ0NBcUNnQXdJQkFnSUVYY210SHpBTkJna3Foa2lHOXcwQkFRc0ZBREEyTVF3d0NnWURWUVFLRXdOdWFITXhDekFKQmdOVkJBc1RBa05CTVJrd0Z3WURWUVFERXhCT1NGTWdTVTVVSUV4bGRtVnNJREZFTUI0WERUSXdNVEF5TWpFd01qRTFOVm9YRFRJeU1UQXlNakV3TlRFMU5Wb3dRekVNTUFvR0ExVUVDaE1EYm1oek1ROHdEUVlEVlFRTEV3WlFaVzl3YkdVeElqQWdCZ05WQkFNTUdUVTFOVEkxTXpVeU1URXdPRjlTUVU1RVQwMWZWVk5GVWxFd2daOHdEUVlKS29aSWh2Y05BUUVCQlFBRGdZMEFNSUdKQW9HQkFLdDRzek53N09BSDdBUVJyRGUveEJJbXNNbU1pUzlFc3JUM2EzcC9MaDNicmR6STlhYWpUVVoyYi9jdmJPYTdQZVlkN3UrSzRhMlpkMFhrKzBHRm1ZR3pTVlg2aVlqYmx3cjB2YWkzMXpWN0crbEd2SHhINnBTb0xDd0lDYVpBRndhYmVENU96OTQreUEzYVdOV3RHVjBEZmg5cXdIM1pGQ0lNUnN2ZXJOMXBBZ01CQUFHamdnRkRNSUlCUHpBT0JnTlZIUThCQWY4RUJBTUNCa0F3WlFZRFZSMGdBUUgvQkZzd1dUQlhCZ3NxaGpvQWlYdG1BQU1DQURCSU1FWUdDQ3NHQVFVRkJ3SUJGanBvZEhSd2N6b3ZMM0JyYVM1dWFITXVkV3N2WTJWeWRHbG1hV05oZEdWZmNHOXNhV05wWlhNdlkyOXVkR1Z1ZEY5amIyMXRhWFJ0Wlc1ME1ETUdBMVVkSHdRc01Db3dLS0Ftb0NTR0ltaDBkSEE2THk5amNtd3VibWh6TG5WckwybHVkQzh4WkM5amNteGpNeTVqY213d0t3WURWUjBRQkNRd0lvQVBNakF5TURFd01qSXhNREl4TlRWYWdROHlNREl5TURNeE56RXdOVEUxTlZvd0h3WURWUjBqQkJnd0ZvQVVvSllmZ1lUTlBkNkVVS0w2UUxJekh4WTVQRkl3SFFZRFZSME9CQllFRkx0eXZZU3lhcWc2MEFFVVpneGswd3JqUkpjK01Ba0dBMVVkRXdRQ01BQXdHUVlKS29aSWh2WjlCMEVBQkF3d0Noc0VWamd1TXdNQ0JMQXdEUVlKS29aSWh2Y05BUUVMQlFBRGdnRUJBQmN6eThCOGp1UHBJZmFUTkZjeHJDMjJhQ1gveFlabWhyTC9OdklCQWFYMUc1aGppd21rR0tFMmhSVElyNjdQeFp4bVhzSnhpZ1JCTUhQbEkrbFkvK29rekgwR2k3YjVicWx3N3B4R0lnSk8wMDB3OHBGc3ZvOXc0MklZaEhvZHN2bkRWU3hoTVQwSjQ2UWhrOXNvRTBMam9FVUxLUVBQbFlHa2UvR2wzbTE3SXRGWXdPYlFIMGZNRXdtaXFCeWVJZno3Z1NjY096TDVjSXA2UGNaVE9qbzJJcVFwZ0VtaGpPY1JJbkVxQU5pdFNkam9pSkFKenBhYVpqWVRSZEhVWDdpN2FqRWlING05MW5GVys0QXFrTnR0bGI0V2NHS3NTbVdnZktLaGVGNElvWktNRTgweGVyU2dNeTh2dGpMT0JKQ0dYejB3TEdtUXVSbXhNVHE4OHE0PTwvWDUwOUNlcnRpZmljYXRlPg0KICAgICAgICA8L1g1MDlEYXRhPg0KICAgIDwvS2V5SW5mbz4NCjwvU2lnbmF0dXJlPg0K" + } + ] + } + } + ] +} diff --git a/src/test/resources/examples/full_examples/primary-care/acute/nominated-pharmacy/medical-prescriber/cancellations/3-Process-Request-Send-200_OK.json b/src/test/resources/examples/full_examples/primary-care/acute/nominated-pharmacy/medical-prescriber/cancellations/3-Process-Request-Send-200_OK.json new file mode 100644 index 00000000..db8598fe --- /dev/null +++ b/src/test/resources/examples/full_examples/primary-care/acute/nominated-pharmacy/medical-prescriber/cancellations/3-Process-Request-Send-200_OK.json @@ -0,0 +1,379 @@ +{ + "resourceType": "Bundle", + "id": "0cb82cfa-76c8-4fb2-a08e-bf0e326e5487", + "identifier": { + "system": "https://tools.ietf.org/html/rfc4122", + "value": "be0d7914-2bf5-4abf-9bbc-dbd91062075a" + }, + "type": "message", + "entry": [ + { + "fullUrl": "urn:uuid:17773b27-427e-4940-8c16-64cdac715001", + "resource": { + "resourceType": "MessageHeader", + "eventCoding": { + "system": "https://fhir.nhs.uk/CodeSystem/message-event", + "code": "prescription-order", + "display": "Prescription Order" + }, + "sender": { + "identifier": { + "system": "https://fhir.nhs.uk/Id/ods-organization-code", + "value": "A83008" + }, + "display": "HALLGARTH SURGERY" + }, + "source": { + "endpoint": "https://directory.spineservices.nhs.uk/STU3/Organization/A83008" + }, + "destination": [ + { + "endpoint": "https://sandbox.api.service.nhs.uk/electronic-prescriptions/$post-message", + "receiver": { + "identifier": { + "system": "https://fhir.nhs.uk/Id/ods-organization-code", + "value": "FCG71" + } + } + } + ], + "focus": [ + { + "reference": "urn:uuid:56166769-c1c4-4d07-afa8-132b5dfca666" + }, + { + "reference": "urn:uuid:a54219b8-f741-4c47-b662-e4f8dfa49ab6" + } + ] + } + }, + { + "fullUrl": "urn:uuid:a54219b8-f741-4c47-b662-e4f8dfa49ab6", + "resource": { + "resourceType": "MedicationRequest", + "extension": [ + { + "url": "https://fhir.nhs.uk/StructureDefinition/Extension-DM-PrescriptionType", + "valueCoding": { + "system": "https://fhir.nhs.uk/CodeSystem/prescription-type", + "code": "0101", + "display": "Primary Care Prescriber - Medical Prescriber" + } + } + ], + "identifier": [ + { + "system": "https://fhir.nhs.uk/Id/prescription-order-item-number", + "value": "299c610b-f4f1-4eac-a7d7-4fb6b0556e11" + } + ], + "status": "active", + "intent": "order", + "category": [ + { + "coding": [ + { + "system": "http://terminology.hl7.org/CodeSystem/medicationrequest-category", + "code": "community", + "display": "Community" + } + ] + } + ], + "medicationCodeableConcept": { + "coding": [ + { + "system": "http://snomed.info/sct", + "code": "322237000", + "display": "Paracetamol 500mg soluble tablets" + } + ] + }, + "subject": { + "reference": "urn:uuid:78d3c2eb-009e-4ec8-a358-b042954aa9b2" + }, + "requester": { + "reference": "urn:uuid:56166769-c1c4-4d07-afa8-132b5dfca666" + }, + "groupIdentifier": { + "extension": [ + { + "url": "https://fhir.nhs.uk/StructureDefinition/Extension-DM-PrescriptionId", + "valueIdentifier": { + "system": "https://fhir.nhs.uk/Id/prescription", + "value": "a5d38e66-570f-4e65-855e-0514ed4f1049" + } + } + ], + "system": "https://fhir.nhs.uk/Id/prescription-order-number", + "value": "7388B7-A83008-40BB9A" + }, + "courseOfTherapyType": { + "coding": [ + { + "system": "http://terminology.hl7.org/CodeSystem/medicationrequest-course-of-therapy", + "code": "acute", + "display": "Short course (acute) therapy" + } + ] + }, + "dosageInstruction": [ + { + "text": "4 times a day - Oral", + "timing": { + "repeat": { + "frequency": 4, + "period": 1, + "periodUnit": "d" + } + }, + "route": { + "coding": [ + { + "system": "http://snomed.info/sct", + "code": "26643006", + "display": "Oral" + } + ] + } + } + ], + "dispenseRequest": { + "extension": [ + { + "url": "https://fhir.nhs.uk/StructureDefinition/Extension-DM-PerformerSiteType", + "valueCoding": { + "system": "https://fhir.nhs.uk/CodeSystem/dispensing-site-preference", + "code": "P1" + } + } + ], + "validityPeriod": { + "start": "2021-04-20", + "end": "2021-05-18" + }, + "expectedSupplyDuration": { + "value": 30, + "unit": "day", + "system": "http://unitsofmeasure.org", + "code": "d" + }, + "performer": { + "identifier": { + "system": "https://fhir.nhs.uk/Id/ods-organization-code", + "value": "FCG71" + } + }, + "quantity": { + "value": 100, + "unit": "tablet", + "system": "http://snomed.info/sct", + "code": "428673006" + } + }, + "substitution": { + "allowedBoolean": false + } + } + }, + { + "fullUrl": "urn:uuid:78d3c2eb-009e-4ec8-a358-b042954aa9b2", + "resource": { + "resourceType": "Patient", + "identifier": [ + { + "system": "https://fhir.nhs.uk/Id/nhs-number", + "value": "9990548609" + } + ], + "name": [ + { + "use": "usual", + "family": "XXTESTPATIENT-TGNP", + "given": [ + "DONOTUSE" + ], + "prefix": [ + "MR" + ] + } + ], + "gender": "male", + "birthDate": "1932-01-06", + "address": [ + { + "use": "home", + "line": [ + "1 Trevelyan Square", + "Boar Lane", + "Leeds", + "West Yorkshire" + ], + "postalCode": "LS1 6AE" + } + ], + "generalPractitioner": [ + { + "identifier": { + "system": "https://fhir.nhs.uk/Id/ods-organization-code", + "value": "A83008" + } + } + ] + } + }, + { + "fullUrl": "urn:uuid:56166769-c1c4-4d07-afa8-132b5dfca666", + "resource": { + "resourceType": "PractitionerRole", + "identifier": [ + { + "system": "https://fhir.nhs.uk/Id/sds-role-profile-id", + "value": "200102238987" + } + ], + "practitioner": { + "reference": "urn:uuid:a8c85454-f8cb-498d-9629-78e2cb5fa47a" + }, + "organization": { + "reference": "urn:uuid:3b4b03a5-52ba-4ba6-9b82-70350aa109d8" + }, + "code": [ + { + "coding": [ + { + "system": "https://fhir.nhs.uk/CodeSystem/NHSDigital-SDS-JobRoleCode", + "code": "S8000:G8000:R8000", + "display": "Clinical Practitioner Access Role" + } + ] + } + ], + "telecom": [ + { + "system": "phone", + "value": "01234567890", + "use": "work" + } + ] + } + }, + { + "fullUrl": "urn:uuid:a8c85454-f8cb-498d-9629-78e2cb5fa47a", + "resource": { + "resourceType": "Practitioner", + "identifier": [ + { + "system": "https://fhir.nhs.uk/Id/sds-user-id", + "value": "555086689106" + }, + { + "system": "https://fhir.hl7.org.uk/Id/gmc-number", + "value": "6095103" + }, + { + "system": "https://fhir.hl7.org.uk/Id/din-number", + "value": "977677" + } + ], + "name": [ + { + "family": "BOIN", + "given": [ + "C" + ], + "prefix": [ + "DR" + ] + } + ] + } + }, + { + "fullUrl": "urn:uuid:3b4b03a5-52ba-4ba6-9b82-70350aa109d8", + "resource": { + "resourceType": "Organization", + "identifier": [ + { + "system": "https://fhir.nhs.uk/Id/ods-organization-code", + "value": "A83008" + } + ], + "type": [ + { + "coding": [ + { + "system": "https://fhir.nhs.uk/CodeSystem/organisation-role", + "code": "76", + "display": "GP PRACTICE" + } + ] + } + ], + "name": "HALLGARTH SURGERY", + "address": [ + { + "use": "work", + "type": "both", + "line": [ + "HALLGARTH SURGERY", + "CHEAPSIDE" + ], + "city": "SHILDON", + "district": "COUNTY DURHAM", + "postalCode": "DL4 2HP" + } + ], + "telecom": [ + { + "system": "phone", + "value": "0115 9737320", + "use": "work" + } + ], + "partOf": { + "identifier": { + "system": "https://fhir.nhs.uk/Id/ods-organization-code", + "value": "84H" + }, + "display": "NHS COUNTY DURHAM CCG" + } + } + }, + { + "fullUrl": "urn:uuid:28828c55-8fa7-42d7-916f-fcf076e0c10e", + "resource": { + "resourceType": "Provenance", + "id": "28828c55-8fa7-42d7-916f-fcf076e0c10e", + "target": [ + { + "reference": "urn:uuid:a54219b8-f741-4c47-b662-e4f8dfa49ab6" + } + ], + "recorded": "2021-02-11T16:35:38+00:00", + "agent": [ + { + "who": { + "reference": "urn:uuid:56166769-c1c4-4d07-afa8-132b5dfca666" + } + } + ], + "signature": [ + { + "type": [ + { + "system": "urn:iso-astm:E1762-95:2013", + "code": "1.2.840.10065.1.12.1.1" + } + ], + "when": "2021-04-20T05:45:33+00:00", + "who": { + "reference": "urn:uuid:56166769-c1c4-4d07-afa8-132b5dfca666" + }, + "data": "DQo8U2lnbmF0dXJlIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwLzA5L3htbGRzaWcjIj4NCiAgICA8U2lnbmVkSW5mbz48Q2Fub25pY2FsaXphdGlvbk1ldGhvZCBBbGdvcml0aG09Imh0dHA6Ly93d3cudzMub3JnLzIwMDEvMTAveG1sLWV4Yy1jMTRuIyI+PC9DYW5vbmljYWxpemF0aW9uTWV0aG9kPjxTaWduYXR1cmVNZXRob2QgQWxnb3JpdGhtPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwLzA5L3htbGRzaWcjcnNhLXNoYTEiPjwvU2lnbmF0dXJlTWV0aG9kPjxSZWZlcmVuY2U+PFRyYW5zZm9ybXM+PFRyYW5zZm9ybSBBbGdvcml0aG09Imh0dHA6Ly93d3cudzMub3JnLzIwMDEvMTAveG1sLWV4Yy1jMTRuIyI+PC9UcmFuc2Zvcm0+PC9UcmFuc2Zvcm1zPjxEaWdlc3RNZXRob2QgQWxnb3JpdGhtPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwLzA5L3htbGRzaWcjc2hhMSI+PC9EaWdlc3RNZXRob2Q+PERpZ2VzdFZhbHVlPjVWem5UWG9FUmpDamRGQ3NTaUljcHIvNDJDUT08L0RpZ2VzdFZhbHVlPjwvUmVmZXJlbmNlPjwvU2lnbmVkSW5mbz4NCiAgICA8U2lnbmF0dXJlVmFsdWU+ZjFsSHpFSzRMazRNQUR2UVhOSEdhaUVlYkdtM3BXeFl5MzR3dE5kYzZ2Lzd2QnNTdXMvcUhqU3Q3YkFHMVpCa2JidTVsZjRFN2tvbHBCVDBUMFVKK3RUQ1hxaWxleVRRanNEMG9iQ1QwZ0xPYk9uL2VXZk11REQ5MUI3WExvdmVONzlzK3VtVXI5Y0JCTVdlNWIxQnZpWjUyaGVhNlJnU3hXR3NGMVJ0NXFFPTwvU2lnbmF0dXJlVmFsdWU+DQogICAgPEtleUluZm8+DQogICAgICAgIDxYNTA5RGF0YT4NCiAgICAgICAgICAgIDxYNTA5Q2VydGlmaWNhdGU+TUlJRHVEQ0NBcUNnQXdJQkFnSUVYY210SHpBTkJna3Foa2lHOXcwQkFRc0ZBREEyTVF3d0NnWURWUVFLRXdOdWFITXhDekFKQmdOVkJBc1RBa05CTVJrd0Z3WURWUVFERXhCT1NGTWdTVTVVSUV4bGRtVnNJREZFTUI0WERUSXdNVEF5TWpFd01qRTFOVm9YRFRJeU1UQXlNakV3TlRFMU5Wb3dRekVNTUFvR0ExVUVDaE1EYm1oek1ROHdEUVlEVlFRTEV3WlFaVzl3YkdVeElqQWdCZ05WQkFNTUdUVTFOVEkxTXpVeU1URXdPRjlTUVU1RVQwMWZWVk5GVWxFd2daOHdEUVlKS29aSWh2Y05BUUVCQlFBRGdZMEFNSUdKQW9HQkFLdDRzek53N09BSDdBUVJyRGUveEJJbXNNbU1pUzlFc3JUM2EzcC9MaDNicmR6STlhYWpUVVoyYi9jdmJPYTdQZVlkN3UrSzRhMlpkMFhrKzBHRm1ZR3pTVlg2aVlqYmx3cjB2YWkzMXpWN0crbEd2SHhINnBTb0xDd0lDYVpBRndhYmVENU96OTQreUEzYVdOV3RHVjBEZmg5cXdIM1pGQ0lNUnN2ZXJOMXBBZ01CQUFHamdnRkRNSUlCUHpBT0JnTlZIUThCQWY4RUJBTUNCa0F3WlFZRFZSMGdBUUgvQkZzd1dUQlhCZ3NxaGpvQWlYdG1BQU1DQURCSU1FWUdDQ3NHQVFVRkJ3SUJGanBvZEhSd2N6b3ZMM0JyYVM1dWFITXVkV3N2WTJWeWRHbG1hV05oZEdWZmNHOXNhV05wWlhNdlkyOXVkR1Z1ZEY5amIyMXRhWFJ0Wlc1ME1ETUdBMVVkSHdRc01Db3dLS0Ftb0NTR0ltaDBkSEE2THk5amNtd3VibWh6TG5WckwybHVkQzh4WkM5amNteGpNeTVqY213d0t3WURWUjBRQkNRd0lvQVBNakF5TURFd01qSXhNREl4TlRWYWdROHlNREl5TURNeE56RXdOVEUxTlZvd0h3WURWUjBqQkJnd0ZvQVVvSllmZ1lUTlBkNkVVS0w2UUxJekh4WTVQRkl3SFFZRFZSME9CQllFRkx0eXZZU3lhcWc2MEFFVVpneGswd3JqUkpjK01Ba0dBMVVkRXdRQ01BQXdHUVlKS29aSWh2WjlCMEVBQkF3d0Noc0VWamd1TXdNQ0JMQXdEUVlKS29aSWh2Y05BUUVMQlFBRGdnRUJBQmN6eThCOGp1UHBJZmFUTkZjeHJDMjJhQ1gveFlabWhyTC9OdklCQWFYMUc1aGppd21rR0tFMmhSVElyNjdQeFp4bVhzSnhpZ1JCTUhQbEkrbFkvK29rekgwR2k3YjVicWx3N3B4R0lnSk8wMDB3OHBGc3ZvOXc0MklZaEhvZHN2bkRWU3hoTVQwSjQ2UWhrOXNvRTBMam9FVUxLUVBQbFlHa2UvR2wzbTE3SXRGWXdPYlFIMGZNRXdtaXFCeWVJZno3Z1NjY096TDVjSXA2UGNaVE9qbzJJcVFwZ0VtaGpPY1JJbkVxQU5pdFNkam9pSkFKenBhYVpqWVRSZEhVWDdpN2FqRWlING05MW5GVys0QXFrTnR0bGI0V2NHS3NTbVdnZktLaGVGNElvWktNRTgweGVyU2dNeTh2dGpMT0JKQ0dYejB3TEdtUXVSbXhNVHE4OHE0PTwvWDUwOUNlcnRpZmljYXRlPg0KICAgICAgICA8L1g1MDlEYXRhPg0KICAgIDwvS2V5SW5mbz4NCjwvU2lnbmF0dXJlPg0K" + } + ] + } + } + ] +} diff --git a/src/test/resources/examples/full_examples/primary-care/acute/nominated-pharmacy/medical-prescriber/cancellations/4-Process-Request-Cancel-200_OK.json b/src/test/resources/examples/full_examples/primary-care/acute/nominated-pharmacy/medical-prescriber/cancellations/4-Process-Request-Cancel-200_OK.json new file mode 100644 index 00000000..1ceaba1c --- /dev/null +++ b/src/test/resources/examples/full_examples/primary-care/acute/nominated-pharmacy/medical-prescriber/cancellations/4-Process-Request-Cancel-200_OK.json @@ -0,0 +1,388 @@ +{ + "resourceType": "Bundle", + "id": "0cb82cfa-76c8-4fb2-a08e-bf0e326e5487", + "identifier": { + "system": "https://tools.ietf.org/html/rfc4122", + "value": "eaead81f-10d1-4918-a349-1412c9e33e2f" + }, + "type": "message", + "entry": [ + { + "fullUrl": "urn:uuid:17773b27-427e-4940-8c16-64cdac715001", + "resource": { + "resourceType": "MessageHeader", + "eventCoding": { + "system": "https://fhir.nhs.uk/CodeSystem/message-event", + "code": "prescription-order-update", + "display": "Prescription Order Update" + }, + "sender": { + "identifier": { + "system": "https://fhir.nhs.uk/Id/ods-organization-code", + "value": "A83008" + }, + "display": "HALLGARTH SURGERY" + }, + "source": { + "endpoint": "https://directory.spineservices.nhs.uk/STU3/Organization/A83008" + }, + "destination": [ + { + "endpoint": "https://sandbox.api.service.nhs.uk/electronic-prescriptions/$post-message", + "receiver": { + "identifier": { + "system": "https://fhir.nhs.uk/Id/ods-organization-code", + "value": "FCG71" + } + } + } + ], + "focus": [ + { + "reference": "urn:uuid:56166769-c1c4-4d07-afa8-132b5dfca666" + }, + { + "reference": "urn:uuid:a54219b8-f741-4c47-b662-e4f8dfa49ab6" + } + ] + } + }, + { + "fullUrl": "urn:uuid:a54219b8-f741-4c47-b662-e4f8dfa49ab6", + "resource": { + "resourceType": "MedicationRequest", + "extension": [ + { + "url": "https://fhir.nhs.uk/StructureDefinition/Extension-DM-PrescriptionType", + "valueCoding": { + "system": "https://fhir.nhs.uk/CodeSystem/prescription-type", + "code": "0101", + "display": "Primary Care Prescriber - Medical Prescriber" + } + } + ], + "identifier": [ + { + "system": "https://fhir.nhs.uk/Id/prescription-order-item-number", + "value": "299c610b-f4f1-4eac-a7d7-4fb6b0556e11" + } + ], + "status": "cancelled", + "statusReason": { + "coding": [ + { + "system": "https://fhir.nhs.uk/CodeSystem/medicationrequest-status-reason", + "code": "0004", + "display": "Clinical grounds" + } + ] + }, + "intent": "order", + "category": [ + { + "coding": [ + { + "system": "http://terminology.hl7.org/CodeSystem/medicationrequest-category", + "code": "community", + "display": "Community" + } + ] + } + ], + "medicationCodeableConcept": { + "coding": [ + { + "system": "http://snomed.info/sct", + "code": "322237000", + "display": "Paracetamol 500mg soluble tablets" + } + ] + }, + "subject": { + "reference": "urn:uuid:78d3c2eb-009e-4ec8-a358-b042954aa9b2" + }, + "requester": { + "reference": "urn:uuid:56166769-c1c4-4d07-afa8-132b5dfca666" + }, + "groupIdentifier": { + "extension": [ + { + "url": "https://fhir.nhs.uk/StructureDefinition/Extension-DM-PrescriptionId", + "valueIdentifier": { + "system": "https://fhir.nhs.uk/Id/prescription", + "value": "c7dfe8e3-6e92-46c8-935f-fc94016dd20c" + } + } + ], + "system": "https://fhir.nhs.uk/Id/prescription-order-number", + "value": "C293C8-A83008-470B8U" + }, + "courseOfTherapyType": { + "coding": [ + { + "system": "http://terminology.hl7.org/CodeSystem/medicationrequest-course-of-therapy", + "code": "acute", + "display": "Short course (acute) therapy" + } + ] + }, + "dosageInstruction": [ + { + "text": "4 times a day - Oral", + "timing": { + "repeat": { + "frequency": 4, + "period": 1, + "periodUnit": "d" + } + }, + "route": { + "coding": [ + { + "system": "http://snomed.info/sct", + "code": "26643006", + "display": "Oral" + } + ] + } + } + ], + "dispenseRequest": { + "extension": [ + { + "url": "https://fhir.nhs.uk/StructureDefinition/Extension-DM-PerformerSiteType", + "valueCoding": { + "system": "https://fhir.nhs.uk/CodeSystem/dispensing-site-preference", + "code": "P1" + } + } + ], + "validityPeriod": { + "start": "2021-04-20", + "end": "2021-05-18" + }, + "expectedSupplyDuration": { + "value": 30, + "unit": "day", + "system": "http://unitsofmeasure.org", + "code": "d" + }, + "performer": { + "identifier": { + "system": "https://fhir.nhs.uk/Id/ods-organization-code", + "value": "FCG71" + } + }, + "quantity": { + "value": 100, + "unit": "tablet", + "system": "http://snomed.info/sct", + "code": "428673006" + } + }, + "substitution": { + "allowedBoolean": false + } + } + }, + { + "fullUrl": "urn:uuid:78d3c2eb-009e-4ec8-a358-b042954aa9b2", + "resource": { + "resourceType": "Patient", + "identifier": [ + { + "system": "https://fhir.nhs.uk/Id/nhs-number", + "value": "9990548609" + } + ], + "name": [ + { + "use": "usual", + "family": "XXTESTPATIENT-TGNP", + "given": [ + "DONOTUSE" + ], + "prefix": [ + "MR" + ] + } + ], + "gender": "male", + "birthDate": "1932-01-06", + "address": [ + { + "use": "home", + "line": [ + "1 Trevelyan Square", + "Boar Lane", + "Leeds", + "West Yorkshire" + ], + "postalCode": "LS1 6AE" + } + ], + "generalPractitioner": [ + { + "identifier": { + "system": "https://fhir.nhs.uk/Id/ods-organization-code", + "value": "A83008" + } + } + ] + } + }, + { + "fullUrl": "urn:uuid:56166769-c1c4-4d07-afa8-132b5dfca666", + "resource": { + "resourceType": "PractitionerRole", + "identifier": [ + { + "system": "https://fhir.nhs.uk/Id/sds-role-profile-id", + "value": "200102238987" + } + ], + "practitioner": { + "reference": "urn:uuid:a8c85454-f8cb-498d-9629-78e2cb5fa47a" + }, + "organization": { + "reference": "urn:uuid:3b4b03a5-52ba-4ba6-9b82-70350aa109d8" + }, + "code": [ + { + "coding": [ + { + "system": "https://fhir.nhs.uk/CodeSystem/NHSDigital-SDS-JobRoleCode", + "code": "S8000:G8000:R8000", + "display": "Clinical Practitioner Access Role" + } + ] + } + ], + "telecom": [ + { + "system": "phone", + "value": "01234567890", + "use": "work" + } + ] + } + }, + { + "fullUrl": "urn:uuid:a8c85454-f8cb-498d-9629-78e2cb5fa47a", + "resource": { + "resourceType": "Practitioner", + "identifier": [ + { + "system": "https://fhir.nhs.uk/Id/sds-user-id", + "value": "555086689106" + }, + { + "system": "https://fhir.hl7.org.uk/Id/gmc-number", + "value": "6095103" + }, + { + "system": "https://fhir.hl7.org.uk/Id/din-number", + "value": "977677" + } + ], + "name": [ + { + "family": "BOIN", + "given": [ + "C" + ], + "prefix": [ + "DR" + ] + } + ] + } + }, + { + "fullUrl": "urn:uuid:3b4b03a5-52ba-4ba6-9b82-70350aa109d8", + "resource": { + "resourceType": "Organization", + "identifier": [ + { + "system": "https://fhir.nhs.uk/Id/ods-organization-code", + "value": "A83008" + } + ], + "type": [ + { + "coding": [ + { + "system": "https://fhir.nhs.uk/CodeSystem/organisation-role", + "code": "76", + "display": "GP PRACTICE" + } + ] + } + ], + "name": "HALLGARTH SURGERY", + "address": [ + { + "use": "work", + "type": "both", + "line": [ + "HALLGARTH SURGERY", + "CHEAPSIDE" + ], + "city": "SHILDON", + "district": "COUNTY DURHAM", + "postalCode": "DL4 2HP" + } + ], + "telecom": [ + { + "system": "phone", + "value": "0115 9737320", + "use": "work" + } + ], + "partOf": { + "identifier": { + "system": "https://fhir.nhs.uk/Id/ods-organization-code", + "value": "84H" + }, + "display": "NHS COUNTY DURHAM CCG" + } + } + }, + { + "fullUrl": "urn:uuid:28828c55-8fa7-42d7-916f-fcf076e0c10e", + "resource": { + "resourceType": "Provenance", + "id": "28828c55-8fa7-42d7-916f-fcf076e0c10e", + "target": [ + { + "reference": "urn:uuid:a54219b8-f741-4c47-b662-e4f8dfa49ab6" + } + ], + "recorded": "2021-02-11T16:35:38+00:00", + "agent": [ + { + "who": { + "reference": "urn:uuid:56166769-c1c4-4d07-afa8-132b5dfca666" + } + } + ], + "signature": [ + { + "type": [ + { + "system": "urn:iso-astm:E1762-95:2013", + "code": "1.2.840.10065.1.12.1.1" + } + ], + "when": "2021-04-20T05:45:34+00:00", + "who": { + "reference": "urn:uuid:56166769-c1c4-4d07-afa8-132b5dfca666" + }, + "data": "DQo8U2lnbmF0dXJlIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwLzA5L3htbGRzaWcjIj4NCiAgICA8U2lnbmVkSW5mbz48Q2Fub25pY2FsaXphdGlvbk1ldGhvZCBBbGdvcml0aG09Imh0dHA6Ly93d3cudzMub3JnLzIwMDEvMTAveG1sLWV4Yy1jMTRuIyI+PC9DYW5vbmljYWxpemF0aW9uTWV0aG9kPjxTaWduYXR1cmVNZXRob2QgQWxnb3JpdGhtPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwLzA5L3htbGRzaWcjcnNhLXNoYTEiPjwvU2lnbmF0dXJlTWV0aG9kPjxSZWZlcmVuY2U+PFRyYW5zZm9ybXM+PFRyYW5zZm9ybSBBbGdvcml0aG09Imh0dHA6Ly93d3cudzMub3JnLzIwMDEvMTAveG1sLWV4Yy1jMTRuIyI+PC9UcmFuc2Zvcm0+PC9UcmFuc2Zvcm1zPjxEaWdlc3RNZXRob2QgQWxnb3JpdGhtPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwLzA5L3htbGRzaWcjc2hhMSI+PC9EaWdlc3RNZXRob2Q+PERpZ2VzdFZhbHVlPjVWem5UWG9FUmpDamRGQ3NTaUljcHIvNDJDUT08L0RpZ2VzdFZhbHVlPjwvUmVmZXJlbmNlPjwvU2lnbmVkSW5mbz4NCiAgICA8U2lnbmF0dXJlVmFsdWU+ZjFsSHpFSzRMazRNQUR2UVhOSEdhaUVlYkdtM3BXeFl5MzR3dE5kYzZ2Lzd2QnNTdXMvcUhqU3Q3YkFHMVpCa2JidTVsZjRFN2tvbHBCVDBUMFVKK3RUQ1hxaWxleVRRanNEMG9iQ1QwZ0xPYk9uL2VXZk11REQ5MUI3WExvdmVONzlzK3VtVXI5Y0JCTVdlNWIxQnZpWjUyaGVhNlJnU3hXR3NGMVJ0NXFFPTwvU2lnbmF0dXJlVmFsdWU+DQogICAgPEtleUluZm8+DQogICAgICAgIDxYNTA5RGF0YT4NCiAgICAgICAgICAgIDxYNTA5Q2VydGlmaWNhdGU+TUlJRHVEQ0NBcUNnQXdJQkFnSUVYY210SHpBTkJna3Foa2lHOXcwQkFRc0ZBREEyTVF3d0NnWURWUVFLRXdOdWFITXhDekFKQmdOVkJBc1RBa05CTVJrd0Z3WURWUVFERXhCT1NGTWdTVTVVSUV4bGRtVnNJREZFTUI0WERUSXdNVEF5TWpFd01qRTFOVm9YRFRJeU1UQXlNakV3TlRFMU5Wb3dRekVNTUFvR0ExVUVDaE1EYm1oek1ROHdEUVlEVlFRTEV3WlFaVzl3YkdVeElqQWdCZ05WQkFNTUdUVTFOVEkxTXpVeU1URXdPRjlTUVU1RVQwMWZWVk5GVWxFd2daOHdEUVlKS29aSWh2Y05BUUVCQlFBRGdZMEFNSUdKQW9HQkFLdDRzek53N09BSDdBUVJyRGUveEJJbXNNbU1pUzlFc3JUM2EzcC9MaDNicmR6STlhYWpUVVoyYi9jdmJPYTdQZVlkN3UrSzRhMlpkMFhrKzBHRm1ZR3pTVlg2aVlqYmx3cjB2YWkzMXpWN0crbEd2SHhINnBTb0xDd0lDYVpBRndhYmVENU96OTQreUEzYVdOV3RHVjBEZmg5cXdIM1pGQ0lNUnN2ZXJOMXBBZ01CQUFHamdnRkRNSUlCUHpBT0JnTlZIUThCQWY4RUJBTUNCa0F3WlFZRFZSMGdBUUgvQkZzd1dUQlhCZ3NxaGpvQWlYdG1BQU1DQURCSU1FWUdDQ3NHQVFVRkJ3SUJGanBvZEhSd2N6b3ZMM0JyYVM1dWFITXVkV3N2WTJWeWRHbG1hV05oZEdWZmNHOXNhV05wWlhNdlkyOXVkR1Z1ZEY5amIyMXRhWFJ0Wlc1ME1ETUdBMVVkSHdRc01Db3dLS0Ftb0NTR0ltaDBkSEE2THk5amNtd3VibWh6TG5WckwybHVkQzh4WkM5amNteGpNeTVqY213d0t3WURWUjBRQkNRd0lvQVBNakF5TURFd01qSXhNREl4TlRWYWdROHlNREl5TURNeE56RXdOVEUxTlZvd0h3WURWUjBqQkJnd0ZvQVVvSllmZ1lUTlBkNkVVS0w2UUxJekh4WTVQRkl3SFFZRFZSME9CQllFRkx0eXZZU3lhcWc2MEFFVVpneGswd3JqUkpjK01Ba0dBMVVkRXdRQ01BQXdHUVlKS29aSWh2WjlCMEVBQkF3d0Noc0VWamd1TXdNQ0JMQXdEUVlKS29aSWh2Y05BUUVMQlFBRGdnRUJBQmN6eThCOGp1UHBJZmFUTkZjeHJDMjJhQ1gveFlabWhyTC9OdklCQWFYMUc1aGppd21rR0tFMmhSVElyNjdQeFp4bVhzSnhpZ1JCTUhQbEkrbFkvK29rekgwR2k3YjVicWx3N3B4R0lnSk8wMDB3OHBGc3ZvOXc0MklZaEhvZHN2bkRWU3hoTVQwSjQ2UWhrOXNvRTBMam9FVUxLUVBQbFlHa2UvR2wzbTE3SXRGWXdPYlFIMGZNRXdtaXFCeWVJZno3Z1NjY096TDVjSXA2UGNaVE9qbzJJcVFwZ0VtaGpPY1JJbkVxQU5pdFNkam9pSkFKenBhYVpqWVRSZEhVWDdpN2FqRWlING05MW5GVys0QXFrTnR0bGI0V2NHS3NTbVdnZktLaGVGNElvWktNRTgweGVyU2dNeTh2dGpMT0JKQ0dYejB3TEdtUXVSbXhNVHE4OHE0PTwvWDUwOUNlcnRpZmljYXRlPg0KICAgICAgICA8L1g1MDlEYXRhPg0KICAgIDwvS2V5SW5mbz4NCjwvU2lnbmF0dXJlPg0K" + } + ] + } + } + ] +} diff --git a/src/test/resources/examples/full_examples/primary-care/acute/nominated-pharmacy/medical-prescriber/cancellations/4-Process-Request-Send-200_OK.json b/src/test/resources/examples/full_examples/primary-care/acute/nominated-pharmacy/medical-prescriber/cancellations/4-Process-Request-Send-200_OK.json new file mode 100644 index 00000000..4c339cfd --- /dev/null +++ b/src/test/resources/examples/full_examples/primary-care/acute/nominated-pharmacy/medical-prescriber/cancellations/4-Process-Request-Send-200_OK.json @@ -0,0 +1,379 @@ +{ + "resourceType": "Bundle", + "id": "0cb82cfa-76c8-4fb2-a08e-bf0e326e5487", + "identifier": { + "system": "https://tools.ietf.org/html/rfc4122", + "value": "cf1a34ba-5e6f-428c-8858-c7e3f88f19d7" + }, + "type": "message", + "entry": [ + { + "fullUrl": "urn:uuid:17773b27-427e-4940-8c16-64cdac715001", + "resource": { + "resourceType": "MessageHeader", + "eventCoding": { + "system": "https://fhir.nhs.uk/CodeSystem/message-event", + "code": "prescription-order", + "display": "Prescription Order" + }, + "sender": { + "identifier": { + "system": "https://fhir.nhs.uk/Id/ods-organization-code", + "value": "A83008" + }, + "display": "HALLGARTH SURGERY" + }, + "source": { + "endpoint": "https://directory.spineservices.nhs.uk/STU3/Organization/A83008" + }, + "destination": [ + { + "endpoint": "https://sandbox.api.service.nhs.uk/electronic-prescriptions/$post-message", + "receiver": { + "identifier": { + "system": "https://fhir.nhs.uk/Id/ods-organization-code", + "value": "FCG71" + } + } + } + ], + "focus": [ + { + "reference": "urn:uuid:56166769-c1c4-4d07-afa8-132b5dfca666" + }, + { + "reference": "urn:uuid:a54219b8-f741-4c47-b662-e4f8dfa49ab6" + } + ] + } + }, + { + "fullUrl": "urn:uuid:a54219b8-f741-4c47-b662-e4f8dfa49ab6", + "resource": { + "resourceType": "MedicationRequest", + "extension": [ + { + "url": "https://fhir.nhs.uk/StructureDefinition/Extension-DM-PrescriptionType", + "valueCoding": { + "system": "https://fhir.nhs.uk/CodeSystem/prescription-type", + "code": "0101", + "display": "Primary Care Prescriber - Medical Prescriber" + } + } + ], + "identifier": [ + { + "system": "https://fhir.nhs.uk/Id/prescription-order-item-number", + "value": "299c610b-f4f1-4eac-a7d7-4fb6b0556e11" + } + ], + "status": "active", + "intent": "order", + "category": [ + { + "coding": [ + { + "system": "http://terminology.hl7.org/CodeSystem/medicationrequest-category", + "code": "community", + "display": "Community" + } + ] + } + ], + "medicationCodeableConcept": { + "coding": [ + { + "system": "http://snomed.info/sct", + "code": "322237000", + "display": "Paracetamol 500mg soluble tablets" + } + ] + }, + "subject": { + "reference": "urn:uuid:78d3c2eb-009e-4ec8-a358-b042954aa9b2" + }, + "requester": { + "reference": "urn:uuid:56166769-c1c4-4d07-afa8-132b5dfca666" + }, + "groupIdentifier": { + "extension": [ + { + "url": "https://fhir.nhs.uk/StructureDefinition/Extension-DM-PrescriptionId", + "valueIdentifier": { + "system": "https://fhir.nhs.uk/Id/prescription", + "value": "c7dfe8e3-6e92-46c8-935f-fc94016dd20c" + } + } + ], + "system": "https://fhir.nhs.uk/Id/prescription-order-number", + "value": "C293C8-A83008-470B8U" + }, + "courseOfTherapyType": { + "coding": [ + { + "system": "http://terminology.hl7.org/CodeSystem/medicationrequest-course-of-therapy", + "code": "acute", + "display": "Short course (acute) therapy" + } + ] + }, + "dosageInstruction": [ + { + "text": "4 times a day - Oral", + "timing": { + "repeat": { + "frequency": 4, + "period": 1, + "periodUnit": "d" + } + }, + "route": { + "coding": [ + { + "system": "http://snomed.info/sct", + "code": "26643006", + "display": "Oral" + } + ] + } + } + ], + "dispenseRequest": { + "extension": [ + { + "url": "https://fhir.nhs.uk/StructureDefinition/Extension-DM-PerformerSiteType", + "valueCoding": { + "system": "https://fhir.nhs.uk/CodeSystem/dispensing-site-preference", + "code": "P1" + } + } + ], + "validityPeriod": { + "start": "2021-04-20", + "end": "2021-05-18" + }, + "expectedSupplyDuration": { + "value": 30, + "unit": "day", + "system": "http://unitsofmeasure.org", + "code": "d" + }, + "performer": { + "identifier": { + "system": "https://fhir.nhs.uk/Id/ods-organization-code", + "value": "FCG71" + } + }, + "quantity": { + "value": 100, + "unit": "tablet", + "system": "http://snomed.info/sct", + "code": "428673006" + } + }, + "substitution": { + "allowedBoolean": false + } + } + }, + { + "fullUrl": "urn:uuid:78d3c2eb-009e-4ec8-a358-b042954aa9b2", + "resource": { + "resourceType": "Patient", + "identifier": [ + { + "system": "https://fhir.nhs.uk/Id/nhs-number", + "value": "9990548609" + } + ], + "name": [ + { + "use": "usual", + "family": "XXTESTPATIENT-TGNP", + "given": [ + "DONOTUSE" + ], + "prefix": [ + "MR" + ] + } + ], + "gender": "male", + "birthDate": "1932-01-06", + "address": [ + { + "use": "home", + "line": [ + "1 Trevelyan Square", + "Boar Lane", + "Leeds", + "West Yorkshire" + ], + "postalCode": "LS1 6AE" + } + ], + "generalPractitioner": [ + { + "identifier": { + "system": "https://fhir.nhs.uk/Id/ods-organization-code", + "value": "A83008" + } + } + ] + } + }, + { + "fullUrl": "urn:uuid:56166769-c1c4-4d07-afa8-132b5dfca666", + "resource": { + "resourceType": "PractitionerRole", + "identifier": [ + { + "system": "https://fhir.nhs.uk/Id/sds-role-profile-id", + "value": "200102238987" + } + ], + "practitioner": { + "reference": "urn:uuid:a8c85454-f8cb-498d-9629-78e2cb5fa47a" + }, + "organization": { + "reference": "urn:uuid:3b4b03a5-52ba-4ba6-9b82-70350aa109d8" + }, + "code": [ + { + "coding": [ + { + "system": "https://fhir.nhs.uk/CodeSystem/NHSDigital-SDS-JobRoleCode", + "code": "S8000:G8000:R8000", + "display": "Clinical Practitioner Access Role" + } + ] + } + ], + "telecom": [ + { + "system": "phone", + "value": "01234567890", + "use": "work" + } + ] + } + }, + { + "fullUrl": "urn:uuid:a8c85454-f8cb-498d-9629-78e2cb5fa47a", + "resource": { + "resourceType": "Practitioner", + "identifier": [ + { + "system": "https://fhir.nhs.uk/Id/sds-user-id", + "value": "555086689106" + }, + { + "system": "https://fhir.hl7.org.uk/Id/gmc-number", + "value": "6095103" + }, + { + "system": "https://fhir.hl7.org.uk/Id/din-number", + "value": "977677" + } + ], + "name": [ + { + "family": "BOIN", + "given": [ + "C" + ], + "prefix": [ + "DR" + ] + } + ] + } + }, + { + "fullUrl": "urn:uuid:3b4b03a5-52ba-4ba6-9b82-70350aa109d8", + "resource": { + "resourceType": "Organization", + "identifier": [ + { + "system": "https://fhir.nhs.uk/Id/ods-organization-code", + "value": "A83008" + } + ], + "type": [ + { + "coding": [ + { + "system": "https://fhir.nhs.uk/CodeSystem/organisation-role", + "code": "76", + "display": "GP PRACTICE" + } + ] + } + ], + "name": "HALLGARTH SURGERY", + "address": [ + { + "use": "work", + "type": "both", + "line": [ + "HALLGARTH SURGERY", + "CHEAPSIDE" + ], + "city": "SHILDON", + "district": "COUNTY DURHAM", + "postalCode": "DL4 2HP" + } + ], + "telecom": [ + { + "system": "phone", + "value": "0115 9737320", + "use": "work" + } + ], + "partOf": { + "identifier": { + "system": "https://fhir.nhs.uk/Id/ods-organization-code", + "value": "84H" + }, + "display": "NHS COUNTY DURHAM CCG" + } + } + }, + { + "fullUrl": "urn:uuid:28828c55-8fa7-42d7-916f-fcf076e0c10e", + "resource": { + "resourceType": "Provenance", + "id": "28828c55-8fa7-42d7-916f-fcf076e0c10e", + "target": [ + { + "reference": "urn:uuid:a54219b8-f741-4c47-b662-e4f8dfa49ab6" + } + ], + "recorded": "2021-02-11T16:35:38+00:00", + "agent": [ + { + "who": { + "reference": "urn:uuid:56166769-c1c4-4d07-afa8-132b5dfca666" + } + } + ], + "signature": [ + { + "type": [ + { + "system": "urn:iso-astm:E1762-95:2013", + "code": "1.2.840.10065.1.12.1.1" + } + ], + "when": "2021-04-20T05:45:34+00:00", + "who": { + "reference": "urn:uuid:56166769-c1c4-4d07-afa8-132b5dfca666" + }, + "data": "DQo8U2lnbmF0dXJlIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwLzA5L3htbGRzaWcjIj4NCiAgICA8U2lnbmVkSW5mbz48Q2Fub25pY2FsaXphdGlvbk1ldGhvZCBBbGdvcml0aG09Imh0dHA6Ly93d3cudzMub3JnLzIwMDEvMTAveG1sLWV4Yy1jMTRuIyI+PC9DYW5vbmljYWxpemF0aW9uTWV0aG9kPjxTaWduYXR1cmVNZXRob2QgQWxnb3JpdGhtPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwLzA5L3htbGRzaWcjcnNhLXNoYTEiPjwvU2lnbmF0dXJlTWV0aG9kPjxSZWZlcmVuY2U+PFRyYW5zZm9ybXM+PFRyYW5zZm9ybSBBbGdvcml0aG09Imh0dHA6Ly93d3cudzMub3JnLzIwMDEvMTAveG1sLWV4Yy1jMTRuIyI+PC9UcmFuc2Zvcm0+PC9UcmFuc2Zvcm1zPjxEaWdlc3RNZXRob2QgQWxnb3JpdGhtPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwLzA5L3htbGRzaWcjc2hhMSI+PC9EaWdlc3RNZXRob2Q+PERpZ2VzdFZhbHVlPjVWem5UWG9FUmpDamRGQ3NTaUljcHIvNDJDUT08L0RpZ2VzdFZhbHVlPjwvUmVmZXJlbmNlPjwvU2lnbmVkSW5mbz4NCiAgICA8U2lnbmF0dXJlVmFsdWU+ZjFsSHpFSzRMazRNQUR2UVhOSEdhaUVlYkdtM3BXeFl5MzR3dE5kYzZ2Lzd2QnNTdXMvcUhqU3Q3YkFHMVpCa2JidTVsZjRFN2tvbHBCVDBUMFVKK3RUQ1hxaWxleVRRanNEMG9iQ1QwZ0xPYk9uL2VXZk11REQ5MUI3WExvdmVONzlzK3VtVXI5Y0JCTVdlNWIxQnZpWjUyaGVhNlJnU3hXR3NGMVJ0NXFFPTwvU2lnbmF0dXJlVmFsdWU+DQogICAgPEtleUluZm8+DQogICAgICAgIDxYNTA5RGF0YT4NCiAgICAgICAgICAgIDxYNTA5Q2VydGlmaWNhdGU+TUlJRHVEQ0NBcUNnQXdJQkFnSUVYY210SHpBTkJna3Foa2lHOXcwQkFRc0ZBREEyTVF3d0NnWURWUVFLRXdOdWFITXhDekFKQmdOVkJBc1RBa05CTVJrd0Z3WURWUVFERXhCT1NGTWdTVTVVSUV4bGRtVnNJREZFTUI0WERUSXdNVEF5TWpFd01qRTFOVm9YRFRJeU1UQXlNakV3TlRFMU5Wb3dRekVNTUFvR0ExVUVDaE1EYm1oek1ROHdEUVlEVlFRTEV3WlFaVzl3YkdVeElqQWdCZ05WQkFNTUdUVTFOVEkxTXpVeU1URXdPRjlTUVU1RVQwMWZWVk5GVWxFd2daOHdEUVlKS29aSWh2Y05BUUVCQlFBRGdZMEFNSUdKQW9HQkFLdDRzek53N09BSDdBUVJyRGUveEJJbXNNbU1pUzlFc3JUM2EzcC9MaDNicmR6STlhYWpUVVoyYi9jdmJPYTdQZVlkN3UrSzRhMlpkMFhrKzBHRm1ZR3pTVlg2aVlqYmx3cjB2YWkzMXpWN0crbEd2SHhINnBTb0xDd0lDYVpBRndhYmVENU96OTQreUEzYVdOV3RHVjBEZmg5cXdIM1pGQ0lNUnN2ZXJOMXBBZ01CQUFHamdnRkRNSUlCUHpBT0JnTlZIUThCQWY4RUJBTUNCa0F3WlFZRFZSMGdBUUgvQkZzd1dUQlhCZ3NxaGpvQWlYdG1BQU1DQURCSU1FWUdDQ3NHQVFVRkJ3SUJGanBvZEhSd2N6b3ZMM0JyYVM1dWFITXVkV3N2WTJWeWRHbG1hV05oZEdWZmNHOXNhV05wWlhNdlkyOXVkR1Z1ZEY5amIyMXRhWFJ0Wlc1ME1ETUdBMVVkSHdRc01Db3dLS0Ftb0NTR0ltaDBkSEE2THk5amNtd3VibWh6TG5WckwybHVkQzh4WkM5amNteGpNeTVqY213d0t3WURWUjBRQkNRd0lvQVBNakF5TURFd01qSXhNREl4TlRWYWdROHlNREl5TURNeE56RXdOVEUxTlZvd0h3WURWUjBqQkJnd0ZvQVVvSllmZ1lUTlBkNkVVS0w2UUxJekh4WTVQRkl3SFFZRFZSME9CQllFRkx0eXZZU3lhcWc2MEFFVVpneGswd3JqUkpjK01Ba0dBMVVkRXdRQ01BQXdHUVlKS29aSWh2WjlCMEVBQkF3d0Noc0VWamd1TXdNQ0JMQXdEUVlKS29aSWh2Y05BUUVMQlFBRGdnRUJBQmN6eThCOGp1UHBJZmFUTkZjeHJDMjJhQ1gveFlabWhyTC9OdklCQWFYMUc1aGppd21rR0tFMmhSVElyNjdQeFp4bVhzSnhpZ1JCTUhQbEkrbFkvK29rekgwR2k3YjVicWx3N3B4R0lnSk8wMDB3OHBGc3ZvOXc0MklZaEhvZHN2bkRWU3hoTVQwSjQ2UWhrOXNvRTBMam9FVUxLUVBQbFlHa2UvR2wzbTE3SXRGWXdPYlFIMGZNRXdtaXFCeWVJZno3Z1NjY096TDVjSXA2UGNaVE9qbzJJcVFwZ0VtaGpPY1JJbkVxQU5pdFNkam9pSkFKenBhYVpqWVRSZEhVWDdpN2FqRWlING05MW5GVys0QXFrTnR0bGI0V2NHS3NTbVdnZktLaGVGNElvWktNRTgweGVyU2dNeTh2dGpMT0JKQ0dYejB3TEdtUXVSbXhNVHE4OHE0PTwvWDUwOUNlcnRpZmljYXRlPg0KICAgICAgICA8L1g1MDlEYXRhPg0KICAgIDwvS2V5SW5mbz4NCjwvU2lnbmF0dXJlPg0K" + } + ] + } + } + ] +} diff --git a/src/test/resources/examples/full_examples/primary-care/acute/nominated-pharmacy/medical-prescriber/cancellations/5-Process-Request-Cancel-200_OK.json b/src/test/resources/examples/full_examples/primary-care/acute/nominated-pharmacy/medical-prescriber/cancellations/5-Process-Request-Cancel-200_OK.json new file mode 100644 index 00000000..c6151fee --- /dev/null +++ b/src/test/resources/examples/full_examples/primary-care/acute/nominated-pharmacy/medical-prescriber/cancellations/5-Process-Request-Cancel-200_OK.json @@ -0,0 +1,388 @@ +{ + "resourceType": "Bundle", + "id": "0cb82cfa-76c8-4fb2-a08e-bf0e326e5487", + "identifier": { + "system": "https://tools.ietf.org/html/rfc4122", + "value": "b3d06c45-0c63-403c-a9da-810a4fafd453" + }, + "type": "message", + "entry": [ + { + "fullUrl": "urn:uuid:17773b27-427e-4940-8c16-64cdac715001", + "resource": { + "resourceType": "MessageHeader", + "eventCoding": { + "system": "https://fhir.nhs.uk/CodeSystem/message-event", + "code": "prescription-order-update", + "display": "Prescription Order Update" + }, + "sender": { + "identifier": { + "system": "https://fhir.nhs.uk/Id/ods-organization-code", + "value": "A83008" + }, + "display": "HALLGARTH SURGERY" + }, + "source": { + "endpoint": "https://directory.spineservices.nhs.uk/STU3/Organization/A83008" + }, + "destination": [ + { + "endpoint": "https://sandbox.api.service.nhs.uk/electronic-prescriptions/$post-message", + "receiver": { + "identifier": { + "system": "https://fhir.nhs.uk/Id/ods-organization-code", + "value": "FCG71" + } + } + } + ], + "focus": [ + { + "reference": "urn:uuid:56166769-c1c4-4d07-afa8-132b5dfca666" + }, + { + "reference": "urn:uuid:a54219b8-f741-4c47-b662-e4f8dfa49ab6" + } + ] + } + }, + { + "fullUrl": "urn:uuid:a54219b8-f741-4c47-b662-e4f8dfa49ab6", + "resource": { + "resourceType": "MedicationRequest", + "extension": [ + { + "url": "https://fhir.nhs.uk/StructureDefinition/Extension-DM-PrescriptionType", + "valueCoding": { + "system": "https://fhir.nhs.uk/CodeSystem/prescription-type", + "code": "0101", + "display": "Primary Care Prescriber - Medical Prescriber" + } + } + ], + "identifier": [ + { + "system": "https://fhir.nhs.uk/Id/prescription-order-item-number", + "value": "299c610b-f4f1-4eac-a7d7-4fb6b0556e11" + } + ], + "status": "cancelled", + "statusReason": { + "coding": [ + { + "system": "https://fhir.nhs.uk/CodeSystem/medicationrequest-status-reason", + "code": "0005", + "display": "At the Patient's request" + } + ] + }, + "intent": "order", + "category": [ + { + "coding": [ + { + "system": "http://terminology.hl7.org/CodeSystem/medicationrequest-category", + "code": "community", + "display": "Community" + } + ] + } + ], + "medicationCodeableConcept": { + "coding": [ + { + "system": "http://snomed.info/sct", + "code": "322237000", + "display": "Paracetamol 500mg soluble tablets" + } + ] + }, + "subject": { + "reference": "urn:uuid:78d3c2eb-009e-4ec8-a358-b042954aa9b2" + }, + "requester": { + "reference": "urn:uuid:56166769-c1c4-4d07-afa8-132b5dfca666" + }, + "groupIdentifier": { + "extension": [ + { + "url": "https://fhir.nhs.uk/StructureDefinition/Extension-DM-PrescriptionId", + "valueIdentifier": { + "system": "https://fhir.nhs.uk/Id/prescription", + "value": "18a69c7a-0f65-47e3-a02c-4dedb930c695" + } + } + ], + "system": "https://fhir.nhs.uk/Id/prescription-order-number", + "value": "B29396-A83008-4FE9AK" + }, + "courseOfTherapyType": { + "coding": [ + { + "system": "http://terminology.hl7.org/CodeSystem/medicationrequest-course-of-therapy", + "code": "acute", + "display": "Short course (acute) therapy" + } + ] + }, + "dosageInstruction": [ + { + "text": "4 times a day - Oral", + "timing": { + "repeat": { + "frequency": 4, + "period": 1, + "periodUnit": "d" + } + }, + "route": { + "coding": [ + { + "system": "http://snomed.info/sct", + "code": "26643006", + "display": "Oral" + } + ] + } + } + ], + "dispenseRequest": { + "extension": [ + { + "url": "https://fhir.nhs.uk/StructureDefinition/Extension-DM-PerformerSiteType", + "valueCoding": { + "system": "https://fhir.nhs.uk/CodeSystem/dispensing-site-preference", + "code": "P1" + } + } + ], + "validityPeriod": { + "start": "2021-04-20", + "end": "2021-05-18" + }, + "expectedSupplyDuration": { + "value": 30, + "unit": "day", + "system": "http://unitsofmeasure.org", + "code": "d" + }, + "performer": { + "identifier": { + "system": "https://fhir.nhs.uk/Id/ods-organization-code", + "value": "FCG71" + } + }, + "quantity": { + "value": 100, + "unit": "tablet", + "system": "http://snomed.info/sct", + "code": "428673006" + } + }, + "substitution": { + "allowedBoolean": false + } + } + }, + { + "fullUrl": "urn:uuid:78d3c2eb-009e-4ec8-a358-b042954aa9b2", + "resource": { + "resourceType": "Patient", + "identifier": [ + { + "system": "https://fhir.nhs.uk/Id/nhs-number", + "value": "9990548609" + } + ], + "name": [ + { + "use": "usual", + "family": "XXTESTPATIENT-TGNP", + "given": [ + "DONOTUSE" + ], + "prefix": [ + "MR" + ] + } + ], + "gender": "male", + "birthDate": "1932-01-06", + "address": [ + { + "use": "home", + "line": [ + "1 Trevelyan Square", + "Boar Lane", + "Leeds", + "West Yorkshire" + ], + "postalCode": "LS1 6AE" + } + ], + "generalPractitioner": [ + { + "identifier": { + "system": "https://fhir.nhs.uk/Id/ods-organization-code", + "value": "A83008" + } + } + ] + } + }, + { + "fullUrl": "urn:uuid:56166769-c1c4-4d07-afa8-132b5dfca666", + "resource": { + "resourceType": "PractitionerRole", + "identifier": [ + { + "system": "https://fhir.nhs.uk/Id/sds-role-profile-id", + "value": "200102238987" + } + ], + "practitioner": { + "reference": "urn:uuid:a8c85454-f8cb-498d-9629-78e2cb5fa47a" + }, + "organization": { + "reference": "urn:uuid:3b4b03a5-52ba-4ba6-9b82-70350aa109d8" + }, + "code": [ + { + "coding": [ + { + "system": "https://fhir.nhs.uk/CodeSystem/NHSDigital-SDS-JobRoleCode", + "code": "S8000:G8000:R8000", + "display": "Clinical Practitioner Access Role" + } + ] + } + ], + "telecom": [ + { + "system": "phone", + "value": "01234567890", + "use": "work" + } + ] + } + }, + { + "fullUrl": "urn:uuid:a8c85454-f8cb-498d-9629-78e2cb5fa47a", + "resource": { + "resourceType": "Practitioner", + "identifier": [ + { + "system": "https://fhir.nhs.uk/Id/sds-user-id", + "value": "555086689106" + }, + { + "system": "https://fhir.hl7.org.uk/Id/gmc-number", + "value": "6095103" + }, + { + "system": "https://fhir.hl7.org.uk/Id/din-number", + "value": "977677" + } + ], + "name": [ + { + "family": "BOIN", + "given": [ + "C" + ], + "prefix": [ + "DR" + ] + } + ] + } + }, + { + "fullUrl": "urn:uuid:3b4b03a5-52ba-4ba6-9b82-70350aa109d8", + "resource": { + "resourceType": "Organization", + "identifier": [ + { + "system": "https://fhir.nhs.uk/Id/ods-organization-code", + "value": "A83008" + } + ], + "type": [ + { + "coding": [ + { + "system": "https://fhir.nhs.uk/CodeSystem/organisation-role", + "code": "76", + "display": "GP PRACTICE" + } + ] + } + ], + "name": "HALLGARTH SURGERY", + "address": [ + { + "use": "work", + "type": "both", + "line": [ + "HALLGARTH SURGERY", + "CHEAPSIDE" + ], + "city": "SHILDON", + "district": "COUNTY DURHAM", + "postalCode": "DL4 2HP" + } + ], + "telecom": [ + { + "system": "phone", + "value": "0115 9737320", + "use": "work" + } + ], + "partOf": { + "identifier": { + "system": "https://fhir.nhs.uk/Id/ods-organization-code", + "value": "84H" + }, + "display": "NHS COUNTY DURHAM CCG" + } + } + }, + { + "fullUrl": "urn:uuid:28828c55-8fa7-42d7-916f-fcf076e0c10e", + "resource": { + "resourceType": "Provenance", + "id": "28828c55-8fa7-42d7-916f-fcf076e0c10e", + "target": [ + { + "reference": "urn:uuid:a54219b8-f741-4c47-b662-e4f8dfa49ab6" + } + ], + "recorded": "2021-02-11T16:35:38+00:00", + "agent": [ + { + "who": { + "reference": "urn:uuid:56166769-c1c4-4d07-afa8-132b5dfca666" + } + } + ], + "signature": [ + { + "type": [ + { + "system": "urn:iso-astm:E1762-95:2013", + "code": "1.2.840.10065.1.12.1.1" + } + ], + "when": "2021-04-20T05:45:35+00:00", + "who": { + "reference": "urn:uuid:56166769-c1c4-4d07-afa8-132b5dfca666" + }, + "data": "DQo8U2lnbmF0dXJlIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwLzA5L3htbGRzaWcjIj4NCiAgICA8U2lnbmVkSW5mbz48Q2Fub25pY2FsaXphdGlvbk1ldGhvZCBBbGdvcml0aG09Imh0dHA6Ly93d3cudzMub3JnLzIwMDEvMTAveG1sLWV4Yy1jMTRuIyI+PC9DYW5vbmljYWxpemF0aW9uTWV0aG9kPjxTaWduYXR1cmVNZXRob2QgQWxnb3JpdGhtPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwLzA5L3htbGRzaWcjcnNhLXNoYTEiPjwvU2lnbmF0dXJlTWV0aG9kPjxSZWZlcmVuY2U+PFRyYW5zZm9ybXM+PFRyYW5zZm9ybSBBbGdvcml0aG09Imh0dHA6Ly93d3cudzMub3JnLzIwMDEvMTAveG1sLWV4Yy1jMTRuIyI+PC9UcmFuc2Zvcm0+PC9UcmFuc2Zvcm1zPjxEaWdlc3RNZXRob2QgQWxnb3JpdGhtPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwLzA5L3htbGRzaWcjc2hhMSI+PC9EaWdlc3RNZXRob2Q+PERpZ2VzdFZhbHVlPjVWem5UWG9FUmpDamRGQ3NTaUljcHIvNDJDUT08L0RpZ2VzdFZhbHVlPjwvUmVmZXJlbmNlPjwvU2lnbmVkSW5mbz4NCiAgICA8U2lnbmF0dXJlVmFsdWU+ZjFsSHpFSzRMazRNQUR2UVhOSEdhaUVlYkdtM3BXeFl5MzR3dE5kYzZ2Lzd2QnNTdXMvcUhqU3Q3YkFHMVpCa2JidTVsZjRFN2tvbHBCVDBUMFVKK3RUQ1hxaWxleVRRanNEMG9iQ1QwZ0xPYk9uL2VXZk11REQ5MUI3WExvdmVONzlzK3VtVXI5Y0JCTVdlNWIxQnZpWjUyaGVhNlJnU3hXR3NGMVJ0NXFFPTwvU2lnbmF0dXJlVmFsdWU+DQogICAgPEtleUluZm8+DQogICAgICAgIDxYNTA5RGF0YT4NCiAgICAgICAgICAgIDxYNTA5Q2VydGlmaWNhdGU+TUlJRHVEQ0NBcUNnQXdJQkFnSUVYY210SHpBTkJna3Foa2lHOXcwQkFRc0ZBREEyTVF3d0NnWURWUVFLRXdOdWFITXhDekFKQmdOVkJBc1RBa05CTVJrd0Z3WURWUVFERXhCT1NGTWdTVTVVSUV4bGRtVnNJREZFTUI0WERUSXdNVEF5TWpFd01qRTFOVm9YRFRJeU1UQXlNakV3TlRFMU5Wb3dRekVNTUFvR0ExVUVDaE1EYm1oek1ROHdEUVlEVlFRTEV3WlFaVzl3YkdVeElqQWdCZ05WQkFNTUdUVTFOVEkxTXpVeU1URXdPRjlTUVU1RVQwMWZWVk5GVWxFd2daOHdEUVlKS29aSWh2Y05BUUVCQlFBRGdZMEFNSUdKQW9HQkFLdDRzek53N09BSDdBUVJyRGUveEJJbXNNbU1pUzlFc3JUM2EzcC9MaDNicmR6STlhYWpUVVoyYi9jdmJPYTdQZVlkN3UrSzRhMlpkMFhrKzBHRm1ZR3pTVlg2aVlqYmx3cjB2YWkzMXpWN0crbEd2SHhINnBTb0xDd0lDYVpBRndhYmVENU96OTQreUEzYVdOV3RHVjBEZmg5cXdIM1pGQ0lNUnN2ZXJOMXBBZ01CQUFHamdnRkRNSUlCUHpBT0JnTlZIUThCQWY4RUJBTUNCa0F3WlFZRFZSMGdBUUgvQkZzd1dUQlhCZ3NxaGpvQWlYdG1BQU1DQURCSU1FWUdDQ3NHQVFVRkJ3SUJGanBvZEhSd2N6b3ZMM0JyYVM1dWFITXVkV3N2WTJWeWRHbG1hV05oZEdWZmNHOXNhV05wWlhNdlkyOXVkR1Z1ZEY5amIyMXRhWFJ0Wlc1ME1ETUdBMVVkSHdRc01Db3dLS0Ftb0NTR0ltaDBkSEE2THk5amNtd3VibWh6TG5WckwybHVkQzh4WkM5amNteGpNeTVqY213d0t3WURWUjBRQkNRd0lvQVBNakF5TURFd01qSXhNREl4TlRWYWdROHlNREl5TURNeE56RXdOVEUxTlZvd0h3WURWUjBqQkJnd0ZvQVVvSllmZ1lUTlBkNkVVS0w2UUxJekh4WTVQRkl3SFFZRFZSME9CQllFRkx0eXZZU3lhcWc2MEFFVVpneGswd3JqUkpjK01Ba0dBMVVkRXdRQ01BQXdHUVlKS29aSWh2WjlCMEVBQkF3d0Noc0VWamd1TXdNQ0JMQXdEUVlKS29aSWh2Y05BUUVMQlFBRGdnRUJBQmN6eThCOGp1UHBJZmFUTkZjeHJDMjJhQ1gveFlabWhyTC9OdklCQWFYMUc1aGppd21rR0tFMmhSVElyNjdQeFp4bVhzSnhpZ1JCTUhQbEkrbFkvK29rekgwR2k3YjVicWx3N3B4R0lnSk8wMDB3OHBGc3ZvOXc0MklZaEhvZHN2bkRWU3hoTVQwSjQ2UWhrOXNvRTBMam9FVUxLUVBQbFlHa2UvR2wzbTE3SXRGWXdPYlFIMGZNRXdtaXFCeWVJZno3Z1NjY096TDVjSXA2UGNaVE9qbzJJcVFwZ0VtaGpPY1JJbkVxQU5pdFNkam9pSkFKenBhYVpqWVRSZEhVWDdpN2FqRWlING05MW5GVys0QXFrTnR0bGI0V2NHS3NTbVdnZktLaGVGNElvWktNRTgweGVyU2dNeTh2dGpMT0JKQ0dYejB3TEdtUXVSbXhNVHE4OHE0PTwvWDUwOUNlcnRpZmljYXRlPg0KICAgICAgICA8L1g1MDlEYXRhPg0KICAgIDwvS2V5SW5mbz4NCjwvU2lnbmF0dXJlPg0K" + } + ] + } + } + ] +} diff --git a/src/test/resources/examples/full_examples/primary-care/acute/nominated-pharmacy/medical-prescriber/cancellations/5-Process-Request-Send-200_OK.json b/src/test/resources/examples/full_examples/primary-care/acute/nominated-pharmacy/medical-prescriber/cancellations/5-Process-Request-Send-200_OK.json new file mode 100644 index 00000000..1e9ec072 --- /dev/null +++ b/src/test/resources/examples/full_examples/primary-care/acute/nominated-pharmacy/medical-prescriber/cancellations/5-Process-Request-Send-200_OK.json @@ -0,0 +1,379 @@ +{ + "resourceType": "Bundle", + "id": "0cb82cfa-76c8-4fb2-a08e-bf0e326e5487", + "identifier": { + "system": "https://tools.ietf.org/html/rfc4122", + "value": "92b760c2-85ec-4158-8132-a55e4ec9f751" + }, + "type": "message", + "entry": [ + { + "fullUrl": "urn:uuid:17773b27-427e-4940-8c16-64cdac715001", + "resource": { + "resourceType": "MessageHeader", + "eventCoding": { + "system": "https://fhir.nhs.uk/CodeSystem/message-event", + "code": "prescription-order", + "display": "Prescription Order" + }, + "sender": { + "identifier": { + "system": "https://fhir.nhs.uk/Id/ods-organization-code", + "value": "A83008" + }, + "display": "HALLGARTH SURGERY" + }, + "source": { + "endpoint": "https://directory.spineservices.nhs.uk/STU3/Organization/A83008" + }, + "destination": [ + { + "endpoint": "https://sandbox.api.service.nhs.uk/electronic-prescriptions/$post-message", + "receiver": { + "identifier": { + "system": "https://fhir.nhs.uk/Id/ods-organization-code", + "value": "FCG71" + } + } + } + ], + "focus": [ + { + "reference": "urn:uuid:56166769-c1c4-4d07-afa8-132b5dfca666" + }, + { + "reference": "urn:uuid:a54219b8-f741-4c47-b662-e4f8dfa49ab6" + } + ] + } + }, + { + "fullUrl": "urn:uuid:a54219b8-f741-4c47-b662-e4f8dfa49ab6", + "resource": { + "resourceType": "MedicationRequest", + "extension": [ + { + "url": "https://fhir.nhs.uk/StructureDefinition/Extension-DM-PrescriptionType", + "valueCoding": { + "system": "https://fhir.nhs.uk/CodeSystem/prescription-type", + "code": "0101", + "display": "Primary Care Prescriber - Medical Prescriber" + } + } + ], + "identifier": [ + { + "system": "https://fhir.nhs.uk/Id/prescription-order-item-number", + "value": "299c610b-f4f1-4eac-a7d7-4fb6b0556e11" + } + ], + "status": "active", + "intent": "order", + "category": [ + { + "coding": [ + { + "system": "http://terminology.hl7.org/CodeSystem/medicationrequest-category", + "code": "community", + "display": "Community" + } + ] + } + ], + "medicationCodeableConcept": { + "coding": [ + { + "system": "http://snomed.info/sct", + "code": "322237000", + "display": "Paracetamol 500mg soluble tablets" + } + ] + }, + "subject": { + "reference": "urn:uuid:78d3c2eb-009e-4ec8-a358-b042954aa9b2" + }, + "requester": { + "reference": "urn:uuid:56166769-c1c4-4d07-afa8-132b5dfca666" + }, + "groupIdentifier": { + "extension": [ + { + "url": "https://fhir.nhs.uk/StructureDefinition/Extension-DM-PrescriptionId", + "valueIdentifier": { + "system": "https://fhir.nhs.uk/Id/prescription", + "value": "18a69c7a-0f65-47e3-a02c-4dedb930c695" + } + } + ], + "system": "https://fhir.nhs.uk/Id/prescription-order-number", + "value": "B29396-A83008-4FE9AK" + }, + "courseOfTherapyType": { + "coding": [ + { + "system": "http://terminology.hl7.org/CodeSystem/medicationrequest-course-of-therapy", + "code": "acute", + "display": "Short course (acute) therapy" + } + ] + }, + "dosageInstruction": [ + { + "text": "4 times a day - Oral", + "timing": { + "repeat": { + "frequency": 4, + "period": 1, + "periodUnit": "d" + } + }, + "route": { + "coding": [ + { + "system": "http://snomed.info/sct", + "code": "26643006", + "display": "Oral" + } + ] + } + } + ], + "dispenseRequest": { + "extension": [ + { + "url": "https://fhir.nhs.uk/StructureDefinition/Extension-DM-PerformerSiteType", + "valueCoding": { + "system": "https://fhir.nhs.uk/CodeSystem/dispensing-site-preference", + "code": "P1" + } + } + ], + "validityPeriod": { + "start": "2021-04-20", + "end": "2021-05-18" + }, + "expectedSupplyDuration": { + "value": 30, + "unit": "day", + "system": "http://unitsofmeasure.org", + "code": "d" + }, + "performer": { + "identifier": { + "system": "https://fhir.nhs.uk/Id/ods-organization-code", + "value": "FCG71" + } + }, + "quantity": { + "value": 100, + "unit": "tablet", + "system": "http://snomed.info/sct", + "code": "428673006" + } + }, + "substitution": { + "allowedBoolean": false + } + } + }, + { + "fullUrl": "urn:uuid:78d3c2eb-009e-4ec8-a358-b042954aa9b2", + "resource": { + "resourceType": "Patient", + "identifier": [ + { + "system": "https://fhir.nhs.uk/Id/nhs-number", + "value": "9990548609" + } + ], + "name": [ + { + "use": "usual", + "family": "XXTESTPATIENT-TGNP", + "given": [ + "DONOTUSE" + ], + "prefix": [ + "MR" + ] + } + ], + "gender": "male", + "birthDate": "1932-01-06", + "address": [ + { + "use": "home", + "line": [ + "1 Trevelyan Square", + "Boar Lane", + "Leeds", + "West Yorkshire" + ], + "postalCode": "LS1 6AE" + } + ], + "generalPractitioner": [ + { + "identifier": { + "system": "https://fhir.nhs.uk/Id/ods-organization-code", + "value": "A83008" + } + } + ] + } + }, + { + "fullUrl": "urn:uuid:56166769-c1c4-4d07-afa8-132b5dfca666", + "resource": { + "resourceType": "PractitionerRole", + "identifier": [ + { + "system": "https://fhir.nhs.uk/Id/sds-role-profile-id", + "value": "200102238987" + } + ], + "practitioner": { + "reference": "urn:uuid:a8c85454-f8cb-498d-9629-78e2cb5fa47a" + }, + "organization": { + "reference": "urn:uuid:3b4b03a5-52ba-4ba6-9b82-70350aa109d8" + }, + "code": [ + { + "coding": [ + { + "system": "https://fhir.nhs.uk/CodeSystem/NHSDigital-SDS-JobRoleCode", + "code": "S8000:G8000:R8000", + "display": "Clinical Practitioner Access Role" + } + ] + } + ], + "telecom": [ + { + "system": "phone", + "value": "01234567890", + "use": "work" + } + ] + } + }, + { + "fullUrl": "urn:uuid:a8c85454-f8cb-498d-9629-78e2cb5fa47a", + "resource": { + "resourceType": "Practitioner", + "identifier": [ + { + "system": "https://fhir.nhs.uk/Id/sds-user-id", + "value": "555086689106" + }, + { + "system": "https://fhir.hl7.org.uk/Id/gmc-number", + "value": "6095103" + }, + { + "system": "https://fhir.hl7.org.uk/Id/din-number", + "value": "977677" + } + ], + "name": [ + { + "family": "BOIN", + "given": [ + "C" + ], + "prefix": [ + "DR" + ] + } + ] + } + }, + { + "fullUrl": "urn:uuid:3b4b03a5-52ba-4ba6-9b82-70350aa109d8", + "resource": { + "resourceType": "Organization", + "identifier": [ + { + "system": "https://fhir.nhs.uk/Id/ods-organization-code", + "value": "A83008" + } + ], + "type": [ + { + "coding": [ + { + "system": "https://fhir.nhs.uk/CodeSystem/organisation-role", + "code": "76", + "display": "GP PRACTICE" + } + ] + } + ], + "name": "HALLGARTH SURGERY", + "address": [ + { + "use": "work", + "type": "both", + "line": [ + "HALLGARTH SURGERY", + "CHEAPSIDE" + ], + "city": "SHILDON", + "district": "COUNTY DURHAM", + "postalCode": "DL4 2HP" + } + ], + "telecom": [ + { + "system": "phone", + "value": "0115 9737320", + "use": "work" + } + ], + "partOf": { + "identifier": { + "system": "https://fhir.nhs.uk/Id/ods-organization-code", + "value": "84H" + }, + "display": "NHS COUNTY DURHAM CCG" + } + } + }, + { + "fullUrl": "urn:uuid:28828c55-8fa7-42d7-916f-fcf076e0c10e", + "resource": { + "resourceType": "Provenance", + "id": "28828c55-8fa7-42d7-916f-fcf076e0c10e", + "target": [ + { + "reference": "urn:uuid:a54219b8-f741-4c47-b662-e4f8dfa49ab6" + } + ], + "recorded": "2021-02-11T16:35:38+00:00", + "agent": [ + { + "who": { + "reference": "urn:uuid:56166769-c1c4-4d07-afa8-132b5dfca666" + } + } + ], + "signature": [ + { + "type": [ + { + "system": "urn:iso-astm:E1762-95:2013", + "code": "1.2.840.10065.1.12.1.1" + } + ], + "when": "2021-04-20T05:45:35+00:00", + "who": { + "reference": "urn:uuid:56166769-c1c4-4d07-afa8-132b5dfca666" + }, + "data": "DQo8U2lnbmF0dXJlIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwLzA5L3htbGRzaWcjIj4NCiAgICA8U2lnbmVkSW5mbz48Q2Fub25pY2FsaXphdGlvbk1ldGhvZCBBbGdvcml0aG09Imh0dHA6Ly93d3cudzMub3JnLzIwMDEvMTAveG1sLWV4Yy1jMTRuIyI+PC9DYW5vbmljYWxpemF0aW9uTWV0aG9kPjxTaWduYXR1cmVNZXRob2QgQWxnb3JpdGhtPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwLzA5L3htbGRzaWcjcnNhLXNoYTEiPjwvU2lnbmF0dXJlTWV0aG9kPjxSZWZlcmVuY2U+PFRyYW5zZm9ybXM+PFRyYW5zZm9ybSBBbGdvcml0aG09Imh0dHA6Ly93d3cudzMub3JnLzIwMDEvMTAveG1sLWV4Yy1jMTRuIyI+PC9UcmFuc2Zvcm0+PC9UcmFuc2Zvcm1zPjxEaWdlc3RNZXRob2QgQWxnb3JpdGhtPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwLzA5L3htbGRzaWcjc2hhMSI+PC9EaWdlc3RNZXRob2Q+PERpZ2VzdFZhbHVlPjVWem5UWG9FUmpDamRGQ3NTaUljcHIvNDJDUT08L0RpZ2VzdFZhbHVlPjwvUmVmZXJlbmNlPjwvU2lnbmVkSW5mbz4NCiAgICA8U2lnbmF0dXJlVmFsdWU+ZjFsSHpFSzRMazRNQUR2UVhOSEdhaUVlYkdtM3BXeFl5MzR3dE5kYzZ2Lzd2QnNTdXMvcUhqU3Q3YkFHMVpCa2JidTVsZjRFN2tvbHBCVDBUMFVKK3RUQ1hxaWxleVRRanNEMG9iQ1QwZ0xPYk9uL2VXZk11REQ5MUI3WExvdmVONzlzK3VtVXI5Y0JCTVdlNWIxQnZpWjUyaGVhNlJnU3hXR3NGMVJ0NXFFPTwvU2lnbmF0dXJlVmFsdWU+DQogICAgPEtleUluZm8+DQogICAgICAgIDxYNTA5RGF0YT4NCiAgICAgICAgICAgIDxYNTA5Q2VydGlmaWNhdGU+TUlJRHVEQ0NBcUNnQXdJQkFnSUVYY210SHpBTkJna3Foa2lHOXcwQkFRc0ZBREEyTVF3d0NnWURWUVFLRXdOdWFITXhDekFKQmdOVkJBc1RBa05CTVJrd0Z3WURWUVFERXhCT1NGTWdTVTVVSUV4bGRtVnNJREZFTUI0WERUSXdNVEF5TWpFd01qRTFOVm9YRFRJeU1UQXlNakV3TlRFMU5Wb3dRekVNTUFvR0ExVUVDaE1EYm1oek1ROHdEUVlEVlFRTEV3WlFaVzl3YkdVeElqQWdCZ05WQkFNTUdUVTFOVEkxTXpVeU1URXdPRjlTUVU1RVQwMWZWVk5GVWxFd2daOHdEUVlKS29aSWh2Y05BUUVCQlFBRGdZMEFNSUdKQW9HQkFLdDRzek53N09BSDdBUVJyRGUveEJJbXNNbU1pUzlFc3JUM2EzcC9MaDNicmR6STlhYWpUVVoyYi9jdmJPYTdQZVlkN3UrSzRhMlpkMFhrKzBHRm1ZR3pTVlg2aVlqYmx3cjB2YWkzMXpWN0crbEd2SHhINnBTb0xDd0lDYVpBRndhYmVENU96OTQreUEzYVdOV3RHVjBEZmg5cXdIM1pGQ0lNUnN2ZXJOMXBBZ01CQUFHamdnRkRNSUlCUHpBT0JnTlZIUThCQWY4RUJBTUNCa0F3WlFZRFZSMGdBUUgvQkZzd1dUQlhCZ3NxaGpvQWlYdG1BQU1DQURCSU1FWUdDQ3NHQVFVRkJ3SUJGanBvZEhSd2N6b3ZMM0JyYVM1dWFITXVkV3N2WTJWeWRHbG1hV05oZEdWZmNHOXNhV05wWlhNdlkyOXVkR1Z1ZEY5amIyMXRhWFJ0Wlc1ME1ETUdBMVVkSHdRc01Db3dLS0Ftb0NTR0ltaDBkSEE2THk5amNtd3VibWh6TG5WckwybHVkQzh4WkM5amNteGpNeTVqY213d0t3WURWUjBRQkNRd0lvQVBNakF5TURFd01qSXhNREl4TlRWYWdROHlNREl5TURNeE56RXdOVEUxTlZvd0h3WURWUjBqQkJnd0ZvQVVvSllmZ1lUTlBkNkVVS0w2UUxJekh4WTVQRkl3SFFZRFZSME9CQllFRkx0eXZZU3lhcWc2MEFFVVpneGswd3JqUkpjK01Ba0dBMVVkRXdRQ01BQXdHUVlKS29aSWh2WjlCMEVBQkF3d0Noc0VWamd1TXdNQ0JMQXdEUVlKS29aSWh2Y05BUUVMQlFBRGdnRUJBQmN6eThCOGp1UHBJZmFUTkZjeHJDMjJhQ1gveFlabWhyTC9OdklCQWFYMUc1aGppd21rR0tFMmhSVElyNjdQeFp4bVhzSnhpZ1JCTUhQbEkrbFkvK29rekgwR2k3YjVicWx3N3B4R0lnSk8wMDB3OHBGc3ZvOXc0MklZaEhvZHN2bkRWU3hoTVQwSjQ2UWhrOXNvRTBMam9FVUxLUVBQbFlHa2UvR2wzbTE3SXRGWXdPYlFIMGZNRXdtaXFCeWVJZno3Z1NjY096TDVjSXA2UGNaVE9qbzJJcVFwZ0VtaGpPY1JJbkVxQU5pdFNkam9pSkFKenBhYVpqWVRSZEhVWDdpN2FqRWlING05MW5GVys0QXFrTnR0bGI0V2NHS3NTbVdnZktLaGVGNElvWktNRTgweGVyU2dNeTh2dGpMT0JKQ0dYejB3TEdtUXVSbXhNVHE4OHE0PTwvWDUwOUNlcnRpZmljYXRlPg0KICAgICAgICA8L1g1MDlEYXRhPg0KICAgIDwvS2V5SW5mbz4NCjwvU2lnbmF0dXJlPg0K" + } + ] + } + } + ] +} diff --git a/src/test/resources/examples/full_examples/primary-care/acute/nominated-pharmacy/medical-prescriber/cancellations/6-Process-Request-Cancel-200_OK.json b/src/test/resources/examples/full_examples/primary-care/acute/nominated-pharmacy/medical-prescriber/cancellations/6-Process-Request-Cancel-200_OK.json new file mode 100644 index 00000000..6580b5af --- /dev/null +++ b/src/test/resources/examples/full_examples/primary-care/acute/nominated-pharmacy/medical-prescriber/cancellations/6-Process-Request-Cancel-200_OK.json @@ -0,0 +1,388 @@ +{ + "resourceType": "Bundle", + "id": "0cb82cfa-76c8-4fb2-a08e-bf0e326e5487", + "identifier": { + "system": "https://tools.ietf.org/html/rfc4122", + "value": "e4b68f98-df8d-4a85-b878-39b13f214f42" + }, + "type": "message", + "entry": [ + { + "fullUrl": "urn:uuid:17773b27-427e-4940-8c16-64cdac715001", + "resource": { + "resourceType": "MessageHeader", + "eventCoding": { + "system": "https://fhir.nhs.uk/CodeSystem/message-event", + "code": "prescription-order-update", + "display": "Prescription Order Update" + }, + "sender": { + "identifier": { + "system": "https://fhir.nhs.uk/Id/ods-organization-code", + "value": "A83008" + }, + "display": "HALLGARTH SURGERY" + }, + "source": { + "endpoint": "https://directory.spineservices.nhs.uk/STU3/Organization/A83008" + }, + "destination": [ + { + "endpoint": "https://sandbox.api.service.nhs.uk/electronic-prescriptions/$post-message", + "receiver": { + "identifier": { + "system": "https://fhir.nhs.uk/Id/ods-organization-code", + "value": "FCG71" + } + } + } + ], + "focus": [ + { + "reference": "urn:uuid:56166769-c1c4-4d07-afa8-132b5dfca666" + }, + { + "reference": "urn:uuid:a54219b8-f741-4c47-b662-e4f8dfa49ab6" + } + ] + } + }, + { + "fullUrl": "urn:uuid:a54219b8-f741-4c47-b662-e4f8dfa49ab6", + "resource": { + "resourceType": "MedicationRequest", + "extension": [ + { + "url": "https://fhir.nhs.uk/StructureDefinition/Extension-DM-PrescriptionType", + "valueCoding": { + "system": "https://fhir.nhs.uk/CodeSystem/prescription-type", + "code": "0101", + "display": "Primary Care Prescriber - Medical Prescriber" + } + } + ], + "identifier": [ + { + "system": "https://fhir.nhs.uk/Id/prescription-order-item-number", + "value": "299c610b-f4f1-4eac-a7d7-4fb6b0556e11" + } + ], + "status": "cancelled", + "statusReason": { + "coding": [ + { + "system": "https://fhir.nhs.uk/CodeSystem/medicationrequest-status-reason", + "code": "0006", + "display": "At the Pharmacist's request" + } + ] + }, + "intent": "order", + "category": [ + { + "coding": [ + { + "system": "http://terminology.hl7.org/CodeSystem/medicationrequest-category", + "code": "community", + "display": "Community" + } + ] + } + ], + "medicationCodeableConcept": { + "coding": [ + { + "system": "http://snomed.info/sct", + "code": "322237000", + "display": "Paracetamol 500mg soluble tablets" + } + ] + }, + "subject": { + "reference": "urn:uuid:78d3c2eb-009e-4ec8-a358-b042954aa9b2" + }, + "requester": { + "reference": "urn:uuid:56166769-c1c4-4d07-afa8-132b5dfca666" + }, + "groupIdentifier": { + "extension": [ + { + "url": "https://fhir.nhs.uk/StructureDefinition/Extension-DM-PrescriptionId", + "valueIdentifier": { + "system": "https://fhir.nhs.uk/Id/prescription", + "value": "c49a07c9-294f-4d66-bbc9-5dc5b8bff422" + } + } + ], + "system": "https://fhir.nhs.uk/Id/prescription-order-number", + "value": "507FE8-A83008-4A859+" + }, + "courseOfTherapyType": { + "coding": [ + { + "system": "http://terminology.hl7.org/CodeSystem/medicationrequest-course-of-therapy", + "code": "acute", + "display": "Short course (acute) therapy" + } + ] + }, + "dosageInstruction": [ + { + "text": "4 times a day - Oral", + "timing": { + "repeat": { + "frequency": 4, + "period": 1, + "periodUnit": "d" + } + }, + "route": { + "coding": [ + { + "system": "http://snomed.info/sct", + "code": "26643006", + "display": "Oral" + } + ] + } + } + ], + "dispenseRequest": { + "extension": [ + { + "url": "https://fhir.nhs.uk/StructureDefinition/Extension-DM-PerformerSiteType", + "valueCoding": { + "system": "https://fhir.nhs.uk/CodeSystem/dispensing-site-preference", + "code": "P1" + } + } + ], + "validityPeriod": { + "start": "2021-04-20", + "end": "2021-05-18" + }, + "expectedSupplyDuration": { + "value": 30, + "unit": "day", + "system": "http://unitsofmeasure.org", + "code": "d" + }, + "performer": { + "identifier": { + "system": "https://fhir.nhs.uk/Id/ods-organization-code", + "value": "FCG71" + } + }, + "quantity": { + "value": 100, + "unit": "tablet", + "system": "http://snomed.info/sct", + "code": "428673006" + } + }, + "substitution": { + "allowedBoolean": false + } + } + }, + { + "fullUrl": "urn:uuid:78d3c2eb-009e-4ec8-a358-b042954aa9b2", + "resource": { + "resourceType": "Patient", + "identifier": [ + { + "system": "https://fhir.nhs.uk/Id/nhs-number", + "value": "9990548609" + } + ], + "name": [ + { + "use": "usual", + "family": "XXTESTPATIENT-TGNP", + "given": [ + "DONOTUSE" + ], + "prefix": [ + "MR" + ] + } + ], + "gender": "male", + "birthDate": "1932-01-06", + "address": [ + { + "use": "home", + "line": [ + "1 Trevelyan Square", + "Boar Lane", + "Leeds", + "West Yorkshire" + ], + "postalCode": "LS1 6AE" + } + ], + "generalPractitioner": [ + { + "identifier": { + "system": "https://fhir.nhs.uk/Id/ods-organization-code", + "value": "A83008" + } + } + ] + } + }, + { + "fullUrl": "urn:uuid:56166769-c1c4-4d07-afa8-132b5dfca666", + "resource": { + "resourceType": "PractitionerRole", + "identifier": [ + { + "system": "https://fhir.nhs.uk/Id/sds-role-profile-id", + "value": "200102238987" + } + ], + "practitioner": { + "reference": "urn:uuid:a8c85454-f8cb-498d-9629-78e2cb5fa47a" + }, + "organization": { + "reference": "urn:uuid:3b4b03a5-52ba-4ba6-9b82-70350aa109d8" + }, + "code": [ + { + "coding": [ + { + "system": "https://fhir.nhs.uk/CodeSystem/NHSDigital-SDS-JobRoleCode", + "code": "S8000:G8000:R8000", + "display": "Clinical Practitioner Access Role" + } + ] + } + ], + "telecom": [ + { + "system": "phone", + "value": "01234567890", + "use": "work" + } + ] + } + }, + { + "fullUrl": "urn:uuid:a8c85454-f8cb-498d-9629-78e2cb5fa47a", + "resource": { + "resourceType": "Practitioner", + "identifier": [ + { + "system": "https://fhir.nhs.uk/Id/sds-user-id", + "value": "555086689106" + }, + { + "system": "https://fhir.hl7.org.uk/Id/gmc-number", + "value": "6095103" + }, + { + "system": "https://fhir.hl7.org.uk/Id/din-number", + "value": "977677" + } + ], + "name": [ + { + "family": "BOIN", + "given": [ + "C" + ], + "prefix": [ + "DR" + ] + } + ] + } + }, + { + "fullUrl": "urn:uuid:3b4b03a5-52ba-4ba6-9b82-70350aa109d8", + "resource": { + "resourceType": "Organization", + "identifier": [ + { + "system": "https://fhir.nhs.uk/Id/ods-organization-code", + "value": "A83008" + } + ], + "type": [ + { + "coding": [ + { + "system": "https://fhir.nhs.uk/CodeSystem/organisation-role", + "code": "76", + "display": "GP PRACTICE" + } + ] + } + ], + "name": "HALLGARTH SURGERY", + "address": [ + { + "use": "work", + "type": "both", + "line": [ + "HALLGARTH SURGERY", + "CHEAPSIDE" + ], + "city": "SHILDON", + "district": "COUNTY DURHAM", + "postalCode": "DL4 2HP" + } + ], + "telecom": [ + { + "system": "phone", + "value": "0115 9737320", + "use": "work" + } + ], + "partOf": { + "identifier": { + "system": "https://fhir.nhs.uk/Id/ods-organization-code", + "value": "84H" + }, + "display": "NHS COUNTY DURHAM CCG" + } + } + }, + { + "fullUrl": "urn:uuid:28828c55-8fa7-42d7-916f-fcf076e0c10e", + "resource": { + "resourceType": "Provenance", + "id": "28828c55-8fa7-42d7-916f-fcf076e0c10e", + "target": [ + { + "reference": "urn:uuid:a54219b8-f741-4c47-b662-e4f8dfa49ab6" + } + ], + "recorded": "2021-02-11T16:35:38+00:00", + "agent": [ + { + "who": { + "reference": "urn:uuid:56166769-c1c4-4d07-afa8-132b5dfca666" + } + } + ], + "signature": [ + { + "type": [ + { + "system": "urn:iso-astm:E1762-95:2013", + "code": "1.2.840.10065.1.12.1.1" + } + ], + "when": "2021-04-20T05:45:37+00:00", + "who": { + "reference": "urn:uuid:56166769-c1c4-4d07-afa8-132b5dfca666" + }, + "data": "DQo8U2lnbmF0dXJlIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwLzA5L3htbGRzaWcjIj4NCiAgICA8U2lnbmVkSW5mbz48Q2Fub25pY2FsaXphdGlvbk1ldGhvZCBBbGdvcml0aG09Imh0dHA6Ly93d3cudzMub3JnLzIwMDEvMTAveG1sLWV4Yy1jMTRuIyI+PC9DYW5vbmljYWxpemF0aW9uTWV0aG9kPjxTaWduYXR1cmVNZXRob2QgQWxnb3JpdGhtPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwLzA5L3htbGRzaWcjcnNhLXNoYTEiPjwvU2lnbmF0dXJlTWV0aG9kPjxSZWZlcmVuY2U+PFRyYW5zZm9ybXM+PFRyYW5zZm9ybSBBbGdvcml0aG09Imh0dHA6Ly93d3cudzMub3JnLzIwMDEvMTAveG1sLWV4Yy1jMTRuIyI+PC9UcmFuc2Zvcm0+PC9UcmFuc2Zvcm1zPjxEaWdlc3RNZXRob2QgQWxnb3JpdGhtPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwLzA5L3htbGRzaWcjc2hhMSI+PC9EaWdlc3RNZXRob2Q+PERpZ2VzdFZhbHVlPjVWem5UWG9FUmpDamRGQ3NTaUljcHIvNDJDUT08L0RpZ2VzdFZhbHVlPjwvUmVmZXJlbmNlPjwvU2lnbmVkSW5mbz4NCiAgICA8U2lnbmF0dXJlVmFsdWU+ZjFsSHpFSzRMazRNQUR2UVhOSEdhaUVlYkdtM3BXeFl5MzR3dE5kYzZ2Lzd2QnNTdXMvcUhqU3Q3YkFHMVpCa2JidTVsZjRFN2tvbHBCVDBUMFVKK3RUQ1hxaWxleVRRanNEMG9iQ1QwZ0xPYk9uL2VXZk11REQ5MUI3WExvdmVONzlzK3VtVXI5Y0JCTVdlNWIxQnZpWjUyaGVhNlJnU3hXR3NGMVJ0NXFFPTwvU2lnbmF0dXJlVmFsdWU+DQogICAgPEtleUluZm8+DQogICAgICAgIDxYNTA5RGF0YT4NCiAgICAgICAgICAgIDxYNTA5Q2VydGlmaWNhdGU+TUlJRHVEQ0NBcUNnQXdJQkFnSUVYY210SHpBTkJna3Foa2lHOXcwQkFRc0ZBREEyTVF3d0NnWURWUVFLRXdOdWFITXhDekFKQmdOVkJBc1RBa05CTVJrd0Z3WURWUVFERXhCT1NGTWdTVTVVSUV4bGRtVnNJREZFTUI0WERUSXdNVEF5TWpFd01qRTFOVm9YRFRJeU1UQXlNakV3TlRFMU5Wb3dRekVNTUFvR0ExVUVDaE1EYm1oek1ROHdEUVlEVlFRTEV3WlFaVzl3YkdVeElqQWdCZ05WQkFNTUdUVTFOVEkxTXpVeU1URXdPRjlTUVU1RVQwMWZWVk5GVWxFd2daOHdEUVlKS29aSWh2Y05BUUVCQlFBRGdZMEFNSUdKQW9HQkFLdDRzek53N09BSDdBUVJyRGUveEJJbXNNbU1pUzlFc3JUM2EzcC9MaDNicmR6STlhYWpUVVoyYi9jdmJPYTdQZVlkN3UrSzRhMlpkMFhrKzBHRm1ZR3pTVlg2aVlqYmx3cjB2YWkzMXpWN0crbEd2SHhINnBTb0xDd0lDYVpBRndhYmVENU96OTQreUEzYVdOV3RHVjBEZmg5cXdIM1pGQ0lNUnN2ZXJOMXBBZ01CQUFHamdnRkRNSUlCUHpBT0JnTlZIUThCQWY4RUJBTUNCa0F3WlFZRFZSMGdBUUgvQkZzd1dUQlhCZ3NxaGpvQWlYdG1BQU1DQURCSU1FWUdDQ3NHQVFVRkJ3SUJGanBvZEhSd2N6b3ZMM0JyYVM1dWFITXVkV3N2WTJWeWRHbG1hV05oZEdWZmNHOXNhV05wWlhNdlkyOXVkR1Z1ZEY5amIyMXRhWFJ0Wlc1ME1ETUdBMVVkSHdRc01Db3dLS0Ftb0NTR0ltaDBkSEE2THk5amNtd3VibWh6TG5WckwybHVkQzh4WkM5amNteGpNeTVqY213d0t3WURWUjBRQkNRd0lvQVBNakF5TURFd01qSXhNREl4TlRWYWdROHlNREl5TURNeE56RXdOVEUxTlZvd0h3WURWUjBqQkJnd0ZvQVVvSllmZ1lUTlBkNkVVS0w2UUxJekh4WTVQRkl3SFFZRFZSME9CQllFRkx0eXZZU3lhcWc2MEFFVVpneGswd3JqUkpjK01Ba0dBMVVkRXdRQ01BQXdHUVlKS29aSWh2WjlCMEVBQkF3d0Noc0VWamd1TXdNQ0JMQXdEUVlKS29aSWh2Y05BUUVMQlFBRGdnRUJBQmN6eThCOGp1UHBJZmFUTkZjeHJDMjJhQ1gveFlabWhyTC9OdklCQWFYMUc1aGppd21rR0tFMmhSVElyNjdQeFp4bVhzSnhpZ1JCTUhQbEkrbFkvK29rekgwR2k3YjVicWx3N3B4R0lnSk8wMDB3OHBGc3ZvOXc0MklZaEhvZHN2bkRWU3hoTVQwSjQ2UWhrOXNvRTBMam9FVUxLUVBQbFlHa2UvR2wzbTE3SXRGWXdPYlFIMGZNRXdtaXFCeWVJZno3Z1NjY096TDVjSXA2UGNaVE9qbzJJcVFwZ0VtaGpPY1JJbkVxQU5pdFNkam9pSkFKenBhYVpqWVRSZEhVWDdpN2FqRWlING05MW5GVys0QXFrTnR0bGI0V2NHS3NTbVdnZktLaGVGNElvWktNRTgweGVyU2dNeTh2dGpMT0JKQ0dYejB3TEdtUXVSbXhNVHE4OHE0PTwvWDUwOUNlcnRpZmljYXRlPg0KICAgICAgICA8L1g1MDlEYXRhPg0KICAgIDwvS2V5SW5mbz4NCjwvU2lnbmF0dXJlPg0K" + } + ] + } + } + ] +} diff --git a/src/test/resources/examples/full_examples/primary-care/acute/nominated-pharmacy/medical-prescriber/cancellations/6-Process-Request-Send-200_OK.json b/src/test/resources/examples/full_examples/primary-care/acute/nominated-pharmacy/medical-prescriber/cancellations/6-Process-Request-Send-200_OK.json new file mode 100644 index 00000000..74da5cee --- /dev/null +++ b/src/test/resources/examples/full_examples/primary-care/acute/nominated-pharmacy/medical-prescriber/cancellations/6-Process-Request-Send-200_OK.json @@ -0,0 +1,379 @@ +{ + "resourceType": "Bundle", + "id": "0cb82cfa-76c8-4fb2-a08e-bf0e326e5487", + "identifier": { + "system": "https://tools.ietf.org/html/rfc4122", + "value": "bf059b90-a166-4a0f-8f45-d4be508a4eeb" + }, + "type": "message", + "entry": [ + { + "fullUrl": "urn:uuid:17773b27-427e-4940-8c16-64cdac715001", + "resource": { + "resourceType": "MessageHeader", + "eventCoding": { + "system": "https://fhir.nhs.uk/CodeSystem/message-event", + "code": "prescription-order", + "display": "Prescription Order" + }, + "sender": { + "identifier": { + "system": "https://fhir.nhs.uk/Id/ods-organization-code", + "value": "A83008" + }, + "display": "HALLGARTH SURGERY" + }, + "source": { + "endpoint": "https://directory.spineservices.nhs.uk/STU3/Organization/A83008" + }, + "destination": [ + { + "endpoint": "https://sandbox.api.service.nhs.uk/electronic-prescriptions/$post-message", + "receiver": { + "identifier": { + "system": "https://fhir.nhs.uk/Id/ods-organization-code", + "value": "FCG71" + } + } + } + ], + "focus": [ + { + "reference": "urn:uuid:56166769-c1c4-4d07-afa8-132b5dfca666" + }, + { + "reference": "urn:uuid:a54219b8-f741-4c47-b662-e4f8dfa49ab6" + } + ] + } + }, + { + "fullUrl": "urn:uuid:a54219b8-f741-4c47-b662-e4f8dfa49ab6", + "resource": { + "resourceType": "MedicationRequest", + "extension": [ + { + "url": "https://fhir.nhs.uk/StructureDefinition/Extension-DM-PrescriptionType", + "valueCoding": { + "system": "https://fhir.nhs.uk/CodeSystem/prescription-type", + "code": "0101", + "display": "Primary Care Prescriber - Medical Prescriber" + } + } + ], + "identifier": [ + { + "system": "https://fhir.nhs.uk/Id/prescription-order-item-number", + "value": "299c610b-f4f1-4eac-a7d7-4fb6b0556e11" + } + ], + "status": "active", + "intent": "order", + "category": [ + { + "coding": [ + { + "system": "http://terminology.hl7.org/CodeSystem/medicationrequest-category", + "code": "community", + "display": "Community" + } + ] + } + ], + "medicationCodeableConcept": { + "coding": [ + { + "system": "http://snomed.info/sct", + "code": "322237000", + "display": "Paracetamol 500mg soluble tablets" + } + ] + }, + "subject": { + "reference": "urn:uuid:78d3c2eb-009e-4ec8-a358-b042954aa9b2" + }, + "requester": { + "reference": "urn:uuid:56166769-c1c4-4d07-afa8-132b5dfca666" + }, + "groupIdentifier": { + "extension": [ + { + "url": "https://fhir.nhs.uk/StructureDefinition/Extension-DM-PrescriptionId", + "valueIdentifier": { + "system": "https://fhir.nhs.uk/Id/prescription", + "value": "c49a07c9-294f-4d66-bbc9-5dc5b8bff422" + } + } + ], + "system": "https://fhir.nhs.uk/Id/prescription-order-number", + "value": "507FE8-A83008-4A859+" + }, + "courseOfTherapyType": { + "coding": [ + { + "system": "http://terminology.hl7.org/CodeSystem/medicationrequest-course-of-therapy", + "code": "acute", + "display": "Short course (acute) therapy" + } + ] + }, + "dosageInstruction": [ + { + "text": "4 times a day - Oral", + "timing": { + "repeat": { + "frequency": 4, + "period": 1, + "periodUnit": "d" + } + }, + "route": { + "coding": [ + { + "system": "http://snomed.info/sct", + "code": "26643006", + "display": "Oral" + } + ] + } + } + ], + "dispenseRequest": { + "extension": [ + { + "url": "https://fhir.nhs.uk/StructureDefinition/Extension-DM-PerformerSiteType", + "valueCoding": { + "system": "https://fhir.nhs.uk/CodeSystem/dispensing-site-preference", + "code": "P1" + } + } + ], + "validityPeriod": { + "start": "2021-04-20", + "end": "2021-05-18" + }, + "expectedSupplyDuration": { + "value": 30, + "unit": "day", + "system": "http://unitsofmeasure.org", + "code": "d" + }, + "performer": { + "identifier": { + "system": "https://fhir.nhs.uk/Id/ods-organization-code", + "value": "FCG71" + } + }, + "quantity": { + "value": 100, + "unit": "tablet", + "system": "http://snomed.info/sct", + "code": "428673006" + } + }, + "substitution": { + "allowedBoolean": false + } + } + }, + { + "fullUrl": "urn:uuid:78d3c2eb-009e-4ec8-a358-b042954aa9b2", + "resource": { + "resourceType": "Patient", + "identifier": [ + { + "system": "https://fhir.nhs.uk/Id/nhs-number", + "value": "9990548609" + } + ], + "name": [ + { + "use": "usual", + "family": "XXTESTPATIENT-TGNP", + "given": [ + "DONOTUSE" + ], + "prefix": [ + "MR" + ] + } + ], + "gender": "male", + "birthDate": "1932-01-06", + "address": [ + { + "use": "home", + "line": [ + "1 Trevelyan Square", + "Boar Lane", + "Leeds", + "West Yorkshire" + ], + "postalCode": "LS1 6AE" + } + ], + "generalPractitioner": [ + { + "identifier": { + "system": "https://fhir.nhs.uk/Id/ods-organization-code", + "value": "A83008" + } + } + ] + } + }, + { + "fullUrl": "urn:uuid:56166769-c1c4-4d07-afa8-132b5dfca666", + "resource": { + "resourceType": "PractitionerRole", + "identifier": [ + { + "system": "https://fhir.nhs.uk/Id/sds-role-profile-id", + "value": "200102238987" + } + ], + "practitioner": { + "reference": "urn:uuid:a8c85454-f8cb-498d-9629-78e2cb5fa47a" + }, + "organization": { + "reference": "urn:uuid:3b4b03a5-52ba-4ba6-9b82-70350aa109d8" + }, + "code": [ + { + "coding": [ + { + "system": "https://fhir.nhs.uk/CodeSystem/NHSDigital-SDS-JobRoleCode", + "code": "S8000:G8000:R8000", + "display": "Clinical Practitioner Access Role" + } + ] + } + ], + "telecom": [ + { + "system": "phone", + "value": "01234567890", + "use": "work" + } + ] + } + }, + { + "fullUrl": "urn:uuid:a8c85454-f8cb-498d-9629-78e2cb5fa47a", + "resource": { + "resourceType": "Practitioner", + "identifier": [ + { + "system": "https://fhir.nhs.uk/Id/sds-user-id", + "value": "555086689106" + }, + { + "system": "https://fhir.hl7.org.uk/Id/gmc-number", + "value": "6095103" + }, + { + "system": "https://fhir.hl7.org.uk/Id/din-number", + "value": "977677" + } + ], + "name": [ + { + "family": "BOIN", + "given": [ + "C" + ], + "prefix": [ + "DR" + ] + } + ] + } + }, + { + "fullUrl": "urn:uuid:3b4b03a5-52ba-4ba6-9b82-70350aa109d8", + "resource": { + "resourceType": "Organization", + "identifier": [ + { + "system": "https://fhir.nhs.uk/Id/ods-organization-code", + "value": "A83008" + } + ], + "type": [ + { + "coding": [ + { + "system": "https://fhir.nhs.uk/CodeSystem/organisation-role", + "code": "76", + "display": "GP PRACTICE" + } + ] + } + ], + "name": "HALLGARTH SURGERY", + "address": [ + { + "use": "work", + "type": "both", + "line": [ + "HALLGARTH SURGERY", + "CHEAPSIDE" + ], + "city": "SHILDON", + "district": "COUNTY DURHAM", + "postalCode": "DL4 2HP" + } + ], + "telecom": [ + { + "system": "phone", + "value": "0115 9737320", + "use": "work" + } + ], + "partOf": { + "identifier": { + "system": "https://fhir.nhs.uk/Id/ods-organization-code", + "value": "84H" + }, + "display": "NHS COUNTY DURHAM CCG" + } + } + }, + { + "fullUrl": "urn:uuid:28828c55-8fa7-42d7-916f-fcf076e0c10e", + "resource": { + "resourceType": "Provenance", + "id": "28828c55-8fa7-42d7-916f-fcf076e0c10e", + "target": [ + { + "reference": "urn:uuid:a54219b8-f741-4c47-b662-e4f8dfa49ab6" + } + ], + "recorded": "2021-02-11T16:35:38+00:00", + "agent": [ + { + "who": { + "reference": "urn:uuid:56166769-c1c4-4d07-afa8-132b5dfca666" + } + } + ], + "signature": [ + { + "type": [ + { + "system": "urn:iso-astm:E1762-95:2013", + "code": "1.2.840.10065.1.12.1.1" + } + ], + "when": "2021-04-20T05:45:37+00:00", + "who": { + "reference": "urn:uuid:56166769-c1c4-4d07-afa8-132b5dfca666" + }, + "data": "DQo8U2lnbmF0dXJlIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwLzA5L3htbGRzaWcjIj4NCiAgICA8U2lnbmVkSW5mbz48Q2Fub25pY2FsaXphdGlvbk1ldGhvZCBBbGdvcml0aG09Imh0dHA6Ly93d3cudzMub3JnLzIwMDEvMTAveG1sLWV4Yy1jMTRuIyI+PC9DYW5vbmljYWxpemF0aW9uTWV0aG9kPjxTaWduYXR1cmVNZXRob2QgQWxnb3JpdGhtPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwLzA5L3htbGRzaWcjcnNhLXNoYTEiPjwvU2lnbmF0dXJlTWV0aG9kPjxSZWZlcmVuY2U+PFRyYW5zZm9ybXM+PFRyYW5zZm9ybSBBbGdvcml0aG09Imh0dHA6Ly93d3cudzMub3JnLzIwMDEvMTAveG1sLWV4Yy1jMTRuIyI+PC9UcmFuc2Zvcm0+PC9UcmFuc2Zvcm1zPjxEaWdlc3RNZXRob2QgQWxnb3JpdGhtPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwLzA5L3htbGRzaWcjc2hhMSI+PC9EaWdlc3RNZXRob2Q+PERpZ2VzdFZhbHVlPjVWem5UWG9FUmpDamRGQ3NTaUljcHIvNDJDUT08L0RpZ2VzdFZhbHVlPjwvUmVmZXJlbmNlPjwvU2lnbmVkSW5mbz4NCiAgICA8U2lnbmF0dXJlVmFsdWU+ZjFsSHpFSzRMazRNQUR2UVhOSEdhaUVlYkdtM3BXeFl5MzR3dE5kYzZ2Lzd2QnNTdXMvcUhqU3Q3YkFHMVpCa2JidTVsZjRFN2tvbHBCVDBUMFVKK3RUQ1hxaWxleVRRanNEMG9iQ1QwZ0xPYk9uL2VXZk11REQ5MUI3WExvdmVONzlzK3VtVXI5Y0JCTVdlNWIxQnZpWjUyaGVhNlJnU3hXR3NGMVJ0NXFFPTwvU2lnbmF0dXJlVmFsdWU+DQogICAgPEtleUluZm8+DQogICAgICAgIDxYNTA5RGF0YT4NCiAgICAgICAgICAgIDxYNTA5Q2VydGlmaWNhdGU+TUlJRHVEQ0NBcUNnQXdJQkFnSUVYY210SHpBTkJna3Foa2lHOXcwQkFRc0ZBREEyTVF3d0NnWURWUVFLRXdOdWFITXhDekFKQmdOVkJBc1RBa05CTVJrd0Z3WURWUVFERXhCT1NGTWdTVTVVSUV4bGRtVnNJREZFTUI0WERUSXdNVEF5TWpFd01qRTFOVm9YRFRJeU1UQXlNakV3TlRFMU5Wb3dRekVNTUFvR0ExVUVDaE1EYm1oek1ROHdEUVlEVlFRTEV3WlFaVzl3YkdVeElqQWdCZ05WQkFNTUdUVTFOVEkxTXpVeU1URXdPRjlTUVU1RVQwMWZWVk5GVWxFd2daOHdEUVlKS29aSWh2Y05BUUVCQlFBRGdZMEFNSUdKQW9HQkFLdDRzek53N09BSDdBUVJyRGUveEJJbXNNbU1pUzlFc3JUM2EzcC9MaDNicmR6STlhYWpUVVoyYi9jdmJPYTdQZVlkN3UrSzRhMlpkMFhrKzBHRm1ZR3pTVlg2aVlqYmx3cjB2YWkzMXpWN0crbEd2SHhINnBTb0xDd0lDYVpBRndhYmVENU96OTQreUEzYVdOV3RHVjBEZmg5cXdIM1pGQ0lNUnN2ZXJOMXBBZ01CQUFHamdnRkRNSUlCUHpBT0JnTlZIUThCQWY4RUJBTUNCa0F3WlFZRFZSMGdBUUgvQkZzd1dUQlhCZ3NxaGpvQWlYdG1BQU1DQURCSU1FWUdDQ3NHQVFVRkJ3SUJGanBvZEhSd2N6b3ZMM0JyYVM1dWFITXVkV3N2WTJWeWRHbG1hV05oZEdWZmNHOXNhV05wWlhNdlkyOXVkR1Z1ZEY5amIyMXRhWFJ0Wlc1ME1ETUdBMVVkSHdRc01Db3dLS0Ftb0NTR0ltaDBkSEE2THk5amNtd3VibWh6TG5WckwybHVkQzh4WkM5amNteGpNeTVqY213d0t3WURWUjBRQkNRd0lvQVBNakF5TURFd01qSXhNREl4TlRWYWdROHlNREl5TURNeE56RXdOVEUxTlZvd0h3WURWUjBqQkJnd0ZvQVVvSllmZ1lUTlBkNkVVS0w2UUxJekh4WTVQRkl3SFFZRFZSME9CQllFRkx0eXZZU3lhcWc2MEFFVVpneGswd3JqUkpjK01Ba0dBMVVkRXdRQ01BQXdHUVlKS29aSWh2WjlCMEVBQkF3d0Noc0VWamd1TXdNQ0JMQXdEUVlKS29aSWh2Y05BUUVMQlFBRGdnRUJBQmN6eThCOGp1UHBJZmFUTkZjeHJDMjJhQ1gveFlabWhyTC9OdklCQWFYMUc1aGppd21rR0tFMmhSVElyNjdQeFp4bVhzSnhpZ1JCTUhQbEkrbFkvK29rekgwR2k3YjVicWx3N3B4R0lnSk8wMDB3OHBGc3ZvOXc0MklZaEhvZHN2bkRWU3hoTVQwSjQ2UWhrOXNvRTBMam9FVUxLUVBQbFlHa2UvR2wzbTE3SXRGWXdPYlFIMGZNRXdtaXFCeWVJZno3Z1NjY096TDVjSXA2UGNaVE9qbzJJcVFwZ0VtaGpPY1JJbkVxQU5pdFNkam9pSkFKenBhYVpqWVRSZEhVWDdpN2FqRWlING05MW5GVys0QXFrTnR0bGI0V2NHS3NTbVdnZktLaGVGNElvWktNRTgweGVyU2dNeTh2dGpMT0JKQ0dYejB3TEdtUXVSbXhNVHE4OHE0PTwvWDUwOUNlcnRpZmljYXRlPg0KICAgICAgICA8L1g1MDlEYXRhPg0KICAgIDwvS2V5SW5mbz4NCjwvU2lnbmF0dXJlPg0K" + } + ] + } + } + ] +} diff --git a/src/test/resources/examples/full_examples/primary-care/acute/nominated-pharmacy/medical-prescriber/cancellations/7-Process-Request-Cancel-200_OK.json b/src/test/resources/examples/full_examples/primary-care/acute/nominated-pharmacy/medical-prescriber/cancellations/7-Process-Request-Cancel-200_OK.json new file mode 100644 index 00000000..fc7d079c --- /dev/null +++ b/src/test/resources/examples/full_examples/primary-care/acute/nominated-pharmacy/medical-prescriber/cancellations/7-Process-Request-Cancel-200_OK.json @@ -0,0 +1,388 @@ +{ + "resourceType": "Bundle", + "id": "0cb82cfa-76c8-4fb2-a08e-bf0e326e5487", + "identifier": { + "system": "https://tools.ietf.org/html/rfc4122", + "value": "a3b677a4-a18f-4042-82be-18b344ce70fd" + }, + "type": "message", + "entry": [ + { + "fullUrl": "urn:uuid:17773b27-427e-4940-8c16-64cdac715001", + "resource": { + "resourceType": "MessageHeader", + "eventCoding": { + "system": "https://fhir.nhs.uk/CodeSystem/message-event", + "code": "prescription-order-update", + "display": "Prescription Order Update" + }, + "sender": { + "identifier": { + "system": "https://fhir.nhs.uk/Id/ods-organization-code", + "value": "A83008" + }, + "display": "HALLGARTH SURGERY" + }, + "source": { + "endpoint": "https://directory.spineservices.nhs.uk/STU3/Organization/A83008" + }, + "destination": [ + { + "endpoint": "https://sandbox.api.service.nhs.uk/electronic-prescriptions/$post-message", + "receiver": { + "identifier": { + "system": "https://fhir.nhs.uk/Id/ods-organization-code", + "value": "FCG71" + } + } + } + ], + "focus": [ + { + "reference": "urn:uuid:56166769-c1c4-4d07-afa8-132b5dfca666" + }, + { + "reference": "urn:uuid:a54219b8-f741-4c47-b662-e4f8dfa49ab6" + } + ] + } + }, + { + "fullUrl": "urn:uuid:a54219b8-f741-4c47-b662-e4f8dfa49ab6", + "resource": { + "resourceType": "MedicationRequest", + "extension": [ + { + "url": "https://fhir.nhs.uk/StructureDefinition/Extension-DM-PrescriptionType", + "valueCoding": { + "system": "https://fhir.nhs.uk/CodeSystem/prescription-type", + "code": "0101", + "display": "Primary Care Prescriber - Medical Prescriber" + } + } + ], + "identifier": [ + { + "system": "https://fhir.nhs.uk/Id/prescription-order-item-number", + "value": "299c610b-f4f1-4eac-a7d7-4fb6b0556e11" + } + ], + "status": "cancelled", + "statusReason": { + "coding": [ + { + "system": "https://fhir.nhs.uk/CodeSystem/medicationrequest-status-reason", + "code": "0007", + "display": "Notification of Death" + } + ] + }, + "intent": "order", + "category": [ + { + "coding": [ + { + "system": "http://terminology.hl7.org/CodeSystem/medicationrequest-category", + "code": "community", + "display": "Community" + } + ] + } + ], + "medicationCodeableConcept": { + "coding": [ + { + "system": "http://snomed.info/sct", + "code": "322237000", + "display": "Paracetamol 500mg soluble tablets" + } + ] + }, + "subject": { + "reference": "urn:uuid:78d3c2eb-009e-4ec8-a358-b042954aa9b2" + }, + "requester": { + "reference": "urn:uuid:56166769-c1c4-4d07-afa8-132b5dfca666" + }, + "groupIdentifier": { + "extension": [ + { + "url": "https://fhir.nhs.uk/StructureDefinition/Extension-DM-PrescriptionId", + "valueIdentifier": { + "system": "https://fhir.nhs.uk/Id/prescription", + "value": "2b348970-89bb-46ef-a003-72a45d71330c" + } + } + ], + "system": "https://fhir.nhs.uk/Id/prescription-order-number", + "value": "A48D9E-A83008-45CE9Q" + }, + "courseOfTherapyType": { + "coding": [ + { + "system": "http://terminology.hl7.org/CodeSystem/medicationrequest-course-of-therapy", + "code": "acute", + "display": "Short course (acute) therapy" + } + ] + }, + "dosageInstruction": [ + { + "text": "4 times a day - Oral", + "timing": { + "repeat": { + "frequency": 4, + "period": 1, + "periodUnit": "d" + } + }, + "route": { + "coding": [ + { + "system": "http://snomed.info/sct", + "code": "26643006", + "display": "Oral" + } + ] + } + } + ], + "dispenseRequest": { + "extension": [ + { + "url": "https://fhir.nhs.uk/StructureDefinition/Extension-DM-PerformerSiteType", + "valueCoding": { + "system": "https://fhir.nhs.uk/CodeSystem/dispensing-site-preference", + "code": "P1" + } + } + ], + "validityPeriod": { + "start": "2021-04-20", + "end": "2021-05-18" + }, + "expectedSupplyDuration": { + "value": 30, + "unit": "day", + "system": "http://unitsofmeasure.org", + "code": "d" + }, + "performer": { + "identifier": { + "system": "https://fhir.nhs.uk/Id/ods-organization-code", + "value": "FCG71" + } + }, + "quantity": { + "value": 100, + "unit": "tablet", + "system": "http://snomed.info/sct", + "code": "428673006" + } + }, + "substitution": { + "allowedBoolean": false + } + } + }, + { + "fullUrl": "urn:uuid:78d3c2eb-009e-4ec8-a358-b042954aa9b2", + "resource": { + "resourceType": "Patient", + "identifier": [ + { + "system": "https://fhir.nhs.uk/Id/nhs-number", + "value": "9990548609" + } + ], + "name": [ + { + "use": "usual", + "family": "XXTESTPATIENT-TGNP", + "given": [ + "DONOTUSE" + ], + "prefix": [ + "MR" + ] + } + ], + "gender": "male", + "birthDate": "1932-01-06", + "address": [ + { + "use": "home", + "line": [ + "1 Trevelyan Square", + "Boar Lane", + "Leeds", + "West Yorkshire" + ], + "postalCode": "LS1 6AE" + } + ], + "generalPractitioner": [ + { + "identifier": { + "system": "https://fhir.nhs.uk/Id/ods-organization-code", + "value": "A83008" + } + } + ] + } + }, + { + "fullUrl": "urn:uuid:56166769-c1c4-4d07-afa8-132b5dfca666", + "resource": { + "resourceType": "PractitionerRole", + "identifier": [ + { + "system": "https://fhir.nhs.uk/Id/sds-role-profile-id", + "value": "200102238987" + } + ], + "practitioner": { + "reference": "urn:uuid:a8c85454-f8cb-498d-9629-78e2cb5fa47a" + }, + "organization": { + "reference": "urn:uuid:3b4b03a5-52ba-4ba6-9b82-70350aa109d8" + }, + "code": [ + { + "coding": [ + { + "system": "https://fhir.nhs.uk/CodeSystem/NHSDigital-SDS-JobRoleCode", + "code": "S8000:G8000:R8000", + "display": "Clinical Practitioner Access Role" + } + ] + } + ], + "telecom": [ + { + "system": "phone", + "value": "01234567890", + "use": "work" + } + ] + } + }, + { + "fullUrl": "urn:uuid:a8c85454-f8cb-498d-9629-78e2cb5fa47a", + "resource": { + "resourceType": "Practitioner", + "identifier": [ + { + "system": "https://fhir.nhs.uk/Id/sds-user-id", + "value": "555086689106" + }, + { + "system": "https://fhir.hl7.org.uk/Id/gmc-number", + "value": "6095103" + }, + { + "system": "https://fhir.hl7.org.uk/Id/din-number", + "value": "977677" + } + ], + "name": [ + { + "family": "BOIN", + "given": [ + "C" + ], + "prefix": [ + "DR" + ] + } + ] + } + }, + { + "fullUrl": "urn:uuid:3b4b03a5-52ba-4ba6-9b82-70350aa109d8", + "resource": { + "resourceType": "Organization", + "identifier": [ + { + "system": "https://fhir.nhs.uk/Id/ods-organization-code", + "value": "A83008" + } + ], + "type": [ + { + "coding": [ + { + "system": "https://fhir.nhs.uk/CodeSystem/organisation-role", + "code": "76", + "display": "GP PRACTICE" + } + ] + } + ], + "name": "HALLGARTH SURGERY", + "address": [ + { + "use": "work", + "type": "both", + "line": [ + "HALLGARTH SURGERY", + "CHEAPSIDE" + ], + "city": "SHILDON", + "district": "COUNTY DURHAM", + "postalCode": "DL4 2HP" + } + ], + "telecom": [ + { + "system": "phone", + "value": "0115 9737320", + "use": "work" + } + ], + "partOf": { + "identifier": { + "system": "https://fhir.nhs.uk/Id/ods-organization-code", + "value": "84H" + }, + "display": "NHS COUNTY DURHAM CCG" + } + } + }, + { + "fullUrl": "urn:uuid:28828c55-8fa7-42d7-916f-fcf076e0c10e", + "resource": { + "resourceType": "Provenance", + "id": "28828c55-8fa7-42d7-916f-fcf076e0c10e", + "target": [ + { + "reference": "urn:uuid:a54219b8-f741-4c47-b662-e4f8dfa49ab6" + } + ], + "recorded": "2021-02-11T16:35:38+00:00", + "agent": [ + { + "who": { + "reference": "urn:uuid:56166769-c1c4-4d07-afa8-132b5dfca666" + } + } + ], + "signature": [ + { + "type": [ + { + "system": "urn:iso-astm:E1762-95:2013", + "code": "1.2.840.10065.1.12.1.1" + } + ], + "when": "2021-04-20T05:45:38+00:00", + "who": { + "reference": "urn:uuid:56166769-c1c4-4d07-afa8-132b5dfca666" + }, + "data": "DQo8U2lnbmF0dXJlIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwLzA5L3htbGRzaWcjIj4NCiAgICA8U2lnbmVkSW5mbz48Q2Fub25pY2FsaXphdGlvbk1ldGhvZCBBbGdvcml0aG09Imh0dHA6Ly93d3cudzMub3JnLzIwMDEvMTAveG1sLWV4Yy1jMTRuIyI+PC9DYW5vbmljYWxpemF0aW9uTWV0aG9kPjxTaWduYXR1cmVNZXRob2QgQWxnb3JpdGhtPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwLzA5L3htbGRzaWcjcnNhLXNoYTEiPjwvU2lnbmF0dXJlTWV0aG9kPjxSZWZlcmVuY2U+PFRyYW5zZm9ybXM+PFRyYW5zZm9ybSBBbGdvcml0aG09Imh0dHA6Ly93d3cudzMub3JnLzIwMDEvMTAveG1sLWV4Yy1jMTRuIyI+PC9UcmFuc2Zvcm0+PC9UcmFuc2Zvcm1zPjxEaWdlc3RNZXRob2QgQWxnb3JpdGhtPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwLzA5L3htbGRzaWcjc2hhMSI+PC9EaWdlc3RNZXRob2Q+PERpZ2VzdFZhbHVlPjVWem5UWG9FUmpDamRGQ3NTaUljcHIvNDJDUT08L0RpZ2VzdFZhbHVlPjwvUmVmZXJlbmNlPjwvU2lnbmVkSW5mbz4NCiAgICA8U2lnbmF0dXJlVmFsdWU+ZjFsSHpFSzRMazRNQUR2UVhOSEdhaUVlYkdtM3BXeFl5MzR3dE5kYzZ2Lzd2QnNTdXMvcUhqU3Q3YkFHMVpCa2JidTVsZjRFN2tvbHBCVDBUMFVKK3RUQ1hxaWxleVRRanNEMG9iQ1QwZ0xPYk9uL2VXZk11REQ5MUI3WExvdmVONzlzK3VtVXI5Y0JCTVdlNWIxQnZpWjUyaGVhNlJnU3hXR3NGMVJ0NXFFPTwvU2lnbmF0dXJlVmFsdWU+DQogICAgPEtleUluZm8+DQogICAgICAgIDxYNTA5RGF0YT4NCiAgICAgICAgICAgIDxYNTA5Q2VydGlmaWNhdGU+TUlJRHVEQ0NBcUNnQXdJQkFnSUVYY210SHpBTkJna3Foa2lHOXcwQkFRc0ZBREEyTVF3d0NnWURWUVFLRXdOdWFITXhDekFKQmdOVkJBc1RBa05CTVJrd0Z3WURWUVFERXhCT1NGTWdTVTVVSUV4bGRtVnNJREZFTUI0WERUSXdNVEF5TWpFd01qRTFOVm9YRFRJeU1UQXlNakV3TlRFMU5Wb3dRekVNTUFvR0ExVUVDaE1EYm1oek1ROHdEUVlEVlFRTEV3WlFaVzl3YkdVeElqQWdCZ05WQkFNTUdUVTFOVEkxTXpVeU1URXdPRjlTUVU1RVQwMWZWVk5GVWxFd2daOHdEUVlKS29aSWh2Y05BUUVCQlFBRGdZMEFNSUdKQW9HQkFLdDRzek53N09BSDdBUVJyRGUveEJJbXNNbU1pUzlFc3JUM2EzcC9MaDNicmR6STlhYWpUVVoyYi9jdmJPYTdQZVlkN3UrSzRhMlpkMFhrKzBHRm1ZR3pTVlg2aVlqYmx3cjB2YWkzMXpWN0crbEd2SHhINnBTb0xDd0lDYVpBRndhYmVENU96OTQreUEzYVdOV3RHVjBEZmg5cXdIM1pGQ0lNUnN2ZXJOMXBBZ01CQUFHamdnRkRNSUlCUHpBT0JnTlZIUThCQWY4RUJBTUNCa0F3WlFZRFZSMGdBUUgvQkZzd1dUQlhCZ3NxaGpvQWlYdG1BQU1DQURCSU1FWUdDQ3NHQVFVRkJ3SUJGanBvZEhSd2N6b3ZMM0JyYVM1dWFITXVkV3N2WTJWeWRHbG1hV05oZEdWZmNHOXNhV05wWlhNdlkyOXVkR1Z1ZEY5amIyMXRhWFJ0Wlc1ME1ETUdBMVVkSHdRc01Db3dLS0Ftb0NTR0ltaDBkSEE2THk5amNtd3VibWh6TG5WckwybHVkQzh4WkM5amNteGpNeTVqY213d0t3WURWUjBRQkNRd0lvQVBNakF5TURFd01qSXhNREl4TlRWYWdROHlNREl5TURNeE56RXdOVEUxTlZvd0h3WURWUjBqQkJnd0ZvQVVvSllmZ1lUTlBkNkVVS0w2UUxJekh4WTVQRkl3SFFZRFZSME9CQllFRkx0eXZZU3lhcWc2MEFFVVpneGswd3JqUkpjK01Ba0dBMVVkRXdRQ01BQXdHUVlKS29aSWh2WjlCMEVBQkF3d0Noc0VWamd1TXdNQ0JMQXdEUVlKS29aSWh2Y05BUUVMQlFBRGdnRUJBQmN6eThCOGp1UHBJZmFUTkZjeHJDMjJhQ1gveFlabWhyTC9OdklCQWFYMUc1aGppd21rR0tFMmhSVElyNjdQeFp4bVhzSnhpZ1JCTUhQbEkrbFkvK29rekgwR2k3YjVicWx3N3B4R0lnSk8wMDB3OHBGc3ZvOXc0MklZaEhvZHN2bkRWU3hoTVQwSjQ2UWhrOXNvRTBMam9FVUxLUVBQbFlHa2UvR2wzbTE3SXRGWXdPYlFIMGZNRXdtaXFCeWVJZno3Z1NjY096TDVjSXA2UGNaVE9qbzJJcVFwZ0VtaGpPY1JJbkVxQU5pdFNkam9pSkFKenBhYVpqWVRSZEhVWDdpN2FqRWlING05MW5GVys0QXFrTnR0bGI0V2NHS3NTbVdnZktLaGVGNElvWktNRTgweGVyU2dNeTh2dGpMT0JKQ0dYejB3TEdtUXVSbXhNVHE4OHE0PTwvWDUwOUNlcnRpZmljYXRlPg0KICAgICAgICA8L1g1MDlEYXRhPg0KICAgIDwvS2V5SW5mbz4NCjwvU2lnbmF0dXJlPg0K" + } + ] + } + } + ] +} diff --git a/src/test/resources/examples/full_examples/primary-care/acute/nominated-pharmacy/medical-prescriber/cancellations/7-Process-Request-Send-200_OK.json b/src/test/resources/examples/full_examples/primary-care/acute/nominated-pharmacy/medical-prescriber/cancellations/7-Process-Request-Send-200_OK.json new file mode 100644 index 00000000..4e385553 --- /dev/null +++ b/src/test/resources/examples/full_examples/primary-care/acute/nominated-pharmacy/medical-prescriber/cancellations/7-Process-Request-Send-200_OK.json @@ -0,0 +1,379 @@ +{ + "resourceType": "Bundle", + "id": "0cb82cfa-76c8-4fb2-a08e-bf0e326e5487", + "identifier": { + "system": "https://tools.ietf.org/html/rfc4122", + "value": "58451692-3e9a-4bcf-be83-b3bd90b35e77" + }, + "type": "message", + "entry": [ + { + "fullUrl": "urn:uuid:17773b27-427e-4940-8c16-64cdac715001", + "resource": { + "resourceType": "MessageHeader", + "eventCoding": { + "system": "https://fhir.nhs.uk/CodeSystem/message-event", + "code": "prescription-order", + "display": "Prescription Order" + }, + "sender": { + "identifier": { + "system": "https://fhir.nhs.uk/Id/ods-organization-code", + "value": "A83008" + }, + "display": "HALLGARTH SURGERY" + }, + "source": { + "endpoint": "https://directory.spineservices.nhs.uk/STU3/Organization/A83008" + }, + "destination": [ + { + "endpoint": "https://sandbox.api.service.nhs.uk/electronic-prescriptions/$post-message", + "receiver": { + "identifier": { + "system": "https://fhir.nhs.uk/Id/ods-organization-code", + "value": "FCG71" + } + } + } + ], + "focus": [ + { + "reference": "urn:uuid:56166769-c1c4-4d07-afa8-132b5dfca666" + }, + { + "reference": "urn:uuid:a54219b8-f741-4c47-b662-e4f8dfa49ab6" + } + ] + } + }, + { + "fullUrl": "urn:uuid:a54219b8-f741-4c47-b662-e4f8dfa49ab6", + "resource": { + "resourceType": "MedicationRequest", + "extension": [ + { + "url": "https://fhir.nhs.uk/StructureDefinition/Extension-DM-PrescriptionType", + "valueCoding": { + "system": "https://fhir.nhs.uk/CodeSystem/prescription-type", + "code": "0101", + "display": "Primary Care Prescriber - Medical Prescriber" + } + } + ], + "identifier": [ + { + "system": "https://fhir.nhs.uk/Id/prescription-order-item-number", + "value": "299c610b-f4f1-4eac-a7d7-4fb6b0556e11" + } + ], + "status": "active", + "intent": "order", + "category": [ + { + "coding": [ + { + "system": "http://terminology.hl7.org/CodeSystem/medicationrequest-category", + "code": "community", + "display": "Community" + } + ] + } + ], + "medicationCodeableConcept": { + "coding": [ + { + "system": "http://snomed.info/sct", + "code": "322237000", + "display": "Paracetamol 500mg soluble tablets" + } + ] + }, + "subject": { + "reference": "urn:uuid:78d3c2eb-009e-4ec8-a358-b042954aa9b2" + }, + "requester": { + "reference": "urn:uuid:56166769-c1c4-4d07-afa8-132b5dfca666" + }, + "groupIdentifier": { + "extension": [ + { + "url": "https://fhir.nhs.uk/StructureDefinition/Extension-DM-PrescriptionId", + "valueIdentifier": { + "system": "https://fhir.nhs.uk/Id/prescription", + "value": "2b348970-89bb-46ef-a003-72a45d71330c" + } + } + ], + "system": "https://fhir.nhs.uk/Id/prescription-order-number", + "value": "A48D9E-A83008-45CE9Q" + }, + "courseOfTherapyType": { + "coding": [ + { + "system": "http://terminology.hl7.org/CodeSystem/medicationrequest-course-of-therapy", + "code": "acute", + "display": "Short course (acute) therapy" + } + ] + }, + "dosageInstruction": [ + { + "text": "4 times a day - Oral", + "timing": { + "repeat": { + "frequency": 4, + "period": 1, + "periodUnit": "d" + } + }, + "route": { + "coding": [ + { + "system": "http://snomed.info/sct", + "code": "26643006", + "display": "Oral" + } + ] + } + } + ], + "dispenseRequest": { + "extension": [ + { + "url": "https://fhir.nhs.uk/StructureDefinition/Extension-DM-PerformerSiteType", + "valueCoding": { + "system": "https://fhir.nhs.uk/CodeSystem/dispensing-site-preference", + "code": "P1" + } + } + ], + "validityPeriod": { + "start": "2021-04-20", + "end": "2021-05-18" + }, + "expectedSupplyDuration": { + "value": 30, + "unit": "day", + "system": "http://unitsofmeasure.org", + "code": "d" + }, + "performer": { + "identifier": { + "system": "https://fhir.nhs.uk/Id/ods-organization-code", + "value": "FCG71" + } + }, + "quantity": { + "value": 100, + "unit": "tablet", + "system": "http://snomed.info/sct", + "code": "428673006" + } + }, + "substitution": { + "allowedBoolean": false + } + } + }, + { + "fullUrl": "urn:uuid:78d3c2eb-009e-4ec8-a358-b042954aa9b2", + "resource": { + "resourceType": "Patient", + "identifier": [ + { + "system": "https://fhir.nhs.uk/Id/nhs-number", + "value": "9990548609" + } + ], + "name": [ + { + "use": "usual", + "family": "XXTESTPATIENT-TGNP", + "given": [ + "DONOTUSE" + ], + "prefix": [ + "MR" + ] + } + ], + "gender": "male", + "birthDate": "1932-01-06", + "address": [ + { + "use": "home", + "line": [ + "1 Trevelyan Square", + "Boar Lane", + "Leeds", + "West Yorkshire" + ], + "postalCode": "LS1 6AE" + } + ], + "generalPractitioner": [ + { + "identifier": { + "system": "https://fhir.nhs.uk/Id/ods-organization-code", + "value": "A83008" + } + } + ] + } + }, + { + "fullUrl": "urn:uuid:56166769-c1c4-4d07-afa8-132b5dfca666", + "resource": { + "resourceType": "PractitionerRole", + "identifier": [ + { + "system": "https://fhir.nhs.uk/Id/sds-role-profile-id", + "value": "200102238987" + } + ], + "practitioner": { + "reference": "urn:uuid:a8c85454-f8cb-498d-9629-78e2cb5fa47a" + }, + "organization": { + "reference": "urn:uuid:3b4b03a5-52ba-4ba6-9b82-70350aa109d8" + }, + "code": [ + { + "coding": [ + { + "system": "https://fhir.nhs.uk/CodeSystem/NHSDigital-SDS-JobRoleCode", + "code": "S8000:G8000:R8000", + "display": "Clinical Practitioner Access Role" + } + ] + } + ], + "telecom": [ + { + "system": "phone", + "value": "01234567890", + "use": "work" + } + ] + } + }, + { + "fullUrl": "urn:uuid:a8c85454-f8cb-498d-9629-78e2cb5fa47a", + "resource": { + "resourceType": "Practitioner", + "identifier": [ + { + "system": "https://fhir.nhs.uk/Id/sds-user-id", + "value": "555086689106" + }, + { + "system": "https://fhir.hl7.org.uk/Id/gmc-number", + "value": "6095103" + }, + { + "system": "https://fhir.hl7.org.uk/Id/din-number", + "value": "977677" + } + ], + "name": [ + { + "family": "BOIN", + "given": [ + "C" + ], + "prefix": [ + "DR" + ] + } + ] + } + }, + { + "fullUrl": "urn:uuid:3b4b03a5-52ba-4ba6-9b82-70350aa109d8", + "resource": { + "resourceType": "Organization", + "identifier": [ + { + "system": "https://fhir.nhs.uk/Id/ods-organization-code", + "value": "A83008" + } + ], + "type": [ + { + "coding": [ + { + "system": "https://fhir.nhs.uk/CodeSystem/organisation-role", + "code": "76", + "display": "GP PRACTICE" + } + ] + } + ], + "name": "HALLGARTH SURGERY", + "address": [ + { + "use": "work", + "type": "both", + "line": [ + "HALLGARTH SURGERY", + "CHEAPSIDE" + ], + "city": "SHILDON", + "district": "COUNTY DURHAM", + "postalCode": "DL4 2HP" + } + ], + "telecom": [ + { + "system": "phone", + "value": "0115 9737320", + "use": "work" + } + ], + "partOf": { + "identifier": { + "system": "https://fhir.nhs.uk/Id/ods-organization-code", + "value": "84H" + }, + "display": "NHS COUNTY DURHAM CCG" + } + } + }, + { + "fullUrl": "urn:uuid:28828c55-8fa7-42d7-916f-fcf076e0c10e", + "resource": { + "resourceType": "Provenance", + "id": "28828c55-8fa7-42d7-916f-fcf076e0c10e", + "target": [ + { + "reference": "urn:uuid:a54219b8-f741-4c47-b662-e4f8dfa49ab6" + } + ], + "recorded": "2021-02-11T16:35:38+00:00", + "agent": [ + { + "who": { + "reference": "urn:uuid:56166769-c1c4-4d07-afa8-132b5dfca666" + } + } + ], + "signature": [ + { + "type": [ + { + "system": "urn:iso-astm:E1762-95:2013", + "code": "1.2.840.10065.1.12.1.1" + } + ], + "when": "2021-04-20T05:45:38+00:00", + "who": { + "reference": "urn:uuid:56166769-c1c4-4d07-afa8-132b5dfca666" + }, + "data": "DQo8U2lnbmF0dXJlIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwLzA5L3htbGRzaWcjIj4NCiAgICA8U2lnbmVkSW5mbz48Q2Fub25pY2FsaXphdGlvbk1ldGhvZCBBbGdvcml0aG09Imh0dHA6Ly93d3cudzMub3JnLzIwMDEvMTAveG1sLWV4Yy1jMTRuIyI+PC9DYW5vbmljYWxpemF0aW9uTWV0aG9kPjxTaWduYXR1cmVNZXRob2QgQWxnb3JpdGhtPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwLzA5L3htbGRzaWcjcnNhLXNoYTEiPjwvU2lnbmF0dXJlTWV0aG9kPjxSZWZlcmVuY2U+PFRyYW5zZm9ybXM+PFRyYW5zZm9ybSBBbGdvcml0aG09Imh0dHA6Ly93d3cudzMub3JnLzIwMDEvMTAveG1sLWV4Yy1jMTRuIyI+PC9UcmFuc2Zvcm0+PC9UcmFuc2Zvcm1zPjxEaWdlc3RNZXRob2QgQWxnb3JpdGhtPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwLzA5L3htbGRzaWcjc2hhMSI+PC9EaWdlc3RNZXRob2Q+PERpZ2VzdFZhbHVlPjVWem5UWG9FUmpDamRGQ3NTaUljcHIvNDJDUT08L0RpZ2VzdFZhbHVlPjwvUmVmZXJlbmNlPjwvU2lnbmVkSW5mbz4NCiAgICA8U2lnbmF0dXJlVmFsdWU+ZjFsSHpFSzRMazRNQUR2UVhOSEdhaUVlYkdtM3BXeFl5MzR3dE5kYzZ2Lzd2QnNTdXMvcUhqU3Q3YkFHMVpCa2JidTVsZjRFN2tvbHBCVDBUMFVKK3RUQ1hxaWxleVRRanNEMG9iQ1QwZ0xPYk9uL2VXZk11REQ5MUI3WExvdmVONzlzK3VtVXI5Y0JCTVdlNWIxQnZpWjUyaGVhNlJnU3hXR3NGMVJ0NXFFPTwvU2lnbmF0dXJlVmFsdWU+DQogICAgPEtleUluZm8+DQogICAgICAgIDxYNTA5RGF0YT4NCiAgICAgICAgICAgIDxYNTA5Q2VydGlmaWNhdGU+TUlJRHVEQ0NBcUNnQXdJQkFnSUVYY210SHpBTkJna3Foa2lHOXcwQkFRc0ZBREEyTVF3d0NnWURWUVFLRXdOdWFITXhDekFKQmdOVkJBc1RBa05CTVJrd0Z3WURWUVFERXhCT1NGTWdTVTVVSUV4bGRtVnNJREZFTUI0WERUSXdNVEF5TWpFd01qRTFOVm9YRFRJeU1UQXlNakV3TlRFMU5Wb3dRekVNTUFvR0ExVUVDaE1EYm1oek1ROHdEUVlEVlFRTEV3WlFaVzl3YkdVeElqQWdCZ05WQkFNTUdUVTFOVEkxTXpVeU1URXdPRjlTUVU1RVQwMWZWVk5GVWxFd2daOHdEUVlKS29aSWh2Y05BUUVCQlFBRGdZMEFNSUdKQW9HQkFLdDRzek53N09BSDdBUVJyRGUveEJJbXNNbU1pUzlFc3JUM2EzcC9MaDNicmR6STlhYWpUVVoyYi9jdmJPYTdQZVlkN3UrSzRhMlpkMFhrKzBHRm1ZR3pTVlg2aVlqYmx3cjB2YWkzMXpWN0crbEd2SHhINnBTb0xDd0lDYVpBRndhYmVENU96OTQreUEzYVdOV3RHVjBEZmg5cXdIM1pGQ0lNUnN2ZXJOMXBBZ01CQUFHamdnRkRNSUlCUHpBT0JnTlZIUThCQWY4RUJBTUNCa0F3WlFZRFZSMGdBUUgvQkZzd1dUQlhCZ3NxaGpvQWlYdG1BQU1DQURCSU1FWUdDQ3NHQVFVRkJ3SUJGanBvZEhSd2N6b3ZMM0JyYVM1dWFITXVkV3N2WTJWeWRHbG1hV05oZEdWZmNHOXNhV05wWlhNdlkyOXVkR1Z1ZEY5amIyMXRhWFJ0Wlc1ME1ETUdBMVVkSHdRc01Db3dLS0Ftb0NTR0ltaDBkSEE2THk5amNtd3VibWh6TG5WckwybHVkQzh4WkM5amNteGpNeTVqY213d0t3WURWUjBRQkNRd0lvQVBNakF5TURFd01qSXhNREl4TlRWYWdROHlNREl5TURNeE56RXdOVEUxTlZvd0h3WURWUjBqQkJnd0ZvQVVvSllmZ1lUTlBkNkVVS0w2UUxJekh4WTVQRkl3SFFZRFZSME9CQllFRkx0eXZZU3lhcWc2MEFFVVpneGswd3JqUkpjK01Ba0dBMVVkRXdRQ01BQXdHUVlKS29aSWh2WjlCMEVBQkF3d0Noc0VWamd1TXdNQ0JMQXdEUVlKS29aSWh2Y05BUUVMQlFBRGdnRUJBQmN6eThCOGp1UHBJZmFUTkZjeHJDMjJhQ1gveFlabWhyTC9OdklCQWFYMUc1aGppd21rR0tFMmhSVElyNjdQeFp4bVhzSnhpZ1JCTUhQbEkrbFkvK29rekgwR2k3YjVicWx3N3B4R0lnSk8wMDB3OHBGc3ZvOXc0MklZaEhvZHN2bkRWU3hoTVQwSjQ2UWhrOXNvRTBMam9FVUxLUVBQbFlHa2UvR2wzbTE3SXRGWXdPYlFIMGZNRXdtaXFCeWVJZno3Z1NjY096TDVjSXA2UGNaVE9qbzJJcVFwZ0VtaGpPY1JJbkVxQU5pdFNkam9pSkFKenBhYVpqWVRSZEhVWDdpN2FqRWlING05MW5GVys0QXFrTnR0bGI0V2NHS3NTbVdnZktLaGVGNElvWktNRTgweGVyU2dNeTh2dGpMT0JKQ0dYejB3TEdtUXVSbXhNVHE4OHE0PTwvWDUwOUNlcnRpZmljYXRlPg0KICAgICAgICA8L1g1MDlEYXRhPg0KICAgIDwvS2V5SW5mbz4NCjwvU2lnbmF0dXJlPg0K" + } + ] + } + } + ] +} diff --git a/src/test/resources/examples/full_examples/primary-care/acute/nominated-pharmacy/medical-prescriber/cancellations/8-Process-Request-Cancel-200_OK.json b/src/test/resources/examples/full_examples/primary-care/acute/nominated-pharmacy/medical-prescriber/cancellations/8-Process-Request-Cancel-200_OK.json new file mode 100644 index 00000000..218402c5 --- /dev/null +++ b/src/test/resources/examples/full_examples/primary-care/acute/nominated-pharmacy/medical-prescriber/cancellations/8-Process-Request-Cancel-200_OK.json @@ -0,0 +1,388 @@ +{ + "resourceType": "Bundle", + "id": "0cb82cfa-76c8-4fb2-a08e-bf0e326e5487", + "identifier": { + "system": "https://tools.ietf.org/html/rfc4122", + "value": "06964c82-2b88-4898-ae86-c74c3b482502" + }, + "type": "message", + "entry": [ + { + "fullUrl": "urn:uuid:17773b27-427e-4940-8c16-64cdac715001", + "resource": { + "resourceType": "MessageHeader", + "eventCoding": { + "system": "https://fhir.nhs.uk/CodeSystem/message-event", + "code": "prescription-order-update", + "display": "Prescription Order Update" + }, + "sender": { + "identifier": { + "system": "https://fhir.nhs.uk/Id/ods-organization-code", + "value": "A83008" + }, + "display": "HALLGARTH SURGERY" + }, + "source": { + "endpoint": "https://directory.spineservices.nhs.uk/STU3/Organization/A83008" + }, + "destination": [ + { + "endpoint": "https://sandbox.api.service.nhs.uk/electronic-prescriptions/$post-message", + "receiver": { + "identifier": { + "system": "https://fhir.nhs.uk/Id/ods-organization-code", + "value": "FCG71" + } + } + } + ], + "focus": [ + { + "reference": "urn:uuid:56166769-c1c4-4d07-afa8-132b5dfca666" + }, + { + "reference": "urn:uuid:a54219b8-f741-4c47-b662-e4f8dfa49ab6" + } + ] + } + }, + { + "fullUrl": "urn:uuid:a54219b8-f741-4c47-b662-e4f8dfa49ab6", + "resource": { + "resourceType": "MedicationRequest", + "extension": [ + { + "url": "https://fhir.nhs.uk/StructureDefinition/Extension-DM-PrescriptionType", + "valueCoding": { + "system": "https://fhir.nhs.uk/CodeSystem/prescription-type", + "code": "0101", + "display": "Primary Care Prescriber - Medical Prescriber" + } + } + ], + "identifier": [ + { + "system": "https://fhir.nhs.uk/Id/prescription-order-item-number", + "value": "299c610b-f4f1-4eac-a7d7-4fb6b0556e11" + } + ], + "status": "cancelled", + "statusReason": { + "coding": [ + { + "system": "https://fhir.nhs.uk/CodeSystem/medicationrequest-status-reason", + "code": "0008", + "display": "Patient deducted - other reason" + } + ] + }, + "intent": "order", + "category": [ + { + "coding": [ + { + "system": "http://terminology.hl7.org/CodeSystem/medicationrequest-category", + "code": "community", + "display": "Community" + } + ] + } + ], + "medicationCodeableConcept": { + "coding": [ + { + "system": "http://snomed.info/sct", + "code": "322237000", + "display": "Paracetamol 500mg soluble tablets" + } + ] + }, + "subject": { + "reference": "urn:uuid:78d3c2eb-009e-4ec8-a358-b042954aa9b2" + }, + "requester": { + "reference": "urn:uuid:56166769-c1c4-4d07-afa8-132b5dfca666" + }, + "groupIdentifier": { + "extension": [ + { + "url": "https://fhir.nhs.uk/StructureDefinition/Extension-DM-PrescriptionId", + "valueIdentifier": { + "system": "https://fhir.nhs.uk/Id/prescription", + "value": "9e7b3d2e-c711-4cb7-99d3-fdc9d993fb65" + } + } + ], + "system": "https://fhir.nhs.uk/Id/prescription-order-number", + "value": "124C9E-A83008-49E282" + }, + "courseOfTherapyType": { + "coding": [ + { + "system": "http://terminology.hl7.org/CodeSystem/medicationrequest-course-of-therapy", + "code": "acute", + "display": "Short course (acute) therapy" + } + ] + }, + "dosageInstruction": [ + { + "text": "4 times a day - Oral", + "timing": { + "repeat": { + "frequency": 4, + "period": 1, + "periodUnit": "d" + } + }, + "route": { + "coding": [ + { + "system": "http://snomed.info/sct", + "code": "26643006", + "display": "Oral" + } + ] + } + } + ], + "dispenseRequest": { + "extension": [ + { + "url": "https://fhir.nhs.uk/StructureDefinition/Extension-DM-PerformerSiteType", + "valueCoding": { + "system": "https://fhir.nhs.uk/CodeSystem/dispensing-site-preference", + "code": "P1" + } + } + ], + "validityPeriod": { + "start": "2021-04-20", + "end": "2021-05-18" + }, + "expectedSupplyDuration": { + "value": 30, + "unit": "day", + "system": "http://unitsofmeasure.org", + "code": "d" + }, + "performer": { + "identifier": { + "system": "https://fhir.nhs.uk/Id/ods-organization-code", + "value": "FCG71" + } + }, + "quantity": { + "value": 100, + "unit": "tablet", + "system": "http://snomed.info/sct", + "code": "428673006" + } + }, + "substitution": { + "allowedBoolean": false + } + } + }, + { + "fullUrl": "urn:uuid:78d3c2eb-009e-4ec8-a358-b042954aa9b2", + "resource": { + "resourceType": "Patient", + "identifier": [ + { + "system": "https://fhir.nhs.uk/Id/nhs-number", + "value": "9990548609" + } + ], + "name": [ + { + "use": "usual", + "family": "XXTESTPATIENT-TGNP", + "given": [ + "DONOTUSE" + ], + "prefix": [ + "MR" + ] + } + ], + "gender": "male", + "birthDate": "1932-01-06", + "address": [ + { + "use": "home", + "line": [ + "1 Trevelyan Square", + "Boar Lane", + "Leeds", + "West Yorkshire" + ], + "postalCode": "LS1 6AE" + } + ], + "generalPractitioner": [ + { + "identifier": { + "system": "https://fhir.nhs.uk/Id/ods-organization-code", + "value": "A83008" + } + } + ] + } + }, + { + "fullUrl": "urn:uuid:56166769-c1c4-4d07-afa8-132b5dfca666", + "resource": { + "resourceType": "PractitionerRole", + "identifier": [ + { + "system": "https://fhir.nhs.uk/Id/sds-role-profile-id", + "value": "200102238987" + } + ], + "practitioner": { + "reference": "urn:uuid:a8c85454-f8cb-498d-9629-78e2cb5fa47a" + }, + "organization": { + "reference": "urn:uuid:3b4b03a5-52ba-4ba6-9b82-70350aa109d8" + }, + "code": [ + { + "coding": [ + { + "system": "https://fhir.nhs.uk/CodeSystem/NHSDigital-SDS-JobRoleCode", + "code": "S8000:G8000:R8000", + "display": "Clinical Practitioner Access Role" + } + ] + } + ], + "telecom": [ + { + "system": "phone", + "value": "01234567890", + "use": "work" + } + ] + } + }, + { + "fullUrl": "urn:uuid:a8c85454-f8cb-498d-9629-78e2cb5fa47a", + "resource": { + "resourceType": "Practitioner", + "identifier": [ + { + "system": "https://fhir.nhs.uk/Id/sds-user-id", + "value": "555086689106" + }, + { + "system": "https://fhir.hl7.org.uk/Id/gmc-number", + "value": "6095103" + }, + { + "system": "https://fhir.hl7.org.uk/Id/din-number", + "value": "977677" + } + ], + "name": [ + { + "family": "BOIN", + "given": [ + "C" + ], + "prefix": [ + "DR" + ] + } + ] + } + }, + { + "fullUrl": "urn:uuid:3b4b03a5-52ba-4ba6-9b82-70350aa109d8", + "resource": { + "resourceType": "Organization", + "identifier": [ + { + "system": "https://fhir.nhs.uk/Id/ods-organization-code", + "value": "A83008" + } + ], + "type": [ + { + "coding": [ + { + "system": "https://fhir.nhs.uk/CodeSystem/organisation-role", + "code": "76", + "display": "GP PRACTICE" + } + ] + } + ], + "name": "HALLGARTH SURGERY", + "address": [ + { + "use": "work", + "type": "both", + "line": [ + "HALLGARTH SURGERY", + "CHEAPSIDE" + ], + "city": "SHILDON", + "district": "COUNTY DURHAM", + "postalCode": "DL4 2HP" + } + ], + "telecom": [ + { + "system": "phone", + "value": "0115 9737320", + "use": "work" + } + ], + "partOf": { + "identifier": { + "system": "https://fhir.nhs.uk/Id/ods-organization-code", + "value": "84H" + }, + "display": "NHS COUNTY DURHAM CCG" + } + } + }, + { + "fullUrl": "urn:uuid:28828c55-8fa7-42d7-916f-fcf076e0c10e", + "resource": { + "resourceType": "Provenance", + "id": "28828c55-8fa7-42d7-916f-fcf076e0c10e", + "target": [ + { + "reference": "urn:uuid:a54219b8-f741-4c47-b662-e4f8dfa49ab6" + } + ], + "recorded": "2021-02-11T16:35:38+00:00", + "agent": [ + { + "who": { + "reference": "urn:uuid:56166769-c1c4-4d07-afa8-132b5dfca666" + } + } + ], + "signature": [ + { + "type": [ + { + "system": "urn:iso-astm:E1762-95:2013", + "code": "1.2.840.10065.1.12.1.1" + } + ], + "when": "2021-04-20T05:45:40+00:00", + "who": { + "reference": "urn:uuid:56166769-c1c4-4d07-afa8-132b5dfca666" + }, + "data": "DQo8U2lnbmF0dXJlIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwLzA5L3htbGRzaWcjIj4NCiAgICA8U2lnbmVkSW5mbz48Q2Fub25pY2FsaXphdGlvbk1ldGhvZCBBbGdvcml0aG09Imh0dHA6Ly93d3cudzMub3JnLzIwMDEvMTAveG1sLWV4Yy1jMTRuIyI+PC9DYW5vbmljYWxpemF0aW9uTWV0aG9kPjxTaWduYXR1cmVNZXRob2QgQWxnb3JpdGhtPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwLzA5L3htbGRzaWcjcnNhLXNoYTEiPjwvU2lnbmF0dXJlTWV0aG9kPjxSZWZlcmVuY2U+PFRyYW5zZm9ybXM+PFRyYW5zZm9ybSBBbGdvcml0aG09Imh0dHA6Ly93d3cudzMub3JnLzIwMDEvMTAveG1sLWV4Yy1jMTRuIyI+PC9UcmFuc2Zvcm0+PC9UcmFuc2Zvcm1zPjxEaWdlc3RNZXRob2QgQWxnb3JpdGhtPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwLzA5L3htbGRzaWcjc2hhMSI+PC9EaWdlc3RNZXRob2Q+PERpZ2VzdFZhbHVlPjVWem5UWG9FUmpDamRGQ3NTaUljcHIvNDJDUT08L0RpZ2VzdFZhbHVlPjwvUmVmZXJlbmNlPjwvU2lnbmVkSW5mbz4NCiAgICA8U2lnbmF0dXJlVmFsdWU+ZjFsSHpFSzRMazRNQUR2UVhOSEdhaUVlYkdtM3BXeFl5MzR3dE5kYzZ2Lzd2QnNTdXMvcUhqU3Q3YkFHMVpCa2JidTVsZjRFN2tvbHBCVDBUMFVKK3RUQ1hxaWxleVRRanNEMG9iQ1QwZ0xPYk9uL2VXZk11REQ5MUI3WExvdmVONzlzK3VtVXI5Y0JCTVdlNWIxQnZpWjUyaGVhNlJnU3hXR3NGMVJ0NXFFPTwvU2lnbmF0dXJlVmFsdWU+DQogICAgPEtleUluZm8+DQogICAgICAgIDxYNTA5RGF0YT4NCiAgICAgICAgICAgIDxYNTA5Q2VydGlmaWNhdGU+TUlJRHVEQ0NBcUNnQXdJQkFnSUVYY210SHpBTkJna3Foa2lHOXcwQkFRc0ZBREEyTVF3d0NnWURWUVFLRXdOdWFITXhDekFKQmdOVkJBc1RBa05CTVJrd0Z3WURWUVFERXhCT1NGTWdTVTVVSUV4bGRtVnNJREZFTUI0WERUSXdNVEF5TWpFd01qRTFOVm9YRFRJeU1UQXlNakV3TlRFMU5Wb3dRekVNTUFvR0ExVUVDaE1EYm1oek1ROHdEUVlEVlFRTEV3WlFaVzl3YkdVeElqQWdCZ05WQkFNTUdUVTFOVEkxTXpVeU1URXdPRjlTUVU1RVQwMWZWVk5GVWxFd2daOHdEUVlKS29aSWh2Y05BUUVCQlFBRGdZMEFNSUdKQW9HQkFLdDRzek53N09BSDdBUVJyRGUveEJJbXNNbU1pUzlFc3JUM2EzcC9MaDNicmR6STlhYWpUVVoyYi9jdmJPYTdQZVlkN3UrSzRhMlpkMFhrKzBHRm1ZR3pTVlg2aVlqYmx3cjB2YWkzMXpWN0crbEd2SHhINnBTb0xDd0lDYVpBRndhYmVENU96OTQreUEzYVdOV3RHVjBEZmg5cXdIM1pGQ0lNUnN2ZXJOMXBBZ01CQUFHamdnRkRNSUlCUHpBT0JnTlZIUThCQWY4RUJBTUNCa0F3WlFZRFZSMGdBUUgvQkZzd1dUQlhCZ3NxaGpvQWlYdG1BQU1DQURCSU1FWUdDQ3NHQVFVRkJ3SUJGanBvZEhSd2N6b3ZMM0JyYVM1dWFITXVkV3N2WTJWeWRHbG1hV05oZEdWZmNHOXNhV05wWlhNdlkyOXVkR1Z1ZEY5amIyMXRhWFJ0Wlc1ME1ETUdBMVVkSHdRc01Db3dLS0Ftb0NTR0ltaDBkSEE2THk5amNtd3VibWh6TG5WckwybHVkQzh4WkM5amNteGpNeTVqY213d0t3WURWUjBRQkNRd0lvQVBNakF5TURFd01qSXhNREl4TlRWYWdROHlNREl5TURNeE56RXdOVEUxTlZvd0h3WURWUjBqQkJnd0ZvQVVvSllmZ1lUTlBkNkVVS0w2UUxJekh4WTVQRkl3SFFZRFZSME9CQllFRkx0eXZZU3lhcWc2MEFFVVpneGswd3JqUkpjK01Ba0dBMVVkRXdRQ01BQXdHUVlKS29aSWh2WjlCMEVBQkF3d0Noc0VWamd1TXdNQ0JMQXdEUVlKS29aSWh2Y05BUUVMQlFBRGdnRUJBQmN6eThCOGp1UHBJZmFUTkZjeHJDMjJhQ1gveFlabWhyTC9OdklCQWFYMUc1aGppd21rR0tFMmhSVElyNjdQeFp4bVhzSnhpZ1JCTUhQbEkrbFkvK29rekgwR2k3YjVicWx3N3B4R0lnSk8wMDB3OHBGc3ZvOXc0MklZaEhvZHN2bkRWU3hoTVQwSjQ2UWhrOXNvRTBMam9FVUxLUVBQbFlHa2UvR2wzbTE3SXRGWXdPYlFIMGZNRXdtaXFCeWVJZno3Z1NjY096TDVjSXA2UGNaVE9qbzJJcVFwZ0VtaGpPY1JJbkVxQU5pdFNkam9pSkFKenBhYVpqWVRSZEhVWDdpN2FqRWlING05MW5GVys0QXFrTnR0bGI0V2NHS3NTbVdnZktLaGVGNElvWktNRTgweGVyU2dNeTh2dGpMT0JKQ0dYejB3TEdtUXVSbXhNVHE4OHE0PTwvWDUwOUNlcnRpZmljYXRlPg0KICAgICAgICA8L1g1MDlEYXRhPg0KICAgIDwvS2V5SW5mbz4NCjwvU2lnbmF0dXJlPg0K" + } + ] + } + } + ] +} diff --git a/src/test/resources/examples/full_examples/primary-care/acute/nominated-pharmacy/medical-prescriber/cancellations/8-Process-Request-Send-200_OK.json b/src/test/resources/examples/full_examples/primary-care/acute/nominated-pharmacy/medical-prescriber/cancellations/8-Process-Request-Send-200_OK.json new file mode 100644 index 00000000..9ea56659 --- /dev/null +++ b/src/test/resources/examples/full_examples/primary-care/acute/nominated-pharmacy/medical-prescriber/cancellations/8-Process-Request-Send-200_OK.json @@ -0,0 +1,379 @@ +{ + "resourceType": "Bundle", + "id": "0cb82cfa-76c8-4fb2-a08e-bf0e326e5487", + "identifier": { + "system": "https://tools.ietf.org/html/rfc4122", + "value": "b1039a88-4276-460f-a38a-e7d5caa0fca6" + }, + "type": "message", + "entry": [ + { + "fullUrl": "urn:uuid:17773b27-427e-4940-8c16-64cdac715001", + "resource": { + "resourceType": "MessageHeader", + "eventCoding": { + "system": "https://fhir.nhs.uk/CodeSystem/message-event", + "code": "prescription-order", + "display": "Prescription Order" + }, + "sender": { + "identifier": { + "system": "https://fhir.nhs.uk/Id/ods-organization-code", + "value": "A83008" + }, + "display": "HALLGARTH SURGERY" + }, + "source": { + "endpoint": "https://directory.spineservices.nhs.uk/STU3/Organization/A83008" + }, + "destination": [ + { + "endpoint": "https://sandbox.api.service.nhs.uk/electronic-prescriptions/$post-message", + "receiver": { + "identifier": { + "system": "https://fhir.nhs.uk/Id/ods-organization-code", + "value": "FCG71" + } + } + } + ], + "focus": [ + { + "reference": "urn:uuid:56166769-c1c4-4d07-afa8-132b5dfca666" + }, + { + "reference": "urn:uuid:a54219b8-f741-4c47-b662-e4f8dfa49ab6" + } + ] + } + }, + { + "fullUrl": "urn:uuid:a54219b8-f741-4c47-b662-e4f8dfa49ab6", + "resource": { + "resourceType": "MedicationRequest", + "extension": [ + { + "url": "https://fhir.nhs.uk/StructureDefinition/Extension-DM-PrescriptionType", + "valueCoding": { + "system": "https://fhir.nhs.uk/CodeSystem/prescription-type", + "code": "0101", + "display": "Primary Care Prescriber - Medical Prescriber" + } + } + ], + "identifier": [ + { + "system": "https://fhir.nhs.uk/Id/prescription-order-item-number", + "value": "299c610b-f4f1-4eac-a7d7-4fb6b0556e11" + } + ], + "status": "active", + "intent": "order", + "category": [ + { + "coding": [ + { + "system": "http://terminology.hl7.org/CodeSystem/medicationrequest-category", + "code": "community", + "display": "Community" + } + ] + } + ], + "medicationCodeableConcept": { + "coding": [ + { + "system": "http://snomed.info/sct", + "code": "322237000", + "display": "Paracetamol 500mg soluble tablets" + } + ] + }, + "subject": { + "reference": "urn:uuid:78d3c2eb-009e-4ec8-a358-b042954aa9b2" + }, + "requester": { + "reference": "urn:uuid:56166769-c1c4-4d07-afa8-132b5dfca666" + }, + "groupIdentifier": { + "extension": [ + { + "url": "https://fhir.nhs.uk/StructureDefinition/Extension-DM-PrescriptionId", + "valueIdentifier": { + "system": "https://fhir.nhs.uk/Id/prescription", + "value": "9e7b3d2e-c711-4cb7-99d3-fdc9d993fb65" + } + } + ], + "system": "https://fhir.nhs.uk/Id/prescription-order-number", + "value": "124C9E-A83008-49E282" + }, + "courseOfTherapyType": { + "coding": [ + { + "system": "http://terminology.hl7.org/CodeSystem/medicationrequest-course-of-therapy", + "code": "acute", + "display": "Short course (acute) therapy" + } + ] + }, + "dosageInstruction": [ + { + "text": "4 times a day - Oral", + "timing": { + "repeat": { + "frequency": 4, + "period": 1, + "periodUnit": "d" + } + }, + "route": { + "coding": [ + { + "system": "http://snomed.info/sct", + "code": "26643006", + "display": "Oral" + } + ] + } + } + ], + "dispenseRequest": { + "extension": [ + { + "url": "https://fhir.nhs.uk/StructureDefinition/Extension-DM-PerformerSiteType", + "valueCoding": { + "system": "https://fhir.nhs.uk/CodeSystem/dispensing-site-preference", + "code": "P1" + } + } + ], + "validityPeriod": { + "start": "2021-04-20", + "end": "2021-05-18" + }, + "expectedSupplyDuration": { + "value": 30, + "unit": "day", + "system": "http://unitsofmeasure.org", + "code": "d" + }, + "performer": { + "identifier": { + "system": "https://fhir.nhs.uk/Id/ods-organization-code", + "value": "FCG71" + } + }, + "quantity": { + "value": 100, + "unit": "tablet", + "system": "http://snomed.info/sct", + "code": "428673006" + } + }, + "substitution": { + "allowedBoolean": false + } + } + }, + { + "fullUrl": "urn:uuid:78d3c2eb-009e-4ec8-a358-b042954aa9b2", + "resource": { + "resourceType": "Patient", + "identifier": [ + { + "system": "https://fhir.nhs.uk/Id/nhs-number", + "value": "9990548609" + } + ], + "name": [ + { + "use": "usual", + "family": "XXTESTPATIENT-TGNP", + "given": [ + "DONOTUSE" + ], + "prefix": [ + "MR" + ] + } + ], + "gender": "male", + "birthDate": "1932-01-06", + "address": [ + { + "use": "home", + "line": [ + "1 Trevelyan Square", + "Boar Lane", + "Leeds", + "West Yorkshire" + ], + "postalCode": "LS1 6AE" + } + ], + "generalPractitioner": [ + { + "identifier": { + "system": "https://fhir.nhs.uk/Id/ods-organization-code", + "value": "A83008" + } + } + ] + } + }, + { + "fullUrl": "urn:uuid:56166769-c1c4-4d07-afa8-132b5dfca666", + "resource": { + "resourceType": "PractitionerRole", + "identifier": [ + { + "system": "https://fhir.nhs.uk/Id/sds-role-profile-id", + "value": "200102238987" + } + ], + "practitioner": { + "reference": "urn:uuid:a8c85454-f8cb-498d-9629-78e2cb5fa47a" + }, + "organization": { + "reference": "urn:uuid:3b4b03a5-52ba-4ba6-9b82-70350aa109d8" + }, + "code": [ + { + "coding": [ + { + "system": "https://fhir.nhs.uk/CodeSystem/NHSDigital-SDS-JobRoleCode", + "code": "S8000:G8000:R8000", + "display": "Clinical Practitioner Access Role" + } + ] + } + ], + "telecom": [ + { + "system": "phone", + "value": "01234567890", + "use": "work" + } + ] + } + }, + { + "fullUrl": "urn:uuid:a8c85454-f8cb-498d-9629-78e2cb5fa47a", + "resource": { + "resourceType": "Practitioner", + "identifier": [ + { + "system": "https://fhir.nhs.uk/Id/sds-user-id", + "value": "555086689106" + }, + { + "system": "https://fhir.hl7.org.uk/Id/gmc-number", + "value": "6095103" + }, + { + "system": "https://fhir.hl7.org.uk/Id/din-number", + "value": "977677" + } + ], + "name": [ + { + "family": "BOIN", + "given": [ + "C" + ], + "prefix": [ + "DR" + ] + } + ] + } + }, + { + "fullUrl": "urn:uuid:3b4b03a5-52ba-4ba6-9b82-70350aa109d8", + "resource": { + "resourceType": "Organization", + "identifier": [ + { + "system": "https://fhir.nhs.uk/Id/ods-organization-code", + "value": "A83008" + } + ], + "type": [ + { + "coding": [ + { + "system": "https://fhir.nhs.uk/CodeSystem/organisation-role", + "code": "76", + "display": "GP PRACTICE" + } + ] + } + ], + "name": "HALLGARTH SURGERY", + "address": [ + { + "use": "work", + "type": "both", + "line": [ + "HALLGARTH SURGERY", + "CHEAPSIDE" + ], + "city": "SHILDON", + "district": "COUNTY DURHAM", + "postalCode": "DL4 2HP" + } + ], + "telecom": [ + { + "system": "phone", + "value": "0115 9737320", + "use": "work" + } + ], + "partOf": { + "identifier": { + "system": "https://fhir.nhs.uk/Id/ods-organization-code", + "value": "84H" + }, + "display": "NHS COUNTY DURHAM CCG" + } + } + }, + { + "fullUrl": "urn:uuid:28828c55-8fa7-42d7-916f-fcf076e0c10e", + "resource": { + "resourceType": "Provenance", + "id": "28828c55-8fa7-42d7-916f-fcf076e0c10e", + "target": [ + { + "reference": "urn:uuid:a54219b8-f741-4c47-b662-e4f8dfa49ab6" + } + ], + "recorded": "2021-02-11T16:35:38+00:00", + "agent": [ + { + "who": { + "reference": "urn:uuid:56166769-c1c4-4d07-afa8-132b5dfca666" + } + } + ], + "signature": [ + { + "type": [ + { + "system": "urn:iso-astm:E1762-95:2013", + "code": "1.2.840.10065.1.12.1.1" + } + ], + "when": "2021-04-20T05:45:40+00:00", + "who": { + "reference": "urn:uuid:56166769-c1c4-4d07-afa8-132b5dfca666" + }, + "data": "DQo8U2lnbmF0dXJlIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwLzA5L3htbGRzaWcjIj4NCiAgICA8U2lnbmVkSW5mbz48Q2Fub25pY2FsaXphdGlvbk1ldGhvZCBBbGdvcml0aG09Imh0dHA6Ly93d3cudzMub3JnLzIwMDEvMTAveG1sLWV4Yy1jMTRuIyI+PC9DYW5vbmljYWxpemF0aW9uTWV0aG9kPjxTaWduYXR1cmVNZXRob2QgQWxnb3JpdGhtPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwLzA5L3htbGRzaWcjcnNhLXNoYTEiPjwvU2lnbmF0dXJlTWV0aG9kPjxSZWZlcmVuY2U+PFRyYW5zZm9ybXM+PFRyYW5zZm9ybSBBbGdvcml0aG09Imh0dHA6Ly93d3cudzMub3JnLzIwMDEvMTAveG1sLWV4Yy1jMTRuIyI+PC9UcmFuc2Zvcm0+PC9UcmFuc2Zvcm1zPjxEaWdlc3RNZXRob2QgQWxnb3JpdGhtPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwLzA5L3htbGRzaWcjc2hhMSI+PC9EaWdlc3RNZXRob2Q+PERpZ2VzdFZhbHVlPjVWem5UWG9FUmpDamRGQ3NTaUljcHIvNDJDUT08L0RpZ2VzdFZhbHVlPjwvUmVmZXJlbmNlPjwvU2lnbmVkSW5mbz4NCiAgICA8U2lnbmF0dXJlVmFsdWU+ZjFsSHpFSzRMazRNQUR2UVhOSEdhaUVlYkdtM3BXeFl5MzR3dE5kYzZ2Lzd2QnNTdXMvcUhqU3Q3YkFHMVpCa2JidTVsZjRFN2tvbHBCVDBUMFVKK3RUQ1hxaWxleVRRanNEMG9iQ1QwZ0xPYk9uL2VXZk11REQ5MUI3WExvdmVONzlzK3VtVXI5Y0JCTVdlNWIxQnZpWjUyaGVhNlJnU3hXR3NGMVJ0NXFFPTwvU2lnbmF0dXJlVmFsdWU+DQogICAgPEtleUluZm8+DQogICAgICAgIDxYNTA5RGF0YT4NCiAgICAgICAgICAgIDxYNTA5Q2VydGlmaWNhdGU+TUlJRHVEQ0NBcUNnQXdJQkFnSUVYY210SHpBTkJna3Foa2lHOXcwQkFRc0ZBREEyTVF3d0NnWURWUVFLRXdOdWFITXhDekFKQmdOVkJBc1RBa05CTVJrd0Z3WURWUVFERXhCT1NGTWdTVTVVSUV4bGRtVnNJREZFTUI0WERUSXdNVEF5TWpFd01qRTFOVm9YRFRJeU1UQXlNakV3TlRFMU5Wb3dRekVNTUFvR0ExVUVDaE1EYm1oek1ROHdEUVlEVlFRTEV3WlFaVzl3YkdVeElqQWdCZ05WQkFNTUdUVTFOVEkxTXpVeU1URXdPRjlTUVU1RVQwMWZWVk5GVWxFd2daOHdEUVlKS29aSWh2Y05BUUVCQlFBRGdZMEFNSUdKQW9HQkFLdDRzek53N09BSDdBUVJyRGUveEJJbXNNbU1pUzlFc3JUM2EzcC9MaDNicmR6STlhYWpUVVoyYi9jdmJPYTdQZVlkN3UrSzRhMlpkMFhrKzBHRm1ZR3pTVlg2aVlqYmx3cjB2YWkzMXpWN0crbEd2SHhINnBTb0xDd0lDYVpBRndhYmVENU96OTQreUEzYVdOV3RHVjBEZmg5cXdIM1pGQ0lNUnN2ZXJOMXBBZ01CQUFHamdnRkRNSUlCUHpBT0JnTlZIUThCQWY4RUJBTUNCa0F3WlFZRFZSMGdBUUgvQkZzd1dUQlhCZ3NxaGpvQWlYdG1BQU1DQURCSU1FWUdDQ3NHQVFVRkJ3SUJGanBvZEhSd2N6b3ZMM0JyYVM1dWFITXVkV3N2WTJWeWRHbG1hV05oZEdWZmNHOXNhV05wWlhNdlkyOXVkR1Z1ZEY5amIyMXRhWFJ0Wlc1ME1ETUdBMVVkSHdRc01Db3dLS0Ftb0NTR0ltaDBkSEE2THk5amNtd3VibWh6TG5WckwybHVkQzh4WkM5amNteGpNeTVqY213d0t3WURWUjBRQkNRd0lvQVBNakF5TURFd01qSXhNREl4TlRWYWdROHlNREl5TURNeE56RXdOVEUxTlZvd0h3WURWUjBqQkJnd0ZvQVVvSllmZ1lUTlBkNkVVS0w2UUxJekh4WTVQRkl3SFFZRFZSME9CQllFRkx0eXZZU3lhcWc2MEFFVVpneGswd3JqUkpjK01Ba0dBMVVkRXdRQ01BQXdHUVlKS29aSWh2WjlCMEVBQkF3d0Noc0VWamd1TXdNQ0JMQXdEUVlKS29aSWh2Y05BUUVMQlFBRGdnRUJBQmN6eThCOGp1UHBJZmFUTkZjeHJDMjJhQ1gveFlabWhyTC9OdklCQWFYMUc1aGppd21rR0tFMmhSVElyNjdQeFp4bVhzSnhpZ1JCTUhQbEkrbFkvK29rekgwR2k3YjVicWx3N3B4R0lnSk8wMDB3OHBGc3ZvOXc0MklZaEhvZHN2bkRWU3hoTVQwSjQ2UWhrOXNvRTBMam9FVUxLUVBQbFlHa2UvR2wzbTE3SXRGWXdPYlFIMGZNRXdtaXFCeWVJZno3Z1NjY096TDVjSXA2UGNaVE9qbzJJcVFwZ0VtaGpPY1JJbkVxQU5pdFNkam9pSkFKenBhYVpqWVRSZEhVWDdpN2FqRWlING05MW5GVys0QXFrTnR0bGI0V2NHS3NTbVdnZktLaGVGNElvWktNRTgweGVyU2dNeTh2dGpMT0JKQ0dYejB3TEdtUXVSbXhNVHE4OHE0PTwvWDUwOUNlcnRpZmljYXRlPg0KICAgICAgICA8L1g1MDlEYXRhPg0KICAgIDwvS2V5SW5mbz4NCjwvU2lnbmF0dXJlPg0K" + } + ] + } + } + ] +} diff --git a/src/test/resources/examples/full_examples/primary-care/acute/nominated-pharmacy/medical-prescriber/cancellations/9-Process-Request-Cancel-200_OK.json b/src/test/resources/examples/full_examples/primary-care/acute/nominated-pharmacy/medical-prescriber/cancellations/9-Process-Request-Cancel-200_OK.json new file mode 100644 index 00000000..9a056da1 --- /dev/null +++ b/src/test/resources/examples/full_examples/primary-care/acute/nominated-pharmacy/medical-prescriber/cancellations/9-Process-Request-Cancel-200_OK.json @@ -0,0 +1,388 @@ +{ + "resourceType": "Bundle", + "id": "0cb82cfa-76c8-4fb2-a08e-bf0e326e5487", + "identifier": { + "system": "https://tools.ietf.org/html/rfc4122", + "value": "26c2db27-c887-40d4-9379-079c1a798399" + }, + "type": "message", + "entry": [ + { + "fullUrl": "urn:uuid:17773b27-427e-4940-8c16-64cdac715001", + "resource": { + "resourceType": "MessageHeader", + "eventCoding": { + "system": "https://fhir.nhs.uk/CodeSystem/message-event", + "code": "prescription-order-update", + "display": "Prescription Order Update" + }, + "sender": { + "identifier": { + "system": "https://fhir.nhs.uk/Id/ods-organization-code", + "value": "A83008" + }, + "display": "HALLGARTH SURGERY" + }, + "source": { + "endpoint": "https://directory.spineservices.nhs.uk/STU3/Organization/A83008" + }, + "destination": [ + { + "endpoint": "https://sandbox.api.service.nhs.uk/electronic-prescriptions/$post-message", + "receiver": { + "identifier": { + "system": "https://fhir.nhs.uk/Id/ods-organization-code", + "value": "FCG71" + } + } + } + ], + "focus": [ + { + "reference": "urn:uuid:56166769-c1c4-4d07-afa8-132b5dfca666" + }, + { + "reference": "urn:uuid:a54219b8-f741-4c47-b662-e4f8dfa49ab6" + } + ] + } + }, + { + "fullUrl": "urn:uuid:a54219b8-f741-4c47-b662-e4f8dfa49ab6", + "resource": { + "resourceType": "MedicationRequest", + "extension": [ + { + "url": "https://fhir.nhs.uk/StructureDefinition/Extension-DM-PrescriptionType", + "valueCoding": { + "system": "https://fhir.nhs.uk/CodeSystem/prescription-type", + "code": "0101", + "display": "Primary Care Prescriber - Medical Prescriber" + } + } + ], + "identifier": [ + { + "system": "https://fhir.nhs.uk/Id/prescription-order-item-number", + "value": "299c610b-f4f1-4eac-a7d7-4fb6b0556e11" + } + ], + "status": "cancelled", + "statusReason": { + "coding": [ + { + "system": "https://fhir.nhs.uk/CodeSystem/medicationrequest-status-reason", + "code": "0009", + "display": "Patient deducted - registered with new practice" + } + ] + }, + "intent": "order", + "category": [ + { + "coding": [ + { + "system": "http://terminology.hl7.org/CodeSystem/medicationrequest-category", + "code": "community", + "display": "Community" + } + ] + } + ], + "medicationCodeableConcept": { + "coding": [ + { + "system": "http://snomed.info/sct", + "code": "322237000", + "display": "Paracetamol 500mg soluble tablets" + } + ] + }, + "subject": { + "reference": "urn:uuid:78d3c2eb-009e-4ec8-a358-b042954aa9b2" + }, + "requester": { + "reference": "urn:uuid:56166769-c1c4-4d07-afa8-132b5dfca666" + }, + "groupIdentifier": { + "extension": [ + { + "url": "https://fhir.nhs.uk/StructureDefinition/Extension-DM-PrescriptionId", + "valueIdentifier": { + "system": "https://fhir.nhs.uk/Id/prescription", + "value": "5dfe61bc-57ab-42ce-b65a-a96a9b1c3aa7" + } + } + ], + "system": "https://fhir.nhs.uk/Id/prescription-order-number", + "value": "7EE792-A83008-4EC8BZ" + }, + "courseOfTherapyType": { + "coding": [ + { + "system": "http://terminology.hl7.org/CodeSystem/medicationrequest-course-of-therapy", + "code": "acute", + "display": "Short course (acute) therapy" + } + ] + }, + "dosageInstruction": [ + { + "text": "4 times a day - Oral", + "timing": { + "repeat": { + "frequency": 4, + "period": 1, + "periodUnit": "d" + } + }, + "route": { + "coding": [ + { + "system": "http://snomed.info/sct", + "code": "26643006", + "display": "Oral" + } + ] + } + } + ], + "dispenseRequest": { + "extension": [ + { + "url": "https://fhir.nhs.uk/StructureDefinition/Extension-DM-PerformerSiteType", + "valueCoding": { + "system": "https://fhir.nhs.uk/CodeSystem/dispensing-site-preference", + "code": "P1" + } + } + ], + "validityPeriod": { + "start": "2021-04-20", + "end": "2021-05-18" + }, + "expectedSupplyDuration": { + "value": 30, + "unit": "day", + "system": "http://unitsofmeasure.org", + "code": "d" + }, + "performer": { + "identifier": { + "system": "https://fhir.nhs.uk/Id/ods-organization-code", + "value": "FCG71" + } + }, + "quantity": { + "value": 100, + "unit": "tablet", + "system": "http://snomed.info/sct", + "code": "428673006" + } + }, + "substitution": { + "allowedBoolean": false + } + } + }, + { + "fullUrl": "urn:uuid:78d3c2eb-009e-4ec8-a358-b042954aa9b2", + "resource": { + "resourceType": "Patient", + "identifier": [ + { + "system": "https://fhir.nhs.uk/Id/nhs-number", + "value": "9990548609" + } + ], + "name": [ + { + "use": "usual", + "family": "XXTESTPATIENT-TGNP", + "given": [ + "DONOTUSE" + ], + "prefix": [ + "MR" + ] + } + ], + "gender": "male", + "birthDate": "1932-01-06", + "address": [ + { + "use": "home", + "line": [ + "1 Trevelyan Square", + "Boar Lane", + "Leeds", + "West Yorkshire" + ], + "postalCode": "LS1 6AE" + } + ], + "generalPractitioner": [ + { + "identifier": { + "system": "https://fhir.nhs.uk/Id/ods-organization-code", + "value": "A83008" + } + } + ] + } + }, + { + "fullUrl": "urn:uuid:56166769-c1c4-4d07-afa8-132b5dfca666", + "resource": { + "resourceType": "PractitionerRole", + "identifier": [ + { + "system": "https://fhir.nhs.uk/Id/sds-role-profile-id", + "value": "200102238987" + } + ], + "practitioner": { + "reference": "urn:uuid:a8c85454-f8cb-498d-9629-78e2cb5fa47a" + }, + "organization": { + "reference": "urn:uuid:3b4b03a5-52ba-4ba6-9b82-70350aa109d8" + }, + "code": [ + { + "coding": [ + { + "system": "https://fhir.nhs.uk/CodeSystem/NHSDigital-SDS-JobRoleCode", + "code": "S8000:G8000:R8000", + "display": "Clinical Practitioner Access Role" + } + ] + } + ], + "telecom": [ + { + "system": "phone", + "value": "01234567890", + "use": "work" + } + ] + } + }, + { + "fullUrl": "urn:uuid:a8c85454-f8cb-498d-9629-78e2cb5fa47a", + "resource": { + "resourceType": "Practitioner", + "identifier": [ + { + "system": "https://fhir.nhs.uk/Id/sds-user-id", + "value": "555086689106" + }, + { + "system": "https://fhir.hl7.org.uk/Id/gmc-number", + "value": "6095103" + }, + { + "system": "https://fhir.hl7.org.uk/Id/din-number", + "value": "977677" + } + ], + "name": [ + { + "family": "BOIN", + "given": [ + "C" + ], + "prefix": [ + "DR" + ] + } + ] + } + }, + { + "fullUrl": "urn:uuid:3b4b03a5-52ba-4ba6-9b82-70350aa109d8", + "resource": { + "resourceType": "Organization", + "identifier": [ + { + "system": "https://fhir.nhs.uk/Id/ods-organization-code", + "value": "A83008" + } + ], + "type": [ + { + "coding": [ + { + "system": "https://fhir.nhs.uk/CodeSystem/organisation-role", + "code": "76", + "display": "GP PRACTICE" + } + ] + } + ], + "name": "HALLGARTH SURGERY", + "address": [ + { + "use": "work", + "type": "both", + "line": [ + "HALLGARTH SURGERY", + "CHEAPSIDE" + ], + "city": "SHILDON", + "district": "COUNTY DURHAM", + "postalCode": "DL4 2HP" + } + ], + "telecom": [ + { + "system": "phone", + "value": "0115 9737320", + "use": "work" + } + ], + "partOf": { + "identifier": { + "system": "https://fhir.nhs.uk/Id/ods-organization-code", + "value": "84H" + }, + "display": "NHS COUNTY DURHAM CCG" + } + } + }, + { + "fullUrl": "urn:uuid:28828c55-8fa7-42d7-916f-fcf076e0c10e", + "resource": { + "resourceType": "Provenance", + "id": "28828c55-8fa7-42d7-916f-fcf076e0c10e", + "target": [ + { + "reference": "urn:uuid:a54219b8-f741-4c47-b662-e4f8dfa49ab6" + } + ], + "recorded": "2021-02-11T16:35:38+00:00", + "agent": [ + { + "who": { + "reference": "urn:uuid:56166769-c1c4-4d07-afa8-132b5dfca666" + } + } + ], + "signature": [ + { + "type": [ + { + "system": "urn:iso-astm:E1762-95:2013", + "code": "1.2.840.10065.1.12.1.1" + } + ], + "when": "2021-04-20T05:45:41+00:00", + "who": { + "reference": "urn:uuid:56166769-c1c4-4d07-afa8-132b5dfca666" + }, + "data": "DQo8U2lnbmF0dXJlIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwLzA5L3htbGRzaWcjIj4NCiAgICA8U2lnbmVkSW5mbz48Q2Fub25pY2FsaXphdGlvbk1ldGhvZCBBbGdvcml0aG09Imh0dHA6Ly93d3cudzMub3JnLzIwMDEvMTAveG1sLWV4Yy1jMTRuIyI+PC9DYW5vbmljYWxpemF0aW9uTWV0aG9kPjxTaWduYXR1cmVNZXRob2QgQWxnb3JpdGhtPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwLzA5L3htbGRzaWcjcnNhLXNoYTEiPjwvU2lnbmF0dXJlTWV0aG9kPjxSZWZlcmVuY2U+PFRyYW5zZm9ybXM+PFRyYW5zZm9ybSBBbGdvcml0aG09Imh0dHA6Ly93d3cudzMub3JnLzIwMDEvMTAveG1sLWV4Yy1jMTRuIyI+PC9UcmFuc2Zvcm0+PC9UcmFuc2Zvcm1zPjxEaWdlc3RNZXRob2QgQWxnb3JpdGhtPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwLzA5L3htbGRzaWcjc2hhMSI+PC9EaWdlc3RNZXRob2Q+PERpZ2VzdFZhbHVlPjVWem5UWG9FUmpDamRGQ3NTaUljcHIvNDJDUT08L0RpZ2VzdFZhbHVlPjwvUmVmZXJlbmNlPjwvU2lnbmVkSW5mbz4NCiAgICA8U2lnbmF0dXJlVmFsdWU+ZjFsSHpFSzRMazRNQUR2UVhOSEdhaUVlYkdtM3BXeFl5MzR3dE5kYzZ2Lzd2QnNTdXMvcUhqU3Q3YkFHMVpCa2JidTVsZjRFN2tvbHBCVDBUMFVKK3RUQ1hxaWxleVRRanNEMG9iQ1QwZ0xPYk9uL2VXZk11REQ5MUI3WExvdmVONzlzK3VtVXI5Y0JCTVdlNWIxQnZpWjUyaGVhNlJnU3hXR3NGMVJ0NXFFPTwvU2lnbmF0dXJlVmFsdWU+DQogICAgPEtleUluZm8+DQogICAgICAgIDxYNTA5RGF0YT4NCiAgICAgICAgICAgIDxYNTA5Q2VydGlmaWNhdGU+TUlJRHVEQ0NBcUNnQXdJQkFnSUVYY210SHpBTkJna3Foa2lHOXcwQkFRc0ZBREEyTVF3d0NnWURWUVFLRXdOdWFITXhDekFKQmdOVkJBc1RBa05CTVJrd0Z3WURWUVFERXhCT1NGTWdTVTVVSUV4bGRtVnNJREZFTUI0WERUSXdNVEF5TWpFd01qRTFOVm9YRFRJeU1UQXlNakV3TlRFMU5Wb3dRekVNTUFvR0ExVUVDaE1EYm1oek1ROHdEUVlEVlFRTEV3WlFaVzl3YkdVeElqQWdCZ05WQkFNTUdUVTFOVEkxTXpVeU1URXdPRjlTUVU1RVQwMWZWVk5GVWxFd2daOHdEUVlKS29aSWh2Y05BUUVCQlFBRGdZMEFNSUdKQW9HQkFLdDRzek53N09BSDdBUVJyRGUveEJJbXNNbU1pUzlFc3JUM2EzcC9MaDNicmR6STlhYWpUVVoyYi9jdmJPYTdQZVlkN3UrSzRhMlpkMFhrKzBHRm1ZR3pTVlg2aVlqYmx3cjB2YWkzMXpWN0crbEd2SHhINnBTb0xDd0lDYVpBRndhYmVENU96OTQreUEzYVdOV3RHVjBEZmg5cXdIM1pGQ0lNUnN2ZXJOMXBBZ01CQUFHamdnRkRNSUlCUHpBT0JnTlZIUThCQWY4RUJBTUNCa0F3WlFZRFZSMGdBUUgvQkZzd1dUQlhCZ3NxaGpvQWlYdG1BQU1DQURCSU1FWUdDQ3NHQVFVRkJ3SUJGanBvZEhSd2N6b3ZMM0JyYVM1dWFITXVkV3N2WTJWeWRHbG1hV05oZEdWZmNHOXNhV05wWlhNdlkyOXVkR1Z1ZEY5amIyMXRhWFJ0Wlc1ME1ETUdBMVVkSHdRc01Db3dLS0Ftb0NTR0ltaDBkSEE2THk5amNtd3VibWh6TG5WckwybHVkQzh4WkM5amNteGpNeTVqY213d0t3WURWUjBRQkNRd0lvQVBNakF5TURFd01qSXhNREl4TlRWYWdROHlNREl5TURNeE56RXdOVEUxTlZvd0h3WURWUjBqQkJnd0ZvQVVvSllmZ1lUTlBkNkVVS0w2UUxJekh4WTVQRkl3SFFZRFZSME9CQllFRkx0eXZZU3lhcWc2MEFFVVpneGswd3JqUkpjK01Ba0dBMVVkRXdRQ01BQXdHUVlKS29aSWh2WjlCMEVBQkF3d0Noc0VWamd1TXdNQ0JMQXdEUVlKS29aSWh2Y05BUUVMQlFBRGdnRUJBQmN6eThCOGp1UHBJZmFUTkZjeHJDMjJhQ1gveFlabWhyTC9OdklCQWFYMUc1aGppd21rR0tFMmhSVElyNjdQeFp4bVhzSnhpZ1JCTUhQbEkrbFkvK29rekgwR2k3YjVicWx3N3B4R0lnSk8wMDB3OHBGc3ZvOXc0MklZaEhvZHN2bkRWU3hoTVQwSjQ2UWhrOXNvRTBMam9FVUxLUVBQbFlHa2UvR2wzbTE3SXRGWXdPYlFIMGZNRXdtaXFCeWVJZno3Z1NjY096TDVjSXA2UGNaVE9qbzJJcVFwZ0VtaGpPY1JJbkVxQU5pdFNkam9pSkFKenBhYVpqWVRSZEhVWDdpN2FqRWlING05MW5GVys0QXFrTnR0bGI0V2NHS3NTbVdnZktLaGVGNElvWktNRTgweGVyU2dNeTh2dGpMT0JKQ0dYejB3TEdtUXVSbXhNVHE4OHE0PTwvWDUwOUNlcnRpZmljYXRlPg0KICAgICAgICA8L1g1MDlEYXRhPg0KICAgIDwvS2V5SW5mbz4NCjwvU2lnbmF0dXJlPg0K" + } + ] + } + } + ] +} diff --git a/src/test/resources/examples/full_examples/primary-care/acute/nominated-pharmacy/medical-prescriber/cancellations/9-Process-Request-Send-200_OK.json b/src/test/resources/examples/full_examples/primary-care/acute/nominated-pharmacy/medical-prescriber/cancellations/9-Process-Request-Send-200_OK.json new file mode 100644 index 00000000..55dde4fb --- /dev/null +++ b/src/test/resources/examples/full_examples/primary-care/acute/nominated-pharmacy/medical-prescriber/cancellations/9-Process-Request-Send-200_OK.json @@ -0,0 +1,379 @@ +{ + "resourceType": "Bundle", + "id": "0cb82cfa-76c8-4fb2-a08e-bf0e326e5487", + "identifier": { + "system": "https://tools.ietf.org/html/rfc4122", + "value": "f722066f-1c57-427a-89a3-2bf2f051a999" + }, + "type": "message", + "entry": [ + { + "fullUrl": "urn:uuid:17773b27-427e-4940-8c16-64cdac715001", + "resource": { + "resourceType": "MessageHeader", + "eventCoding": { + "system": "https://fhir.nhs.uk/CodeSystem/message-event", + "code": "prescription-order", + "display": "Prescription Order" + }, + "sender": { + "identifier": { + "system": "https://fhir.nhs.uk/Id/ods-organization-code", + "value": "A83008" + }, + "display": "HALLGARTH SURGERY" + }, + "source": { + "endpoint": "https://directory.spineservices.nhs.uk/STU3/Organization/A83008" + }, + "destination": [ + { + "endpoint": "https://sandbox.api.service.nhs.uk/electronic-prescriptions/$post-message", + "receiver": { + "identifier": { + "system": "https://fhir.nhs.uk/Id/ods-organization-code", + "value": "FCG71" + } + } + } + ], + "focus": [ + { + "reference": "urn:uuid:56166769-c1c4-4d07-afa8-132b5dfca666" + }, + { + "reference": "urn:uuid:a54219b8-f741-4c47-b662-e4f8dfa49ab6" + } + ] + } + }, + { + "fullUrl": "urn:uuid:a54219b8-f741-4c47-b662-e4f8dfa49ab6", + "resource": { + "resourceType": "MedicationRequest", + "extension": [ + { + "url": "https://fhir.nhs.uk/StructureDefinition/Extension-DM-PrescriptionType", + "valueCoding": { + "system": "https://fhir.nhs.uk/CodeSystem/prescription-type", + "code": "0101", + "display": "Primary Care Prescriber - Medical Prescriber" + } + } + ], + "identifier": [ + { + "system": "https://fhir.nhs.uk/Id/prescription-order-item-number", + "value": "299c610b-f4f1-4eac-a7d7-4fb6b0556e11" + } + ], + "status": "active", + "intent": "order", + "category": [ + { + "coding": [ + { + "system": "http://terminology.hl7.org/CodeSystem/medicationrequest-category", + "code": "community", + "display": "Community" + } + ] + } + ], + "medicationCodeableConcept": { + "coding": [ + { + "system": "http://snomed.info/sct", + "code": "322237000", + "display": "Paracetamol 500mg soluble tablets" + } + ] + }, + "subject": { + "reference": "urn:uuid:78d3c2eb-009e-4ec8-a358-b042954aa9b2" + }, + "requester": { + "reference": "urn:uuid:56166769-c1c4-4d07-afa8-132b5dfca666" + }, + "groupIdentifier": { + "extension": [ + { + "url": "https://fhir.nhs.uk/StructureDefinition/Extension-DM-PrescriptionId", + "valueIdentifier": { + "system": "https://fhir.nhs.uk/Id/prescription", + "value": "5dfe61bc-57ab-42ce-b65a-a96a9b1c3aa7" + } + } + ], + "system": "https://fhir.nhs.uk/Id/prescription-order-number", + "value": "7EE792-A83008-4EC8BZ" + }, + "courseOfTherapyType": { + "coding": [ + { + "system": "http://terminology.hl7.org/CodeSystem/medicationrequest-course-of-therapy", + "code": "acute", + "display": "Short course (acute) therapy" + } + ] + }, + "dosageInstruction": [ + { + "text": "4 times a day - Oral", + "timing": { + "repeat": { + "frequency": 4, + "period": 1, + "periodUnit": "d" + } + }, + "route": { + "coding": [ + { + "system": "http://snomed.info/sct", + "code": "26643006", + "display": "Oral" + } + ] + } + } + ], + "dispenseRequest": { + "extension": [ + { + "url": "https://fhir.nhs.uk/StructureDefinition/Extension-DM-PerformerSiteType", + "valueCoding": { + "system": "https://fhir.nhs.uk/CodeSystem/dispensing-site-preference", + "code": "P1" + } + } + ], + "validityPeriod": { + "start": "2021-04-20", + "end": "2021-05-18" + }, + "expectedSupplyDuration": { + "value": 30, + "unit": "day", + "system": "http://unitsofmeasure.org", + "code": "d" + }, + "performer": { + "identifier": { + "system": "https://fhir.nhs.uk/Id/ods-organization-code", + "value": "FCG71" + } + }, + "quantity": { + "value": 100, + "unit": "tablet", + "system": "http://snomed.info/sct", + "code": "428673006" + } + }, + "substitution": { + "allowedBoolean": false + } + } + }, + { + "fullUrl": "urn:uuid:78d3c2eb-009e-4ec8-a358-b042954aa9b2", + "resource": { + "resourceType": "Patient", + "identifier": [ + { + "system": "https://fhir.nhs.uk/Id/nhs-number", + "value": "9990548609" + } + ], + "name": [ + { + "use": "usual", + "family": "XXTESTPATIENT-TGNP", + "given": [ + "DONOTUSE" + ], + "prefix": [ + "MR" + ] + } + ], + "gender": "male", + "birthDate": "1932-01-06", + "address": [ + { + "use": "home", + "line": [ + "1 Trevelyan Square", + "Boar Lane", + "Leeds", + "West Yorkshire" + ], + "postalCode": "LS1 6AE" + } + ], + "generalPractitioner": [ + { + "identifier": { + "system": "https://fhir.nhs.uk/Id/ods-organization-code", + "value": "A83008" + } + } + ] + } + }, + { + "fullUrl": "urn:uuid:56166769-c1c4-4d07-afa8-132b5dfca666", + "resource": { + "resourceType": "PractitionerRole", + "identifier": [ + { + "system": "https://fhir.nhs.uk/Id/sds-role-profile-id", + "value": "200102238987" + } + ], + "practitioner": { + "reference": "urn:uuid:a8c85454-f8cb-498d-9629-78e2cb5fa47a" + }, + "organization": { + "reference": "urn:uuid:3b4b03a5-52ba-4ba6-9b82-70350aa109d8" + }, + "code": [ + { + "coding": [ + { + "system": "https://fhir.nhs.uk/CodeSystem/NHSDigital-SDS-JobRoleCode", + "code": "S8000:G8000:R8000", + "display": "Clinical Practitioner Access Role" + } + ] + } + ], + "telecom": [ + { + "system": "phone", + "value": "01234567890", + "use": "work" + } + ] + } + }, + { + "fullUrl": "urn:uuid:a8c85454-f8cb-498d-9629-78e2cb5fa47a", + "resource": { + "resourceType": "Practitioner", + "identifier": [ + { + "system": "https://fhir.nhs.uk/Id/sds-user-id", + "value": "555086689106" + }, + { + "system": "https://fhir.hl7.org.uk/Id/gmc-number", + "value": "6095103" + }, + { + "system": "https://fhir.hl7.org.uk/Id/din-number", + "value": "977677" + } + ], + "name": [ + { + "family": "BOIN", + "given": [ + "C" + ], + "prefix": [ + "DR" + ] + } + ] + } + }, + { + "fullUrl": "urn:uuid:3b4b03a5-52ba-4ba6-9b82-70350aa109d8", + "resource": { + "resourceType": "Organization", + "identifier": [ + { + "system": "https://fhir.nhs.uk/Id/ods-organization-code", + "value": "A83008" + } + ], + "type": [ + { + "coding": [ + { + "system": "https://fhir.nhs.uk/CodeSystem/organisation-role", + "code": "76", + "display": "GP PRACTICE" + } + ] + } + ], + "name": "HALLGARTH SURGERY", + "address": [ + { + "use": "work", + "type": "both", + "line": [ + "HALLGARTH SURGERY", + "CHEAPSIDE" + ], + "city": "SHILDON", + "district": "COUNTY DURHAM", + "postalCode": "DL4 2HP" + } + ], + "telecom": [ + { + "system": "phone", + "value": "0115 9737320", + "use": "work" + } + ], + "partOf": { + "identifier": { + "system": "https://fhir.nhs.uk/Id/ods-organization-code", + "value": "84H" + }, + "display": "NHS COUNTY DURHAM CCG" + } + } + }, + { + "fullUrl": "urn:uuid:28828c55-8fa7-42d7-916f-fcf076e0c10e", + "resource": { + "resourceType": "Provenance", + "id": "28828c55-8fa7-42d7-916f-fcf076e0c10e", + "target": [ + { + "reference": "urn:uuid:a54219b8-f741-4c47-b662-e4f8dfa49ab6" + } + ], + "recorded": "2021-02-11T16:35:38+00:00", + "agent": [ + { + "who": { + "reference": "urn:uuid:56166769-c1c4-4d07-afa8-132b5dfca666" + } + } + ], + "signature": [ + { + "type": [ + { + "system": "urn:iso-astm:E1762-95:2013", + "code": "1.2.840.10065.1.12.1.1" + } + ], + "when": "2021-04-20T05:45:41+00:00", + "who": { + "reference": "urn:uuid:56166769-c1c4-4d07-afa8-132b5dfca666" + }, + "data": "DQo8U2lnbmF0dXJlIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwLzA5L3htbGRzaWcjIj4NCiAgICA8U2lnbmVkSW5mbz48Q2Fub25pY2FsaXphdGlvbk1ldGhvZCBBbGdvcml0aG09Imh0dHA6Ly93d3cudzMub3JnLzIwMDEvMTAveG1sLWV4Yy1jMTRuIyI+PC9DYW5vbmljYWxpemF0aW9uTWV0aG9kPjxTaWduYXR1cmVNZXRob2QgQWxnb3JpdGhtPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwLzA5L3htbGRzaWcjcnNhLXNoYTEiPjwvU2lnbmF0dXJlTWV0aG9kPjxSZWZlcmVuY2U+PFRyYW5zZm9ybXM+PFRyYW5zZm9ybSBBbGdvcml0aG09Imh0dHA6Ly93d3cudzMub3JnLzIwMDEvMTAveG1sLWV4Yy1jMTRuIyI+PC9UcmFuc2Zvcm0+PC9UcmFuc2Zvcm1zPjxEaWdlc3RNZXRob2QgQWxnb3JpdGhtPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwLzA5L3htbGRzaWcjc2hhMSI+PC9EaWdlc3RNZXRob2Q+PERpZ2VzdFZhbHVlPjVWem5UWG9FUmpDamRGQ3NTaUljcHIvNDJDUT08L0RpZ2VzdFZhbHVlPjwvUmVmZXJlbmNlPjwvU2lnbmVkSW5mbz4NCiAgICA8U2lnbmF0dXJlVmFsdWU+ZjFsSHpFSzRMazRNQUR2UVhOSEdhaUVlYkdtM3BXeFl5MzR3dE5kYzZ2Lzd2QnNTdXMvcUhqU3Q3YkFHMVpCa2JidTVsZjRFN2tvbHBCVDBUMFVKK3RUQ1hxaWxleVRRanNEMG9iQ1QwZ0xPYk9uL2VXZk11REQ5MUI3WExvdmVONzlzK3VtVXI5Y0JCTVdlNWIxQnZpWjUyaGVhNlJnU3hXR3NGMVJ0NXFFPTwvU2lnbmF0dXJlVmFsdWU+DQogICAgPEtleUluZm8+DQogICAgICAgIDxYNTA5RGF0YT4NCiAgICAgICAgICAgIDxYNTA5Q2VydGlmaWNhdGU+TUlJRHVEQ0NBcUNnQXdJQkFnSUVYY210SHpBTkJna3Foa2lHOXcwQkFRc0ZBREEyTVF3d0NnWURWUVFLRXdOdWFITXhDekFKQmdOVkJBc1RBa05CTVJrd0Z3WURWUVFERXhCT1NGTWdTVTVVSUV4bGRtVnNJREZFTUI0WERUSXdNVEF5TWpFd01qRTFOVm9YRFRJeU1UQXlNakV3TlRFMU5Wb3dRekVNTUFvR0ExVUVDaE1EYm1oek1ROHdEUVlEVlFRTEV3WlFaVzl3YkdVeElqQWdCZ05WQkFNTUdUVTFOVEkxTXpVeU1URXdPRjlTUVU1RVQwMWZWVk5GVWxFd2daOHdEUVlKS29aSWh2Y05BUUVCQlFBRGdZMEFNSUdKQW9HQkFLdDRzek53N09BSDdBUVJyRGUveEJJbXNNbU1pUzlFc3JUM2EzcC9MaDNicmR6STlhYWpUVVoyYi9jdmJPYTdQZVlkN3UrSzRhMlpkMFhrKzBHRm1ZR3pTVlg2aVlqYmx3cjB2YWkzMXpWN0crbEd2SHhINnBTb0xDd0lDYVpBRndhYmVENU96OTQreUEzYVdOV3RHVjBEZmg5cXdIM1pGQ0lNUnN2ZXJOMXBBZ01CQUFHamdnRkRNSUlCUHpBT0JnTlZIUThCQWY4RUJBTUNCa0F3WlFZRFZSMGdBUUgvQkZzd1dUQlhCZ3NxaGpvQWlYdG1BQU1DQURCSU1FWUdDQ3NHQVFVRkJ3SUJGanBvZEhSd2N6b3ZMM0JyYVM1dWFITXVkV3N2WTJWeWRHbG1hV05oZEdWZmNHOXNhV05wWlhNdlkyOXVkR1Z1ZEY5amIyMXRhWFJ0Wlc1ME1ETUdBMVVkSHdRc01Db3dLS0Ftb0NTR0ltaDBkSEE2THk5amNtd3VibWh6TG5WckwybHVkQzh4WkM5amNteGpNeTVqY213d0t3WURWUjBRQkNRd0lvQVBNakF5TURFd01qSXhNREl4TlRWYWdROHlNREl5TURNeE56RXdOVEUxTlZvd0h3WURWUjBqQkJnd0ZvQVVvSllmZ1lUTlBkNkVVS0w2UUxJekh4WTVQRkl3SFFZRFZSME9CQllFRkx0eXZZU3lhcWc2MEFFVVpneGswd3JqUkpjK01Ba0dBMVVkRXdRQ01BQXdHUVlKS29aSWh2WjlCMEVBQkF3d0Noc0VWamd1TXdNQ0JMQXdEUVlKS29aSWh2Y05BUUVMQlFBRGdnRUJBQmN6eThCOGp1UHBJZmFUTkZjeHJDMjJhQ1gveFlabWhyTC9OdklCQWFYMUc1aGppd21rR0tFMmhSVElyNjdQeFp4bVhzSnhpZ1JCTUhQbEkrbFkvK29rekgwR2k3YjVicWx3N3B4R0lnSk8wMDB3OHBGc3ZvOXc0MklZaEhvZHN2bkRWU3hoTVQwSjQ2UWhrOXNvRTBMam9FVUxLUVBQbFlHa2UvR2wzbTE3SXRGWXdPYlFIMGZNRXdtaXFCeWVJZno3Z1NjY096TDVjSXA2UGNaVE9qbzJJcVFwZ0VtaGpPY1JJbkVxQU5pdFNkam9pSkFKenBhYVpqWVRSZEhVWDdpN2FqRWlING05MW5GVys0QXFrTnR0bGI0V2NHS3NTbVdnZktLaGVGNElvWktNRTgweGVyU2dNeTh2dGpMT0JKQ0dYejB3TEdtUXVSbXhNVHE4OHE0PTwvWDUwOUNlcnRpZmljYXRlPg0KICAgICAgICA8L1g1MDlEYXRhPg0KICAgIDwvS2V5SW5mbz4NCjwvU2lnbmF0dXJlPg0K" + } + ] + } + } + ] +} diff --git a/src/test/resources/examples/full_examples/primary-care/acute/nominated-pharmacy/responsible-party-org/3-Prepare-Request-200_OK.json b/src/test/resources/examples/full_examples/primary-care/acute/nominated-pharmacy/responsible-party-org/3-Prepare-Request-200_OK.json new file mode 100644 index 00000000..7d175e60 --- /dev/null +++ b/src/test/resources/examples/full_examples/primary-care/acute/nominated-pharmacy/responsible-party-org/3-Prepare-Request-200_OK.json @@ -0,0 +1,819 @@ +{ + "resourceType": "Bundle", + "id": "0cb82cfa-76c8-4fb2-a08e-bf0e326e5487", + "identifier": { + "system": "https://tools.ietf.org/html/rfc4122", + "value": "46183abc-9fad-4673-85db-ce2cb6614732" + }, + "type": "message", + "entry": [ + { + "fullUrl": "urn:uuid:17773b27-427e-4940-8c16-64cdac715001", + "resource": { + "resourceType": "MessageHeader", + "eventCoding": { + "system": "https://fhir.nhs.uk/CodeSystem/message-event", + "code": "prescription-order", + "display": "Prescription Order" + }, + "destination": [ + { + "endpoint": "https://sandbox.api.service.nhs.uk/electronic-prescriptions/$post-message", + "receiver": { + "identifier": { + "system": "https://fhir.nhs.uk/Id/ods-organization-code", + "value": "VNE51" + }, + "display": "The Simple Pharmacy" + } + } + ], + "sender": { + "identifier": { + "system": "https://fhir.nhs.uk/Id/ods-organization-code", + "value": "A83008" + }, + "display": "HALLGARTH SURGERY" + }, + "source": { + "endpoint": "https://directory.spineservices.nhs.uk/STU3/Organization/A83008" + }, + "focus": [ + { + "reference": "urn:uuid:a54219b8-f741-4c47-b662-e4f8dfa49ab6" + }, + { + "reference": "urn:uuid:6989b7bd-8db6-428c-a593-4022e3044c00" + }, + { + "reference": "urn:uuid:2868554c-5565-4d31-b92a-c5b8dab8b90a" + }, + { + "reference": "urn:uuid:5cb17f5a-11ac-4e18-825f-6470467238b3" + }, + { + "reference": "urn:uuid:56166769-c1c4-4d07-afa8-132b5dfca666" + }, + { + "reference": "urn:uuid:78d3c2eb-009e-4ec8-a358-b042954aa9b2" + } + ] + } + }, + { + "fullUrl": "urn:uuid:a5acefc1-f8ca-4989-a5ac-34ae36741466", + "resource": { + "resourceType": "PractitionerRole", + "organization": { + "reference": "urn:uuid:28b10eb9-94fe-4779-8517-b476abd6b08f" + }, + "practitioner": { + "identifier": { + "system": "https://fhir.hl7.org.uk/Id/gmc-number", + "value": "C6095103" + } + } + } + }, + { + "fullUrl": "urn:uuid:28b10eb9-94fe-4779-8517-b476abd6b08f", + "resource": { + "resourceType": "Organization", + "id": "28b10eb9-94fe-4779-8517-b476abd6b08f", + "identifier": [ + { + "system": "https://fhir.nhs.uk/Id/ods-organization-code", + "value": "RBA" + } + ], + "name": "TAUNTON AND SOMERSET NHS FOUNDATION TRUST", + "address": [ + { + "line": [ + "MUSGROVE PARK HOSPITAL", + "PARKFIELD DRIVE", + "TAUNTON" + ], + "postalCode": "TA1 5DA" + } + ], + "telecom": [ + { + "system": "phone", + "value": "01823333444", + "use": "work" + } + ] + } + }, + { + "fullUrl": "urn:uuid:a54219b8-f741-4c47-b662-e4f8dfa49ab6", + "resource": { + "resourceType": "MedicationRequest", + "extension": [ + { + "url": "https://fhir.nhs.uk/StructureDefinition/Extension-DM-PrescriptionType", + "valueCoding": { + "system": "https://fhir.nhs.uk/CodeSystem/prescription-type", + "code": "0101", + "display": "Primary Care Prescriber - Medical Prescriber" + } + }, + { + "url": "https://fhir.nhs.uk/StructureDefinition/Extension-DM-ResponsiblePractitioner", + "valueReference": { + "reference": "urn:uuid:a5acefc1-f8ca-4989-a5ac-34ae36741466", + "display": "TAUNTON AND SOMERSET NHS FOUNDATION TRUST" + } + } + ], + "identifier": [ + { + "system": "https://fhir.nhs.uk/Id/prescription-order-item-number", + "value": "a54219b8-f741-4c47-b662-e4f8dfa49ab6" + } + ], + "status": "active", + "intent": "order", + "category": [ + { + "coding": [ + { + "system": "http://terminology.hl7.org/CodeSystem/medicationrequest-category", + "code": "community", + "display": "Community" + } + ] + } + ], + "medicationCodeableConcept": { + "coding": [ + { + "system": "http://snomed.info/sct", + "code": "39732311000001104", + "display": "Amoxicillin 250mg capsules" + } + ] + }, + "subject": { + "reference": "urn:uuid:78d3c2eb-009e-4ec8-a358-b042954aa9b2" + }, + "requester": { + "reference": "urn:uuid:56166769-c1c4-4d07-afa8-132b5dfca666" + }, + "groupIdentifier": { + "system": "https://fhir.nhs.uk/Id/prescription-order-number", + "value": "24F5DA-A83008-7EFE6Z", + "extension": [ + { + "url": "https://fhir.nhs.uk/StructureDefinition/Extension-DM-PrescriptionId", + "valueIdentifier": { + "system": "https://fhir.nhs.uk/Id/prescription", + "value": "20ba5fb5-cb58-462c-923e-22d180b09356" + } + } + ] + }, + "courseOfTherapyType": { + "coding": [ + { + "system": "http://terminology.hl7.org/CodeSystem/medicationrequest-course-of-therapy", + "code": "acute", + "display": "Short course (acute) therapy" + } + ] + }, + "dosageInstruction": [ + { + "text": "2 times a day for 10 days", + "timing": { + "repeat": { + "frequency": 2, + "period": 1, + "periodUnit": "d" + } + }, + "route": { + "coding": [ + { + "system": "http://snomed.info/sct", + "code": "26643006", + "display": "Oral" + } + ] + } + } + ], + "dispenseRequest": { + "extension": [ + { + "url": "https://fhir.nhs.uk/StructureDefinition/Extension-DM-PerformerSiteType", + "valueCoding": { + "system": "https://fhir.nhs.uk/CodeSystem/dispensing-site-preference", + "code": "P1" + } + } + ], + "validityPeriod": { + "start": "2022-10-21" + }, + "quantity": { + "value": 20, + "unit": "tablet", + "system": "http://snomed.info/sct", + "code": "428673006" + }, + "expectedSupplyDuration": { + "value": 10, + "unit": "day", + "system": "http://unitsofmeasure.org", + "code": "d" + }, + "performer": { + "identifier": { + "system": "https://fhir.nhs.uk/Id/ods-organization-code", + "value": "VNE51" + } + } + }, + "substitution": { + "allowedBoolean": false + } + } + }, + { + "fullUrl": "urn:uuid:6989b7bd-8db6-428c-a593-4022e3044c00", + "resource": { + "resourceType": "MedicationRequest", + "extension": [ + { + "url": "https://fhir.nhs.uk/StructureDefinition/Extension-DM-PrescriptionType", + "valueCoding": { + "system": "https://fhir.nhs.uk/CodeSystem/prescription-type", + "code": "0101", + "display": "Primary Care Prescriber - Medical Prescriber" + } + }, + { + "url": "https://fhir.nhs.uk/StructureDefinition/Extension-DM-ResponsiblePractitioner", + "valueReference": { + "reference": "urn:uuid:a5acefc1-f8ca-4989-a5ac-34ae36741466", + "display": "TAUNTON AND SOMERSET NHS FOUNDATION TRUST" + } + } + ], + "identifier": [ + { + "system": "https://fhir.nhs.uk/Id/prescription-order-item-number", + "value": "6989b7bd-8db6-428c-a593-4022e3044c00" + } + ], + "status": "active", + "intent": "order", + "category": [ + { + "coding": [ + { + "system": "http://terminology.hl7.org/CodeSystem/medicationrequest-category", + "code": "community", + "display": "Community" + } + ] + } + ], + "medicationCodeableConcept": { + "coding": [ + { + "system": "http://snomed.info/sct", + "code": "322341003", + "display": "Co-codamol 30mg/500mg tablets" + } + ] + }, + "subject": { + "reference": "urn:uuid:78d3c2eb-009e-4ec8-a358-b042954aa9b2" + }, + "requester": { + "reference": "urn:uuid:56166769-c1c4-4d07-afa8-132b5dfca666" + }, + "groupIdentifier": { + "system": "https://fhir.nhs.uk/Id/prescription-order-number", + "value": "24F5DA-A83008-7EFE6Z", + "extension": [ + { + "url": "https://fhir.nhs.uk/StructureDefinition/Extension-DM-PrescriptionId", + "valueIdentifier": { + "system": "https://fhir.nhs.uk/Id/prescription", + "value": "20ba5fb5-cb58-462c-923e-22d180b09356" + } + } + ] + }, + "courseOfTherapyType": { + "coding": [ + { + "system": "http://terminology.hl7.org/CodeSystem/medicationrequest-course-of-therapy", + "code": "acute", + "display": "Short course (acute) therapy" + } + ] + }, + "dosageInstruction": [ + { + "text": "2 times a day for 10 days", + "timing": { + "repeat": { + "frequency": 2, + "period": 1, + "periodUnit": "d" + } + }, + "route": { + "coding": [ + { + "system": "http://snomed.info/sct", + "code": "26643006", + "display": "Oral" + } + ] + } + } + ], + "dispenseRequest": { + "extension": [ + { + "url": "https://fhir.nhs.uk/StructureDefinition/Extension-DM-PerformerSiteType", + "valueCoding": { + "system": "https://fhir.nhs.uk/CodeSystem/dispensing-site-preference", + "code": "P1" + } + } + ], + "validityPeriod": { + "start": "2022-10-21" + }, + "quantity": { + "value": 20, + "unit": "tablet", + "system": "http://snomed.info/sct", + "code": "428673006" + }, + "expectedSupplyDuration": { + "value": 10, + "unit": "day", + "system": "http://unitsofmeasure.org", + "code": "d" + }, + "performer": { + "identifier": { + "system": "https://fhir.nhs.uk/Id/ods-organization-code", + "value": "VNE51" + } + } + }, + "substitution": { + "allowedBoolean": false + } + } + }, + { + "fullUrl": "urn:uuid:2868554c-5565-4d31-b92a-c5b8dab8b90a", + "resource": { + "resourceType": "MedicationRequest", + "extension": [ + { + "url": "https://fhir.nhs.uk/StructureDefinition/Extension-DM-PrescriptionType", + "valueCoding": { + "system": "https://fhir.nhs.uk/CodeSystem/prescription-type", + "code": "0101", + "display": "Primary Care Prescriber - Medical Prescriber" + } + }, + { + "url": "https://fhir.nhs.uk/StructureDefinition/Extension-DM-ResponsiblePractitioner", + "valueReference": { + "reference": "urn:uuid:a5acefc1-f8ca-4989-a5ac-34ae36741466", + "display": "TAUNTON AND SOMERSET NHS FOUNDATION TRUST" + } + } + ], + "identifier": [ + { + "system": "https://fhir.nhs.uk/Id/prescription-order-item-number", + "value": "2868554c-5565-4d31-b92a-c5b8dab8b90a" + } + ], + "status": "active", + "intent": "order", + "category": [ + { + "coding": [ + { + "system": "http://terminology.hl7.org/CodeSystem/medicationrequest-category", + "code": "community", + "display": "Community" + } + ] + } + ], + "medicationCodeableConcept": { + "coding": [ + { + "system": "http://snomed.info/sct", + "code": "321080004", + "display": "Pseudoephedrine hydrochloride 60mg tablets" + } + ] + }, + "subject": { + "reference": "urn:uuid:78d3c2eb-009e-4ec8-a358-b042954aa9b2" + }, + "requester": { + "reference": "urn:uuid:56166769-c1c4-4d07-afa8-132b5dfca666" + }, + "groupIdentifier": { + "system": "https://fhir.nhs.uk/Id/prescription-order-number", + "value": "24F5DA-A83008-7EFE6Z", + "extension": [ + { + "url": "https://fhir.nhs.uk/StructureDefinition/Extension-DM-PrescriptionId", + "valueIdentifier": { + "system": "https://fhir.nhs.uk/Id/prescription", + "value": "20ba5fb5-cb58-462c-923e-22d180b09356" + } + } + ] + }, + "courseOfTherapyType": { + "coding": [ + { + "system": "http://terminology.hl7.org/CodeSystem/medicationrequest-course-of-therapy", + "code": "acute", + "display": "Short course (acute) therapy" + } + ] + }, + "dosageInstruction": [ + { + "text": "3 times a day for 10 days", + "timing": { + "repeat": { + "frequency": 3, + "period": 1, + "periodUnit": "d" + } + }, + "route": { + "coding": [ + { + "system": "http://snomed.info/sct", + "code": "26643006", + "display": "Oral" + } + ] + } + } + ], + "dispenseRequest": { + "extension": [ + { + "url": "https://fhir.nhs.uk/StructureDefinition/Extension-DM-PerformerSiteType", + "valueCoding": { + "system": "https://fhir.nhs.uk/CodeSystem/dispensing-site-preference", + "code": "P1" + } + } + ], + "validityPeriod": { + "start": "2022-10-21" + }, + "quantity": { + "value": 30, + "unit": "tablet", + "system": "http://snomed.info/sct", + "code": "428673006" + }, + "expectedSupplyDuration": { + "value": 10, + "unit": "day", + "system": "http://unitsofmeasure.org", + "code": "d" + }, + "performer": { + "identifier": { + "system": "https://fhir.nhs.uk/Id/ods-organization-code", + "value": "VNE51" + } + } + }, + "substitution": { + "allowedBoolean": false + } + } + }, + { + "fullUrl": "urn:uuid:5cb17f5a-11ac-4e18-825f-6470467238b3", + "resource": { + "resourceType": "MedicationRequest", + "extension": [ + { + "url": "https://fhir.nhs.uk/StructureDefinition/Extension-DM-PrescriptionType", + "valueCoding": { + "system": "https://fhir.nhs.uk/CodeSystem/prescription-type", + "code": "0101", + "display": "Primary Care Prescriber - Medical Prescriber" + } + }, + { + "url": "https://fhir.nhs.uk/StructureDefinition/Extension-DM-ResponsiblePractitioner", + "valueReference": { + "reference": "urn:uuid:a5acefc1-f8ca-4989-a5ac-34ae36741466", + "display": "TAUNTON AND SOMERSET NHS FOUNDATION TRUST" + } + } + ], + "identifier": [ + { + "system": "https://fhir.nhs.uk/Id/prescription-order-item-number", + "value": "5cb17f5a-11ac-4e18-825f-6470467238b3" + } + ], + "status": "active", + "intent": "order", + "category": [ + { + "coding": [ + { + "system": "http://terminology.hl7.org/CodeSystem/medicationrequest-category", + "code": "community", + "display": "Community" + } + ] + } + ], + "medicationCodeableConcept": { + "coding": [ + { + "system": "http://snomed.info/sct", + "code": "324252006", + "display": "Azithromycin 250mg capsules" + } + ] + }, + "subject": { + "reference": "urn:uuid:78d3c2eb-009e-4ec8-a358-b042954aa9b2" + }, + "requester": { + "reference": "urn:uuid:56166769-c1c4-4d07-afa8-132b5dfca666" + }, + "groupIdentifier": { + "system": "https://fhir.nhs.uk/Id/prescription-order-number", + "value": "24F5DA-A83008-7EFE6Z", + "extension": [ + { + "url": "https://fhir.nhs.uk/StructureDefinition/Extension-DM-PrescriptionId", + "valueIdentifier": { + "system": "https://fhir.nhs.uk/Id/prescription", + "value": "20ba5fb5-cb58-462c-923e-22d180b09356" + } + } + ] + }, + "courseOfTherapyType": { + "coding": [ + { + "system": "http://terminology.hl7.org/CodeSystem/medicationrequest-course-of-therapy", + "code": "acute", + "display": "Short course (acute) therapy" + } + ] + }, + "dosageInstruction": [ + { + "text": "3 times a day for 10 days", + "timing": { + "repeat": { + "frequency": 3, + "period": 1, + "periodUnit": "d" + } + }, + "route": { + "coding": [ + { + "system": "http://snomed.info/sct", + "code": "26643006", + "display": "Oral" + } + ] + } + } + ], + "dispenseRequest": { + "extension": [ + { + "url": "https://fhir.nhs.uk/StructureDefinition/Extension-DM-PerformerSiteType", + "valueCoding": { + "system": "https://fhir.nhs.uk/CodeSystem/dispensing-site-preference", + "code": "P1" + } + } + ], + "validityPeriod": { + "start": "2022-10-21" + }, + "quantity": { + "value": 30, + "unit": "tablet", + "system": "http://snomed.info/sct", + "code": "428673006" + }, + "expectedSupplyDuration": { + "value": 10, + "unit": "day", + "system": "http://unitsofmeasure.org", + "code": "d" + }, + "performer": { + "identifier": { + "system": "https://fhir.nhs.uk/Id/ods-organization-code", + "value": "VNE51" + } + } + }, + "substitution": { + "allowedBoolean": false + } + } + }, + { + "fullUrl": "urn:uuid:78d3c2eb-009e-4ec8-a358-b042954aa9b2", + "resource": { + "resourceType": "Patient", + "identifier": [ + { + "system": "https://fhir.nhs.uk/Id/nhs-number", + "value": "9449304130" + } + ], + "name": [ + { + "use": "usual", + "family": "TWITCHETT", + "given": [ + "STACEY", + "MARISA" + ], + "prefix": [ + "MS" + ] + } + ], + "gender": "female", + "birthDate": "1948-04-30", + "address": [ + { + "use": "home", + "line": [ + "10 HEATHFIELD", + "COBHAM", + "SURREY" + ], + "postalCode": "KT11 2QY" + } + ], + "generalPractitioner": [ + { + "identifier": { + "system": "https://fhir.nhs.uk/Id/ods-organization-code", + "value": "A83008" + } + } + ] + } + }, + { + "fullUrl": "urn:uuid:56166769-c1c4-4d07-afa8-132b5dfca666", + "resource": { + "resourceType": "PractitionerRole", + "identifier": [ + { + "system": "https://fhir.nhs.uk/Id/sds-role-profile-id", + "value": "200102238987" + } + ], + "practitioner": { + "reference": "urn:uuid:a8c85454-f8cb-498d-9629-78e2cb5fa47a" + }, + "organization": { + "reference": "urn:uuid:3b4b03a5-52ba-4ba6-9b82-70350aa109d8" + }, + "code": [ + { + "coding": [ + { + "system": "https://fhir.nhs.uk/CodeSystem/NHSDigital-SDS-JobRoleCode", + "code": "R8000", + "display": "Clinical Practitioner Access Role" + }, + { + "system": "https://fhir.hl7.org.uk/CodeSystem/UKCore-SDSJobRoleName", + "code": "R8000", + "display": "Clinical Practitioner Access Role" + } + ] + } + ], + "telecom": [ + { + "system": "phone", + "use": "work", + "value": "01234567890" + } + ] + } + }, + { + "fullUrl": "urn:uuid:a8c85454-f8cb-498d-9629-78e2cb5fa47a", + "resource": { + "resourceType": "Practitioner", + "identifier": [ + { + "system": "https://fhir.nhs.uk/Id/sds-user-id", + "value": "555086689106" + }, + { + "system": "https://fhir.hl7.org.uk/Id/gmc-number", + "value": "6095103" + }, + { + "system": "https://fhir.hl7.org.uk/Id/din-number", + "value": "977677" + } + ], + "name": [ + { + "family": "BOIN", + "given": [ + "C" + ], + "prefix": [ + "DR" + ] + } + ] + } + }, + { + "fullUrl": "urn:uuid:3b4b03a5-52ba-4ba6-9b82-70350aa109d8", + "resource": { + "resourceType": "Organization", + "identifier": [ + { + "system": "https://fhir.nhs.uk/Id/ods-organization-code", + "value": "A83008" + } + ], + "type": [ + { + "coding": [ + { + "system": "https://fhir.nhs.uk/CodeSystem/organisation-role", + "code": "76", + "display": "GP PRACTICE" + } + ] + } + ], + "name": "HALLGARTH SURGERY", + "telecom": [ + { + "system": "phone", + "use": "work", + "value": "0115 9737320" + } + ], + "address": [ + { + "use": "work", + "type": "both", + "line": [ + "HALLGARTH SURGERY", + "CHEAPSIDE" + ], + "city": "SHILDON", + "district": "COUNTY DURHAM", + "postalCode": "DL4 2HP" + } + ], + "partOf": { + "identifier": { + "system": "https://fhir.nhs.uk/Id/ods-organization-code", + "value": "84H" + }, + "display": "NHS COUNTY DURHAM CCG" + } + } + } + ] +} diff --git a/src/test/resources/examples/full_examples/primary-care/acute/nominated-pharmacy/responsible-party-org/3-Prepare-Response-200_OK.json b/src/test/resources/examples/full_examples/primary-care/acute/nominated-pharmacy/responsible-party-org/3-Prepare-Response-200_OK.json new file mode 100644 index 00000000..53eab471 --- /dev/null +++ b/src/test/resources/examples/full_examples/primary-care/acute/nominated-pharmacy/responsible-party-org/3-Prepare-Response-200_OK.json @@ -0,0 +1,17 @@ +{ + "resourceType": "Parameters", + "parameter": [ + { + "name": "digest", + "valueString": "PFNpZ25lZEluZm8geG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvMDkveG1sZHNpZyMiPjxDYW5vbmljYWxpemF0aW9uTWV0aG9kIEFsZ29yaXRobT0iaHR0cDovL3d3dy53My5vcmcvMjAwMS8xMC94bWwtZXhjLWMxNG4jIj48L0Nhbm9uaWNhbGl6YXRpb25NZXRob2Q+PFNpZ25hdHVyZU1ldGhvZCBBbGdvcml0aG09Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvMDkveG1sZHNpZyNyc2Etc2hhMSI+PC9TaWduYXR1cmVNZXRob2Q+PFJlZmVyZW5jZT48VHJhbnNmb3Jtcz48VHJhbnNmb3JtIEFsZ29yaXRobT0iaHR0cDovL3d3dy53My5vcmcvMjAwMS8xMC94bWwtZXhjLWMxNG4jIj48L1RyYW5zZm9ybT48L1RyYW5zZm9ybXM+PERpZ2VzdE1ldGhvZCBBbGdvcml0aG09Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvMDkveG1sZHNpZyNzaGExIj48L0RpZ2VzdE1ldGhvZD48RGlnZXN0VmFsdWU+WlpKMTdKZU54NXMwOHVFWUloaGM0VjFiRDY0PTwvRGlnZXN0VmFsdWU+PC9SZWZlcmVuY2U+PC9TaWduZWRJbmZvPg==" + }, + { + "name": "timestamp", + "valueString": "2022-10-21T13:47:00+00:00" + }, + { + "name": "algorithm", + "valueString": "RS1" + } + ] +} diff --git a/src/test/resources/examples/full_examples/primary-care/acute/nominated-pharmacy/responsible-party-org/3-Process-Request-Send-200_OK.json b/src/test/resources/examples/full_examples/primary-care/acute/nominated-pharmacy/responsible-party-org/3-Process-Request-Send-200_OK.json new file mode 100644 index 00000000..9f870bc0 --- /dev/null +++ b/src/test/resources/examples/full_examples/primary-care/acute/nominated-pharmacy/responsible-party-org/3-Process-Request-Send-200_OK.json @@ -0,0 +1,854 @@ +{ + "resourceType": "Bundle", + "id": "0cb82cfa-76c8-4fb2-a08e-bf0e326e5487", + "identifier": { + "system": "https://tools.ietf.org/html/rfc4122", + "value": "46183abc-9fad-4673-85db-ce2cb6614732" + }, + "type": "message", + "entry": [ + { + "fullUrl": "urn:uuid:17773b27-427e-4940-8c16-64cdac715001", + "resource": { + "resourceType": "MessageHeader", + "eventCoding": { + "system": "https://fhir.nhs.uk/CodeSystem/message-event", + "code": "prescription-order", + "display": "Prescription Order" + }, + "destination": [ + { + "endpoint": "https://sandbox.api.service.nhs.uk/electronic-prescriptions/$post-message", + "receiver": { + "identifier": { + "system": "https://fhir.nhs.uk/Id/ods-organization-code", + "value": "VNE51" + }, + "display": "The Simple Pharmacy" + } + } + ], + "sender": { + "identifier": { + "system": "https://fhir.nhs.uk/Id/ods-organization-code", + "value": "A83008" + }, + "display": "HALLGARTH SURGERY" + }, + "source": { + "endpoint": "https://directory.spineservices.nhs.uk/STU3/Organization/A83008" + }, + "focus": [ + { + "reference": "urn:uuid:a54219b8-f741-4c47-b662-e4f8dfa49ab6" + }, + { + "reference": "urn:uuid:6989b7bd-8db6-428c-a593-4022e3044c00" + }, + { + "reference": "urn:uuid:2868554c-5565-4d31-b92a-c5b8dab8b90a" + }, + { + "reference": "urn:uuid:5cb17f5a-11ac-4e18-825f-6470467238b3" + }, + { + "reference": "urn:uuid:56166769-c1c4-4d07-afa8-132b5dfca666" + }, + { + "reference": "urn:uuid:78d3c2eb-009e-4ec8-a358-b042954aa9b2" + } + ] + } + }, + { + "fullUrl": "urn:uuid:a5acefc1-f8ca-4989-a5ac-34ae36741466", + "resource": { + "resourceType": "PractitionerRole", + "organization": { + "reference": "urn:uuid:28b10eb9-94fe-4779-8517-b476abd6b08f" + }, + "practitioner": { + "identifier": { + "system": "https://fhir.hl7.org.uk/Id/gmc-number", + "value": "C6095103" + } + } + } + }, + { + "fullUrl": "urn:uuid:28b10eb9-94fe-4779-8517-b476abd6b08f", + "resource": { + "resourceType": "Organization", + "id": "28b10eb9-94fe-4779-8517-b476abd6b08f", + "identifier": [ + { + "system": "https://fhir.nhs.uk/Id/ods-organization-code", + "value": "RBA" + } + ], + "name": "TAUNTON AND SOMERSET NHS FOUNDATION TRUST", + "address": [ + { + "line": [ + "MUSGROVE PARK HOSPITAL", + "PARKFIELD DRIVE", + "TAUNTON" + ], + "postalCode": "TA1 5DA" + } + ], + "telecom": [ + { + "system": "phone", + "value": "01823333444", + "use": "work" + } + ] + } + }, + { + "fullUrl": "urn:uuid:a54219b8-f741-4c47-b662-e4f8dfa49ab6", + "resource": { + "resourceType": "MedicationRequest", + "extension": [ + { + "url": "https://fhir.nhs.uk/StructureDefinition/Extension-DM-PrescriptionType", + "valueCoding": { + "system": "https://fhir.nhs.uk/CodeSystem/prescription-type", + "code": "0101", + "display": "Primary Care Prescriber - Medical Prescriber" + } + }, + { + "url": "https://fhir.nhs.uk/StructureDefinition/Extension-DM-ResponsiblePractitioner", + "valueReference": { + "reference": "urn:uuid:a5acefc1-f8ca-4989-a5ac-34ae36741466", + "display": "TAUNTON AND SOMERSET NHS FOUNDATION TRUST" + } + } + ], + "identifier": [ + { + "system": "https://fhir.nhs.uk/Id/prescription-order-item-number", + "value": "a54219b8-f741-4c47-b662-e4f8dfa49ab6" + } + ], + "status": "active", + "intent": "order", + "category": [ + { + "coding": [ + { + "system": "http://terminology.hl7.org/CodeSystem/medicationrequest-category", + "code": "community", + "display": "Community" + } + ] + } + ], + "medicationCodeableConcept": { + "coding": [ + { + "system": "http://snomed.info/sct", + "code": "39732311000001104", + "display": "Amoxicillin 250mg capsules" + } + ] + }, + "subject": { + "reference": "urn:uuid:78d3c2eb-009e-4ec8-a358-b042954aa9b2" + }, + "requester": { + "reference": "urn:uuid:56166769-c1c4-4d07-afa8-132b5dfca666" + }, + "groupIdentifier": { + "system": "https://fhir.nhs.uk/Id/prescription-order-number", + "value": "24F5DA-A83008-7EFE6Z", + "extension": [ + { + "url": "https://fhir.nhs.uk/StructureDefinition/Extension-DM-PrescriptionId", + "valueIdentifier": { + "system": "https://fhir.nhs.uk/Id/prescription", + "value": "20ba5fb5-cb58-462c-923e-22d180b09356" + } + } + ] + }, + "courseOfTherapyType": { + "coding": [ + { + "system": "http://terminology.hl7.org/CodeSystem/medicationrequest-course-of-therapy", + "code": "acute", + "display": "Short course (acute) therapy" + } + ] + }, + "dosageInstruction": [ + { + "text": "2 times a day for 10 days", + "timing": { + "repeat": { + "frequency": 2, + "period": 1, + "periodUnit": "d" + } + }, + "route": { + "coding": [ + { + "system": "http://snomed.info/sct", + "code": "26643006", + "display": "Oral" + } + ] + } + } + ], + "dispenseRequest": { + "extension": [ + { + "url": "https://fhir.nhs.uk/StructureDefinition/Extension-DM-PerformerSiteType", + "valueCoding": { + "system": "https://fhir.nhs.uk/CodeSystem/dispensing-site-preference", + "code": "P1" + } + } + ], + "validityPeriod": { + "start": "2022-10-21" + }, + "quantity": { + "value": 20, + "unit": "tablet", + "system": "http://snomed.info/sct", + "code": "428673006" + }, + "expectedSupplyDuration": { + "value": 10, + "unit": "day", + "system": "http://unitsofmeasure.org", + "code": "d" + }, + "performer": { + "identifier": { + "system": "https://fhir.nhs.uk/Id/ods-organization-code", + "value": "VNE51" + } + } + }, + "substitution": { + "allowedBoolean": false + } + } + }, + { + "fullUrl": "urn:uuid:6989b7bd-8db6-428c-a593-4022e3044c00", + "resource": { + "resourceType": "MedicationRequest", + "extension": [ + { + "url": "https://fhir.nhs.uk/StructureDefinition/Extension-DM-PrescriptionType", + "valueCoding": { + "system": "https://fhir.nhs.uk/CodeSystem/prescription-type", + "code": "0101", + "display": "Primary Care Prescriber - Medical Prescriber" + } + }, + { + "url": "https://fhir.nhs.uk/StructureDefinition/Extension-DM-ResponsiblePractitioner", + "valueReference": { + "reference": "urn:uuid:a5acefc1-f8ca-4989-a5ac-34ae36741466", + "display": "TAUNTON AND SOMERSET NHS FOUNDATION TRUST" + } + } + ], + "identifier": [ + { + "system": "https://fhir.nhs.uk/Id/prescription-order-item-number", + "value": "6989b7bd-8db6-428c-a593-4022e3044c00" + } + ], + "status": "active", + "intent": "order", + "category": [ + { + "coding": [ + { + "system": "http://terminology.hl7.org/CodeSystem/medicationrequest-category", + "code": "community", + "display": "Community" + } + ] + } + ], + "medicationCodeableConcept": { + "coding": [ + { + "system": "http://snomed.info/sct", + "code": "322341003", + "display": "Co-codamol 30mg/500mg tablets" + } + ] + }, + "subject": { + "reference": "urn:uuid:78d3c2eb-009e-4ec8-a358-b042954aa9b2" + }, + "requester": { + "reference": "urn:uuid:56166769-c1c4-4d07-afa8-132b5dfca666" + }, + "groupIdentifier": { + "system": "https://fhir.nhs.uk/Id/prescription-order-number", + "value": "24F5DA-A83008-7EFE6Z", + "extension": [ + { + "url": "https://fhir.nhs.uk/StructureDefinition/Extension-DM-PrescriptionId", + "valueIdentifier": { + "system": "https://fhir.nhs.uk/Id/prescription", + "value": "20ba5fb5-cb58-462c-923e-22d180b09356" + } + } + ] + }, + "courseOfTherapyType": { + "coding": [ + { + "system": "http://terminology.hl7.org/CodeSystem/medicationrequest-course-of-therapy", + "code": "acute", + "display": "Short course (acute) therapy" + } + ] + }, + "dosageInstruction": [ + { + "text": "2 times a day for 10 days", + "timing": { + "repeat": { + "frequency": 2, + "period": 1, + "periodUnit": "d" + } + }, + "route": { + "coding": [ + { + "system": "http://snomed.info/sct", + "code": "26643006", + "display": "Oral" + } + ] + } + } + ], + "dispenseRequest": { + "extension": [ + { + "url": "https://fhir.nhs.uk/StructureDefinition/Extension-DM-PerformerSiteType", + "valueCoding": { + "system": "https://fhir.nhs.uk/CodeSystem/dispensing-site-preference", + "code": "P1" + } + } + ], + "validityPeriod": { + "start": "2022-10-21" + }, + "quantity": { + "value": 20, + "unit": "tablet", + "system": "http://snomed.info/sct", + "code": "428673006" + }, + "expectedSupplyDuration": { + "value": 10, + "unit": "day", + "system": "http://unitsofmeasure.org", + "code": "d" + }, + "performer": { + "identifier": { + "system": "https://fhir.nhs.uk/Id/ods-organization-code", + "value": "VNE51" + } + } + }, + "substitution": { + "allowedBoolean": false + } + } + }, + { + "fullUrl": "urn:uuid:2868554c-5565-4d31-b92a-c5b8dab8b90a", + "resource": { + "resourceType": "MedicationRequest", + "extension": [ + { + "url": "https://fhir.nhs.uk/StructureDefinition/Extension-DM-PrescriptionType", + "valueCoding": { + "system": "https://fhir.nhs.uk/CodeSystem/prescription-type", + "code": "0101", + "display": "Primary Care Prescriber - Medical Prescriber" + } + }, + { + "url": "https://fhir.nhs.uk/StructureDefinition/Extension-DM-ResponsiblePractitioner", + "valueReference": { + "reference": "urn:uuid:a5acefc1-f8ca-4989-a5ac-34ae36741466", + "display": "TAUNTON AND SOMERSET NHS FOUNDATION TRUST" + } + } + ], + "identifier": [ + { + "system": "https://fhir.nhs.uk/Id/prescription-order-item-number", + "value": "2868554c-5565-4d31-b92a-c5b8dab8b90a" + } + ], + "status": "active", + "intent": "order", + "category": [ + { + "coding": [ + { + "system": "http://terminology.hl7.org/CodeSystem/medicationrequest-category", + "code": "community", + "display": "Community" + } + ] + } + ], + "medicationCodeableConcept": { + "coding": [ + { + "system": "http://snomed.info/sct", + "code": "321080004", + "display": "Pseudoephedrine hydrochloride 60mg tablets" + } + ] + }, + "subject": { + "reference": "urn:uuid:78d3c2eb-009e-4ec8-a358-b042954aa9b2" + }, + "requester": { + "reference": "urn:uuid:56166769-c1c4-4d07-afa8-132b5dfca666" + }, + "groupIdentifier": { + "system": "https://fhir.nhs.uk/Id/prescription-order-number", + "value": "24F5DA-A83008-7EFE6Z", + "extension": [ + { + "url": "https://fhir.nhs.uk/StructureDefinition/Extension-DM-PrescriptionId", + "valueIdentifier": { + "system": "https://fhir.nhs.uk/Id/prescription", + "value": "20ba5fb5-cb58-462c-923e-22d180b09356" + } + } + ] + }, + "courseOfTherapyType": { + "coding": [ + { + "system": "http://terminology.hl7.org/CodeSystem/medicationrequest-course-of-therapy", + "code": "acute", + "display": "Short course (acute) therapy" + } + ] + }, + "dosageInstruction": [ + { + "text": "3 times a day for 10 days", + "timing": { + "repeat": { + "frequency": 3, + "period": 1, + "periodUnit": "d" + } + }, + "route": { + "coding": [ + { + "system": "http://snomed.info/sct", + "code": "26643006", + "display": "Oral" + } + ] + } + } + ], + "dispenseRequest": { + "extension": [ + { + "url": "https://fhir.nhs.uk/StructureDefinition/Extension-DM-PerformerSiteType", + "valueCoding": { + "system": "https://fhir.nhs.uk/CodeSystem/dispensing-site-preference", + "code": "P1" + } + } + ], + "validityPeriod": { + "start": "2022-10-21" + }, + "quantity": { + "value": 30, + "unit": "tablet", + "system": "http://snomed.info/sct", + "code": "428673006" + }, + "expectedSupplyDuration": { + "value": 10, + "unit": "day", + "system": "http://unitsofmeasure.org", + "code": "d" + }, + "performer": { + "identifier": { + "system": "https://fhir.nhs.uk/Id/ods-organization-code", + "value": "VNE51" + } + } + }, + "substitution": { + "allowedBoolean": false + } + } + }, + { + "fullUrl": "urn:uuid:5cb17f5a-11ac-4e18-825f-6470467238b3", + "resource": { + "resourceType": "MedicationRequest", + "extension": [ + { + "url": "https://fhir.nhs.uk/StructureDefinition/Extension-DM-PrescriptionType", + "valueCoding": { + "system": "https://fhir.nhs.uk/CodeSystem/prescription-type", + "code": "0101", + "display": "Primary Care Prescriber - Medical Prescriber" + } + }, + { + "url": "https://fhir.nhs.uk/StructureDefinition/Extension-DM-ResponsiblePractitioner", + "valueReference": { + "reference": "urn:uuid:a5acefc1-f8ca-4989-a5ac-34ae36741466", + "display": "TAUNTON AND SOMERSET NHS FOUNDATION TRUST" + } + } + ], + "identifier": [ + { + "system": "https://fhir.nhs.uk/Id/prescription-order-item-number", + "value": "5cb17f5a-11ac-4e18-825f-6470467238b3" + } + ], + "status": "active", + "intent": "order", + "category": [ + { + "coding": [ + { + "system": "http://terminology.hl7.org/CodeSystem/medicationrequest-category", + "code": "community", + "display": "Community" + } + ] + } + ], + "medicationCodeableConcept": { + "coding": [ + { + "system": "http://snomed.info/sct", + "code": "324252006", + "display": "Azithromycin 250mg capsules" + } + ] + }, + "subject": { + "reference": "urn:uuid:78d3c2eb-009e-4ec8-a358-b042954aa9b2" + }, + "requester": { + "reference": "urn:uuid:56166769-c1c4-4d07-afa8-132b5dfca666" + }, + "groupIdentifier": { + "system": "https://fhir.nhs.uk/Id/prescription-order-number", + "value": "24F5DA-A83008-7EFE6Z", + "extension": [ + { + "url": "https://fhir.nhs.uk/StructureDefinition/Extension-DM-PrescriptionId", + "valueIdentifier": { + "system": "https://fhir.nhs.uk/Id/prescription", + "value": "20ba5fb5-cb58-462c-923e-22d180b09356" + } + } + ] + }, + "courseOfTherapyType": { + "coding": [ + { + "system": "http://terminology.hl7.org/CodeSystem/medicationrequest-course-of-therapy", + "code": "acute", + "display": "Short course (acute) therapy" + } + ] + }, + "dosageInstruction": [ + { + "text": "3 times a day for 10 days", + "timing": { + "repeat": { + "frequency": 3, + "period": 1, + "periodUnit": "d" + } + }, + "route": { + "coding": [ + { + "system": "http://snomed.info/sct", + "code": "26643006", + "display": "Oral" + } + ] + } + } + ], + "dispenseRequest": { + "extension": [ + { + "url": "https://fhir.nhs.uk/StructureDefinition/Extension-DM-PerformerSiteType", + "valueCoding": { + "system": "https://fhir.nhs.uk/CodeSystem/dispensing-site-preference", + "code": "P1" + } + } + ], + "validityPeriod": { + "start": "2022-10-21" + }, + "quantity": { + "value": 30, + "unit": "tablet", + "system": "http://snomed.info/sct", + "code": "428673006" + }, + "expectedSupplyDuration": { + "value": 10, + "unit": "day", + "system": "http://unitsofmeasure.org", + "code": "d" + }, + "performer": { + "identifier": { + "system": "https://fhir.nhs.uk/Id/ods-organization-code", + "value": "VNE51" + } + } + }, + "substitution": { + "allowedBoolean": false + } + } + }, + { + "fullUrl": "urn:uuid:78d3c2eb-009e-4ec8-a358-b042954aa9b2", + "resource": { + "resourceType": "Patient", + "identifier": [ + { + "system": "https://fhir.nhs.uk/Id/nhs-number", + "value": "9449304130" + } + ], + "name": [ + { + "use": "usual", + "family": "TWITCHETT", + "given": [ + "STACEY", + "MARISA" + ], + "prefix": [ + "MS" + ] + } + ], + "gender": "female", + "birthDate": "1948-04-30", + "address": [ + { + "use": "home", + "line": [ + "10 HEATHFIELD", + "COBHAM", + "SURREY" + ], + "postalCode": "KT11 2QY" + } + ], + "generalPractitioner": [ + { + "identifier": { + "system": "https://fhir.nhs.uk/Id/ods-organization-code", + "value": "A83008" + } + } + ] + } + }, + { + "fullUrl": "urn:uuid:56166769-c1c4-4d07-afa8-132b5dfca666", + "resource": { + "resourceType": "PractitionerRole", + "identifier": [ + { + "system": "https://fhir.nhs.uk/Id/sds-role-profile-id", + "value": "200102238987" + } + ], + "practitioner": { + "reference": "urn:uuid:a8c85454-f8cb-498d-9629-78e2cb5fa47a" + }, + "organization": { + "reference": "urn:uuid:3b4b03a5-52ba-4ba6-9b82-70350aa109d8" + }, + "code": [ + { + "coding": [ + { + "system": "https://fhir.nhs.uk/CodeSystem/NHSDigital-SDS-JobRoleCode", + "code": "R8000", + "display": "Clinical Practitioner Access Role" + }, + { + "system": "https://fhir.hl7.org.uk/CodeSystem/UKCore-SDSJobRoleName", + "code": "R8000", + "display": "Clinical Practitioner Access Role" + } + ] + } + ], + "telecom": [ + { + "system": "phone", + "use": "work", + "value": "01234567890" + } + ] + } + }, + { + "fullUrl": "urn:uuid:a8c85454-f8cb-498d-9629-78e2cb5fa47a", + "resource": { + "resourceType": "Practitioner", + "identifier": [ + { + "system": "https://fhir.nhs.uk/Id/sds-user-id", + "value": "555086689106" + }, + { + "system": "https://fhir.hl7.org.uk/Id/gmc-number", + "value": "6095103" + }, + { + "system": "https://fhir.hl7.org.uk/Id/din-number", + "value": "977677" + } + ], + "name": [ + { + "family": "BOIN", + "given": [ + "C" + ], + "prefix": [ + "DR" + ] + } + ] + } + }, + { + "fullUrl": "urn:uuid:3b4b03a5-52ba-4ba6-9b82-70350aa109d8", + "resource": { + "resourceType": "Organization", + "identifier": [ + { + "system": "https://fhir.nhs.uk/Id/ods-organization-code", + "value": "A83008" + } + ], + "type": [ + { + "coding": [ + { + "system": "https://fhir.nhs.uk/CodeSystem/organisation-role", + "code": "76", + "display": "GP PRACTICE" + } + ] + } + ], + "name": "HALLGARTH SURGERY", + "telecom": [ + { + "system": "phone", + "use": "work", + "value": "0115 9737320" + } + ], + "address": [ + { + "use": "work", + "type": "both", + "line": [ + "HALLGARTH SURGERY", + "CHEAPSIDE" + ], + "city": "SHILDON", + "district": "COUNTY DURHAM", + "postalCode": "DL4 2HP" + } + ], + "partOf": { + "identifier": { + "system": "https://fhir.nhs.uk/Id/ods-organization-code", + "value": "84H" + }, + "display": "NHS COUNTY DURHAM CCG" + } + } + }, + { + "fullUrl": "urn:uuid:28828c55-8fa7-42d7-916f-fcf076e0c10e", + "resource": { + "resourceType": "Provenance", + "id": "28828c55-8fa7-42d7-916f-fcf076e0c10e", + "target": [ + { + "reference": "urn:uuid:0cb82cfa-76c8-4fb2-a08e-bf0e326e5487" + } + ], + "recorded": "2022-10-21T13:47:00+00:00", + "agent": [ + { + "who": { + "reference": "urn:uuid:56166769-c1c4-4d07-afa8-132b5dfca666" + } + } + ], + "signature": [ + { + "type": [ + { + "system": "urn:iso-astm:E1762-95:2013", + "code": "1.2.840.10065.1.12.1.1" + } + ], + "when": "2022-10-21T13:47:00+00:00", + "who": { + "reference": "urn:uuid:56166769-c1c4-4d07-afa8-132b5dfca666" + }, + "data": "PFNpZ25hdHVyZSB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC8wOS94bWxkc2lnIyI+CiAgICAgICAgICAgIDxTaWduZWRJbmZvPjxDYW5vbmljYWxpemF0aW9uTWV0aG9kIEFsZ29yaXRobT0iaHR0cDovL3d3dy53My5vcmcvMjAwMS8xMC94bWwtZXhjLWMxNG4jIj48L0Nhbm9uaWNhbGl6YXRpb25NZXRob2Q+PFNpZ25hdHVyZU1ldGhvZCBBbGdvcml0aG09Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvMDkveG1sZHNpZyNyc2Etc2hhMSI+PC9TaWduYXR1cmVNZXRob2Q+PFJlZmVyZW5jZT48VHJhbnNmb3Jtcz48VHJhbnNmb3JtIEFsZ29yaXRobT0iaHR0cDovL3d3dy53My5vcmcvMjAwMS8xMC94bWwtZXhjLWMxNG4jIj48L1RyYW5zZm9ybT48L1RyYW5zZm9ybXM+PERpZ2VzdE1ldGhvZCBBbGdvcml0aG09Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvMDkveG1sZHNpZyNzaGExIj48L0RpZ2VzdE1ldGhvZD48RGlnZXN0VmFsdWU+WTg5YWNmSC90VkVtSXI2aVlrRVJrWWMxbG1jPTwvRGlnZXN0VmFsdWU+PC9SZWZlcmVuY2U+PC9TaWduZWRJbmZvPgogICAgICAgICAgICA8U2lnbmF0dXJlVmFsdWU+PC9TaWduYXR1cmVWYWx1ZT4KICAgICAgICAgICAgPEtleUluZm8+PFg1MDlEYXRhPjxYNTA5Q2VydGlmaWNhdGU+PC9YNTA5Q2VydGlmaWNhdGU+PC9YNTA5RGF0YT48L0tleUluZm8+CiAgICAgICAgICA8L1NpZ25hdHVyZT4=" + } + ] + } + } + ] +} diff --git a/src/test/resources/examples/full_examples/primary-care/acute/nominated-pharmacy/responsible-party-org/3-Process-Response-Send-200_OK.json b/src/test/resources/examples/full_examples/primary-care/acute/nominated-pharmacy/responsible-party-org/3-Process-Response-Send-200_OK.json new file mode 100644 index 00000000..396e43a2 --- /dev/null +++ b/src/test/resources/examples/full_examples/primary-care/acute/nominated-pharmacy/responsible-party-org/3-Process-Response-Send-200_OK.json @@ -0,0 +1,12 @@ +{ + "resourceType": "OperationOutcome", + "meta": { + "lastUpdated": "2022-10-21T13:47:00+00:00" + }, + "issue": [ + { + "code": "informational", + "severity": "information" + } + ] + } diff --git a/src/test/resources/examples/full_examples/primary-care/acute/nominated-pharmacy/responsible-party-org/cancellations/3-Process-Request-Cancel-200_OK.json b/src/test/resources/examples/full_examples/primary-care/acute/nominated-pharmacy/responsible-party-org/cancellations/3-Process-Request-Cancel-200_OK.json new file mode 100644 index 00000000..9e9d01c6 --- /dev/null +++ b/src/test/resources/examples/full_examples/primary-care/acute/nominated-pharmacy/responsible-party-org/cancellations/3-Process-Request-Cancel-200_OK.json @@ -0,0 +1,405 @@ +{ + "resourceType": "Bundle", + "id": "0cb82cfa-76c8-4fb2-a08e-bf0e326e5487", + "identifier": { + "system": "https://tools.ietf.org/html/rfc4122", + "value": "46183abc-9fad-4673-85db-ce2cb6614732" + }, + "type": "message", + "entry": [ + { + "fullUrl": "urn:uuid:17773b27-427e-4940-8c16-64cdac715001", + "resource": { + "resourceType": "MessageHeader", + "eventCoding": { + "system": "https://fhir.nhs.uk/CodeSystem/message-event", + "code": "prescription-order-update", + "display": "Prescription Order Update" + }, + "sender": { + "identifier": { + "system": "https://fhir.nhs.uk/Id/ods-organization-code", + "value": "A83008" + }, + "display": "HALLGARTH SURGERY" + }, + "source": { + "endpoint": "https://directory.spineservices.nhs.uk/STU3/Organization/A83008" + }, + "reason": { + "coding": [ + { + "system": "https://fhir.nhs.uk/CodeSystem/message-reason-prescription", + "code": "cancel", + "display": "Cancel" + } + ] + }, + "focus": [ + { + "reference": "urn:uuid:a54219b8-f741-4c47-b662-e4f8dfa49ab6" + }, + { + "reference": "urn:uuid:56166769-c1c4-4d07-afa8-132b5dfca666" + }, + { + "reference": "urn:uuid:78d3c2eb-009e-4ec8-a358-b042954aa9b2" + } + ] + } + }, + { + "fullUrl": "urn:uuid:a5acefc1-f8ca-4989-a5ac-34ae36741466", + "resource": { + "resourceType": "PractitionerRole", + "organization": { + "reference": "urn:uuid:28b10eb9-94fe-4779-8517-b476abd6b08f" + } + } + }, + { + "fullUrl": "urn:uuid:28b10eb9-94fe-4779-8517-b476abd6b08f", + "resource": { + "resourceType": "Organization", + "id": "28b10eb9-94fe-4779-8517-b476abd6b08f", + "identifier": [ + { + "system": "https://fhir.nhs.uk/Id/ods-organization-code", + "value": "RBA" + } + ], + "name": "TAUNTON AND SOMERSET NHS FOUNDATION TRUST", + "address": [ + { + "line": [ + "MUSGROVE PARK HOSPITAL", + "PARKFIELD DRIVE", + "TAUNTON" + ], + "postalCode": "TA1 5DA" + } + ], + "telecom": [ + { + "system": "phone", + "value": "01823333444", + "use": "work" + } + ] + } + }, + { + "fullUrl": "urn:uuid:a54219b8-f741-4c47-b662-e4f8dfa49ab6", + "resource": { + "resourceType": "MedicationRequest", + "extension": [ + { + "url": "https://fhir.nhs.uk/StructureDefinition/Extension-DM-PrescriptionType", + "valueCoding": { + "system": "https://fhir.nhs.uk/CodeSystem/prescription-type", + "code": "0101", + "display": "Primary Care Prescriber - Medical Prescriber" + } + }, + { + "url": "https://fhir.nhs.uk/StructureDefinition/Extension-DM-ResponsiblePractitioner", + "valueReference": { + "reference": "urn:uuid:a5acefc1-f8ca-4989-a5ac-34ae36741466", + "display": "TAUNTON AND SOMERSET NHS FOUNDATION TRUST" + } + } + ], + "identifier": [ + { + "system": "https://fhir.nhs.uk/Id/prescription-order-item-number", + "value": "a54219b8-f741-4c47-b662-e4f8dfa49ab6" + } + ], + "status": "cancelled", + "statusReason": { + "coding": [ + { + "system": "https://fhir.nhs.uk/CodeSystem/medicationrequest-status-reason", + "code": "0002", + "display": "Clinical contra-indication" + } + ] + }, + "intent": "order", + "category": [ + { + "coding": [ + { + "system": "http://terminology.hl7.org/CodeSystem/medicationrequest-category", + "code": "community", + "display": "Community" + } + ] + } + ], + "medicationCodeableConcept": { + "coding": [ + { + "system": "http://snomed.info/sct", + "code": "39732311000001104", + "display": "Amoxicillin 250mg capsules" + } + ] + }, + "subject": { + "reference": "urn:uuid:78d3c2eb-009e-4ec8-a358-b042954aa9b2" + }, + "requester": { + "reference": "urn:uuid:56166769-c1c4-4d07-afa8-132b5dfca666" + }, + "groupIdentifier": { + "system": "https://fhir.nhs.uk/Id/prescription-order-number", + "value": "24F5DA-A83008-7EFE6Z", + "extension": [ + { + "url": "https://fhir.nhs.uk/StructureDefinition/Extension-DM-PrescriptionId", + "valueIdentifier": { + "system": "https://fhir.nhs.uk/Id/prescription", + "value": "20ba5fb5-cb58-462c-923e-22d180b09356" + } + } + ] + }, + "courseOfTherapyType": { + "coding": [ + { + "system": "http://terminology.hl7.org/CodeSystem/medicationrequest-course-of-therapy", + "code": "acute", + "display": "Short course (acute) therapy" + } + ] + }, + "dosageInstruction": [ + { + "text": "2 times a day for 10 days", + "timing": { + "repeat": { + "frequency": 2, + "period": 1, + "periodUnit": "d" + } + }, + "route": { + "coding": [ + { + "system": "http://snomed.info/sct", + "code": "26643006", + "display": "Oral" + } + ] + } + } + ], + "dispenseRequest": { + "extension": [ + { + "url": "https://fhir.nhs.uk/StructureDefinition/Extension-DM-PerformerSiteType", + "valueCoding": { + "system": "https://fhir.nhs.uk/CodeSystem/dispensing-site-preference", + "code": "P1" + } + } + ], + "validityPeriod": { + "start": "2022-10-21" + }, + "quantity": { + "value": 20, + "unit": "tablet", + "system": "http://snomed.info/sct", + "code": "428673006" + }, + "expectedSupplyDuration": { + "value": 10, + "unit": "day", + "system": "http://unitsofmeasure.org", + "code": "d" + }, + "performer": { + "identifier": { + "system": "https://fhir.nhs.uk/Id/ods-organization-code", + "value": "VNE51" + } + } + }, + "substitution": { + "allowedBoolean": false + } + } + }, + { + "fullUrl": "urn:uuid:78d3c2eb-009e-4ec8-a358-b042954aa9b2", + "resource": { + "resourceType": "Patient", + "identifier": [ + { + "system": "https://fhir.nhs.uk/Id/nhs-number", + "value": "9449304130" + } + ], + "name": [ + { + "use": "usual", + "family": "TWITCHETT", + "given": [ + "STACEY", + "MARISA" + ], + "prefix": [ + "MS" + ] + } + ], + "gender": "female", + "birthDate": "1948-04-30", + "address": [ + { + "use": "home", + "line": [ + "10 HEATHFIELD", + "COBHAM", + "SURREY" + ], + "postalCode": "KT11 2QY" + } + ], + "generalPractitioner": [ + { + "identifier": { + "system": "https://fhir.nhs.uk/Id/ods-organization-code", + "value": "A83008" + } + } + ] + } + }, + { + "fullUrl": "urn:uuid:56166769-c1c4-4d07-afa8-132b5dfca666", + "resource": { + "resourceType": "PractitionerRole", + "identifier": [ + { + "system": "https://fhir.nhs.uk/Id/sds-role-profile-id", + "value": "200102238987" + } + ], + "practitioner": { + "reference": "urn:uuid:a8c85454-f8cb-498d-9629-78e2cb5fa47a" + }, + "organization": { + "reference": "urn:uuid:3b4b03a5-52ba-4ba6-9b82-70350aa109d8" + }, + "code": [ + { + "coding": [ + { + "system": "https://fhir.nhs.uk/CodeSystem/NHSDigital-SDS-JobRoleCode", + "code": "R8000", + "display": "Clinical Practitioner Access Role" + }, + { + "system": "https://fhir.hl7.org.uk/CodeSystem/UKCore-SDSJobRoleName", + "code": "R8000", + "display": "Clinical Practitioner Access Role" + } + ] + } + ], + "telecom": [ + { + "system": "phone", + "use": "work", + "value": "01234567890" + } + ] + } + }, + { + "fullUrl": "urn:uuid:a8c85454-f8cb-498d-9629-78e2cb5fa47a", + "resource": { + "resourceType": "Practitioner", + "identifier": [ + { + "system": "https://fhir.nhs.uk/Id/sds-user-id", + "value": "555086689106" + }, + { + "system": "https://fhir.hl7.org.uk/Id/gmc-number", + "value": "6095103" + }, + { + "system": "https://fhir.hl7.org.uk/Id/din-number", + "value": "977677" + } + ], + "name": [ + { + "family": "BOIN", + "given": [ + "C" + ], + "prefix": [ + "DR" + ] + } + ] + } + }, + { + "fullUrl": "urn:uuid:3b4b03a5-52ba-4ba6-9b82-70350aa109d8", + "resource": { + "resourceType": "Organization", + "identifier": [ + { + "system": "https://fhir.nhs.uk/Id/ods-organization-code", + "value": "A83008" + } + ], + "type": [ + { + "coding": [ + { + "system": "https://fhir.nhs.uk/CodeSystem/organisation-role", + "code": "76", + "display": "GP PRACTICE" + } + ] + } + ], + "name": "HALLGARTH SURGERY", + "telecom": [ + { + "system": "phone", + "use": "work", + "value": "0115 9737320" + } + ], + "address": [ + { + "use": "work", + "type": "both", + "line": [ + "HALLGARTH SURGERY", + "CHEAPSIDE" + ], + "city": "SHILDON", + "district": "COUNTY DURHAM", + "postalCode": "DL4 2HP" + } + ], + "partOf": { + "identifier": { + "system": "https://fhir.nhs.uk/Id/ods-organization-code", + "value": "84H" + }, + "display": "NHS COUNTY DURHAM CCG" + } + } + } + ] +} diff --git a/src/test/resources/examples/full_examples/primary-care/acute/nominated-pharmacy/responsible-party-org/separate-telecom/1-Prepare-Request-200_OK.json b/src/test/resources/examples/full_examples/primary-care/acute/nominated-pharmacy/responsible-party-org/separate-telecom/1-Prepare-Request-200_OK.json new file mode 100644 index 00000000..c14910e6 --- /dev/null +++ b/src/test/resources/examples/full_examples/primary-care/acute/nominated-pharmacy/responsible-party-org/separate-telecom/1-Prepare-Request-200_OK.json @@ -0,0 +1,826 @@ +{ + "resourceType": "Bundle", + "id": "0cb82cfa-76c8-4fb2-a08e-bf0e326e5487", + "identifier": { + "system": "https://tools.ietf.org/html/rfc4122", + "value": "46183abc-9fad-4673-85db-ce2cb6614732" + }, + "type": "message", + "entry": [ + { + "fullUrl": "urn:uuid:17773b27-427e-4940-8c16-64cdac715001", + "resource": { + "resourceType": "MessageHeader", + "eventCoding": { + "system": "https://fhir.nhs.uk/CodeSystem/message-event", + "code": "prescription-order", + "display": "Prescription Order" + }, + "destination": [ + { + "endpoint": "https://sandbox.api.service.nhs.uk/electronic-prescriptions/$post-message", + "receiver": { + "identifier": { + "system": "https://fhir.nhs.uk/Id/ods-organization-code", + "value": "VNE51" + }, + "display": "The Simple Pharmacy" + } + } + ], + "sender": { + "identifier": { + "system": "https://fhir.nhs.uk/Id/ods-organization-code", + "value": "A83008" + }, + "display": "HALLGARTH SURGERY" + }, + "source": { + "endpoint": "https://directory.spineservices.nhs.uk/STU3/Organization/A83008" + }, + "focus": [ + { + "reference": "urn:uuid:a54219b8-f741-4c47-b662-e4f8dfa49ab6" + }, + { + "reference": "urn:uuid:6989b7bd-8db6-428c-a593-4022e3044c00" + }, + { + "reference": "urn:uuid:2868554c-5565-4d31-b92a-c5b8dab8b90a" + }, + { + "reference": "urn:uuid:5cb17f5a-11ac-4e18-825f-6470467238b3" + }, + { + "reference": "urn:uuid:56166769-c1c4-4d07-afa8-132b5dfca666" + }, + { + "reference": "urn:uuid:78d3c2eb-009e-4ec8-a358-b042954aa9b2" + } + ] + } + }, + { + "fullUrl": "urn:uuid:a5acefc1-f8ca-4989-a5ac-34ae36741466", + "resource": { + "resourceType": "PractitionerRole", + "organization": { + "reference": "urn:uuid:28b10eb9-94fe-4779-8517-b476abd6b08f" + }, + "practitioner": { + "identifier": { + "system": "https://fhir.hl7.org.uk/Id/gmc-number", + "value": "C6095103" + } + }, + "telecom": [ + { + "system": "phone", + "value": "01823333555", + "use": "work" + } + ] + } + }, + { + "fullUrl": "urn:uuid:28b10eb9-94fe-4779-8517-b476abd6b08f", + "resource": { + "resourceType": "Organization", + "id": "28b10eb9-94fe-4779-8517-b476abd6b08f", + "identifier": [ + { + "system": "https://fhir.nhs.uk/Id/ods-organization-code", + "value": "RBA" + } + ], + "name": "TAUNTON AND SOMERSET NHS FOUNDATION TRUST", + "address": [ + { + "line": [ + "MUSGROVE PARK HOSPITAL", + "PARKFIELD DRIVE", + "TAUNTON" + ], + "postalCode": "TA1 5DA" + } + ], + "telecom": [ + { + "system": "phone", + "value": "01823333444", + "use": "work" + } + ] + } + }, + { + "fullUrl": "urn:uuid:a54219b8-f741-4c47-b662-e4f8dfa49ab6", + "resource": { + "resourceType": "MedicationRequest", + "extension": [ + { + "url": "https://fhir.nhs.uk/StructureDefinition/Extension-DM-PrescriptionType", + "valueCoding": { + "system": "https://fhir.nhs.uk/CodeSystem/prescription-type", + "code": "0101", + "display": "Primary Care Prescriber - Medical Prescriber" + } + }, + { + "url": "https://fhir.nhs.uk/StructureDefinition/Extension-DM-ResponsiblePractitioner", + "valueReference": { + "reference": "urn:uuid:a5acefc1-f8ca-4989-a5ac-34ae36741466", + "display": "TAUNTON AND SOMERSET NHS FOUNDATION TRUST" + } + } + ], + "identifier": [ + { + "system": "https://fhir.nhs.uk/Id/prescription-order-item-number", + "value": "a54219b8-f741-4c47-b662-e4f8dfa49ab6" + } + ], + "status": "active", + "intent": "order", + "category": [ + { + "coding": [ + { + "system": "http://terminology.hl7.org/CodeSystem/medicationrequest-category", + "code": "community", + "display": "Community" + } + ] + } + ], + "medicationCodeableConcept": { + "coding": [ + { + "system": "http://snomed.info/sct", + "code": "39732311000001104", + "display": "Amoxicillin 250mg capsules" + } + ] + }, + "subject": { + "reference": "urn:uuid:78d3c2eb-009e-4ec8-a358-b042954aa9b2" + }, + "requester": { + "reference": "urn:uuid:56166769-c1c4-4d07-afa8-132b5dfca666" + }, + "groupIdentifier": { + "system": "https://fhir.nhs.uk/Id/prescription-order-number", + "value": "24F5DA-A83008-7EFE6Z", + "extension": [ + { + "url": "https://fhir.nhs.uk/StructureDefinition/Extension-DM-PrescriptionId", + "valueIdentifier": { + "system": "https://fhir.nhs.uk/Id/prescription", + "value": "20ba5fb5-cb58-462c-923e-22d180b09356" + } + } + ] + }, + "courseOfTherapyType": { + "coding": [ + { + "system": "http://terminology.hl7.org/CodeSystem/medicationrequest-course-of-therapy", + "code": "acute", + "display": "Short course (acute) therapy" + } + ] + }, + "dosageInstruction": [ + { + "text": "2 times a day for 10 days", + "timing": { + "repeat": { + "frequency": 2, + "period": 1, + "periodUnit": "d" + } + }, + "route": { + "coding": [ + { + "system": "http://snomed.info/sct", + "code": "26643006", + "display": "Oral" + } + ] + } + } + ], + "dispenseRequest": { + "extension": [ + { + "url": "https://fhir.nhs.uk/StructureDefinition/Extension-DM-PerformerSiteType", + "valueCoding": { + "system": "https://fhir.nhs.uk/CodeSystem/dispensing-site-preference", + "code": "P1" + } + } + ], + "validityPeriod": { + "start": "2022-10-21" + }, + "quantity": { + "value": 20, + "unit": "tablet", + "system": "http://snomed.info/sct", + "code": "428673006" + }, + "expectedSupplyDuration": { + "value": 10, + "unit": "day", + "system": "http://unitsofmeasure.org", + "code": "d" + }, + "performer": { + "identifier": { + "system": "https://fhir.nhs.uk/Id/ods-organization-code", + "value": "VNE51" + } + } + }, + "substitution": { + "allowedBoolean": false + } + } + }, + { + "fullUrl": "urn:uuid:6989b7bd-8db6-428c-a593-4022e3044c00", + "resource": { + "resourceType": "MedicationRequest", + "extension": [ + { + "url": "https://fhir.nhs.uk/StructureDefinition/Extension-DM-PrescriptionType", + "valueCoding": { + "system": "https://fhir.nhs.uk/CodeSystem/prescription-type", + "code": "0101", + "display": "Primary Care Prescriber - Medical Prescriber" + } + }, + { + "url": "https://fhir.nhs.uk/StructureDefinition/Extension-DM-ResponsiblePractitioner", + "valueReference": { + "reference": "urn:uuid:a5acefc1-f8ca-4989-a5ac-34ae36741466", + "display": "TAUNTON AND SOMERSET NHS FOUNDATION TRUST" + } + } + ], + "identifier": [ + { + "system": "https://fhir.nhs.uk/Id/prescription-order-item-number", + "value": "6989b7bd-8db6-428c-a593-4022e3044c00" + } + ], + "status": "active", + "intent": "order", + "category": [ + { + "coding": [ + { + "system": "http://terminology.hl7.org/CodeSystem/medicationrequest-category", + "code": "community", + "display": "Community" + } + ] + } + ], + "medicationCodeableConcept": { + "coding": [ + { + "system": "http://snomed.info/sct", + "code": "322341003", + "display": "Co-codamol 30mg/500mg tablets" + } + ] + }, + "subject": { + "reference": "urn:uuid:78d3c2eb-009e-4ec8-a358-b042954aa9b2" + }, + "requester": { + "reference": "urn:uuid:56166769-c1c4-4d07-afa8-132b5dfca666" + }, + "groupIdentifier": { + "system": "https://fhir.nhs.uk/Id/prescription-order-number", + "value": "24F5DA-A83008-7EFE6Z", + "extension": [ + { + "url": "https://fhir.nhs.uk/StructureDefinition/Extension-DM-PrescriptionId", + "valueIdentifier": { + "system": "https://fhir.nhs.uk/Id/prescription", + "value": "20ba5fb5-cb58-462c-923e-22d180b09356" + } + } + ] + }, + "courseOfTherapyType": { + "coding": [ + { + "system": "http://terminology.hl7.org/CodeSystem/medicationrequest-course-of-therapy", + "code": "acute", + "display": "Short course (acute) therapy" + } + ] + }, + "dosageInstruction": [ + { + "text": "2 times a day for 10 days", + "timing": { + "repeat": { + "frequency": 2, + "period": 1, + "periodUnit": "d" + } + }, + "route": { + "coding": [ + { + "system": "http://snomed.info/sct", + "code": "26643006", + "display": "Oral" + } + ] + } + } + ], + "dispenseRequest": { + "extension": [ + { + "url": "https://fhir.nhs.uk/StructureDefinition/Extension-DM-PerformerSiteType", + "valueCoding": { + "system": "https://fhir.nhs.uk/CodeSystem/dispensing-site-preference", + "code": "P1" + } + } + ], + "validityPeriod": { + "start": "2022-10-21" + }, + "quantity": { + "value": 20, + "unit": "tablet", + "system": "http://snomed.info/sct", + "code": "428673006" + }, + "expectedSupplyDuration": { + "value": 10, + "unit": "day", + "system": "http://unitsofmeasure.org", + "code": "d" + }, + "performer": { + "identifier": { + "system": "https://fhir.nhs.uk/Id/ods-organization-code", + "value": "VNE51" + } + } + }, + "substitution": { + "allowedBoolean": false + } + } + }, + { + "fullUrl": "urn:uuid:2868554c-5565-4d31-b92a-c5b8dab8b90a", + "resource": { + "resourceType": "MedicationRequest", + "extension": [ + { + "url": "https://fhir.nhs.uk/StructureDefinition/Extension-DM-PrescriptionType", + "valueCoding": { + "system": "https://fhir.nhs.uk/CodeSystem/prescription-type", + "code": "0101", + "display": "Primary Care Prescriber - Medical Prescriber" + } + }, + { + "url": "https://fhir.nhs.uk/StructureDefinition/Extension-DM-ResponsiblePractitioner", + "valueReference": { + "reference": "urn:uuid:a5acefc1-f8ca-4989-a5ac-34ae36741466", + "display": "TAUNTON AND SOMERSET NHS FOUNDATION TRUST" + } + } + ], + "identifier": [ + { + "system": "https://fhir.nhs.uk/Id/prescription-order-item-number", + "value": "2868554c-5565-4d31-b92a-c5b8dab8b90a" + } + ], + "status": "active", + "intent": "order", + "category": [ + { + "coding": [ + { + "system": "http://terminology.hl7.org/CodeSystem/medicationrequest-category", + "code": "community", + "display": "Community" + } + ] + } + ], + "medicationCodeableConcept": { + "coding": [ + { + "system": "http://snomed.info/sct", + "code": "321080004", + "display": "Pseudoephedrine hydrochloride 60mg tablets" + } + ] + }, + "subject": { + "reference": "urn:uuid:78d3c2eb-009e-4ec8-a358-b042954aa9b2" + }, + "requester": { + "reference": "urn:uuid:56166769-c1c4-4d07-afa8-132b5dfca666" + }, + "groupIdentifier": { + "system": "https://fhir.nhs.uk/Id/prescription-order-number", + "value": "24F5DA-A83008-7EFE6Z", + "extension": [ + { + "url": "https://fhir.nhs.uk/StructureDefinition/Extension-DM-PrescriptionId", + "valueIdentifier": { + "system": "https://fhir.nhs.uk/Id/prescription", + "value": "20ba5fb5-cb58-462c-923e-22d180b09356" + } + } + ] + }, + "courseOfTherapyType": { + "coding": [ + { + "system": "http://terminology.hl7.org/CodeSystem/medicationrequest-course-of-therapy", + "code": "acute", + "display": "Short course (acute) therapy" + } + ] + }, + "dosageInstruction": [ + { + "text": "3 times a day for 10 days", + "timing": { + "repeat": { + "frequency": 3, + "period": 1, + "periodUnit": "d" + } + }, + "route": { + "coding": [ + { + "system": "http://snomed.info/sct", + "code": "26643006", + "display": "Oral" + } + ] + } + } + ], + "dispenseRequest": { + "extension": [ + { + "url": "https://fhir.nhs.uk/StructureDefinition/Extension-DM-PerformerSiteType", + "valueCoding": { + "system": "https://fhir.nhs.uk/CodeSystem/dispensing-site-preference", + "code": "P1" + } + } + ], + "validityPeriod": { + "start": "2022-10-21" + }, + "quantity": { + "value": 30, + "unit": "tablet", + "system": "http://snomed.info/sct", + "code": "428673006" + }, + "expectedSupplyDuration": { + "value": 10, + "unit": "day", + "system": "http://unitsofmeasure.org", + "code": "d" + }, + "performer": { + "identifier": { + "system": "https://fhir.nhs.uk/Id/ods-organization-code", + "value": "VNE51" + } + } + }, + "substitution": { + "allowedBoolean": false + } + } + }, + { + "fullUrl": "urn:uuid:5cb17f5a-11ac-4e18-825f-6470467238b3", + "resource": { + "resourceType": "MedicationRequest", + "extension": [ + { + "url": "https://fhir.nhs.uk/StructureDefinition/Extension-DM-PrescriptionType", + "valueCoding": { + "system": "https://fhir.nhs.uk/CodeSystem/prescription-type", + "code": "0101", + "display": "Primary Care Prescriber - Medical Prescriber" + } + }, + { + "url": "https://fhir.nhs.uk/StructureDefinition/Extension-DM-ResponsiblePractitioner", + "valueReference": { + "reference": "urn:uuid:a5acefc1-f8ca-4989-a5ac-34ae36741466", + "display": "TAUNTON AND SOMERSET NHS FOUNDATION TRUST" + } + } + ], + "identifier": [ + { + "system": "https://fhir.nhs.uk/Id/prescription-order-item-number", + "value": "5cb17f5a-11ac-4e18-825f-6470467238b3" + } + ], + "status": "active", + "intent": "order", + "category": [ + { + "coding": [ + { + "system": "http://terminology.hl7.org/CodeSystem/medicationrequest-category", + "code": "community", + "display": "Community" + } + ] + } + ], + "medicationCodeableConcept": { + "coding": [ + { + "system": "http://snomed.info/sct", + "code": "324252006", + "display": "Azithromycin 250mg capsules" + } + ] + }, + "subject": { + "reference": "urn:uuid:78d3c2eb-009e-4ec8-a358-b042954aa9b2" + }, + "requester": { + "reference": "urn:uuid:56166769-c1c4-4d07-afa8-132b5dfca666" + }, + "groupIdentifier": { + "system": "https://fhir.nhs.uk/Id/prescription-order-number", + "value": "24F5DA-A83008-7EFE6Z", + "extension": [ + { + "url": "https://fhir.nhs.uk/StructureDefinition/Extension-DM-PrescriptionId", + "valueIdentifier": { + "system": "https://fhir.nhs.uk/Id/prescription", + "value": "20ba5fb5-cb58-462c-923e-22d180b09356" + } + } + ] + }, + "courseOfTherapyType": { + "coding": [ + { + "system": "http://terminology.hl7.org/CodeSystem/medicationrequest-course-of-therapy", + "code": "acute", + "display": "Short course (acute) therapy" + } + ] + }, + "dosageInstruction": [ + { + "text": "3 times a day for 10 days", + "timing": { + "repeat": { + "frequency": 3, + "period": 1, + "periodUnit": "d" + } + }, + "route": { + "coding": [ + { + "system": "http://snomed.info/sct", + "code": "26643006", + "display": "Oral" + } + ] + } + } + ], + "dispenseRequest": { + "extension": [ + { + "url": "https://fhir.nhs.uk/StructureDefinition/Extension-DM-PerformerSiteType", + "valueCoding": { + "system": "https://fhir.nhs.uk/CodeSystem/dispensing-site-preference", + "code": "P1" + } + } + ], + "validityPeriod": { + "start": "2022-10-21" + }, + "quantity": { + "value": 30, + "unit": "tablet", + "system": "http://snomed.info/sct", + "code": "428673006" + }, + "expectedSupplyDuration": { + "value": 10, + "unit": "day", + "system": "http://unitsofmeasure.org", + "code": "d" + }, + "performer": { + "identifier": { + "system": "https://fhir.nhs.uk/Id/ods-organization-code", + "value": "VNE51" + } + } + }, + "substitution": { + "allowedBoolean": false + } + } + }, + { + "fullUrl": "urn:uuid:78d3c2eb-009e-4ec8-a358-b042954aa9b2", + "resource": { + "resourceType": "Patient", + "identifier": [ + { + "system": "https://fhir.nhs.uk/Id/nhs-number", + "value": "9449304130" + } + ], + "name": [ + { + "use": "usual", + "family": "TWITCHETT", + "given": [ + "STACEY", + "MARISA" + ], + "prefix": [ + "MS" + ] + } + ], + "gender": "female", + "birthDate": "1948-04-30", + "address": [ + { + "use": "home", + "line": [ + "10 HEATHFIELD", + "COBHAM", + "SURREY" + ], + "postalCode": "KT11 2QY" + } + ], + "generalPractitioner": [ + { + "identifier": { + "system": "https://fhir.nhs.uk/Id/ods-organization-code", + "value": "A83008" + } + } + ] + } + }, + { + "fullUrl": "urn:uuid:56166769-c1c4-4d07-afa8-132b5dfca666", + "resource": { + "resourceType": "PractitionerRole", + "identifier": [ + { + "system": "https://fhir.nhs.uk/Id/sds-role-profile-id", + "value": "200102238987" + } + ], + "practitioner": { + "reference": "urn:uuid:a8c85454-f8cb-498d-9629-78e2cb5fa47a" + }, + "organization": { + "reference": "urn:uuid:3b4b03a5-52ba-4ba6-9b82-70350aa109d8" + }, + "code": [ + { + "coding": [ + { + "system": "https://fhir.nhs.uk/CodeSystem/NHSDigital-SDS-JobRoleCode", + "code": "R8000", + "display": "Clinical Practitioner Access Role" + }, + { + "system": "https://fhir.hl7.org.uk/CodeSystem/UKCore-SDSJobRoleName", + "code": "R8000", + "display": "Clinical Practitioner Access Role" + } + ] + } + ], + "telecom": [ + { + "system": "phone", + "use": "work", + "value": "01234567890" + } + ] + } + }, + { + "fullUrl": "urn:uuid:a8c85454-f8cb-498d-9629-78e2cb5fa47a", + "resource": { + "resourceType": "Practitioner", + "identifier": [ + { + "system": "https://fhir.nhs.uk/Id/sds-user-id", + "value": "555086689106" + }, + { + "system": "https://fhir.hl7.org.uk/Id/gmc-number", + "value": "6095103" + }, + { + "system": "https://fhir.hl7.org.uk/Id/din-number", + "value": "977677" + } + ], + "name": [ + { + "family": "BOIN", + "given": [ + "C" + ], + "prefix": [ + "DR" + ] + } + ] + } + }, + { + "fullUrl": "urn:uuid:3b4b03a5-52ba-4ba6-9b82-70350aa109d8", + "resource": { + "resourceType": "Organization", + "identifier": [ + { + "system": "https://fhir.nhs.uk/Id/ods-organization-code", + "value": "A83008" + } + ], + "type": [ + { + "coding": [ + { + "system": "https://fhir.nhs.uk/CodeSystem/organisation-role", + "code": "76", + "display": "GP PRACTICE" + } + ] + } + ], + "name": "HALLGARTH SURGERY", + "telecom": [ + { + "system": "phone", + "use": "work", + "value": "0115 9737320" + } + ], + "address": [ + { + "use": "work", + "type": "both", + "line": [ + "HALLGARTH SURGERY", + "CHEAPSIDE" + ], + "city": "SHILDON", + "district": "COUNTY DURHAM", + "postalCode": "DL4 2HP" + } + ], + "partOf": { + "identifier": { + "system": "https://fhir.nhs.uk/Id/ods-organization-code", + "value": "84H" + }, + "display": "NHS COUNTY DURHAM CCG" + } + } + } + ] +} diff --git a/src/test/resources/examples/full_examples/primary-care/acute/nominated-pharmacy/responsible-party-org/separate-telecom/1-Prepare-Response-200_OK.json b/src/test/resources/examples/full_examples/primary-care/acute/nominated-pharmacy/responsible-party-org/separate-telecom/1-Prepare-Response-200_OK.json new file mode 100644 index 00000000..3be33002 --- /dev/null +++ b/src/test/resources/examples/full_examples/primary-care/acute/nominated-pharmacy/responsible-party-org/separate-telecom/1-Prepare-Response-200_OK.json @@ -0,0 +1,17 @@ +{ + "resourceType": "Parameters", + "parameter": [ + { + "name": "digest", + "valueString": "PFNpZ25lZEluZm8geG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvMDkveG1sZHNpZyMiPjxDYW5vbmljYWxpemF0aW9uTWV0aG9kIEFsZ29yaXRobT0iaHR0cDovL3d3dy53My5vcmcvMjAwMS8xMC94bWwtZXhjLWMxNG4jIj48L0Nhbm9uaWNhbGl6YXRpb25NZXRob2Q+PFNpZ25hdHVyZU1ldGhvZCBBbGdvcml0aG09Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvMDkveG1sZHNpZyNyc2Etc2hhMSI+PC9TaWduYXR1cmVNZXRob2Q+PFJlZmVyZW5jZT48VHJhbnNmb3Jtcz48VHJhbnNmb3JtIEFsZ29yaXRobT0iaHR0cDovL3d3dy53My5vcmcvMjAwMS8xMC94bWwtZXhjLWMxNG4jIj48L1RyYW5zZm9ybT48L1RyYW5zZm9ybXM+PERpZ2VzdE1ldGhvZCBBbGdvcml0aG09Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvMDkveG1sZHNpZyNzaGExIj48L0RpZ2VzdE1ldGhvZD48RGlnZXN0VmFsdWU+WlpKMTdKZU54NXMwOHVFWUloaGM0VjFiRDY0PTwvRGlnZXN0VmFsdWU+PC9SZWZlcmVuY2U+PC9TaWduZWRJbmZvPg==" + }, + { + "name": "timestamp", + "valueString": "2024-01-18T14:46:11+00:00" + }, + { + "name": "algorithm", + "valueString": "RS1" + } + ] +} diff --git a/src/test/resources/examples/full_examples/primary-care/acute/nominated-pharmacy/responsible-party-org/separate-telecom/1-Process-Request-Send-200_OK.json b/src/test/resources/examples/full_examples/primary-care/acute/nominated-pharmacy/responsible-party-org/separate-telecom/1-Process-Request-Send-200_OK.json new file mode 100644 index 00000000..1ea35641 --- /dev/null +++ b/src/test/resources/examples/full_examples/primary-care/acute/nominated-pharmacy/responsible-party-org/separate-telecom/1-Process-Request-Send-200_OK.json @@ -0,0 +1,861 @@ +{ + "resourceType": "Bundle", + "id": "0cb82cfa-76c8-4fb2-a08e-bf0e326e5487", + "identifier": { + "system": "https://tools.ietf.org/html/rfc4122", + "value": "46183abc-9fad-4673-85db-ce2cb6614732" + }, + "type": "message", + "entry": [ + { + "fullUrl": "urn:uuid:17773b27-427e-4940-8c16-64cdac715001", + "resource": { + "resourceType": "MessageHeader", + "eventCoding": { + "system": "https://fhir.nhs.uk/CodeSystem/message-event", + "code": "prescription-order", + "display": "Prescription Order" + }, + "destination": [ + { + "endpoint": "https://sandbox.api.service.nhs.uk/electronic-prescriptions/$post-message", + "receiver": { + "identifier": { + "system": "https://fhir.nhs.uk/Id/ods-organization-code", + "value": "VNE51" + }, + "display": "The Simple Pharmacy" + } + } + ], + "sender": { + "identifier": { + "system": "https://fhir.nhs.uk/Id/ods-organization-code", + "value": "A83008" + }, + "display": "HALLGARTH SURGERY" + }, + "source": { + "endpoint": "https://directory.spineservices.nhs.uk/STU3/Organization/A83008" + }, + "focus": [ + { + "reference": "urn:uuid:a54219b8-f741-4c47-b662-e4f8dfa49ab6" + }, + { + "reference": "urn:uuid:6989b7bd-8db6-428c-a593-4022e3044c00" + }, + { + "reference": "urn:uuid:2868554c-5565-4d31-b92a-c5b8dab8b90a" + }, + { + "reference": "urn:uuid:5cb17f5a-11ac-4e18-825f-6470467238b3" + }, + { + "reference": "urn:uuid:56166769-c1c4-4d07-afa8-132b5dfca666" + }, + { + "reference": "urn:uuid:78d3c2eb-009e-4ec8-a358-b042954aa9b2" + } + ] + } + }, + { + "fullUrl": "urn:uuid:a5acefc1-f8ca-4989-a5ac-34ae36741466", + "resource": { + "resourceType": "PractitionerRole", + "organization": { + "reference": "urn:uuid:28b10eb9-94fe-4779-8517-b476abd6b08f" + }, + "practitioner": { + "identifier": { + "system": "https://fhir.hl7.org.uk/Id/gmc-number", + "value": "C6095103" + } + }, + "telecom": [ + { + "system": "phone", + "value": "01823333555", + "use": "work" + } + ] + } + }, + { + "fullUrl": "urn:uuid:28b10eb9-94fe-4779-8517-b476abd6b08f", + "resource": { + "resourceType": "Organization", + "id": "28b10eb9-94fe-4779-8517-b476abd6b08f", + "identifier": [ + { + "system": "https://fhir.nhs.uk/Id/ods-organization-code", + "value": "RBA" + } + ], + "name": "TAUNTON AND SOMERSET NHS FOUNDATION TRUST", + "address": [ + { + "line": [ + "MUSGROVE PARK HOSPITAL", + "PARKFIELD DRIVE", + "TAUNTON" + ], + "postalCode": "TA1 5DA" + } + ], + "telecom": [ + { + "system": "phone", + "value": "01823333444", + "use": "work" + } + ] + } + }, + { + "fullUrl": "urn:uuid:a54219b8-f741-4c47-b662-e4f8dfa49ab6", + "resource": { + "resourceType": "MedicationRequest", + "extension": [ + { + "url": "https://fhir.nhs.uk/StructureDefinition/Extension-DM-PrescriptionType", + "valueCoding": { + "system": "https://fhir.nhs.uk/CodeSystem/prescription-type", + "code": "0101", + "display": "Primary Care Prescriber - Medical Prescriber" + } + }, + { + "url": "https://fhir.nhs.uk/StructureDefinition/Extension-DM-ResponsiblePractitioner", + "valueReference": { + "reference": "urn:uuid:a5acefc1-f8ca-4989-a5ac-34ae36741466", + "display": "TAUNTON AND SOMERSET NHS FOUNDATION TRUST" + } + } + ], + "identifier": [ + { + "system": "https://fhir.nhs.uk/Id/prescription-order-item-number", + "value": "a54219b8-f741-4c47-b662-e4f8dfa49ab6" + } + ], + "status": "active", + "intent": "order", + "category": [ + { + "coding": [ + { + "system": "http://terminology.hl7.org/CodeSystem/medicationrequest-category", + "code": "community", + "display": "Community" + } + ] + } + ], + "medicationCodeableConcept": { + "coding": [ + { + "system": "http://snomed.info/sct", + "code": "39732311000001104", + "display": "Amoxicillin 250mg capsules" + } + ] + }, + "subject": { + "reference": "urn:uuid:78d3c2eb-009e-4ec8-a358-b042954aa9b2" + }, + "requester": { + "reference": "urn:uuid:56166769-c1c4-4d07-afa8-132b5dfca666" + }, + "groupIdentifier": { + "system": "https://fhir.nhs.uk/Id/prescription-order-number", + "value": "24F5DA-A83008-7EFE6Z", + "extension": [ + { + "url": "https://fhir.nhs.uk/StructureDefinition/Extension-DM-PrescriptionId", + "valueIdentifier": { + "system": "https://fhir.nhs.uk/Id/prescription", + "value": "20ba5fb5-cb58-462c-923e-22d180b09356" + } + } + ] + }, + "courseOfTherapyType": { + "coding": [ + { + "system": "http://terminology.hl7.org/CodeSystem/medicationrequest-course-of-therapy", + "code": "acute", + "display": "Short course (acute) therapy" + } + ] + }, + "dosageInstruction": [ + { + "text": "2 times a day for 10 days", + "timing": { + "repeat": { + "frequency": 2, + "period": 1, + "periodUnit": "d" + } + }, + "route": { + "coding": [ + { + "system": "http://snomed.info/sct", + "code": "26643006", + "display": "Oral" + } + ] + } + } + ], + "dispenseRequest": { + "extension": [ + { + "url": "https://fhir.nhs.uk/StructureDefinition/Extension-DM-PerformerSiteType", + "valueCoding": { + "system": "https://fhir.nhs.uk/CodeSystem/dispensing-site-preference", + "code": "P1" + } + } + ], + "validityPeriod": { + "start": "2022-10-21" + }, + "quantity": { + "value": 20, + "unit": "tablet", + "system": "http://snomed.info/sct", + "code": "428673006" + }, + "expectedSupplyDuration": { + "value": 10, + "unit": "day", + "system": "http://unitsofmeasure.org", + "code": "d" + }, + "performer": { + "identifier": { + "system": "https://fhir.nhs.uk/Id/ods-organization-code", + "value": "VNE51" + } + } + }, + "substitution": { + "allowedBoolean": false + } + } + }, + { + "fullUrl": "urn:uuid:6989b7bd-8db6-428c-a593-4022e3044c00", + "resource": { + "resourceType": "MedicationRequest", + "extension": [ + { + "url": "https://fhir.nhs.uk/StructureDefinition/Extension-DM-PrescriptionType", + "valueCoding": { + "system": "https://fhir.nhs.uk/CodeSystem/prescription-type", + "code": "0101", + "display": "Primary Care Prescriber - Medical Prescriber" + } + }, + { + "url": "https://fhir.nhs.uk/StructureDefinition/Extension-DM-ResponsiblePractitioner", + "valueReference": { + "reference": "urn:uuid:a5acefc1-f8ca-4989-a5ac-34ae36741466", + "display": "TAUNTON AND SOMERSET NHS FOUNDATION TRUST" + } + } + ], + "identifier": [ + { + "system": "https://fhir.nhs.uk/Id/prescription-order-item-number", + "value": "6989b7bd-8db6-428c-a593-4022e3044c00" + } + ], + "status": "active", + "intent": "order", + "category": [ + { + "coding": [ + { + "system": "http://terminology.hl7.org/CodeSystem/medicationrequest-category", + "code": "community", + "display": "Community" + } + ] + } + ], + "medicationCodeableConcept": { + "coding": [ + { + "system": "http://snomed.info/sct", + "code": "322341003", + "display": "Co-codamol 30mg/500mg tablets" + } + ] + }, + "subject": { + "reference": "urn:uuid:78d3c2eb-009e-4ec8-a358-b042954aa9b2" + }, + "requester": { + "reference": "urn:uuid:56166769-c1c4-4d07-afa8-132b5dfca666" + }, + "groupIdentifier": { + "system": "https://fhir.nhs.uk/Id/prescription-order-number", + "value": "24F5DA-A83008-7EFE6Z", + "extension": [ + { + "url": "https://fhir.nhs.uk/StructureDefinition/Extension-DM-PrescriptionId", + "valueIdentifier": { + "system": "https://fhir.nhs.uk/Id/prescription", + "value": "20ba5fb5-cb58-462c-923e-22d180b09356" + } + } + ] + }, + "courseOfTherapyType": { + "coding": [ + { + "system": "http://terminology.hl7.org/CodeSystem/medicationrequest-course-of-therapy", + "code": "acute", + "display": "Short course (acute) therapy" + } + ] + }, + "dosageInstruction": [ + { + "text": "2 times a day for 10 days", + "timing": { + "repeat": { + "frequency": 2, + "period": 1, + "periodUnit": "d" + } + }, + "route": { + "coding": [ + { + "system": "http://snomed.info/sct", + "code": "26643006", + "display": "Oral" + } + ] + } + } + ], + "dispenseRequest": { + "extension": [ + { + "url": "https://fhir.nhs.uk/StructureDefinition/Extension-DM-PerformerSiteType", + "valueCoding": { + "system": "https://fhir.nhs.uk/CodeSystem/dispensing-site-preference", + "code": "P1" + } + } + ], + "validityPeriod": { + "start": "2022-10-21" + }, + "quantity": { + "value": 20, + "unit": "tablet", + "system": "http://snomed.info/sct", + "code": "428673006" + }, + "expectedSupplyDuration": { + "value": 10, + "unit": "day", + "system": "http://unitsofmeasure.org", + "code": "d" + }, + "performer": { + "identifier": { + "system": "https://fhir.nhs.uk/Id/ods-organization-code", + "value": "VNE51" + } + } + }, + "substitution": { + "allowedBoolean": false + } + } + }, + { + "fullUrl": "urn:uuid:2868554c-5565-4d31-b92a-c5b8dab8b90a", + "resource": { + "resourceType": "MedicationRequest", + "extension": [ + { + "url": "https://fhir.nhs.uk/StructureDefinition/Extension-DM-PrescriptionType", + "valueCoding": { + "system": "https://fhir.nhs.uk/CodeSystem/prescription-type", + "code": "0101", + "display": "Primary Care Prescriber - Medical Prescriber" + } + }, + { + "url": "https://fhir.nhs.uk/StructureDefinition/Extension-DM-ResponsiblePractitioner", + "valueReference": { + "reference": "urn:uuid:a5acefc1-f8ca-4989-a5ac-34ae36741466", + "display": "TAUNTON AND SOMERSET NHS FOUNDATION TRUST" + } + } + ], + "identifier": [ + { + "system": "https://fhir.nhs.uk/Id/prescription-order-item-number", + "value": "2868554c-5565-4d31-b92a-c5b8dab8b90a" + } + ], + "status": "active", + "intent": "order", + "category": [ + { + "coding": [ + { + "system": "http://terminology.hl7.org/CodeSystem/medicationrequest-category", + "code": "community", + "display": "Community" + } + ] + } + ], + "medicationCodeableConcept": { + "coding": [ + { + "system": "http://snomed.info/sct", + "code": "321080004", + "display": "Pseudoephedrine hydrochloride 60mg tablets" + } + ] + }, + "subject": { + "reference": "urn:uuid:78d3c2eb-009e-4ec8-a358-b042954aa9b2" + }, + "requester": { + "reference": "urn:uuid:56166769-c1c4-4d07-afa8-132b5dfca666" + }, + "groupIdentifier": { + "system": "https://fhir.nhs.uk/Id/prescription-order-number", + "value": "24F5DA-A83008-7EFE6Z", + "extension": [ + { + "url": "https://fhir.nhs.uk/StructureDefinition/Extension-DM-PrescriptionId", + "valueIdentifier": { + "system": "https://fhir.nhs.uk/Id/prescription", + "value": "20ba5fb5-cb58-462c-923e-22d180b09356" + } + } + ] + }, + "courseOfTherapyType": { + "coding": [ + { + "system": "http://terminology.hl7.org/CodeSystem/medicationrequest-course-of-therapy", + "code": "acute", + "display": "Short course (acute) therapy" + } + ] + }, + "dosageInstruction": [ + { + "text": "3 times a day for 10 days", + "timing": { + "repeat": { + "frequency": 3, + "period": 1, + "periodUnit": "d" + } + }, + "route": { + "coding": [ + { + "system": "http://snomed.info/sct", + "code": "26643006", + "display": "Oral" + } + ] + } + } + ], + "dispenseRequest": { + "extension": [ + { + "url": "https://fhir.nhs.uk/StructureDefinition/Extension-DM-PerformerSiteType", + "valueCoding": { + "system": "https://fhir.nhs.uk/CodeSystem/dispensing-site-preference", + "code": "P1" + } + } + ], + "validityPeriod": { + "start": "2022-10-21" + }, + "quantity": { + "value": 30, + "unit": "tablet", + "system": "http://snomed.info/sct", + "code": "428673006" + }, + "expectedSupplyDuration": { + "value": 10, + "unit": "day", + "system": "http://unitsofmeasure.org", + "code": "d" + }, + "performer": { + "identifier": { + "system": "https://fhir.nhs.uk/Id/ods-organization-code", + "value": "VNE51" + } + } + }, + "substitution": { + "allowedBoolean": false + } + } + }, + { + "fullUrl": "urn:uuid:5cb17f5a-11ac-4e18-825f-6470467238b3", + "resource": { + "resourceType": "MedicationRequest", + "extension": [ + { + "url": "https://fhir.nhs.uk/StructureDefinition/Extension-DM-PrescriptionType", + "valueCoding": { + "system": "https://fhir.nhs.uk/CodeSystem/prescription-type", + "code": "0101", + "display": "Primary Care Prescriber - Medical Prescriber" + } + }, + { + "url": "https://fhir.nhs.uk/StructureDefinition/Extension-DM-ResponsiblePractitioner", + "valueReference": { + "reference": "urn:uuid:a5acefc1-f8ca-4989-a5ac-34ae36741466", + "display": "TAUNTON AND SOMERSET NHS FOUNDATION TRUST" + } + } + ], + "identifier": [ + { + "system": "https://fhir.nhs.uk/Id/prescription-order-item-number", + "value": "5cb17f5a-11ac-4e18-825f-6470467238b3" + } + ], + "status": "active", + "intent": "order", + "category": [ + { + "coding": [ + { + "system": "http://terminology.hl7.org/CodeSystem/medicationrequest-category", + "code": "community", + "display": "Community" + } + ] + } + ], + "medicationCodeableConcept": { + "coding": [ + { + "system": "http://snomed.info/sct", + "code": "324252006", + "display": "Azithromycin 250mg capsules" + } + ] + }, + "subject": { + "reference": "urn:uuid:78d3c2eb-009e-4ec8-a358-b042954aa9b2" + }, + "requester": { + "reference": "urn:uuid:56166769-c1c4-4d07-afa8-132b5dfca666" + }, + "groupIdentifier": { + "system": "https://fhir.nhs.uk/Id/prescription-order-number", + "value": "24F5DA-A83008-7EFE6Z", + "extension": [ + { + "url": "https://fhir.nhs.uk/StructureDefinition/Extension-DM-PrescriptionId", + "valueIdentifier": { + "system": "https://fhir.nhs.uk/Id/prescription", + "value": "20ba5fb5-cb58-462c-923e-22d180b09356" + } + } + ] + }, + "courseOfTherapyType": { + "coding": [ + { + "system": "http://terminology.hl7.org/CodeSystem/medicationrequest-course-of-therapy", + "code": "acute", + "display": "Short course (acute) therapy" + } + ] + }, + "dosageInstruction": [ + { + "text": "3 times a day for 10 days", + "timing": { + "repeat": { + "frequency": 3, + "period": 1, + "periodUnit": "d" + } + }, + "route": { + "coding": [ + { + "system": "http://snomed.info/sct", + "code": "26643006", + "display": "Oral" + } + ] + } + } + ], + "dispenseRequest": { + "extension": [ + { + "url": "https://fhir.nhs.uk/StructureDefinition/Extension-DM-PerformerSiteType", + "valueCoding": { + "system": "https://fhir.nhs.uk/CodeSystem/dispensing-site-preference", + "code": "P1" + } + } + ], + "validityPeriod": { + "start": "2022-10-21" + }, + "quantity": { + "value": 30, + "unit": "tablet", + "system": "http://snomed.info/sct", + "code": "428673006" + }, + "expectedSupplyDuration": { + "value": 10, + "unit": "day", + "system": "http://unitsofmeasure.org", + "code": "d" + }, + "performer": { + "identifier": { + "system": "https://fhir.nhs.uk/Id/ods-organization-code", + "value": "VNE51" + } + } + }, + "substitution": { + "allowedBoolean": false + } + } + }, + { + "fullUrl": "urn:uuid:78d3c2eb-009e-4ec8-a358-b042954aa9b2", + "resource": { + "resourceType": "Patient", + "identifier": [ + { + "system": "https://fhir.nhs.uk/Id/nhs-number", + "value": "9449304130" + } + ], + "name": [ + { + "use": "usual", + "family": "TWITCHETT", + "given": [ + "STACEY", + "MARISA" + ], + "prefix": [ + "MS" + ] + } + ], + "gender": "female", + "birthDate": "1948-04-30", + "address": [ + { + "use": "home", + "line": [ + "10 HEATHFIELD", + "COBHAM", + "SURREY" + ], + "postalCode": "KT11 2QY" + } + ], + "generalPractitioner": [ + { + "identifier": { + "system": "https://fhir.nhs.uk/Id/ods-organization-code", + "value": "A83008" + } + } + ] + } + }, + { + "fullUrl": "urn:uuid:56166769-c1c4-4d07-afa8-132b5dfca666", + "resource": { + "resourceType": "PractitionerRole", + "identifier": [ + { + "system": "https://fhir.nhs.uk/Id/sds-role-profile-id", + "value": "200102238987" + } + ], + "practitioner": { + "reference": "urn:uuid:a8c85454-f8cb-498d-9629-78e2cb5fa47a" + }, + "organization": { + "reference": "urn:uuid:3b4b03a5-52ba-4ba6-9b82-70350aa109d8" + }, + "code": [ + { + "coding": [ + { + "system": "https://fhir.nhs.uk/CodeSystem/NHSDigital-SDS-JobRoleCode", + "code": "R8000", + "display": "Clinical Practitioner Access Role" + }, + { + "system": "https://fhir.hl7.org.uk/CodeSystem/UKCore-SDSJobRoleName", + "code": "R8000", + "display": "Clinical Practitioner Access Role" + } + ] + } + ], + "telecom": [ + { + "system": "phone", + "use": "work", + "value": "01234567890" + } + ] + } + }, + { + "fullUrl": "urn:uuid:a8c85454-f8cb-498d-9629-78e2cb5fa47a", + "resource": { + "resourceType": "Practitioner", + "identifier": [ + { + "system": "https://fhir.nhs.uk/Id/sds-user-id", + "value": "555086689106" + }, + { + "system": "https://fhir.hl7.org.uk/Id/gmc-number", + "value": "6095103" + }, + { + "system": "https://fhir.hl7.org.uk/Id/din-number", + "value": "977677" + } + ], + "name": [ + { + "family": "BOIN", + "given": [ + "C" + ], + "prefix": [ + "DR" + ] + } + ] + } + }, + { + "fullUrl": "urn:uuid:3b4b03a5-52ba-4ba6-9b82-70350aa109d8", + "resource": { + "resourceType": "Organization", + "identifier": [ + { + "system": "https://fhir.nhs.uk/Id/ods-organization-code", + "value": "A83008" + } + ], + "type": [ + { + "coding": [ + { + "system": "https://fhir.nhs.uk/CodeSystem/organisation-role", + "code": "76", + "display": "GP PRACTICE" + } + ] + } + ], + "name": "HALLGARTH SURGERY", + "telecom": [ + { + "system": "phone", + "use": "work", + "value": "0115 9737320" + } + ], + "address": [ + { + "use": "work", + "type": "both", + "line": [ + "HALLGARTH SURGERY", + "CHEAPSIDE" + ], + "city": "SHILDON", + "district": "COUNTY DURHAM", + "postalCode": "DL4 2HP" + } + ], + "partOf": { + "identifier": { + "system": "https://fhir.nhs.uk/Id/ods-organization-code", + "value": "84H" + }, + "display": "NHS COUNTY DURHAM CCG" + } + } + }, + { + "fullUrl": "urn:uuid:28828c55-8fa7-42d7-916f-fcf076e0c10e", + "resource": { + "resourceType": "Provenance", + "id": "28828c55-8fa7-42d7-916f-fcf076e0c10e", + "target": [ + { + "reference": "urn:uuid:0cb82cfa-76c8-4fb2-a08e-bf0e326e5487" + } + ], + "recorded": "2022-10-21T13:47:00+00:00", + "agent": [ + { + "who": { + "reference": "urn:uuid:56166769-c1c4-4d07-afa8-132b5dfca666" + } + } + ], + "signature": [ + { + "type": [ + { + "system": "urn:iso-astm:E1762-95:2013", + "code": "1.2.840.10065.1.12.1.1" + } + ], + "when": "2022-10-21T13:47:00+00:00", + "who": { + "reference": "urn:uuid:56166769-c1c4-4d07-afa8-132b5dfca666" + }, + "data": "PFNpZ25hdHVyZSB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC8wOS94bWxkc2lnIyI+CiAgICAgICAgICAgIDxTaWduZWRJbmZvPjxDYW5vbmljYWxpemF0aW9uTWV0aG9kIEFsZ29yaXRobT0iaHR0cDovL3d3dy53My5vcmcvMjAwMS8xMC94bWwtZXhjLWMxNG4jIj48L0Nhbm9uaWNhbGl6YXRpb25NZXRob2Q+PFNpZ25hdHVyZU1ldGhvZCBBbGdvcml0aG09Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvMDkveG1sZHNpZyNyc2Etc2hhMSI+PC9TaWduYXR1cmVNZXRob2Q+PFJlZmVyZW5jZT48VHJhbnNmb3Jtcz48VHJhbnNmb3JtIEFsZ29yaXRobT0iaHR0cDovL3d3dy53My5vcmcvMjAwMS8xMC94bWwtZXhjLWMxNG4jIj48L1RyYW5zZm9ybT48L1RyYW5zZm9ybXM+PERpZ2VzdE1ldGhvZCBBbGdvcml0aG09Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvMDkveG1sZHNpZyNzaGExIj48L0RpZ2VzdE1ldGhvZD48RGlnZXN0VmFsdWU+WTg5YWNmSC90VkVtSXI2aVlrRVJrWWMxbG1jPTwvRGlnZXN0VmFsdWU+PC9SZWZlcmVuY2U+PC9TaWduZWRJbmZvPgogICAgICAgICAgICA8U2lnbmF0dXJlVmFsdWU+PC9TaWduYXR1cmVWYWx1ZT4KICAgICAgICAgICAgPEtleUluZm8+PFg1MDlEYXRhPjxYNTA5Q2VydGlmaWNhdGU+PC9YNTA5Q2VydGlmaWNhdGU+PC9YNTA5RGF0YT48L0tleUluZm8+CiAgICAgICAgICA8L1NpZ25hdHVyZT4=" + } + ] + } + } + ] +} diff --git a/src/test/resources/examples/full_examples/primary-care/acute/nominated-pharmacy/responsible-party-org/separate-telecom/1-Process-Response-Send-200_OK.json b/src/test/resources/examples/full_examples/primary-care/acute/nominated-pharmacy/responsible-party-org/separate-telecom/1-Process-Response-Send-200_OK.json new file mode 100644 index 00000000..123fd294 --- /dev/null +++ b/src/test/resources/examples/full_examples/primary-care/acute/nominated-pharmacy/responsible-party-org/separate-telecom/1-Process-Response-Send-200_OK.json @@ -0,0 +1,12 @@ +{ + "resourceType": "OperationOutcome", + "meta": { + "lastUpdated": "2024-01-17T13:14:33+00:00" + }, + "issue": [ + { + "code": "informational", + "severity": "information" + } + ] + } diff --git a/src/test/resources/examples/full_examples/primary-care/repeat-dispensing/nominated-pharmacy/medical-prescriber/author/gmc/responsible-party/medication-list/din/1-Prepare-Request-200_OK.json b/src/test/resources/examples/full_examples/primary-care/repeat-dispensing/nominated-pharmacy/medical-prescriber/author/gmc/responsible-party/medication-list/din/1-Prepare-Request-200_OK.json new file mode 100644 index 00000000..1aecc36f --- /dev/null +++ b/src/test/resources/examples/full_examples/primary-care/repeat-dispensing/nominated-pharmacy/medical-prescriber/author/gmc/responsible-party/medication-list/din/1-Prepare-Request-200_OK.json @@ -0,0 +1,563 @@ +{ + "resourceType": "Bundle", + "id": "0cb82cfa-76c8-4fb2-a08e-bf0e326e5487", + "identifier": { + "system": "https://tools.ietf.org/html/rfc4122", + "value": "c289bd6e-a10a-4c5a-b14c-8cbb3f4b5d44" + }, + "type": "message", + "entry": [ + { + "fullUrl": "urn:uuid:17773b27-427e-4940-8c16-64cdac715001", + "resource": { + "resourceType": "MessageHeader", + "eventCoding": { + "system": "https://fhir.nhs.uk/CodeSystem/message-event", + "code": "prescription-order", + "display": "Prescription Order" + }, + "sender": { + "identifier": { + "system": "https://fhir.nhs.uk/Id/ods-organization-code", + "value": "A83008" + }, + "display": "HALLGARTH SURGERY" + }, + "source": { + "endpoint": "https://directory.spineservices.nhs.uk/STU3/Organization/A83008" + }, + "destination": [ + { + "endpoint": "https://sandbox.api.service.nhs.uk/electronic-prescriptions/$post-message", + "receiver": { + "identifier": { + "system": "https://fhir.nhs.uk/Id/ods-organization-code", + "value": "FCG71" + } + } + } + ], + "focus": [ + { + "reference": "urn:uuid:56166769-c1c4-4d07-afa8-132b5dfca666" + }, + { + "reference": "urn:uuid:5cb17f5a-11ac-4e18-825f-6470467238b3" + }, + { + "reference": "urn:uuid:a54219b8-f741-4c47-b662-e4f8dfa49ab6" + }, + { + "reference": "urn:uuid:51793ac0-112f-46c7-a891-9af8cefb206e" + } + ] + } + }, + { + "fullUrl": "urn:uuid:a54219b8-f741-4c47-b662-e4f8dfa49ab6", + "resource": { + "resourceType": "MedicationRequest", + "extension": [ + { + "url": "https://fhir.nhs.uk/StructureDefinition/Extension-DM-PrescriptionType", + "valueCoding": { + "system": "https://fhir.nhs.uk/CodeSystem/prescription-type", + "code": "0101", + "display": "Primary Care Prescriber - Medical Prescriber" + } + }, + { + "url": "https://fhir.hl7.org.uk/StructureDefinition/Extension-UKCore-MedicationRepeatInformation", + "extension": [ + { + "url": "authorisationExpiryDate", + "valueDateTime": "2024-11-30" + } + ] + } + ], + "identifier": [ + { + "system": "https://fhir.nhs.uk/Id/prescription-order-item-number", + "value": "cedf33f2-49fc-4d11-a5e7-e663d9037817" + } + ], + "status": "active", + "intent": "original-order", + "category": [ + { + "coding": [ + { + "system": "http://terminology.hl7.org/CodeSystem/medicationrequest-category", + "code": "community", + "display": "Community" + } + ] + } + ], + "medicationCodeableConcept": { + "coding": [ + { + "system": "http://snomed.info/sct", + "code": "322237000", + "display": "Paracetamol 500mg soluble tablets" + } + ] + }, + "subject": { + "reference": "urn:uuid:78d3c2eb-009e-4ec8-a358-b042954aa9b2" + }, + "requester": { + "reference": "urn:uuid:56166769-c1c4-4d07-afa8-132b5dfca666" + }, + "groupIdentifier": { + "extension": [ + { + "url": "https://fhir.nhs.uk/StructureDefinition/Extension-DM-PrescriptionId", + "valueIdentifier": { + "system": "https://fhir.nhs.uk/Id/prescription", + "value": "4f2b64a2-0f32-401f-81f4-5e585bfa2e61" + } + } + ], + "system": "https://fhir.nhs.uk/Id/prescription-order-number", + "value": "998244-A83008-238DCD" + }, + "courseOfTherapyType": { + "coding": [ + { + "system": "https://fhir.nhs.uk/CodeSystem/medicationrequest-course-of-therapy", + "code": "continuous-repeat-dispensing", + "display": "Continuous long term (repeat dispensing)" + } + ] + }, + "dosageInstruction": [ + { + "text": "4 times a day - Oral", + "timing": { + "repeat": { + "frequency": 4, + "period": 1, + "periodUnit": "d" + } + }, + "route": { + "coding": [ + { + "system": "http://snomed.info/sct", + "code": "26643006", + "display": "Oral" + } + ] + } + } + ], + "dispenseRequest": { + "extension": [ + { + "url": "https://fhir.nhs.uk/StructureDefinition/Extension-DM-PerformerSiteType", + "valueCoding": { + "system": "https://fhir.nhs.uk/CodeSystem/dispensing-site-preference", + "code": "P1" + } + } + ], + "numberOfRepeatsAllowed": 5, + "validityPeriod": { + "start": "2022-02-19", + "end": "2022-03-19" + }, + "expectedSupplyDuration": { + "value": 30, + "unit": "day", + "system": "http://unitsofmeasure.org", + "code": "d" + }, + "performer": { + "identifier": { + "system": "https://fhir.nhs.uk/Id/ods-organization-code", + "value": "FCG71" + } + }, + "quantity": { + "value": 100, + "unit": "tablet", + "system": "http://snomed.info/sct", + "code": "428673006" + } + }, + "substitution": { + "allowedBoolean": false + } + } + }, + { + "fullUrl": "urn:uuid:5cb17f5a-11ac-4e18-825f-6470467238b3", + "resource": { + "resourceType": "MedicationRequest", + "extension": [ + { + "url": "https://fhir.nhs.uk/StructureDefinition/Extension-DM-PrescriptionType", + "valueCoding": { + "system": "https://fhir.nhs.uk/CodeSystem/prescription-type", + "code": "0101", + "display": "Primary Care Prescriber - Medical Prescriber" + } + }, + { + "url": "https://fhir.hl7.org.uk/StructureDefinition/Extension-UKCore-MedicationRepeatInformation", + "extension": [ + { + "url": "authorisationExpiryDate", + "valueDateTime": "2024-11-30" + } + ] + } + ], + "identifier": [ + { + "system": "https://fhir.nhs.uk/Id/prescription-order-item-number", + "value": "1341f8f3-3b52-4820-91ed-47cac20db83f" + } + ], + "status": "active", + "intent": "original-order", + "category": [ + { + "coding": [ + { + "system": "http://terminology.hl7.org/CodeSystem/medicationrequest-category", + "code": "community", + "display": "Community" + } + ] + } + ], + "medicationCodeableConcept": { + "coding": [ + { + "system": "http://snomed.info/sct", + "code": "39113611000001102", + "display": "Salbutamol 100micrograms/dose inhaler CFC free" + } + ] + }, + "subject": { + "reference": "urn:uuid:78d3c2eb-009e-4ec8-a358-b042954aa9b2" + }, + "requester": { + "reference": "urn:uuid:56166769-c1c4-4d07-afa8-132b5dfca666" + }, + "groupIdentifier": { + "extension": [ + { + "url": "https://fhir.nhs.uk/StructureDefinition/Extension-DM-PrescriptionId", + "valueIdentifier": { + "system": "https://fhir.nhs.uk/Id/prescription", + "value": "4f2b64a2-0f32-401f-81f4-5e585bfa2e61" + } + } + ], + "system": "https://fhir.nhs.uk/Id/prescription-order-number", + "value": "998244-A83008-238DCD" + }, + "courseOfTherapyType": { + "coding": [ + { + "system": "https://fhir.nhs.uk/CodeSystem/medicationrequest-course-of-therapy", + "code": "continuous-repeat-dispensing", + "display": "Continuous long term (repeat dispensing)" + } + ] + }, + "dosageInstruction": [ + { + "text": "5 times a day - Inhalation", + "timing": { + "repeat": { + "frequency": 5, + "period": 1, + "periodUnit": "d" + } + }, + "route": { + "coding": [ + { + "system": "http://snomed.info/sct", + "code": "18679011000001101", + "display": "Inhalation" + } + ] + } + } + ], + "dispenseRequest": { + "extension": [ + { + "url": "https://fhir.nhs.uk/StructureDefinition/Extension-DM-PerformerSiteType", + "valueCoding": { + "system": "https://fhir.nhs.uk/CodeSystem/dispensing-site-preference", + "code": "P1" + } + } + ], + "numberOfRepeatsAllowed": 5, + "validityPeriod": { + "start": "2022-02-19", + "end": "2022-03-19" + }, + "expectedSupplyDuration": { + "value": 30, + "unit": "day", + "system": "http://unitsofmeasure.org", + "code": "d" + }, + "performer": { + "identifier": { + "system": "https://fhir.nhs.uk/Id/ods-organization-code", + "value": "FCG71" + } + }, + "quantity": { + "value": 200, + "unit": "dose", + "system": "http://snomed.info/sct", + "code": "3317411000001100" + } + }, + "substitution": { + "allowedBoolean": false + } + } + }, + { + "fullUrl": "urn:uuid:78d3c2eb-009e-4ec8-a358-b042954aa9b2", + "resource": { + "resourceType": "Patient", + "identifier": [ + { + "system": "https://fhir.nhs.uk/Id/nhs-number", + "value": "9990548609" + } + ], + "name": [ + { + "use": "usual", + "family": "XXTESTPATIENT-TGNP", + "given": [ + "DONOTUSE" + ], + "prefix": [ + "MR" + ] + } + ], + "gender": "male", + "birthDate": "1932-01-06", + "address": [ + { + "use": "home", + "line": [ + "1 Trevelyan Square", + "Boar Lane", + "Leeds", + "West Yorkshire" + ], + "postalCode": "LS1 6AE" + } + ], + "generalPractitioner": [ + { + "identifier": { + "system": "https://fhir.nhs.uk/Id/ods-organization-code", + "value": "A83008" + } + } + ] + } + }, + { + "fullUrl": "urn:uuid:56166769-c1c4-4d07-afa8-132b5dfca666", + "resource": { + "resourceType": "PractitionerRole", + "identifier": [ + { + "system": "https://fhir.nhs.uk/Id/sds-role-profile-id", + "value": "200102238987" + } + ], + "practitioner": { + "reference": "urn:uuid:a8c85454-f8cb-498d-9629-78e2cb5fa47a" + }, + "organization": { + "reference": "urn:uuid:3b4b03a5-52ba-4ba6-9b82-70350aa109d8" + }, + "code": [ + { + "coding": [ + { + "system": "https://fhir.nhs.uk/CodeSystem/NHSDigital-SDS-JobRoleCode", + "code": "S8000:G8000:R8000", + "display": "Clinical Practitioner Access Role" + } + ] + } + ], + "telecom": [ + { + "system": "phone", + "value": "01234567890", + "use": "work" + } + ] + } + }, + { + "fullUrl": "urn:uuid:a8c85454-f8cb-498d-9629-78e2cb5fa47a", + "resource": { + "resourceType": "Practitioner", + "identifier": [ + { + "system": "https://fhir.nhs.uk/Id/sds-user-id", + "value": "555086689106" + }, + { + "system": "https://fhir.hl7.org.uk/Id/gmc-number", + "value": "6095103" + }, + { + "system": "https://fhir.hl7.org.uk/Id/din-number", + "value": "977677" + } + ], + "name": [ + { + "family": "BOIN", + "given": [ + "C" + ], + "prefix": [ + "DR" + ] + } + ] + } + }, + { + "fullUrl": "urn:uuid:3b4b03a5-52ba-4ba6-9b82-70350aa109d8", + "resource": { + "resourceType": "Organization", + "identifier": [ + { + "system": "https://fhir.nhs.uk/Id/ods-organization-code", + "value": "A83008" + } + ], + "type": [ + { + "coding": [ + { + "system": "https://fhir.nhs.uk/CodeSystem/organisation-role", + "code": "76", + "display": "GP PRACTICE" + } + ] + } + ], + "name": "HALLGARTH SURGERY", + "address": [ + { + "use": "work", + "type": "both", + "line": [ + "HALLGARTH SURGERY", + "CHEAPSIDE" + ], + "city": "SHILDON", + "district": "COUNTY DURHAM", + "postalCode": "DL4 2HP" + } + ], + "telecom": [ + { + "system": "phone", + "value": "0115 9737320", + "use": "work" + } + ], + "partOf": { + "identifier": { + "system": "https://fhir.nhs.uk/Id/ods-organization-code", + "value": "84H" + }, + "display": "NHS COUNTY DURHAM CCG" + } + } + }, + { + "fullUrl": "urn:uuid:51793ac0-112f-46c7-a891-9af8cefb206e", + "resource": { + "resourceType": "CommunicationRequest", + "status": "unknown", + "subject": { + "reference": "urn:uuid:78d3c2eb-009e-4ec8-a358-b042954aa9b2" + }, + "payload": [ + { + "contentString": "Due to Coronavirus restrictions Church View Surgery is CLOSED until further notice" + }, + { + "contentReference": { + "reference": "urn:uuid:d0f003a0-8763-43d5-a264-ce52a38901c9", + "display": "List of Repeat Medications for re-ordering" + } + } + ], + "requester": { + "type": "Organization", + "identifier": { + "system": "https://fhir.nhs.uk/Id/ods-organization-code", + "value": "RBA" + }, + "display": "TAUNTON AND SOMERSET NHS FOUNDATION TRUST" + }, + "recipient": [ + { + "type": "Patient", + "identifier": { + "system": "https://fhir.nhs.uk/Id/nhs-number", + "value": "9453740519" + } + } + ] + } + }, + { + "fullUrl": "urn:uuid:d0f003a0-8763-43d5-a264-ce52a38901c9", + "resource": { + "resourceType": "List", + "status": "current", + "mode": "snapshot", + "code": { + "text": "Repeat Medications" + }, + "subject": { + "reference": "urn:uuid:78d3c2eb-009e-4ec8-a358-b042954aa9b2" + }, + "entry": [ + { + "item": { + "display": "Bendroflumethiazide 2.5mg tablets (3/6)" + } + }, + { + "item": { + "display": "Salbutamol 100micrograms/dose inhaler CFC free (2/6)" + } + } + ] + } + } + ] +} diff --git a/src/test/resources/examples/full_examples/primary-care/repeat-dispensing/nominated-pharmacy/medical-prescriber/author/gmc/responsible-party/medication-list/din/1-Prepare-Response-200_OK.json b/src/test/resources/examples/full_examples/primary-care/repeat-dispensing/nominated-pharmacy/medical-prescriber/author/gmc/responsible-party/medication-list/din/1-Prepare-Response-200_OK.json new file mode 100644 index 00000000..fe914544 --- /dev/null +++ b/src/test/resources/examples/full_examples/primary-care/repeat-dispensing/nominated-pharmacy/medical-prescriber/author/gmc/responsible-party/medication-list/din/1-Prepare-Response-200_OK.json @@ -0,0 +1,17 @@ +{ + "resourceType": "Parameters", + "parameter": [ + { + "name": "digest", + "valueString": "PFNpZ25lZEluZm8geG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvMDkveG1sZHNpZyMiPjxDYW5vbmljYWxpemF0aW9uTWV0aG9kIEFsZ29yaXRobT0iaHR0cDovL3d3dy53My5vcmcvMjAwMS8xMC94bWwtZXhjLWMxNG4jIj48L0Nhbm9uaWNhbGl6YXRpb25NZXRob2Q+PFNpZ25hdHVyZU1ldGhvZCBBbGdvcml0aG09Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvMDkveG1sZHNpZyNyc2Etc2hhMSI+PC9TaWduYXR1cmVNZXRob2Q+PFJlZmVyZW5jZT48VHJhbnNmb3Jtcz48VHJhbnNmb3JtIEFsZ29yaXRobT0iaHR0cDovL3d3dy53My5vcmcvMjAwMS8xMC94bWwtZXhjLWMxNG4jIj48L1RyYW5zZm9ybT48L1RyYW5zZm9ybXM+PERpZ2VzdE1ldGhvZCBBbGdvcml0aG09Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvMDkveG1sZHNpZyNzaGExIj48L0RpZ2VzdE1ldGhvZD48RGlnZXN0VmFsdWU+Q3VFMk5vTGgxMmNORm16NFFJM09ZUnMwUHQ0PTwvRGlnZXN0VmFsdWU+PC9SZWZlcmVuY2U+PC9TaWduZWRJbmZvPg==" + }, + { + "name": "timestamp", + "valueString": "2022-10-25T10:24:34+00:00" + }, + { + "name": "algorithm", + "valueString": "RS1" + } + ] +} diff --git a/src/test/resources/examples/full_examples/primary-care/repeat-dispensing/nominated-pharmacy/medical-prescriber/author/gmc/responsible-party/medication-list/din/1-Process-Request-Send-200_OK.json b/src/test/resources/examples/full_examples/primary-care/repeat-dispensing/nominated-pharmacy/medical-prescriber/author/gmc/responsible-party/medication-list/din/1-Process-Request-Send-200_OK.json new file mode 100644 index 00000000..11d36230 --- /dev/null +++ b/src/test/resources/examples/full_examples/primary-care/repeat-dispensing/nominated-pharmacy/medical-prescriber/author/gmc/responsible-party/medication-list/din/1-Process-Request-Send-200_OK.json @@ -0,0 +1,598 @@ +{ + "resourceType": "Bundle", + "id": "0cb82cfa-76c8-4fb2-a08e-bf0e326e5487", + "identifier": { + "system": "https://tools.ietf.org/html/rfc4122", + "value": "c289bd6e-a10a-4c5a-b14c-8cbb3f4b5d44" + }, + "type": "message", + "entry": [ + { + "fullUrl": "urn:uuid:17773b27-427e-4940-8c16-64cdac715001", + "resource": { + "resourceType": "MessageHeader", + "eventCoding": { + "system": "https://fhir.nhs.uk/CodeSystem/message-event", + "code": "prescription-order", + "display": "Prescription Order" + }, + "sender": { + "identifier": { + "system": "https://fhir.nhs.uk/Id/ods-organization-code", + "value": "A83008" + }, + "display": "HALLGARTH SURGERY" + }, + "source": { + "endpoint": "https://directory.spineservices.nhs.uk/STU3/Organization/A83008" + }, + "destination": [ + { + "endpoint": "https://sandbox.api.service.nhs.uk/electronic-prescriptions/$post-message", + "receiver": { + "identifier": { + "system": "https://fhir.nhs.uk/Id/ods-organization-code", + "value": "FCG71" + } + } + } + ], + "focus": [ + { + "reference": "urn:uuid:56166769-c1c4-4d07-afa8-132b5dfca666" + }, + { + "reference": "urn:uuid:5cb17f5a-11ac-4e18-825f-6470467238b3" + }, + { + "reference": "urn:uuid:a54219b8-f741-4c47-b662-e4f8dfa49ab6" + }, + { + "reference": "urn:uuid:51793ac0-112f-46c7-a891-9af8cefb206e" + } + ] + } + }, + { + "fullUrl": "urn:uuid:a54219b8-f741-4c47-b662-e4f8dfa49ab6", + "resource": { + "resourceType": "MedicationRequest", + "extension": [ + { + "url": "https://fhir.nhs.uk/StructureDefinition/Extension-DM-PrescriptionType", + "valueCoding": { + "system": "https://fhir.nhs.uk/CodeSystem/prescription-type", + "code": "0101", + "display": "Primary Care Prescriber - Medical Prescriber" + } + }, + { + "url": "https://fhir.hl7.org.uk/StructureDefinition/Extension-UKCore-MedicationRepeatInformation", + "extension": [ + { + "url": "authorisationExpiryDate", + "valueDateTime": "2024-11-30" + } + ] + } + ], + "identifier": [ + { + "system": "https://fhir.nhs.uk/Id/prescription-order-item-number", + "value": "cedf33f2-49fc-4d11-a5e7-e663d9037817" + } + ], + "status": "active", + "intent": "original-order", + "category": [ + { + "coding": [ + { + "system": "http://terminology.hl7.org/CodeSystem/medicationrequest-category", + "code": "community", + "display": "Community" + } + ] + } + ], + "medicationCodeableConcept": { + "coding": [ + { + "system": "http://snomed.info/sct", + "code": "322237000", + "display": "Paracetamol 500mg soluble tablets" + } + ] + }, + "subject": { + "reference": "urn:uuid:78d3c2eb-009e-4ec8-a358-b042954aa9b2" + }, + "requester": { + "reference": "urn:uuid:56166769-c1c4-4d07-afa8-132b5dfca666" + }, + "groupIdentifier": { + "extension": [ + { + "url": "https://fhir.nhs.uk/StructureDefinition/Extension-DM-PrescriptionId", + "valueIdentifier": { + "system": "https://fhir.nhs.uk/Id/prescription", + "value": "4f2b64a2-0f32-401f-81f4-5e585bfa2e61" + } + } + ], + "system": "https://fhir.nhs.uk/Id/prescription-order-number", + "value": "998244-A83008-238DCD" + }, + "courseOfTherapyType": { + "coding": [ + { + "system": "https://fhir.nhs.uk/CodeSystem/medicationrequest-course-of-therapy", + "code": "continuous-repeat-dispensing", + "display": "Continuous long term (repeat dispensing)" + } + ] + }, + "dosageInstruction": [ + { + "text": "4 times a day - Oral", + "timing": { + "repeat": { + "frequency": 4, + "period": 1, + "periodUnit": "d" + } + }, + "route": { + "coding": [ + { + "system": "http://snomed.info/sct", + "code": "26643006", + "display": "Oral" + } + ] + } + } + ], + "dispenseRequest": { + "extension": [ + { + "url": "https://fhir.nhs.uk/StructureDefinition/Extension-DM-PerformerSiteType", + "valueCoding": { + "system": "https://fhir.nhs.uk/CodeSystem/dispensing-site-preference", + "code": "P1" + } + } + ], + "numberOfRepeatsAllowed": 5, + "validityPeriod": { + "start": "2022-02-19", + "end": "2022-03-19" + }, + "expectedSupplyDuration": { + "value": 30, + "unit": "day", + "system": "http://unitsofmeasure.org", + "code": "d" + }, + "performer": { + "identifier": { + "system": "https://fhir.nhs.uk/Id/ods-organization-code", + "value": "FCG71" + } + }, + "quantity": { + "value": 100, + "unit": "tablet", + "system": "http://snomed.info/sct", + "code": "428673006" + } + }, + "substitution": { + "allowedBoolean": false + } + } + }, + { + "fullUrl": "urn:uuid:5cb17f5a-11ac-4e18-825f-6470467238b3", + "resource": { + "resourceType": "MedicationRequest", + "extension": [ + { + "url": "https://fhir.nhs.uk/StructureDefinition/Extension-DM-PrescriptionType", + "valueCoding": { + "system": "https://fhir.nhs.uk/CodeSystem/prescription-type", + "code": "0101", + "display": "Primary Care Prescriber - Medical Prescriber" + } + }, + { + "url": "https://fhir.hl7.org.uk/StructureDefinition/Extension-UKCore-MedicationRepeatInformation", + "extension": [ + { + "url": "authorisationExpiryDate", + "valueDateTime": "2024-11-30" + } + ] + } + ], + "identifier": [ + { + "system": "https://fhir.nhs.uk/Id/prescription-order-item-number", + "value": "1341f8f3-3b52-4820-91ed-47cac20db83f" + } + ], + "status": "active", + "intent": "original-order", + "category": [ + { + "coding": [ + { + "system": "http://terminology.hl7.org/CodeSystem/medicationrequest-category", + "code": "community", + "display": "Community" + } + ] + } + ], + "medicationCodeableConcept": { + "coding": [ + { + "system": "http://snomed.info/sct", + "code": "39113611000001102", + "display": "Salbutamol 100micrograms/dose inhaler CFC free" + } + ] + }, + "subject": { + "reference": "urn:uuid:78d3c2eb-009e-4ec8-a358-b042954aa9b2" + }, + "requester": { + "reference": "urn:uuid:56166769-c1c4-4d07-afa8-132b5dfca666" + }, + "groupIdentifier": { + "extension": [ + { + "url": "https://fhir.nhs.uk/StructureDefinition/Extension-DM-PrescriptionId", + "valueIdentifier": { + "system": "https://fhir.nhs.uk/Id/prescription", + "value": "4f2b64a2-0f32-401f-81f4-5e585bfa2e61" + } + } + ], + "system": "https://fhir.nhs.uk/Id/prescription-order-number", + "value": "998244-A83008-238DCD" + }, + "courseOfTherapyType": { + "coding": [ + { + "system": "https://fhir.nhs.uk/CodeSystem/medicationrequest-course-of-therapy", + "code": "continuous-repeat-dispensing", + "display": "Continuous long term (repeat dispensing)" + } + ] + }, + "dosageInstruction": [ + { + "text": "5 times a day - Inhalation", + "timing": { + "repeat": { + "frequency": 5, + "period": 1, + "periodUnit": "d" + } + }, + "route": { + "coding": [ + { + "system": "http://snomed.info/sct", + "code": "18679011000001101", + "display": "Inhalation" + } + ] + } + } + ], + "dispenseRequest": { + "extension": [ + { + "url": "https://fhir.nhs.uk/StructureDefinition/Extension-DM-PerformerSiteType", + "valueCoding": { + "system": "https://fhir.nhs.uk/CodeSystem/dispensing-site-preference", + "code": "P1" + } + } + ], + "numberOfRepeatsAllowed": 5, + "validityPeriod": { + "start": "2022-02-19", + "end": "2022-03-19" + }, + "expectedSupplyDuration": { + "value": 30, + "unit": "day", + "system": "http://unitsofmeasure.org", + "code": "d" + }, + "performer": { + "identifier": { + "system": "https://fhir.nhs.uk/Id/ods-organization-code", + "value": "FCG71" + } + }, + "quantity": { + "value": 200, + "unit": "dose", + "system": "http://snomed.info/sct", + "code": "3317411000001100" + } + }, + "substitution": { + "allowedBoolean": false + } + } + }, + { + "fullUrl": "urn:uuid:78d3c2eb-009e-4ec8-a358-b042954aa9b2", + "resource": { + "resourceType": "Patient", + "identifier": [ + { + "system": "https://fhir.nhs.uk/Id/nhs-number", + "value": "9990548609" + } + ], + "name": [ + { + "use": "usual", + "family": "XXTESTPATIENT-TGNP", + "given": [ + "DONOTUSE" + ], + "prefix": [ + "MR" + ] + } + ], + "gender": "male", + "birthDate": "1932-01-06", + "address": [ + { + "use": "home", + "line": [ + "1 Trevelyan Square", + "Boar Lane", + "Leeds", + "West Yorkshire" + ], + "postalCode": "LS1 6AE" + } + ], + "generalPractitioner": [ + { + "identifier": { + "system": "https://fhir.nhs.uk/Id/ods-organization-code", + "value": "A83008" + } + } + ] + } + }, + { + "fullUrl": "urn:uuid:56166769-c1c4-4d07-afa8-132b5dfca666", + "resource": { + "resourceType": "PractitionerRole", + "identifier": [ + { + "system": "https://fhir.nhs.uk/Id/sds-role-profile-id", + "value": "200102238987" + } + ], + "practitioner": { + "reference": "urn:uuid:a8c85454-f8cb-498d-9629-78e2cb5fa47a" + }, + "organization": { + "reference": "urn:uuid:3b4b03a5-52ba-4ba6-9b82-70350aa109d8" + }, + "code": [ + { + "coding": [ + { + "system": "https://fhir.nhs.uk/CodeSystem/NHSDigital-SDS-JobRoleCode", + "code": "S8000:G8000:R8000", + "display": "Clinical Practitioner Access Role" + } + ] + } + ], + "telecom": [ + { + "system": "phone", + "value": "01234567890", + "use": "work" + } + ] + } + }, + { + "fullUrl": "urn:uuid:a8c85454-f8cb-498d-9629-78e2cb5fa47a", + "resource": { + "resourceType": "Practitioner", + "identifier": [ + { + "system": "https://fhir.nhs.uk/Id/sds-user-id", + "value": "555086689106" + }, + { + "system": "https://fhir.hl7.org.uk/Id/gmc-number", + "value": "6095103" + }, + { + "system": "https://fhir.hl7.org.uk/Id/din-number", + "value": "977677" + } + ], + "name": [ + { + "family": "BOIN", + "given": [ + "C" + ], + "prefix": [ + "DR" + ] + } + ] + } + }, + { + "fullUrl": "urn:uuid:3b4b03a5-52ba-4ba6-9b82-70350aa109d8", + "resource": { + "resourceType": "Organization", + "identifier": [ + { + "system": "https://fhir.nhs.uk/Id/ods-organization-code", + "value": "A83008" + } + ], + "type": [ + { + "coding": [ + { + "system": "https://fhir.nhs.uk/CodeSystem/organisation-role", + "code": "76", + "display": "GP PRACTICE" + } + ] + } + ], + "name": "HALLGARTH SURGERY", + "address": [ + { + "use": "work", + "type": "both", + "line": [ + "HALLGARTH SURGERY", + "CHEAPSIDE" + ], + "city": "SHILDON", + "district": "COUNTY DURHAM", + "postalCode": "DL4 2HP" + } + ], + "telecom": [ + { + "system": "phone", + "value": "0115 9737320", + "use": "work" + } + ], + "partOf": { + "identifier": { + "system": "https://fhir.nhs.uk/Id/ods-organization-code", + "value": "84H" + }, + "display": "NHS COUNTY DURHAM CCG" + } + } + }, + { + "fullUrl": "urn:uuid:51793ac0-112f-46c7-a891-9af8cefb206e", + "resource": { + "resourceType": "CommunicationRequest", + "status": "unknown", + "subject": { + "reference": "urn:uuid:78d3c2eb-009e-4ec8-a358-b042954aa9b2" + }, + "payload": [ + { + "contentString": "Due to Coronavirus restrictions Church View Surgery is CLOSED until further notice" + }, + { + "contentReference": { + "reference": "urn:uuid:d0f003a0-8763-43d5-a264-ce52a38901c9", + "display": "List of Repeat Medications for re-ordering" + } + } + ], + "requester": { + "type": "Organization", + "identifier": { + "system": "https://fhir.nhs.uk/Id/ods-organization-code", + "value": "RBA" + }, + "display": "TAUNTON AND SOMERSET NHS FOUNDATION TRUST" + }, + "recipient": [ + { + "type": "Patient", + "identifier": { + "system": "https://fhir.nhs.uk/Id/nhs-number", + "value": "9453740519" + } + } + ] + } + }, + { + "fullUrl": "urn:uuid:d0f003a0-8763-43d5-a264-ce52a38901c9", + "resource": { + "resourceType": "List", + "status": "current", + "mode": "snapshot", + "code": { + "text": "Repeat Medications" + }, + "subject": { + "reference": "urn:uuid:78d3c2eb-009e-4ec8-a358-b042954aa9b2" + }, + "entry": [ + { + "item": { + "display": "Bendroflumethiazide 2.5mg tablets (3/6)" + } + }, + { + "item": { + "display": "Salbutamol 100micrograms/dose inhaler CFC free (2/6)" + } + } + ] + } + }, + { + "fullUrl": "urn:uuid:28828c55-8fa7-42d7-916f-fcf076e0c10e", + "resource": { + "resourceType": "Provenance", + "id": "28828c55-8fa7-42d7-916f-fcf076e0c10e", + "target": [ + { + "reference": "urn:uuid:a54219b8-f741-4c47-b662-e4f8dfa49ab6" + } + ], + "recorded": "2021-02-11T16:35:38+00:00", + "agent": [ + { + "who": { + "reference": "urn:uuid:56166769-c1c4-4d07-afa8-132b5dfca666" + } + } + ], + "signature": [ + { + "type": [ + { + "system": "urn:iso-astm:E1762-95:2013", + "code": "1.2.840.10065.1.12.1.1" + } + ], + "when": "2022-02-19T17:36:35+00:00", + "who": { + "reference": "urn:uuid:56166769-c1c4-4d07-afa8-132b5dfca666" + }, + "data": "PFNpZ25hdHVyZSB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC8wOS94bWxkc2lnIyI+CiAgICAgICAgICAgICA8U2lnbmVkSW5mbz48Q2Fub25pY2FsaXphdGlvbk1ldGhvZCBBbGdvcml0aG09Imh0dHA6Ly93d3cudzMub3JnLzIwMDEvMTAveG1sLWV4Yy1jMTRuIyI+PC9DYW5vbmljYWxpemF0aW9uTWV0aG9kPjxTaWduYXR1cmVNZXRob2QgQWxnb3JpdGhtPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwLzA5L3htbGRzaWcjcnNhLXNoYTEiPjwvU2lnbmF0dXJlTWV0aG9kPjxSZWZlcmVuY2U+PFRyYW5zZm9ybXM+PFRyYW5zZm9ybSBBbGdvcml0aG09Imh0dHA6Ly93d3cudzMub3JnLzIwMDEvMTAveG1sLWV4Yy1jMTRuIyI+PC9UcmFuc2Zvcm0+PC9UcmFuc2Zvcm1zPjxEaWdlc3RNZXRob2QgQWxnb3JpdGhtPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwLzA5L3htbGRzaWcjc2hhMSI+PC9EaWdlc3RNZXRob2Q+PERpZ2VzdFZhbHVlPkRteW45TERVWXZFWVBsWEFrYVc1NSt0SDNUZz08L0RpZ2VzdFZhbHVlPjwvUmVmZXJlbmNlPjwvU2lnbmVkSW5mbz4KICAgICAgICAgICAgIDxTaWduYXR1cmVWYWx1ZT5mdjJzSG5SaDYyb0tlNFVzYTBtbzJtSTVZMUJjb25lakd0QkY5VlFvTFF2TGpVYTY5ZGg2aGgxOGZVbG5CKzNXSHR0Q3ZSZXhRM0pDdTBON2c1eWQwWWhKb2RnR2F6NWJseHo1c1FJVWd4OWE4Yng2NVdmcTYvNlMxdUJsUERVVlVJamdIZ2pPMWNBNHlGUFg4M1BDZ3ZwanlNNW5RTzB5SzQyZm5zSnNsNWc9PC9TaWduYXR1cmVWYWx1ZT4KICAgICAgICAgICAgIDxLZXlJbmZvPjxYNTA5RGF0YT48WDUwOUNlcnRpZmljYXRlPk1JSUR1RENDQXFDZ0F3SUJBZ0lFWGNtdEh6QU5CZ2txaGtpRzl3MEJBUXNGQURBMk1Rd3dDZ1lEVlFRS0V3TnVhSE14Q3pBSkJnTlZCQXNUQWtOQk1Sa3dGd1lEVlFRREV4Qk9TRk1nU1U1VUlFeGxkbVZzSURGRU1CNFhEVEl3TVRBeU1qRXdNakUxTlZvWERUSXlNVEF5TWpFd05URTFOVm93UXpFTU1Bb0dBMVVFQ2hNRGJtaHpNUTh3RFFZRFZRUUxFd1pRWlc5d2JHVXhJakFnQmdOVkJBTU1HVFUxTlRJMU16VXlNVEV3T0Y5U1FVNUVUMDFmVlZORlVsRXdnWjh3RFFZSktvWklodmNOQVFFQkJRQURnWTBBTUlHSkFvR0JBS3Q0c3pOdzdPQUg3QVFSckRlL3hCSW1zTW1NaVM5RXNyVDNhM3AvTGgzYnJkekk5YWFqVFVaMmIvY3ZiT2E3UGVZZDd1K0s0YTJaZDBYayswR0ZtWUd6U1ZYNmlZamJsd3IwdmFpMzF6VjdHK2xHdkh4SDZwU29MQ3dJQ2FaQUZ3YWJlRDVPejk0K3lBM2FXTld0R1YwRGZoOXF3SDNaRkNJTVJzdmVyTjFwQWdNQkFBR2pnZ0ZETUlJQlB6QU9CZ05WSFE4QkFmOEVCQU1DQmtBd1pRWURWUjBnQVFIL0JGc3dXVEJYQmdzcWhqb0FpWHRtQUFNQ0FEQklNRVlHQ0NzR0FRVUZCd0lCRmpwb2RIUndjem92TDNCcmFTNXVhSE11ZFdzdlkyVnlkR2xtYVdOaGRHVmZjRzlzYVdOcFpYTXZZMjl1ZEdWdWRGOWpiMjF0YVhSdFpXNTBNRE1HQTFVZEh3UXNNQ293S0tBbW9DU0dJbWgwZEhBNkx5OWpjbXd1Ym1oekxuVnJMMmx1ZEM4eFpDOWpjbXhqTXk1amNtd3dLd1lEVlIwUUJDUXdJb0FQTWpBeU1ERXdNakl4TURJeE5UVmFnUTh5TURJeU1ETXhOekV3TlRFMU5Wb3dId1lEVlIwakJCZ3dGb0FVb0pZZmdZVE5QZDZFVUtMNlFMSXpIeFk1UEZJd0hRWURWUjBPQkJZRUZMdHl2WVN5YXFnNjBBRVVaZ3hrMHdyalJKYytNQWtHQTFVZEV3UUNNQUF3R1FZSktvWklodlo5QjBFQUJBd3dDaHNFVmpndU13TUNCTEF3RFFZSktvWklodmNOQVFFTEJRQURnZ0VCQUJjenk4QjhqdVBwSWZhVE5GY3hyQzIyYUNYL3hZWm1ockwvTnZJQkFhWDFHNWhqaXdta0dLRTJoUlRJcjY3UHhaeG1Yc0p4aWdSQk1IUGxJK2xZLytva3pIMEdpN2I1YnFsdzdweEdJZ0pPMDAwdzhwRnN2bzl3NDJJWWhIb2Rzdm5EVlN4aE1UMEo0NlFoazlzb0UwTGpvRVVMS1FQUGxZR2tlL0dsM20xN0l0Rll3T2JRSDBmTUV3bWlxQnllSWZ6N2dTY2NPekw1Y0lwNlBjWlRPam8ySXFRcGdFbWhqT2NSSW5FcUFOaXRTZGpvaUpBSnpwYWFaallUUmRIVVg3aTdhakVpSDRtOTFuRlcrNEFxa050dGxiNFdjR0tzU21XZ2ZLS2hlRjRJb1pLTUU4MHhlclNnTXk4dnRqTE9CSkNHWHowd0xHbVF1Um14TVRxODhxND08L1g1MDlDZXJ0aWZpY2F0ZT48L1g1MDlEYXRhPjwvS2V5SW5mbz4KICAgICAgICAgICA8L1NpZ25hdHVyZT4=" + } + ] + } + } + ] +} diff --git a/src/test/resources/examples/full_examples/primary-care/repeat-dispensing/nominated-pharmacy/medical-prescriber/author/gmc/responsible-party/medication-list/din/1-VerifySignature-Request-200_OK.json b/src/test/resources/examples/full_examples/primary-care/repeat-dispensing/nominated-pharmacy/medical-prescriber/author/gmc/responsible-party/medication-list/din/1-VerifySignature-Request-200_OK.json new file mode 100644 index 00000000..995f5203 --- /dev/null +++ b/src/test/resources/examples/full_examples/primary-care/repeat-dispensing/nominated-pharmacy/medical-prescriber/author/gmc/responsible-party/medication-list/din/1-VerifySignature-Request-200_OK.json @@ -0,0 +1,668 @@ +{ + "resourceType": "Bundle", + "id": "917f870d-4867-4d63-ac54-047890b76061", + "meta": { + "lastUpdated": "2022-02-19T17:37:21+00:00" + }, + "identifier": { + "system": "https://tools.ietf.org/html/rfc4122", + "value": "917f870d-4867-4d63-ac54-047890b76061" + }, + "type": "searchset", + "total": 1, + "entry": [ + { + "fullUrl": "urn:uuid:0d4f804c-9c31-4706-b2cf-4f796e7b199b", + "resource": { + "resourceType": "Bundle", + "id": "0d4f804c-9c31-4706-b2cf-4f796e7b199b", + "meta": { + "lastUpdated": "2022-02-19T00:00:00+00:00" + }, + "identifier": { + "system": "https://tools.ietf.org/html/rfc4122", + "value": "c289bd6e-a10a-4c5a-b14c-8cbb3f4b5d44" + }, + "type": "message", + "entry": [ + { + "resource": { + "resourceType": "MessageHeader", + "id": "ba7b87be-6e18-414d-9fed-e997d737fbe8", + "extension": [ + { + "url": "https://fhir.nhs.uk/StructureDefinition/Extension-Spine-MessageHeader-messageId", + "valueIdentifier": { + "system": "https://tools.ietf.org/html/rfc4122", + "value": "c289bd6e-a10a-4c5a-b14c-8cbb3f4b5d44" + } + } + ], + "eventCoding": { + "system": "https://fhir.nhs.uk/CodeSystem/message-event", + "code": "prescription-order", + "display": "Prescription Order" + }, + "destination": [ + { + "endpoint": "https://directory.spineservices.nhs.uk/STU3/Organization/FCG71", + "receiver": { + "identifier": { + "system": "https://fhir.nhs.uk/Id/ods-organization-code", + "value": "FCG71" + } + } + } + ], + "sender": { + "identifier": { + "system": "https://fhir.nhs.uk/Id/ods-organization-code", + "value": "X2601" + }, + "display": "NHS Digital Spine" + }, + "source": { + "name": "NHS Spine", + "endpoint": "https://internal-dev.api.service.nhs.uk/electronic-prescriptions-pr-769/$process-message" + }, + "response": { + "identifier": "4e8d0225-f7a7-4af6-8b5c-bbf3ccfc96a5", + "code": "ok" + }, + "focus": [ + { + "reference": "urn:uuid:aea78fb1-0f6f-49d1-ab39-3afd6cfe155c" + }, + { + "reference": "urn:uuid:b76a6db1-aded-4355-b4ce-84ebd5055e64" + }, + { + "reference": "urn:uuid:f6f297e8-8c40-4f06-8f11-7c8a54539660" + } + ] + }, + "fullUrl": "urn:uuid:ba7b87be-6e18-414d-9fed-e997d737fbe8" + }, + { + "resource": { + "resourceType": "Patient", + "id": "aea78fb1-0f6f-49d1-ab39-3afd6cfe155c", + "identifier": [ + { + "system": "https://fhir.nhs.uk/Id/nhs-number", + "value": "9990548609" + } + ], + "name": [ + { + "use": "usual", + "family": "XXTESTPATIENT-TGNP", + "given": [ + "DONOTUSE" + ], + "prefix": [ + "MR" + ] + } + ], + "gender": "male", + "birthDate": "1932-01-06", + "address": [ + { + "use": "home", + "line": [ + "1 Trevelyan Square", + "Boar Lane", + "Leeds", + "West Yorkshire" + ], + "postalCode": "LS1 6AE" + } + ], + "generalPractitioner": [ + { + "identifier": { + "system": "https://fhir.nhs.uk/Id/ods-organization-code", + "value": "A83008" + } + } + ] + }, + "fullUrl": "urn:uuid:aea78fb1-0f6f-49d1-ab39-3afd6cfe155c" + }, + { + "resource": { + "resourceType": "PractitionerRole", + "id": "80efd30a-60f5-4cd8-a4a5-941b16cd0fa1", + "identifier": [ + { + "system": "https://fhir.nhs.uk/Id/sds-role-profile-id", + "value": "200102238987" + } + ], + "practitioner": { + "reference": "urn:uuid:0d6fcc6c-9853-4404-b4c5-dfd160a8e796" + }, + "code": [ + { + "coding": [ + { + "system": "https://fhir.nhs.uk/CodeSystem/NHSDigital-SDS-JobRoleCode", + "code": "S8000:G8000:R8000", + "display": "S8000:G8000:R8000" + } + ] + } + ], + "telecom": [ + { + "system": "phone", + "use": "work", + "value": "01234567890" + } + ], + "organization": { + "reference": "urn:uuid:7f27edf3-25a3-4584-b902-7c09ce3f453a" + } + }, + "fullUrl": "urn:uuid:80efd30a-60f5-4cd8-a4a5-941b16cd0fa1" + }, + { + "resource": { + "resourceType": "Practitioner", + "id": "0d6fcc6c-9853-4404-b4c5-dfd160a8e796", + "identifier": [ + { + "system": "https://fhir.hl7.org.uk/Id/gphc-number", + "value": "6095103" + }, + { + "system": "https://fhir.hl7.org.uk/Id/din-number", + "value": "977677" + } + ], + "name": [ + { + "family": "BOIN", + "given": [ + "C" + ], + "prefix": [ + "DR" + ] + } + ] + }, + "fullUrl": "urn:uuid:0d6fcc6c-9853-4404-b4c5-dfd160a8e796" + }, + { + "resource": { + "resourceType": "Organization", + "id": "7f27edf3-25a3-4584-b902-7c09ce3f453a", + "identifier": [ + { + "system": "https://fhir.nhs.uk/Id/ods-organization-code", + "value": "A83008" + } + ], + "type": [ + { + "coding": [ + { + "system": "https://fhir.nhs.uk/CodeSystem/organisation-role", + "code": "179", + "display": "PRIMARY CARE TRUST" + } + ] + } + ], + "name": "HALLGARTH SURGERY", + "telecom": [ + { + "system": "phone", + "use": "work", + "value": "01159737320" + } + ], + "address": [ + { + "use": "work", + "line": [ + "HALLGARTH SURGERY", + "CHEAPSIDE", + "SHILDON", + "COUNTY DURHAM" + ], + "postalCode": "DL4 2HP" + } + ], + "partOf": { + "identifier": { + "system": "https://fhir.nhs.uk/Id/ods-organization-code", + "value": "84H" + }, + "display": "NHS COUNTY DURHAM CCG" + } + }, + "fullUrl": "urn:uuid:7f27edf3-25a3-4584-b902-7c09ce3f453a" + }, + { + "resource": { + "resourceType": "CommunicationRequest", + "id": "ba65f769-f537-48ab-9c12-c01d4c0b767b", + "status": "unknown", + "subject": { + "reference": "urn:uuid:aea78fb1-0f6f-49d1-ab39-3afd6cfe155c" + }, + "payload": [ + { + "contentString": "Due to Coronavirus restrictions Church View Surgery is CLOSED until further notice" + }, + { + "contentReference": { + "reference": "urn:uuid:f379c607-5769-4f7e-95b5-be59dc3852d0" + } + } + ], + "requester": { + "identifier": { + "system": "https://fhir.nhs.uk/Id/ods-organization-code", + "value": "A83008" + } + }, + "recipient": [ + { + "identifier": { + "system": "https://fhir.nhs.uk/Id/nhs-number", + "value": "9990548609" + } + } + ] + }, + "fullUrl": "urn:uuid:ba65f769-f537-48ab-9c12-c01d4c0b767b" + }, + { + "resource": { + "resourceType": "List", + "id": "f379c607-5769-4f7e-95b5-be59dc3852d0", + "status": "current", + "mode": "snapshot", + "entry": [ + { + "item": { + "display": "Bendroflumethiazide 2.5mg tablets (3/6)" + } + }, + { + "item": { + "display": "Salbutamol 100micrograms/dose inhaler CFC free (2/6)" + } + } + ] + }, + "fullUrl": "urn:uuid:f379c607-5769-4f7e-95b5-be59dc3852d0" + }, + { + "resource": { + "resourceType": "MedicationRequest", + "id": "b76a6db1-aded-4355-b4ce-84ebd5055e64", + "extension": [ + { + "url": "https://fhir.nhs.uk/StructureDefinition/Extension-DM-ResponsiblePractitioner", + "valueReference": { + "reference": "urn:uuid:80efd30a-60f5-4cd8-a4a5-941b16cd0fa1" + } + }, + { + "url": "https://fhir.nhs.uk/StructureDefinition/Extension-DM-PrescriptionType", + "valueCoding": { + "system": "https://fhir.nhs.uk/CodeSystem/prescription-type", + "code": "0101" + } + }, + { + "url": "https://fhir.hl7.org.uk/StructureDefinition/Extension-UKCore-MedicationRepeatInformation", + "extension": [ + { + "url": "authorisationExpiryDate", + "valueDateTime": "2020-12-07" + }, + { + "url": "numberOfPrescriptionsIssued", + "valueUnsignedInt": 1 + } + ] + } + ], + "identifier": [ + { + "system": "https://fhir.nhs.uk/Id/prescription-order-item-number", + "value": "cedf33f2-49fc-4d11-a5e7-e663d9037817" + } + ], + "status": "active", + "intent": "reflex-order", + "medicationCodeableConcept": { + "coding": [ + { + "system": "http://snomed.info/sct", + "code": "322237000", + "display": "Paracetamol 500mg soluble tablets" + } + ] + }, + "subject": { + "reference": "urn:uuid:aea78fb1-0f6f-49d1-ab39-3afd6cfe155c" + }, + "authoredOn": "2022-02-19T17:36:35+00:00", + "category": [ + { + "coding": [ + { + "system": "http://terminology.hl7.org/CodeSystem/medicationrequest-category", + "code": "outpatient", + "display": "Outpatient" + } + ] + } + ], + "requester": { + "reference": "urn:uuid:80efd30a-60f5-4cd8-a4a5-941b16cd0fa1" + }, + "groupIdentifier": { + "system": "https://fhir.nhs.uk/Id/prescription-order-number", + "value": "998244-A83008-238DCD", + "extension": [ + { + "url": "https://fhir.nhs.uk/StructureDefinition/Extension-DM-PrescriptionId", + "valueIdentifier": { + "system": "https://fhir.nhs.uk/Id/prescription", + "value": "4f2b64a2-0f32-401f-81f4-5e585bfa2e61" + } + } + ] + }, + "courseOfTherapyType": { + "coding": [ + { + "system": "https://fhir.nhs.uk/CodeSystem/medicationrequest-course-of-therapy", + "code": "continuous-repeat-dispensing", + "display": "Continuous long term (repeat dispensing)" + } + ] + }, + "dosageInstruction": [ + { + "text": "One tablet to be taken four times a day" + } + ], + "dispenseRequest": { + "extension": [ + { + "url": "https://fhir.nhs.uk/StructureDefinition/Extension-DM-PerformerSiteType", + "valueCoding": { + "system": "https://fhir.nhs.uk/CodeSystem/dispensing-site-preference", + "code": "P1" + } + } + ], + "numberOfRepeatsAllowed": 0, + "quantity": { + "value": 100, + "unit": "tablet", + "system": "http://snomed.info/sct", + "code": "428673006" + }, + "validityPeriod": { + "start": "2022-02-19", + "end": "2022-03-19" + }, + "expectedSupplyDuration": { + "unit": "days", + "value": 30, + "system": "http://unitsofmeasure.org", + "code": "d" + }, + "performer": { + "identifier": { + "system": "https://fhir.nhs.uk/Id/ods-organization-code", + "value": "FCG71" + } + } + }, + "substitution": { + "allowedBoolean": false + }, + "basedOn": [ + { + "reference": "urn:uuid:cedf33f2-49fc-4d11-a5e7-e663d9037817", + "extension": [ + { + "url": "https://fhir.nhs.uk/StructureDefinition/Extension-EPS-RepeatInformation", + "extension": [ + { + "url": "numberOfRepeatsAllowed", + "valueInteger": 5 + } + ] + } + ] + } + ] + }, + "fullUrl": "urn:uuid:b76a6db1-aded-4355-b4ce-84ebd5055e64" + }, + { + "resource": { + "resourceType": "MedicationRequest", + "id": "f6f297e8-8c40-4f06-8f11-7c8a54539660", + "extension": [ + { + "url": "https://fhir.nhs.uk/StructureDefinition/Extension-DM-ResponsiblePractitioner", + "valueReference": { + "reference": "urn:uuid:80efd30a-60f5-4cd8-a4a5-941b16cd0fa1" + } + }, + { + "url": "https://fhir.nhs.uk/StructureDefinition/Extension-DM-PrescriptionType", + "valueCoding": { + "system": "https://fhir.nhs.uk/CodeSystem/prescription-type", + "code": "0101" + } + }, + { + "url": "https://fhir.hl7.org.uk/StructureDefinition/Extension-UKCore-MedicationRepeatInformation", + "extension": [ + { + "url": "authorisationExpiryDate", + "valueDateTime": "2020-12-07" + }, + { + "url": "numberOfPrescriptionsIssued", + "valueUnsignedInt": 1 + } + ] + } + ], + "identifier": [ + { + "system": "https://fhir.nhs.uk/Id/prescription-order-item-number", + "value": "1341f8f3-3b52-4820-91ed-47cac20db83f" + } + ], + "status": "active", + "intent": "reflex-order", + "medicationCodeableConcept": { + "coding": [ + { + "system": "http://snomed.info/sct", + "code": "39113611000001102", + "display": "Salbutamol 100micrograms/dose inhaler CFC free" + } + ] + }, + "subject": { + "reference": "urn:uuid:aea78fb1-0f6f-49d1-ab39-3afd6cfe155c" + }, + "authoredOn": "2022-02-19T17:36:35+00:00", + "category": [ + { + "coding": [ + { + "system": "http://terminology.hl7.org/CodeSystem/medicationrequest-category", + "code": "outpatient", + "display": "Outpatient" + } + ] + } + ], + "requester": { + "reference": "urn:uuid:80efd30a-60f5-4cd8-a4a5-941b16cd0fa1" + }, + "groupIdentifier": { + "system": "https://fhir.nhs.uk/Id/prescription-order-number", + "value": "998244-A83008-238DCD", + "extension": [ + { + "url": "https://fhir.nhs.uk/StructureDefinition/Extension-DM-PrescriptionId", + "valueIdentifier": { + "system": "https://fhir.nhs.uk/Id/prescription", + "value": "4f2b64a2-0f32-401f-81f4-5e585bfa2e61" + } + } + ] + }, + "courseOfTherapyType": { + "coding": [ + { + "system": "https://fhir.nhs.uk/CodeSystem/medicationrequest-course-of-therapy", + "code": "continuous-repeat-dispensing", + "display": "Continuous long term (repeat dispensing)" + } + ] + }, + "dosageInstruction": [ + { + "text": "One dose to be taken five times a day" + } + ], + "dispenseRequest": { + "extension": [ + { + "url": "https://fhir.nhs.uk/StructureDefinition/Extension-DM-PerformerSiteType", + "valueCoding": { + "system": "https://fhir.nhs.uk/CodeSystem/dispensing-site-preference", + "code": "P1" + } + } + ], + "numberOfRepeatsAllowed": 0, + "quantity": { + "value": 200, + "unit": "dose", + "system": "http://snomed.info/sct", + "code": "3317411000001100" + }, + "validityPeriod": { + "start": "2022-02-19", + "end": "2022-03-19" + }, + "expectedSupplyDuration": { + "unit": "days", + "value": 30, + "system": "http://unitsofmeasure.org", + "code": "d" + }, + "performer": { + "identifier": { + "system": "https://fhir.nhs.uk/Id/ods-organization-code", + "value": "FCG71" + } + } + }, + "substitution": { + "allowedBoolean": false + }, + "basedOn": [ + { + "reference": "urn:uuid:1341f8f3-3b52-4820-91ed-47cac20db83f", + "extension": [ + { + "url": "https://fhir.nhs.uk/StructureDefinition/Extension-EPS-RepeatInformation", + "extension": [ + { + "url": "numberOfRepeatsAllowed", + "valueInteger": 5 + } + ] + } + ] + } + ] + }, + "fullUrl": "urn:uuid:f6f297e8-8c40-4f06-8f11-7c8a54539660" + }, + { + "resource": { + "resourceType": "Provenance", + "id": "30843d63-a6b6-4618-b503-5c43b9272ce8", + "agent": [ + { + "who": { + "reference": "urn:uuid:80efd30a-60f5-4cd8-a4a5-941b16cd0fa1" + } + } + ], + "recorded": "2022-02-19T17:36:35+00:00", + "signature": [ + { + "who": { + "reference": "urn:uuid:80efd30a-60f5-4cd8-a4a5-941b16cd0fa1" + }, + "when": "2022-02-19T17:36:35+00:00", + "data": "PFNpZ25hdHVyZSB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC8wOS94bWxkc2lnIyI+PFNpZ25lZEluZm8+PENhbm9uaWNhbGl6YXRpb25NZXRob2QgQWxnb3JpdGhtPSJodHRwOi8vd3d3LnczLm9yZy8yMDAxLzEwL3htbC1leGMtYzE0biMiPjwvQ2Fub25pY2FsaXphdGlvbk1ldGhvZD48U2lnbmF0dXJlTWV0aG9kIEFsZ29yaXRobT0iaHR0cDovL3d3dy53My5vcmcvMjAwMC8wOS94bWxkc2lnI3JzYS1zaGExIj48L1NpZ25hdHVyZU1ldGhvZD48UmVmZXJlbmNlPjxUcmFuc2Zvcm1zPjxUcmFuc2Zvcm0gQWxnb3JpdGhtPSJodHRwOi8vd3d3LnczLm9yZy8yMDAxLzEwL3htbC1leGMtYzE0biMiPjwvVHJhbnNmb3JtPjwvVHJhbnNmb3Jtcz48RGlnZXN0TWV0aG9kIEFsZ29yaXRobT0iaHR0cDovL3d3dy53My5vcmcvMjAwMC8wOS94bWxkc2lnI3NoYTEiPjwvRGlnZXN0TWV0aG9kPjxEaWdlc3RWYWx1ZT5EbXluOUxEVVl2RVlQbFhBa2FXNTUrdEgzVGc9PC9EaWdlc3RWYWx1ZT48L1JlZmVyZW5jZT48L1NpZ25lZEluZm8+PFNpZ25hdHVyZVZhbHVlPmZ2MnNIblJoNjJvS2U0VXNhMG1vMm1JNVkxQmNvbmVqR3RCRjlWUW9MUXZMalVhNjlkaDZoaDE4ZlVsbkIrM1dIdHRDdlJleFEzSkN1ME43ZzV5ZDBZaEpvZGdHYXo1Ymx4ejVzUUlVZ3g5YThieDY1V2ZxNi82UzF1QmxQRFVWVUlqZ0hnak8xY0E0eUZQWDgzUENndnBqeU01blFPMHlLNDJmbnNKc2w1Zz08L1NpZ25hdHVyZVZhbHVlPjxLZXlJbmZvPjxYNTA5RGF0YT48WDUwOUNlcnRpZmljYXRlPk1JSUR1RENDQXFDZ0F3SUJBZ0lFWGNtdEh6QU5CZ2txaGtpRzl3MEJBUXNGQURBMk1Rd3dDZ1lEVlFRS0V3TnVhSE14Q3pBSkJnTlZCQXNUQWtOQk1Sa3dGd1lEVlFRREV4Qk9TRk1nU1U1VUlFeGxkbVZzSURGRU1CNFhEVEl3TVRBeU1qRXdNakUxTlZvWERUSXlNVEF5TWpFd05URTFOVm93UXpFTU1Bb0dBMVVFQ2hNRGJtaHpNUTh3RFFZRFZRUUxFd1pRWlc5d2JHVXhJakFnQmdOVkJBTU1HVFUxTlRJMU16VXlNVEV3T0Y5U1FVNUVUMDFmVlZORlVsRXdnWjh3RFFZSktvWklodmNOQVFFQkJRQURnWTBBTUlHSkFvR0JBS3Q0c3pOdzdPQUg3QVFSckRlL3hCSW1zTW1NaVM5RXNyVDNhM3AvTGgzYnJkekk5YWFqVFVaMmIvY3ZiT2E3UGVZZDd1K0s0YTJaZDBYayswR0ZtWUd6U1ZYNmlZamJsd3IwdmFpMzF6VjdHK2xHdkh4SDZwU29MQ3dJQ2FaQUZ3YWJlRDVPejk0K3lBM2FXTld0R1YwRGZoOXF3SDNaRkNJTVJzdmVyTjFwQWdNQkFBR2pnZ0ZETUlJQlB6QU9CZ05WSFE4QkFmOEVCQU1DQmtBd1pRWURWUjBnQVFIL0JGc3dXVEJYQmdzcWhqb0FpWHRtQUFNQ0FEQklNRVlHQ0NzR0FRVUZCd0lCRmpwb2RIUndjem92TDNCcmFTNXVhSE11ZFdzdlkyVnlkR2xtYVdOaGRHVmZjRzlzYVdOcFpYTXZZMjl1ZEdWdWRGOWpiMjF0YVhSdFpXNTBNRE1HQTFVZEh3UXNNQ293S0tBbW9DU0dJbWgwZEhBNkx5OWpjbXd1Ym1oekxuVnJMMmx1ZEM4eFpDOWpjbXhqTXk1amNtd3dLd1lEVlIwUUJDUXdJb0FQTWpBeU1ERXdNakl4TURJeE5UVmFnUTh5TURJeU1ETXhOekV3TlRFMU5Wb3dId1lEVlIwakJCZ3dGb0FVb0pZZmdZVE5QZDZFVUtMNlFMSXpIeFk1UEZJd0hRWURWUjBPQkJZRUZMdHl2WVN5YXFnNjBBRVVaZ3hrMHdyalJKYytNQWtHQTFVZEV3UUNNQUF3R1FZSktvWklodlo5QjBFQUJBd3dDaHNFVmpndU13TUNCTEF3RFFZSktvWklodmNOQVFFTEJRQURnZ0VCQUJjenk4QjhqdVBwSWZhVE5GY3hyQzIyYUNYL3hZWm1ockwvTnZJQkFhWDFHNWhqaXdta0dLRTJoUlRJcjY3UHhaeG1Yc0p4aWdSQk1IUGxJK2xZLytva3pIMEdpN2I1YnFsdzdweEdJZ0pPMDAwdzhwRnN2bzl3NDJJWWhIb2Rzdm5EVlN4aE1UMEo0NlFoazlzb0UwTGpvRVVMS1FQUGxZR2tlL0dsM20xN0l0Rll3T2JRSDBmTUV3bWlxQnllSWZ6N2dTY2NPekw1Y0lwNlBjWlRPam8ySXFRcGdFbWhqT2NSSW5FcUFOaXRTZGpvaUpBSnpwYWFaallUUmRIVVg3aTdhakVpSDRtOTFuRlcrNEFxa050dGxiNFdjR0tzU21XZ2ZLS2hlRjRJb1pLTUU4MHhlclNnTXk4dnRqTE9CSkNHWHowd0xHbVF1Um14TVRxODhxND08L1g1MDlDZXJ0aWZpY2F0ZT48L1g1MDlEYXRhPjwvS2V5SW5mbz48L1NpZ25hdHVyZT4=", + "type": [ + { + "code": "1.2.840.10065.1.12.1.1", + "system": "urn:iso-astm:E1762-95:2013" + } + ] + } + ], + "target": [ + { + "reference": "urn:uuid:ba7b87be-6e18-414d-9fed-e997d737fbe8" + }, + { + "reference": "urn:uuid:aea78fb1-0f6f-49d1-ab39-3afd6cfe155c" + }, + { + "reference": "urn:uuid:80efd30a-60f5-4cd8-a4a5-941b16cd0fa1" + }, + { + "reference": "urn:uuid:0d6fcc6c-9853-4404-b4c5-dfd160a8e796" + }, + { + "reference": "urn:uuid:7f27edf3-25a3-4584-b902-7c09ce3f453a" + }, + { + "reference": "urn:uuid:ba65f769-f537-48ab-9c12-c01d4c0b767b" + }, + { + "reference": "urn:uuid:f379c607-5769-4f7e-95b5-be59dc3852d0" + }, + { + "reference": "urn:uuid:b76a6db1-aded-4355-b4ce-84ebd5055e64" + }, + { + "reference": "urn:uuid:f6f297e8-8c40-4f06-8f11-7c8a54539660" + } + ] + }, + "fullUrl": "urn:uuid:30843d63-a6b6-4618-b503-5c43b9272ce8" + } + ] + } + } + ] +} diff --git a/src/test/resources/examples/full_examples/primary-care/repeat-dispensing/nominated-pharmacy/medical-prescriber/author/gmc/responsible-party/medication-list/spurious-code/1-Prepare-Request-200_OK.json b/src/test/resources/examples/full_examples/primary-care/repeat-dispensing/nominated-pharmacy/medical-prescriber/author/gmc/responsible-party/medication-list/spurious-code/1-Prepare-Request-200_OK.json new file mode 100644 index 00000000..c45f3303 --- /dev/null +++ b/src/test/resources/examples/full_examples/primary-care/repeat-dispensing/nominated-pharmacy/medical-prescriber/author/gmc/responsible-party/medication-list/spurious-code/1-Prepare-Request-200_OK.json @@ -0,0 +1,567 @@ +{ + "resourceType": "Bundle", + "id": "0cb82cfa-76c8-4fb2-a08e-bf0e326e5487", + "identifier": { + "system": "https://tools.ietf.org/html/rfc4122", + "value": "ab28bba7-d570-4095-b7d7-8962196b0df4" + }, + "type": "message", + "entry": [ + { + "fullUrl": "urn:uuid:17773b27-427e-4940-8c16-64cdac715001", + "resource": { + "resourceType": "MessageHeader", + "eventCoding": { + "system": "https://fhir.nhs.uk/CodeSystem/message-event", + "code": "prescription-order", + "display": "Prescription Order" + }, + "sender": { + "identifier": { + "system": "https://fhir.nhs.uk/Id/ods-organization-code", + "value": "A83008" + }, + "display": "HALLGARTH SURGERY" + }, + "source": { + "endpoint": "https://directory.spineservices.nhs.uk/STU3/Organization/A83008" + }, + "destination": [ + { + "endpoint": "https://sandbox.api.service.nhs.uk/electronic-prescriptions/$post-message", + "receiver": { + "identifier": { + "system": "https://fhir.nhs.uk/Id/ods-organization-code", + "value": "FCG71" + } + } + } + ], + "focus": [ + { + "reference": "urn:uuid:56166769-c1c4-4d07-afa8-132b5dfca666" + }, + { + "reference": "urn:uuid:5cb17f5a-11ac-4e18-825f-6470467238b3" + }, + { + "reference": "urn:uuid:a54219b8-f741-4c47-b662-e4f8dfa49ab6" + }, + { + "reference": "urn:uuid:51793ac0-112f-46c7-a891-9af8cefb206e" + } + ] + } + }, + { + "fullUrl": "urn:uuid:a54219b8-f741-4c47-b662-e4f8dfa49ab6", + "resource": { + "resourceType": "MedicationRequest", + "extension": [ + { + "url": "https://fhir.nhs.uk/StructureDefinition/Extension-DM-PrescriptionType", + "valueCoding": { + "system": "https://fhir.nhs.uk/CodeSystem/prescription-type", + "code": "0101", + "display": "Primary Care Prescriber - Medical Prescriber" + } + }, + { + "url": "https://fhir.hl7.org.uk/StructureDefinition/Extension-UKCore-MedicationRepeatInformation", + "extension": [ + { + "url": "authorisationExpiryDate", + "valueDateTime": "2024-11-30" + } + ] + } + ], + "identifier": [ + { + "system": "https://fhir.nhs.uk/Id/prescription-order-item-number", + "value": "299c610b-f4f1-4eac-a7d7-4fb6b0556e11" + } + ], + "status": "active", + "intent": "original-order", + "category": [ + { + "coding": [ + { + "system": "http://terminology.hl7.org/CodeSystem/medicationrequest-category", + "code": "community", + "display": "Community" + } + ] + } + ], + "medicationCodeableConcept": { + "coding": [ + { + "system": "http://snomed.info/sct", + "code": "322237000", + "display": "Paracetamol 500mg soluble tablets" + } + ] + }, + "subject": { + "reference": "urn:uuid:78d3c2eb-009e-4ec8-a358-b042954aa9b2" + }, + "requester": { + "reference": "urn:uuid:56166769-c1c4-4d07-afa8-132b5dfca666" + }, + "groupIdentifier": { + "extension": [ + { + "url": "https://fhir.nhs.uk/StructureDefinition/Extension-DM-PrescriptionId", + "valueIdentifier": { + "system": "https://fhir.nhs.uk/Id/prescription", + "value": "bea7a124-fa11-406b-9c62-87964c8e38d0" + } + } + ], + "system": "https://fhir.nhs.uk/Id/prescription-order-number", + "value": "6BC03A-A83008-485BAR" + }, + "courseOfTherapyType": { + "coding": [ + { + "system": "https://fhir.nhs.uk/CodeSystem/medicationrequest-course-of-therapy", + "code": "continuous-repeat-dispensing", + "display": "Continuous long term (repeat dispensing)" + } + ] + }, + "dosageInstruction": [ + { + "text": "4 times a day - Oral", + "timing": { + "repeat": { + "frequency": 4, + "period": 1, + "periodUnit": "d" + } + }, + "route": { + "coding": [ + { + "system": "http://snomed.info/sct", + "code": "26643006", + "display": "Oral" + } + ] + } + } + ], + "dispenseRequest": { + "extension": [ + { + "url": "https://fhir.nhs.uk/StructureDefinition/Extension-DM-PerformerSiteType", + "valueCoding": { + "system": "https://fhir.nhs.uk/CodeSystem/dispensing-site-preference", + "code": "P1" + } + } + ], + "numberOfRepeatsAllowed": 5, + "validityPeriod": { + "start": "2021-05-07", + "end": "2021-06-04" + }, + "expectedSupplyDuration": { + "value": 30, + "unit": "day", + "system": "http://unitsofmeasure.org", + "code": "d" + }, + "performer": { + "identifier": { + "system": "https://fhir.nhs.uk/Id/ods-organization-code", + "value": "FCG71" + } + }, + "quantity": { + "value": 100, + "unit": "tablet", + "system": "http://snomed.info/sct", + "code": "428673006" + } + }, + "substitution": { + "allowedBoolean": false + } + } + }, + { + "fullUrl": "urn:uuid:5cb17f5a-11ac-4e18-825f-6470467238b3", + "resource": { + "resourceType": "MedicationRequest", + "extension": [ + { + "url": "https://fhir.nhs.uk/StructureDefinition/Extension-DM-PrescriptionType", + "valueCoding": { + "system": "https://fhir.nhs.uk/CodeSystem/prescription-type", + "code": "0101", + "display": "Primary Care Prescriber - Medical Prescriber" + } + }, + { + "url": "https://fhir.hl7.org.uk/StructureDefinition/Extension-UKCore-MedicationRepeatInformation", + "extension": [ + { + "url": "authorisationExpiryDate", + "valueDateTime": "2024-11-30" + } + ] + } + ], + "identifier": [ + { + "system": "https://fhir.nhs.uk/Id/prescription-order-item-number", + "value": "5cb17f5a-11ac-4e18-825f-6470467238b3" + } + ], + "status": "active", + "intent": "original-order", + "category": [ + { + "coding": [ + { + "system": "http://terminology.hl7.org/CodeSystem/medicationrequest-category", + "code": "community", + "display": "Community" + } + ] + } + ], + "medicationCodeableConcept": { + "coding": [ + { + "system": "http://snomed.info/sct", + "code": "39113611000001102", + "display": "Salbutamol 100micrograms/dose inhaler CFC free" + } + ] + }, + "subject": { + "reference": "urn:uuid:78d3c2eb-009e-4ec8-a358-b042954aa9b2" + }, + "requester": { + "reference": "urn:uuid:56166769-c1c4-4d07-afa8-132b5dfca666" + }, + "groupIdentifier": { + "extension": [ + { + "url": "https://fhir.nhs.uk/StructureDefinition/Extension-DM-PrescriptionId", + "valueIdentifier": { + "system": "https://fhir.nhs.uk/Id/prescription", + "value": "bea7a124-fa11-406b-9c62-87964c8e38d0" + } + } + ], + "system": "https://fhir.nhs.uk/Id/prescription-order-number", + "value": "6BC03A-A83008-485BAR" + }, + "courseOfTherapyType": { + "coding": [ + { + "system": "https://fhir.nhs.uk/CodeSystem/medicationrequest-course-of-therapy", + "code": "continuous-repeat-dispensing", + "display": "Continuous long term (repeat dispensing)" + } + ] + }, + "dosageInstruction": [ + { + "text": "5 times a day - Inhalation", + "timing": { + "repeat": { + "frequency": 5, + "period": 1, + "periodUnit": "d" + } + }, + "route": { + "coding": [ + { + "system": "http://snomed.info/sct", + "code": "18679011000001101", + "display": "Inhalation" + } + ] + } + } + ], + "dispenseRequest": { + "extension": [ + { + "url": "https://fhir.nhs.uk/StructureDefinition/Extension-DM-PerformerSiteType", + "valueCoding": { + "system": "https://fhir.nhs.uk/CodeSystem/dispensing-site-preference", + "code": "P1" + } + } + ], + "numberOfRepeatsAllowed": 5, + "validityPeriod": { + "start": "2021-05-07", + "end": "2021-06-04" + }, + "expectedSupplyDuration": { + "value": 30, + "unit": "day", + "system": "http://unitsofmeasure.org", + "code": "d" + }, + "performer": { + "identifier": { + "system": "https://fhir.nhs.uk/Id/ods-organization-code", + "value": "FCG71" + } + }, + "quantity": { + "value": 200, + "unit": "dose", + "system": "http://snomed.info/sct", + "code": "3317411000001100" + } + }, + "substitution": { + "allowedBoolean": false + } + } + }, + { + "fullUrl": "urn:uuid:78d3c2eb-009e-4ec8-a358-b042954aa9b2", + "resource": { + "resourceType": "Patient", + "identifier": [ + { + "system": "https://fhir.nhs.uk/Id/nhs-number", + "value": "9990548609" + } + ], + "name": [ + { + "use": "usual", + "family": "XXTESTPATIENT-TGNP", + "given": [ + "DONOTUSE" + ], + "prefix": [ + "MR" + ] + } + ], + "gender": "male", + "birthDate": "1932-01-06", + "address": [ + { + "use": "home", + "line": [ + "1 Trevelyan Square", + "Boar Lane", + "Leeds", + "West Yorkshire" + ], + "postalCode": "LS1 6AE" + } + ], + "generalPractitioner": [ + { + "identifier": { + "system": "https://fhir.nhs.uk/Id/ods-organization-code", + "value": "A83008" + } + } + ] + } + }, + { + "fullUrl": "urn:uuid:56166769-c1c4-4d07-afa8-132b5dfca666", + "resource": { + "resourceType": "PractitionerRole", + "identifier": [ + { + "system": "https://fhir.nhs.uk/Id/sds-role-profile-id", + "value": "200102238987" + }, + { + "system": "https://fhir.hl7.org.uk/Id/nhsbsa-spurious-code", + "value": "666666" + } + ], + "practitioner": { + "reference": "urn:uuid:a8c85454-f8cb-498d-9629-78e2cb5fa47a" + }, + "organization": { + "reference": "urn:uuid:3b4b03a5-52ba-4ba6-9b82-70350aa109d8" + }, + "code": [ + { + "coding": [ + { + "system": "https://fhir.nhs.uk/CodeSystem/NHSDigital-SDS-JobRoleCode", + "code": "S8000:G8000:R8000", + "display": "Clinical Practitioner Access Role" + } + ] + } + ], + "telecom": [ + { + "system": "phone", + "value": "01234567890", + "use": "work" + } + ] + } + }, + { + "fullUrl": "urn:uuid:a8c85454-f8cb-498d-9629-78e2cb5fa47a", + "resource": { + "resourceType": "Practitioner", + "identifier": [ + { + "system": "https://fhir.nhs.uk/Id/sds-user-id", + "value": "555086689106" + }, + { + "system": "https://fhir.hl7.org.uk/Id/gmc-number", + "value": "6095103" + }, + { + "system": "https://fhir.hl7.org.uk/Id/din-number", + "value": "977677" + } + ], + "name": [ + { + "family": "BOIN", + "given": [ + "C" + ], + "prefix": [ + "DR" + ] + } + ] + } + }, + { + "fullUrl": "urn:uuid:3b4b03a5-52ba-4ba6-9b82-70350aa109d8", + "resource": { + "resourceType": "Organization", + "identifier": [ + { + "system": "https://fhir.nhs.uk/Id/ods-organization-code", + "value": "A83008" + } + ], + "type": [ + { + "coding": [ + { + "system": "https://fhir.nhs.uk/CodeSystem/organisation-role", + "code": "76", + "display": "GP PRACTICE" + } + ] + } + ], + "name": "HALLGARTH SURGERY", + "address": [ + { + "use": "work", + "type": "both", + "line": [ + "HALLGARTH SURGERY", + "CHEAPSIDE" + ], + "city": "SHILDON", + "district": "COUNTY DURHAM", + "postalCode": "DL4 2HP" + } + ], + "telecom": [ + { + "system": "phone", + "value": "0115 9737320", + "use": "work" + } + ], + "partOf": { + "identifier": { + "system": "https://fhir.nhs.uk/Id/ods-organization-code", + "value": "84H" + }, + "display": "NHS COUNTY DURHAM CCG" + } + } + }, + { + "fullUrl": "urn:uuid:51793ac0-112f-46c7-a891-9af8cefb206e", + "resource": { + "resourceType": "CommunicationRequest", + "status": "unknown", + "subject": { + "reference": "urn:uuid:78d3c2eb-009e-4ec8-a358-b042954aa9b2" + }, + "payload": [ + { + "contentString": "Due to Coronavirus restrictions Church View Surgery is CLOSED until further notice" + }, + { + "contentReference": { + "reference": "urn:uuid:d0f003a0-8763-43d5-a264-ce52a38901c9", + "display": "List of Repeat Medications for re-ordering" + } + } + ], + "requester": { + "type": "Organization", + "identifier": { + "system": "https://fhir.nhs.uk/Id/ods-organization-code", + "value": "RBA" + }, + "display": "TAUNTON AND SOMERSET NHS FOUNDATION TRUST" + }, + "recipient": [ + { + "type": "Patient", + "identifier": { + "system": "https://fhir.nhs.uk/Id/nhs-number", + "value": "9453740519" + } + } + ] + } + }, + { + "fullUrl": "urn:uuid:d0f003a0-8763-43d5-a264-ce52a38901c9", + "resource": { + "resourceType": "List", + "status": "current", + "mode": "snapshot", + "code": { + "text": "Repeat Medications" + }, + "subject": { + "reference": "urn:uuid:78d3c2eb-009e-4ec8-a358-b042954aa9b2" + }, + "entry": [ + { + "item": { + "display": "Bendroflumethiazide 2.5mg tablets (3/6)" + } + }, + { + "item": { + "display": "Salbutamol 100micrograms/dose inhaler CFC free (2/6)" + } + } + ] + } + } + ] +} diff --git a/src/test/resources/examples/full_examples/primary-care/repeat-dispensing/nominated-pharmacy/medical-prescriber/author/gmc/responsible-party/medication-list/spurious-code/1-Prepare-Response-200_OK.json b/src/test/resources/examples/full_examples/primary-care/repeat-dispensing/nominated-pharmacy/medical-prescriber/author/gmc/responsible-party/medication-list/spurious-code/1-Prepare-Response-200_OK.json new file mode 100644 index 00000000..ec9dab99 --- /dev/null +++ b/src/test/resources/examples/full_examples/primary-care/repeat-dispensing/nominated-pharmacy/medical-prescriber/author/gmc/responsible-party/medication-list/spurious-code/1-Prepare-Response-200_OK.json @@ -0,0 +1,17 @@ +{ + "resourceType": "Parameters", + "parameter": [ + { + "name": "digest", + "valueString": "PFNpZ25lZEluZm8geG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvMDkveG1sZHNpZyMiPjxDYW5vbmljYWxpemF0aW9uTWV0aG9kIEFsZ29yaXRobT0iaHR0cDovL3d3dy53My5vcmcvMjAwMS8xMC94bWwtZXhjLWMxNG4jIj48L0Nhbm9uaWNhbGl6YXRpb25NZXRob2Q+PFNpZ25hdHVyZU1ldGhvZCBBbGdvcml0aG09Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvMDkveG1sZHNpZyNyc2Etc2hhMSI+PC9TaWduYXR1cmVNZXRob2Q+PFJlZmVyZW5jZT48VHJhbnNmb3Jtcz48VHJhbnNmb3JtIEFsZ29yaXRobT0iaHR0cDovL3d3dy53My5vcmcvMjAwMS8xMC94bWwtZXhjLWMxNG4jIj48L1RyYW5zZm9ybT48L1RyYW5zZm9ybXM+PERpZ2VzdE1ldGhvZCBBbGdvcml0aG09Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvMDkveG1sZHNpZyNzaGExIj48L0RpZ2VzdE1ldGhvZD48RGlnZXN0VmFsdWU+R3Bxa3MvWVllWjluTnQwbTlsMml5ZTljRWEwPTwvRGlnZXN0VmFsdWU+PC9SZWZlcmVuY2U+PC9TaWduZWRJbmZvPg==" + }, + { + "name": "timestamp", + "valueString": "2022-10-25T10:24:34+00:00" + }, + { + "name": "algorithm", + "valueString": "RS1" + } + ] +} diff --git a/src/test/resources/examples/full_examples/primary-care/repeat-dispensing/nominated-pharmacy/medical-prescriber/author/gmc/responsible-party/medication-list/spurious-code/1-Process-Request-Send-200_OK.json b/src/test/resources/examples/full_examples/primary-care/repeat-dispensing/nominated-pharmacy/medical-prescriber/author/gmc/responsible-party/medication-list/spurious-code/1-Process-Request-Send-200_OK.json new file mode 100644 index 00000000..f431ca58 --- /dev/null +++ b/src/test/resources/examples/full_examples/primary-care/repeat-dispensing/nominated-pharmacy/medical-prescriber/author/gmc/responsible-party/medication-list/spurious-code/1-Process-Request-Send-200_OK.json @@ -0,0 +1,605 @@ +{ + "resourceType": "Bundle", + "id": "0cb82cfa-76c8-4fb2-a08e-bf0e326e5487", + "identifier": { + "system": "https://tools.ietf.org/html/rfc4122", + "value": "2260f662-a331-4917-a343-9a8c1a7d3192" + }, + "type": "message", + "entry": [ + { + "fullUrl": "urn:uuid:17773b27-427e-4940-8c16-64cdac715001", + "resource": { + "resourceType": "MessageHeader", + "eventCoding": { + "system": "https://fhir.nhs.uk/CodeSystem/message-event", + "code": "prescription-order", + "display": "Prescription Order" + }, + "sender": { + "identifier": { + "system": "https://fhir.nhs.uk/Id/ods-organization-code", + "value": "A83008" + }, + "display": "HALLGARTH SURGERY" + }, + "source": { + "endpoint": "https://directory.spineservices.nhs.uk/STU3/Organization/A83008" + }, + "destination": [ + { + "endpoint": "https://sandbox.api.service.nhs.uk/electronic-prescriptions/$post-message", + "receiver": { + "identifier": { + "system": "https://fhir.nhs.uk/Id/ods-organization-code", + "value": "FCG71" + } + } + } + ], + "focus": [ + { + "reference": "urn:uuid:56166769-c1c4-4d07-afa8-132b5dfca666" + }, + { + "reference": "urn:uuid:5cb17f5a-11ac-4e18-825f-6470467238b3" + }, + { + "reference": "urn:uuid:a54219b8-f741-4c47-b662-e4f8dfa49ab6" + }, + { + "reference": "urn:uuid:51793ac0-112f-46c7-a891-9af8cefb206e" + } + ] + } + }, + { + "fullUrl": "urn:uuid:a54219b8-f741-4c47-b662-e4f8dfa49ab6", + "resource": { + "resourceType": "MedicationRequest", + "extension": [ + { + "url": "https://fhir.nhs.uk/StructureDefinition/Extension-DM-PrescriptionType", + "valueCoding": { + "system": "https://fhir.nhs.uk/CodeSystem/prescription-type", + "code": "0101", + "display": "Primary Care Prescriber - Medical Prescriber" + } + }, + { + "url": "https://fhir.hl7.org.uk/StructureDefinition/Extension-UKCore-MedicationRepeatInformation", + "extension": [ + { + "url": "authorisationExpiryDate", + "valueDateTime": "2024-11-30" + } + ] + } + ], + "identifier": [ + { + "system": "https://fhir.nhs.uk/Id/prescription-order-item-number", + "value": "299c610b-f4f1-4eac-a7d7-4fb6b0556e11" + } + ], + "status": "active", + "intent": "original-order", + "category": [ + { + "coding": [ + { + "system": "http://terminology.hl7.org/CodeSystem/medicationrequest-category", + "code": "community", + "display": "Community" + } + ] + } + ], + "medicationCodeableConcept": { + "coding": [ + { + "system": "http://snomed.info/sct", + "code": "322237000", + "display": "Paracetamol 500mg soluble tablets" + } + ] + }, + "subject": { + "reference": "urn:uuid:78d3c2eb-009e-4ec8-a358-b042954aa9b2" + }, + "requester": { + "reference": "urn:uuid:56166769-c1c4-4d07-afa8-132b5dfca666" + }, + "groupIdentifier": { + "extension": [ + { + "url": "https://fhir.nhs.uk/StructureDefinition/Extension-DM-PrescriptionId", + "valueIdentifier": { + "system": "https://fhir.nhs.uk/Id/prescription", + "value": "bea7a124-fa11-406b-9c62-87964c8e38d0" + } + } + ], + "system": "https://fhir.nhs.uk/Id/prescription-order-number", + "value": "6BC03A-A83008-485BAR" + }, + "courseOfTherapyType": { + "coding": [ + { + "system": "https://fhir.nhs.uk/CodeSystem/medicationrequest-course-of-therapy", + "code": "continuous-repeat-dispensing", + "display": "Continuous long term (repeat dispensing)" + } + ] + }, + "dosageInstruction": [ + { + "text": "4 times a day - Oral", + "timing": { + "repeat": { + "frequency": 4, + "period": 1, + "periodUnit": "d" + } + }, + "route": { + "coding": [ + { + "system": "http://snomed.info/sct", + "code": "26643006", + "display": "Oral" + } + ] + } + } + ], + "dispenseRequest": { + "extension": [ + { + "url": "https://fhir.nhs.uk/StructureDefinition/Extension-DM-PerformerSiteType", + "valueCoding": { + "system": "https://fhir.nhs.uk/CodeSystem/dispensing-site-preference", + "code": "P1" + } + } + ], + "numberOfRepeatsAllowed": 5, + "validityPeriod": { + "start": "2021-05-07", + "end": "2021-06-04" + }, + "expectedSupplyDuration": { + "value": 30, + "unit": "day", + "system": "http://unitsofmeasure.org", + "code": "d" + }, + "performer": { + "identifier": { + "system": "https://fhir.nhs.uk/Id/ods-organization-code", + "value": "FCG71" + } + }, + "quantity": { + "value": 100, + "unit": "tablet", + "system": "http://snomed.info/sct", + "code": "428673006" + } + }, + "substitution": { + "allowedBoolean": false + } + } + }, + { + "fullUrl": "urn:uuid:5cb17f5a-11ac-4e18-825f-6470467238b3", + "resource": { + "resourceType": "MedicationRequest", + "extension": [ + { + "url": "https://fhir.nhs.uk/StructureDefinition/Extension-DM-PrescriptionType", + "valueCoding": { + "system": "https://fhir.nhs.uk/CodeSystem/prescription-type", + "code": "0101", + "display": "Primary Care Prescriber - Medical Prescriber" + } + }, + { + "url": "https://fhir.hl7.org.uk/StructureDefinition/Extension-UKCore-MedicationRepeatInformation", + "extension": [ + { + "url": "authorisationExpiryDate", + "valueDateTime": "2024-11-30" + } + ] + } + ], + "identifier": [ + { + "system": "https://fhir.nhs.uk/Id/prescription-order-item-number", + "value": "5cb17f5a-11ac-4e18-825f-6470467238b3" + } + ], + "status": "active", + "intent": "original-order", + "category": [ + { + "coding": [ + { + "system": "http://terminology.hl7.org/CodeSystem/medicationrequest-category", + "code": "community", + "display": "Community" + } + ] + } + ], + "medicationCodeableConcept": { + "coding": [ + { + "system": "http://snomed.info/sct", + "code": "39113611000001102", + "display": "Salbutamol 100micrograms/dose inhaler CFC free" + } + ] + }, + "subject": { + "reference": "urn:uuid:78d3c2eb-009e-4ec8-a358-b042954aa9b2" + }, + "requester": { + "reference": "urn:uuid:56166769-c1c4-4d07-afa8-132b5dfca666" + }, + "groupIdentifier": { + "extension": [ + { + "url": "https://fhir.nhs.uk/StructureDefinition/Extension-DM-PrescriptionId", + "valueIdentifier": { + "system": "https://fhir.nhs.uk/Id/prescription", + "value": "bea7a124-fa11-406b-9c62-87964c8e38d0" + } + } + ], + "system": "https://fhir.nhs.uk/Id/prescription-order-number", + "value": "6BC03A-A83008-485BAR" + }, + "courseOfTherapyType": { + "coding": [ + { + "system": "https://fhir.nhs.uk/CodeSystem/medicationrequest-course-of-therapy", + "code": "continuous-repeat-dispensing", + "display": "Continuous long term (repeat dispensing)" + } + ] + }, + "dosageInstruction": [ + { + "text": "5 times a day - Inhalation", + "timing": { + "repeat": { + "frequency": 5, + "period": 1, + "periodUnit": "d" + } + }, + "route": { + "coding": [ + { + "system": "http://snomed.info/sct", + "code": "18679011000001101", + "display": "Inhalation" + } + ] + } + } + ], + "dispenseRequest": { + "extension": [ + { + "url": "https://fhir.nhs.uk/StructureDefinition/Extension-DM-PerformerSiteType", + "valueCoding": { + "system": "https://fhir.nhs.uk/CodeSystem/dispensing-site-preference", + "code": "P1" + } + } + ], + "numberOfRepeatsAllowed": 5, + "validityPeriod": { + "start": "2021-05-07", + "end": "2021-06-04" + }, + "expectedSupplyDuration": { + "value": 30, + "unit": "day", + "system": "http://unitsofmeasure.org", + "code": "d" + }, + "performer": { + "identifier": { + "system": "https://fhir.nhs.uk/Id/ods-organization-code", + "value": "FCG71" + } + }, + "quantity": { + "value": 200, + "unit": "dose", + "system": "http://snomed.info/sct", + "code": "3317411000001100" + } + }, + "substitution": { + "allowedBoolean": false + } + } + }, + { + "fullUrl": "urn:uuid:78d3c2eb-009e-4ec8-a358-b042954aa9b2", + "resource": { + "resourceType": "Patient", + "identifier": [ + { + "system": "https://fhir.nhs.uk/Id/nhs-number", + "value": "9990548609" + } + ], + "name": [ + { + "use": "usual", + "family": "XXTESTPATIENT-TGNP", + "given": [ + "DONOTUSE" + ], + "prefix": [ + "MR" + ] + } + ], + "gender": "male", + "birthDate": "1932-01-06", + "address": [ + { + "use": "home", + "line": [ + "1 Trevelyan Square", + "Boar Lane", + "Leeds", + "West Yorkshire" + ], + "postalCode": "LS1 6AE" + } + ], + "generalPractitioner": [ + { + "identifier": { + "system": "https://fhir.nhs.uk/Id/ods-organization-code", + "value": "A83008" + } + } + ] + } + }, + { + "fullUrl": "urn:uuid:56166769-c1c4-4d07-afa8-132b5dfca666", + "resource": { + "resourceType": "PractitionerRole", + "identifier": [ + { + "system": "https://fhir.nhs.uk/Id/sds-role-profile-id", + "value": "200102238987" + }, + { + "system": "https://fhir.hl7.org.uk/Id/nhsbsa-spurious-code", + "value": "666666" + } + ], + "practitioner": { + "reference": "urn:uuid:a8c85454-f8cb-498d-9629-78e2cb5fa47a" + }, + "organization": { + "reference": "urn:uuid:3b4b03a5-52ba-4ba6-9b82-70350aa109d8" + }, + "code": [ + { + "coding": [ + { + "system": "https://fhir.nhs.uk/CodeSystem/NHSDigital-SDS-JobRoleCode", + "code": "S8000:G8000:R8000", + "display": "Clinical Practitioner Access Role" + } + ] + } + ], + "telecom": [ + { + "system": "phone", + "value": "01234567890", + "use": "work" + } + ] + } + }, + { + "fullUrl": "urn:uuid:a8c85454-f8cb-498d-9629-78e2cb5fa47a", + "resource": { + "resourceType": "Practitioner", + "identifier": [ + { + "system": "https://fhir.nhs.uk/Id/sds-user-id", + "value": "555086689106" + }, + { + "system": "https://fhir.hl7.org.uk/Id/gmc-number", + "value": "6095103" + }, + { + "system": "https://fhir.hl7.org.uk/Id/din-number", + "value": "977677" + } + ], + "name": [ + { + "family": "BOIN", + "given": [ + "C" + ], + "prefix": [ + "DR" + ] + } + ] + } + }, + { + "fullUrl": "urn:uuid:3b4b03a5-52ba-4ba6-9b82-70350aa109d8", + "resource": { + "resourceType": "Organization", + "identifier": [ + { + "system": "https://fhir.nhs.uk/Id/ods-organization-code", + "value": "A83008" + } + ], + "type": [ + { + "coding": [ + { + "system": "https://fhir.nhs.uk/CodeSystem/organisation-role", + "code": "76", + "display": "GP PRACTICE" + } + ] + } + ], + "name": "HALLGARTH SURGERY", + "address": [ + { + "use": "work", + "type": "both", + "line": [ + "HALLGARTH SURGERY", + "CHEAPSIDE" + ], + "city": "SHILDON", + "district": "COUNTY DURHAM", + "postalCode": "DL4 2HP" + } + ], + "telecom": [ + { + "system": "phone", + "value": "0115 9737320", + "use": "work" + } + ], + "partOf": { + "identifier": { + "system": "https://fhir.nhs.uk/Id/ods-organization-code", + "value": "84H" + }, + "display": "NHS COUNTY DURHAM CCG" + } + } + }, + { + "fullUrl": "urn:uuid:51793ac0-112f-46c7-a891-9af8cefb206e", + "resource": { + "resourceType": "CommunicationRequest", + "status": "unknown", + "subject": { + "reference": "urn:uuid:78d3c2eb-009e-4ec8-a358-b042954aa9b2" + }, + "payload": [ + { + "contentString": "Due to Coronavirus restrictions Church View Surgery is CLOSED until further notice" + }, + { + "contentReference": { + "reference": "urn:uuid:d0f003a0-8763-43d5-a264-ce52a38901c9", + "display": "List of Repeat Medications for re-ordering" + } + } + ], + "requester": { + "type": "Organization", + "identifier": { + "system": "https://fhir.nhs.uk/Id/ods-organization-code", + "value": "RBA" + }, + "display": "TAUNTON AND SOMERSET NHS FOUNDATION TRUST" + }, + "recipient": [ + { + "type": "Patient", + "identifier": { + "system": "https://fhir.nhs.uk/Id/nhs-number", + "value": "9453740519" + } + } + ] + } + }, + { + "fullUrl": "urn:uuid:d0f003a0-8763-43d5-a264-ce52a38901c9", + "resource": { + "resourceType": "List", + "status": "current", + "mode": "snapshot", + "code": { + "text": "Repeat Medications" + }, + "subject": { + "reference": "urn:uuid:78d3c2eb-009e-4ec8-a358-b042954aa9b2" + }, + "entry": [ + { + "item": { + "display": "Bendroflumethiazide 2.5mg tablets (3/6)" + } + }, + { + "item": { + "display": "Salbutamol 100micrograms/dose inhaler CFC free (2/6)" + } + } + ] + } + }, + { + "fullUrl": "urn:uuid:28828c55-8fa7-42d7-916f-fcf076e0c10e", + "resource": { + "resourceType": "Provenance", + "id": "28828c55-8fa7-42d7-916f-fcf076e0c10e", + "target": [ + { + "reference": "urn:uuid:a54219b8-f741-4c47-b662-e4f8dfa49ab6" + }, + { + "reference": "urn:uuid:5cb17f5a-11ac-4e18-825f-6470467238b3" + } + ], + "recorded": "2021-02-11T16:37:49+00:00", + "agent": [ + { + "who": { + "reference": "urn:uuid:56166769-c1c4-4d07-afa8-132b5dfca666" + } + } + ], + "signature": [ + { + "type": [ + { + "system": "urn:iso-astm:E1762-95:2013", + "code": "1.2.840.10065.1.12.1.1" + } + ], + "when": "2021-05-07T14:47:54+00:00", + "who": { + "reference": "urn:uuid:56166769-c1c4-4d07-afa8-132b5dfca666" + }, + "data": "DQo8U2lnbmF0dXJlIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwLzA5L3htbGRzaWcjIj4NCiAgICA8U2lnbmVkSW5mbz48Q2Fub25pY2FsaXphdGlvbk1ldGhvZCBBbGdvcml0aG09Imh0dHA6Ly93d3cudzMub3JnLzIwMDEvMTAveG1sLWV4Yy1jMTRuIyI+PC9DYW5vbmljYWxpemF0aW9uTWV0aG9kPjxTaWduYXR1cmVNZXRob2QgQWxnb3JpdGhtPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwLzA5L3htbGRzaWcjcnNhLXNoYTEiPjwvU2lnbmF0dXJlTWV0aG9kPjxSZWZlcmVuY2U+PFRyYW5zZm9ybXM+PFRyYW5zZm9ybSBBbGdvcml0aG09Imh0dHA6Ly93d3cudzMub3JnLzIwMDEvMTAveG1sLWV4Yy1jMTRuIyI+PC9UcmFuc2Zvcm0+PC9UcmFuc2Zvcm1zPjxEaWdlc3RNZXRob2QgQWxnb3JpdGhtPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwLzA5L3htbGRzaWcjc2hhMSI+PC9EaWdlc3RNZXRob2Q+PERpZ2VzdFZhbHVlPmpobitWQVY4ZitHUUFxcDQxd2JaaSs3bXU1cz08L0RpZ2VzdFZhbHVlPjwvUmVmZXJlbmNlPjwvU2lnbmVkSW5mbz4NCiAgICA8U2lnbmF0dXJlVmFsdWU+RUlGSG1oTUZydnB5aXVvQUFadkpJajVGOGJMZzM2clJPR1pMaEQ1YkQvY1NkaVY3QkJ2ZUh1ai83QUU3R01yYjR3RU5iZ2s3cjB5WkE4eDRYSFN5Y25hL1hzd3h5c1RmTEdpS0hQYzNtWVZOMGRQeXVBakJjQVZFeHpsaEgwcWJabGp1Mm1oS3FqQVJudk1EMFVQdXhtRnQySVBLVkhPVVdqaU1VYXRHNGYwPTwvU2lnbmF0dXJlVmFsdWU+DQogICAgPEtleUluZm8+DQogICAgICAgIDxYNTA5RGF0YT4NCiAgICAgICAgICAgIDxYNTA5Q2VydGlmaWNhdGU+TUlJRHVEQ0NBcUNnQXdJQkFnSUVYY210SHpBTkJna3Foa2lHOXcwQkFRc0ZBREEyTVF3d0NnWURWUVFLRXdOdWFITXhDekFKQmdOVkJBc1RBa05CTVJrd0Z3WURWUVFERXhCT1NGTWdTVTVVSUV4bGRtVnNJREZFTUI0WERUSXdNVEF5TWpFd01qRTFOVm9YRFRJeU1UQXlNakV3TlRFMU5Wb3dRekVNTUFvR0ExVUVDaE1EYm1oek1ROHdEUVlEVlFRTEV3WlFaVzl3YkdVeElqQWdCZ05WQkFNTUdUVTFOVEkxTXpVeU1URXdPRjlTUVU1RVQwMWZWVk5GVWxFd2daOHdEUVlKS29aSWh2Y05BUUVCQlFBRGdZMEFNSUdKQW9HQkFLdDRzek53N09BSDdBUVJyRGUveEJJbXNNbU1pUzlFc3JUM2EzcC9MaDNicmR6STlhYWpUVVoyYi9jdmJPYTdQZVlkN3UrSzRhMlpkMFhrKzBHRm1ZR3pTVlg2aVlqYmx3cjB2YWkzMXpWN0crbEd2SHhINnBTb0xDd0lDYVpBRndhYmVENU96OTQreUEzYVdOV3RHVjBEZmg5cXdIM1pGQ0lNUnN2ZXJOMXBBZ01CQUFHamdnRkRNSUlCUHpBT0JnTlZIUThCQWY4RUJBTUNCa0F3WlFZRFZSMGdBUUgvQkZzd1dUQlhCZ3NxaGpvQWlYdG1BQU1DQURCSU1FWUdDQ3NHQVFVRkJ3SUJGanBvZEhSd2N6b3ZMM0JyYVM1dWFITXVkV3N2WTJWeWRHbG1hV05oZEdWZmNHOXNhV05wWlhNdlkyOXVkR1Z1ZEY5amIyMXRhWFJ0Wlc1ME1ETUdBMVVkSHdRc01Db3dLS0Ftb0NTR0ltaDBkSEE2THk5amNtd3VibWh6TG5WckwybHVkQzh4WkM5amNteGpNeTVqY213d0t3WURWUjBRQkNRd0lvQVBNakF5TURFd01qSXhNREl4TlRWYWdROHlNREl5TURNeE56RXdOVEUxTlZvd0h3WURWUjBqQkJnd0ZvQVVvSllmZ1lUTlBkNkVVS0w2UUxJekh4WTVQRkl3SFFZRFZSME9CQllFRkx0eXZZU3lhcWc2MEFFVVpneGswd3JqUkpjK01Ba0dBMVVkRXdRQ01BQXdHUVlKS29aSWh2WjlCMEVBQkF3d0Noc0VWamd1TXdNQ0JMQXdEUVlKS29aSWh2Y05BUUVMQlFBRGdnRUJBQmN6eThCOGp1UHBJZmFUTkZjeHJDMjJhQ1gveFlabWhyTC9OdklCQWFYMUc1aGppd21rR0tFMmhSVElyNjdQeFp4bVhzSnhpZ1JCTUhQbEkrbFkvK29rekgwR2k3YjVicWx3N3B4R0lnSk8wMDB3OHBGc3ZvOXc0MklZaEhvZHN2bkRWU3hoTVQwSjQ2UWhrOXNvRTBMam9FVUxLUVBQbFlHa2UvR2wzbTE3SXRGWXdPYlFIMGZNRXdtaXFCeWVJZno3Z1NjY096TDVjSXA2UGNaVE9qbzJJcVFwZ0VtaGpPY1JJbkVxQU5pdFNkam9pSkFKenBhYVpqWVRSZEhVWDdpN2FqRWlING05MW5GVys0QXFrTnR0bGI0V2NHS3NTbVdnZktLaGVGNElvWktNRTgweGVyU2dNeTh2dGpMT0JKQ0dYejB3TEdtUXVSbXhNVHE4OHE0PTwvWDUwOUNlcnRpZmljYXRlPg0KICAgICAgICA8L1g1MDlEYXRhPg0KICAgIDwvS2V5SW5mbz4NCjwvU2lnbmF0dXJlPg0K" + } + ] + } + } + ] +} diff --git a/src/test/resources/examples/full_examples/primary-care/repeat-prescribing/1-Prepare-Request-200_OK.json b/src/test/resources/examples/full_examples/primary-care/repeat-prescribing/1-Prepare-Request-200_OK.json new file mode 100644 index 00000000..2402c5c7 --- /dev/null +++ b/src/test/resources/examples/full_examples/primary-care/repeat-prescribing/1-Prepare-Request-200_OK.json @@ -0,0 +1,877 @@ +{ + "resourceType": "Bundle", + "id": "0cb82cfa-76c8-4fb2-a08e-bf0e326e5487", + "identifier": { + "system": "https://tools.ietf.org/html/rfc4122", + "value": "46183abc-9fad-4673-85db-ce2cb6614732" + }, + "type": "message", + "entry": [ + { + "fullUrl": "urn:uuid:17773b27-427e-4940-8c16-64cdac715001", + "resource": { + "resourceType": "MessageHeader", + "eventCoding": { + "system": "https://fhir.nhs.uk/CodeSystem/message-event", + "code": "prescription-order", + "display": "Prescription Order" + }, + "destination": [ + { + "endpoint": "https://sandbox.api.service.nhs.uk/electronic-prescriptions/$post-message", + "receiver": { + "identifier": { + "system": "https://fhir.nhs.uk/Id/ods-organization-code", + "value": "VNE51" + }, + "display": "The Simple Pharmacy" + } + } + ], + "sender": { + "identifier": { + "system": "https://fhir.nhs.uk/Id/ods-organization-code", + "value": "A83008" + }, + "display": "HALLGARTH SURGERY" + }, + "source": { + "endpoint": "https://directory.spineservices.nhs.uk/STU3/Organization/A83008" + }, + "focus": [ + { + "reference": "urn:uuid:a54219b8-f741-4c47-b662-e4f8dfa49ab6" + }, + { + "reference": "urn:uuid:6989b7bd-8db6-428c-a593-4022e3044c00" + }, + { + "reference": "urn:uuid:2868554c-5565-4d31-b92a-c5b8dab8b90a" + }, + { + "reference": "urn:uuid:5cb17f5a-11ac-4e18-825f-6470467238b3" + }, + { + "reference": "urn:uuid:56166769-c1c4-4d07-afa8-132b5dfca666" + }, + { + "reference": "urn:uuid:78d3c2eb-009e-4ec8-a358-b042954aa9b2" + } + ] + } + }, + { + "fullUrl": "urn:uuid:a54219b8-f741-4c47-b662-e4f8dfa49ab6", + "resource": { + "resourceType": "MedicationRequest", + "extension": [ + { + "url": "https://fhir.nhs.uk/StructureDefinition/Extension-DM-PrescriptionType", + "valueCoding": { + "system": "https://fhir.nhs.uk/CodeSystem/prescription-type", + "code": "0101", + "display": "Primary Care Prescriber - Medical Prescriber" + } + }, + { + "url": "https://fhir.hl7.org.uk/StructureDefinition/Extension-UKCore-MedicationRepeatInformation", + "extension": [ + { + "url": "numberOfPrescriptionsIssued", + "valueUnsignedInt": 2 + }, + { + "url": "authorisationExpiryDate", + "valueDateTime": "2023-04-07" + } + ] + } + ], + "identifier": [ + { + "system": "https://fhir.nhs.uk/Id/prescription-order-item-number", + "value": "a54219b8-f741-4c47-b662-e4f8dfa49ab6" + } + ], + "status": "active", + "intent": "instance-order", + "category": [ + { + "coding": [ + { + "system": "http://terminology.hl7.org/CodeSystem/medicationrequest-category", + "code": "community", + "display": "Community" + } + ] + } + ], + "medicationCodeableConcept": { + "coding": [ + { + "system": "http://snomed.info/sct", + "code": "39732311000001104", + "display": "Amoxicillin 250mg capsules" + } + ] + }, + "subject": { + "reference": "urn:uuid:78d3c2eb-009e-4ec8-a358-b042954aa9b2" + }, + "requester": { + "reference": "urn:uuid:56166769-c1c4-4d07-afa8-132b5dfca666" + }, + "basedOn": [ + { + "extension": [ + { + "url": "https://fhir.nhs.uk/StructureDefinition/Extension-EPS-RepeatInformation", + "extension": [ + { + "url": "numberOfRepeatsAllowed", + "valueInteger": 5 + } + ] + } + ], + "identifier": { + "system": "https://fhir.nhs.uk/Id/prescription-order-item-number", + "value": "299c610b-f4f1-4eac-a7d7-4fb6b0556e11" + } + } + ], + "groupIdentifier": { + "system": "https://fhir.nhs.uk/Id/prescription-order-number", + "value": "24F5DA-A83008-7EFE6Z", + "extension": [ + { + "url": "https://fhir.nhs.uk/StructureDefinition/Extension-DM-PrescriptionId", + "valueIdentifier": { + "system": "https://fhir.nhs.uk/Id/prescription", + "value": "20ba5fb5-cb58-462c-923e-22d180b09356" + } + } + ] + }, + "courseOfTherapyType": { + "coding": [ + { + "system": "http://terminology.hl7.org/CodeSystem/medicationrequest-course-of-therapy", + "code": "continuous", + "display": "Continuous long term therapy" + } + ] + }, + "dosageInstruction": [ + { + "text": "2 times a day for 10 days", + "timing": { + "repeat": { + "frequency": 2, + "period": 1, + "periodUnit": "d" + } + }, + "route": { + "coding": [ + { + "system": "http://snomed.info/sct", + "code": "26643006", + "display": "Oral" + } + ] + } + } + ], + "dispenseRequest": { + "extension": [ + { + "url": "https://fhir.nhs.uk/StructureDefinition/Extension-DM-PerformerSiteType", + "valueCoding": { + "system": "https://fhir.nhs.uk/CodeSystem/dispensing-site-preference", + "code": "P1" + } + } + ], + "validityPeriod": { + "start": "2022-10-21" + }, + "numberOfRepeatsAllowed": 0, + "quantity": { + "value": 20, + "unit": "tablet", + "system": "http://snomed.info/sct", + "code": "428673006" + }, + "expectedSupplyDuration": { + "value": 10, + "unit": "day", + "system": "http://unitsofmeasure.org", + "code": "d" + }, + "performer": { + "identifier": { + "system": "https://fhir.nhs.uk/Id/ods-organization-code", + "value": "VNE51" + } + } + }, + "substitution": { + "allowedBoolean": false + } + } + }, + { + "fullUrl": "urn:uuid:6989b7bd-8db6-428c-a593-4022e3044c00", + "resource": { + "resourceType": "MedicationRequest", + "extension": [ + { + "url": "https://fhir.nhs.uk/StructureDefinition/Extension-DM-PrescriptionType", + "valueCoding": { + "system": "https://fhir.nhs.uk/CodeSystem/prescription-type", + "code": "0101", + "display": "Primary Care Prescriber - Medical Prescriber" + } + }, + { + "url": "https://fhir.hl7.org.uk/StructureDefinition/Extension-UKCore-MedicationRepeatInformation", + "extension": [ + { + "url": "numberOfPrescriptionsIssued", + "valueUnsignedInt": 2 + }, + { + "url": "authorisationExpiryDate", + "valueDateTime": "2023-04-07" + } + ] + } + ], + "identifier": [ + { + "system": "https://fhir.nhs.uk/Id/prescription-order-item-number", + "value": "6989b7bd-8db6-428c-a593-4022e3044c00" + } + ], + "status": "active", + "intent": "instance-order", + "category": [ + { + "coding": [ + { + "system": "http://terminology.hl7.org/CodeSystem/medicationrequest-category", + "code": "community", + "display": "Community" + } + ] + } + ], + "medicationCodeableConcept": { + "coding": [ + { + "system": "http://snomed.info/sct", + "code": "322341003", + "display": "Co-codamol 30mg/500mg tablets" + } + ] + }, + "subject": { + "reference": "urn:uuid:78d3c2eb-009e-4ec8-a358-b042954aa9b2" + }, + "requester": { + "reference": "urn:uuid:56166769-c1c4-4d07-afa8-132b5dfca666" + }, + "basedOn": [ + { + "extension": [ + { + "url": "https://fhir.nhs.uk/StructureDefinition/Extension-EPS-RepeatInformation", + "extension": [ + { + "url": "numberOfRepeatsAllowed", + "valueInteger": 5 + } + ] + } + ], + "identifier": { + "system": "https://fhir.nhs.uk/Id/prescription-order-item-number", + "value": "299c610b-f4f1-4eac-a7d7-4fb6b0556e11" + } + } + ], + "groupIdentifier": { + "system": "https://fhir.nhs.uk/Id/prescription-order-number", + "value": "24F5DA-A83008-7EFE6Z", + "extension": [ + { + "url": "https://fhir.nhs.uk/StructureDefinition/Extension-DM-PrescriptionId", + "valueIdentifier": { + "system": "https://fhir.nhs.uk/Id/prescription", + "value": "20ba5fb5-cb58-462c-923e-22d180b09356" + } + } + ] + }, + "courseOfTherapyType": { + "coding": [ + { + "system": "http://terminology.hl7.org/CodeSystem/medicationrequest-course-of-therapy", + "code": "continuous", + "display": "Continuous long term therapy" + } + ] + }, + "dosageInstruction": [ + { + "text": "2 times a day for 10 days", + "timing": { + "repeat": { + "frequency": 2, + "period": 1, + "periodUnit": "d" + } + }, + "route": { + "coding": [ + { + "system": "http://snomed.info/sct", + "code": "26643006", + "display": "Oral" + } + ] + } + } + ], + "dispenseRequest": { + "extension": [ + { + "url": "https://fhir.nhs.uk/StructureDefinition/Extension-DM-PerformerSiteType", + "valueCoding": { + "system": "https://fhir.nhs.uk/CodeSystem/dispensing-site-preference", + "code": "P1" + } + } + ], + "validityPeriod": { + "start": "2022-10-21" + }, + "numberOfRepeatsAllowed": 0, + "quantity": { + "value": 20, + "unit": "tablet", + "system": "http://snomed.info/sct", + "code": "428673006" + }, + "expectedSupplyDuration": { + "value": 10, + "unit": "day", + "system": "http://unitsofmeasure.org", + "code": "d" + }, + "performer": { + "identifier": { + "system": "https://fhir.nhs.uk/Id/ods-organization-code", + "value": "VNE51" + } + } + }, + "substitution": { + "allowedBoolean": false + } + } + }, + { + "fullUrl": "urn:uuid:2868554c-5565-4d31-b92a-c5b8dab8b90a", + "resource": { + "resourceType": "MedicationRequest", + "extension": [ + { + "url": "https://fhir.nhs.uk/StructureDefinition/Extension-DM-PrescriptionType", + "valueCoding": { + "system": "https://fhir.nhs.uk/CodeSystem/prescription-type", + "code": "0101", + "display": "Primary Care Prescriber - Medical Prescriber" + } + }, + { + "url": "https://fhir.hl7.org.uk/StructureDefinition/Extension-UKCore-MedicationRepeatInformation", + "extension": [ + { + "url": "numberOfPrescriptionsIssued", + "valueUnsignedInt": 2 + }, + { + "url": "authorisationExpiryDate", + "valueDateTime": "2023-04-07" + } + ] + } + ], + "identifier": [ + { + "system": "https://fhir.nhs.uk/Id/prescription-order-item-number", + "value": "2868554c-5565-4d31-b92a-c5b8dab8b90a" + } + ], + "status": "active", + "intent": "instance-order", + "category": [ + { + "coding": [ + { + "system": "http://terminology.hl7.org/CodeSystem/medicationrequest-category", + "code": "community", + "display": "Community" + } + ] + } + ], + "medicationCodeableConcept": { + "coding": [ + { + "system": "http://snomed.info/sct", + "code": "321080004", + "display": "Pseudoephedrine hydrochloride 60mg tablets" + } + ] + }, + "subject": { + "reference": "urn:uuid:78d3c2eb-009e-4ec8-a358-b042954aa9b2" + }, + "requester": { + "reference": "urn:uuid:56166769-c1c4-4d07-afa8-132b5dfca666" + }, + "basedOn": [ + { + "extension": [ + { + "url": "https://fhir.nhs.uk/StructureDefinition/Extension-EPS-RepeatInformation", + "extension": [ + { + "url": "numberOfRepeatsAllowed", + "valueInteger": 5 + } + ] + } + ], + "identifier": { + "system": "https://fhir.nhs.uk/Id/prescription-order-item-number", + "value": "299c610b-f4f1-4eac-a7d7-4fb6b0556e11" + } + } + ], + "groupIdentifier": { + "system": "https://fhir.nhs.uk/Id/prescription-order-number", + "value": "24F5DA-A83008-7EFE6Z", + "extension": [ + { + "url": "https://fhir.nhs.uk/StructureDefinition/Extension-DM-PrescriptionId", + "valueIdentifier": { + "system": "https://fhir.nhs.uk/Id/prescription", + "value": "20ba5fb5-cb58-462c-923e-22d180b09356" + } + } + ] + }, + "courseOfTherapyType": { + "coding": [ + { + "system": "http://terminology.hl7.org/CodeSystem/medicationrequest-course-of-therapy", + "code": "continuous", + "display": "Continuous long term therapy" + } + ] + }, + "dosageInstruction": [ + { + "text": "3 times a day for 10 days", + "timing": { + "repeat": { + "frequency": 3, + "period": 1, + "periodUnit": "d" + } + }, + "route": { + "coding": [ + { + "system": "http://snomed.info/sct", + "code": "26643006", + "display": "Oral" + } + ] + } + } + ], + "dispenseRequest": { + "extension": [ + { + "url": "https://fhir.nhs.uk/StructureDefinition/Extension-DM-PerformerSiteType", + "valueCoding": { + "system": "https://fhir.nhs.uk/CodeSystem/dispensing-site-preference", + "code": "P1" + } + } + ], + "validityPeriod": { + "start": "2022-10-21" + }, + "numberOfRepeatsAllowed": 0, + "quantity": { + "value": 30, + "unit": "tablet", + "system": "http://snomed.info/sct", + "code": "428673006" + }, + "expectedSupplyDuration": { + "value": 10, + "unit": "day", + "system": "http://unitsofmeasure.org", + "code": "d" + }, + "performer": { + "identifier": { + "system": "https://fhir.nhs.uk/Id/ods-organization-code", + "value": "VNE51" + } + } + }, + "substitution": { + "allowedBoolean": false + } + } + }, + { + "fullUrl": "urn:uuid:5cb17f5a-11ac-4e18-825f-6470467238b3", + "resource": { + "resourceType": "MedicationRequest", + "extension": [ + { + "url": "https://fhir.nhs.uk/StructureDefinition/Extension-DM-PrescriptionType", + "valueCoding": { + "system": "https://fhir.nhs.uk/CodeSystem/prescription-type", + "code": "0101", + "display": "Primary Care Prescriber - Medical Prescriber" + } + }, + { + "url": "https://fhir.hl7.org.uk/StructureDefinition/Extension-UKCore-MedicationRepeatInformation", + "extension": [ + { + "url": "numberOfPrescriptionsIssued", + "valueUnsignedInt": 2 + }, + { + "url": "authorisationExpiryDate", + "valueDateTime": "2023-04-07" + } + ] + } + ], + "identifier": [ + { + "system": "https://fhir.nhs.uk/Id/prescription-order-item-number", + "value": "5cb17f5a-11ac-4e18-825f-6470467238b3" + } + ], + "status": "active", + "intent": "instance-order", + "category": [ + { + "coding": [ + { + "system": "http://terminology.hl7.org/CodeSystem/medicationrequest-category", + "code": "community", + "display": "Community" + } + ] + } + ], + "medicationCodeableConcept": { + "coding": [ + { + "system": "http://snomed.info/sct", + "code": "324252006", + "display": "Azithromycin 250mg capsules" + } + ] + }, + "subject": { + "reference": "urn:uuid:78d3c2eb-009e-4ec8-a358-b042954aa9b2" + }, + "requester": { + "reference": "urn:uuid:56166769-c1c4-4d07-afa8-132b5dfca666" + }, + "basedOn": [ + { + "extension": [ + { + "url": "https://fhir.nhs.uk/StructureDefinition/Extension-EPS-RepeatInformation", + "extension": [ + { + "url": "numberOfRepeatsAllowed", + "valueInteger": 5 + } + ] + } + ], + "identifier": { + "system": "https://fhir.nhs.uk/Id/prescription-order-item-number", + "value": "299c610b-f4f1-4eac-a7d7-4fb6b0556e11" + } + } + ], + "groupIdentifier": { + "system": "https://fhir.nhs.uk/Id/prescription-order-number", + "value": "24F5DA-A83008-7EFE6Z", + "extension": [ + { + "url": "https://fhir.nhs.uk/StructureDefinition/Extension-DM-PrescriptionId", + "valueIdentifier": { + "system": "https://fhir.nhs.uk/Id/prescription", + "value": "20ba5fb5-cb58-462c-923e-22d180b09356" + } + } + ] + }, + "courseOfTherapyType": { + "coding": [ + { + "system": "http://terminology.hl7.org/CodeSystem/medicationrequest-course-of-therapy", + "code": "continuous", + "display": "Continuous long term therapy" + } + ] + }, + "dosageInstruction": [ + { + "text": "3 times a day for 10 days", + "timing": { + "repeat": { + "frequency": 3, + "period": 1, + "periodUnit": "d" + } + }, + "route": { + "coding": [ + { + "system": "http://snomed.info/sct", + "code": "26643006", + "display": "Oral" + } + ] + } + } + ], + "dispenseRequest": { + "extension": [ + { + "url": "https://fhir.nhs.uk/StructureDefinition/Extension-DM-PerformerSiteType", + "valueCoding": { + "system": "https://fhir.nhs.uk/CodeSystem/dispensing-site-preference", + "code": "P1" + } + } + ], + "validityPeriod": { + "start": "2022-10-21" + }, + "numberOfRepeatsAllowed": 0, + "quantity": { + "value": 30, + "unit": "tablet", + "system": "http://snomed.info/sct", + "code": "428673006" + }, + "expectedSupplyDuration": { + "value": 10, + "unit": "day", + "system": "http://unitsofmeasure.org", + "code": "d" + }, + "performer": { + "identifier": { + "system": "https://fhir.nhs.uk/Id/ods-organization-code", + "value": "VNE51" + } + } + }, + "substitution": { + "allowedBoolean": false + } + } + }, + { + "fullUrl": "urn:uuid:78d3c2eb-009e-4ec8-a358-b042954aa9b2", + "resource": { + "resourceType": "Patient", + "identifier": [ + { + "system": "https://fhir.nhs.uk/Id/nhs-number", + "value": "9449304130" + } + ], + "name": [ + { + "use": "usual", + "family": "TWITCHETT", + "given": [ + "STACEY", + "MARISA" + ], + "prefix": [ + "MS" + ] + } + ], + "gender": "female", + "birthDate": "1948-04-30", + "address": [ + { + "use": "home", + "line": [ + "10 HEATHFIELD", + "COBHAM", + "SURREY" + ], + "postalCode": "KT11 2QY" + } + ], + "generalPractitioner": [ + { + "identifier": { + "system": "https://fhir.nhs.uk/Id/ods-organization-code", + "value": "A83008" + } + } + ] + } + }, + { + "fullUrl": "urn:uuid:56166769-c1c4-4d07-afa8-132b5dfca666", + "resource": { + "resourceType": "PractitionerRole", + "identifier": [ + { + "system": "https://fhir.nhs.uk/Id/sds-role-profile-id", + "value": "200102238987" + } + ], + "practitioner": { + "reference": "urn:uuid:a8c85454-f8cb-498d-9629-78e2cb5fa47a" + }, + "organization": { + "reference": "urn:uuid:3b4b03a5-52ba-4ba6-9b82-70350aa109d8" + }, + "code": [ + { + "coding": [ + { + "system": "https://fhir.nhs.uk/CodeSystem/NHSDigital-SDS-JobRoleCode", + "code": "R8000", + "display": "Clinical Practitioner Access Role" + }, + { + "system": "https://fhir.hl7.org.uk/CodeSystem/UKCore-SDSJobRoleName", + "code": "R8000", + "display": "Clinical Practitioner Access Role" + } + ] + } + ], + "telecom": [ + { + "system": "phone", + "use": "work", + "value": "01234567890" + } + ] + } + }, + { + "fullUrl": "urn:uuid:a8c85454-f8cb-498d-9629-78e2cb5fa47a", + "resource": { + "resourceType": "Practitioner", + "identifier": [ + { + "system": "https://fhir.nhs.uk/Id/sds-user-id", + "value": "555086689106" + }, + { + "system": "https://fhir.hl7.org.uk/Id/gmc-number", + "value": "6095103" + }, + { + "system": "https://fhir.hl7.org.uk/Id/din-number", + "value": "977677" + } + ], + "name": [ + { + "family": "BOIN", + "given": [ + "C" + ], + "prefix": [ + "DR" + ] + } + ] + } + }, + { + "fullUrl": "urn:uuid:3b4b03a5-52ba-4ba6-9b82-70350aa109d8", + "resource": { + "resourceType": "Organization", + "identifier": [ + { + "system": "https://fhir.nhs.uk/Id/ods-organization-code", + "value": "A83008" + } + ], + "type": [ + { + "coding": [ + { + "system": "https://fhir.nhs.uk/CodeSystem/organisation-role", + "code": "76", + "display": "GP PRACTICE" + } + ] + } + ], + "name": "HALLGARTH SURGERY", + "telecom": [ + { + "system": "phone", + "use": "work", + "value": "0115 9737320" + } + ], + "address": [ + { + "use": "work", + "type": "both", + "line": [ + "HALLGARTH SURGERY", + "CHEAPSIDE" + ], + "city": "SHILDON", + "district": "COUNTY DURHAM", + "postalCode": "DL4 2HP" + } + ], + "partOf": { + "identifier": { + "system": "https://fhir.nhs.uk/Id/ods-organization-code", + "value": "84H" + }, + "display": "NHS COUNTY DURHAM CCG" + } + } + } + ] +} diff --git a/src/test/resources/examples/full_examples/primary-care/repeat-prescribing/1-Prepare-Response-200_OK.json b/src/test/resources/examples/full_examples/primary-care/repeat-prescribing/1-Prepare-Response-200_OK.json new file mode 100644 index 00000000..b7d4857d --- /dev/null +++ b/src/test/resources/examples/full_examples/primary-care/repeat-prescribing/1-Prepare-Response-200_OK.json @@ -0,0 +1,17 @@ +{ + "resourceType": "Parameters", + "parameter": [ + { + "name": "digest", + "valueString": "PFNpZ25lZEluZm8geG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvMDkveG1sZHNpZyMiPjxDYW5vbmljYWxpemF0aW9uTWV0aG9kIEFsZ29yaXRobT0iaHR0cDovL3d3dy53My5vcmcvMjAwMS8xMC94bWwtZXhjLWMxNG4jIj48L0Nhbm9uaWNhbGl6YXRpb25NZXRob2Q+PFNpZ25hdHVyZU1ldGhvZCBBbGdvcml0aG09Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvMDkveG1sZHNpZyNyc2Etc2hhMSI+PC9TaWduYXR1cmVNZXRob2Q+PFJlZmVyZW5jZT48VHJhbnNmb3Jtcz48VHJhbnNmb3JtIEFsZ29yaXRobT0iaHR0cDovL3d3dy53My5vcmcvMjAwMS8xMC94bWwtZXhjLWMxNG4jIj48L1RyYW5zZm9ybT48L1RyYW5zZm9ybXM+PERpZ2VzdE1ldGhvZCBBbGdvcml0aG09Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvMDkveG1sZHNpZyNzaGExIj48L0RpZ2VzdE1ldGhvZD48RGlnZXN0VmFsdWU+aDBHZnFHSjl4VG4rMTMvbytlbG1iT05JRFY0PTwvRGlnZXN0VmFsdWU+PC9SZWZlcmVuY2U+PC9TaWduZWRJbmZvPg==" + }, + { + "name": "timestamp", + "valueString": "2022-10-21T13:47:00+00:00" + }, + { + "name": "algorithm", + "valueString": "RS1" + } + ] +} diff --git a/src/test/resources/examples/full_examples/primary-care/repeat-prescribing/1-Process-Request-Send-200_OK.json b/src/test/resources/examples/full_examples/primary-care/repeat-prescribing/1-Process-Request-Send-200_OK.json new file mode 100644 index 00000000..09254591 --- /dev/null +++ b/src/test/resources/examples/full_examples/primary-care/repeat-prescribing/1-Process-Request-Send-200_OK.json @@ -0,0 +1,912 @@ +{ + "resourceType": "Bundle", + "id": "0cb82cfa-76c8-4fb2-a08e-bf0e326e5487", + "identifier": { + "system": "https://tools.ietf.org/html/rfc4122", + "value": "46183abc-9fad-4673-85db-ce2cb6614732" + }, + "type": "message", + "entry": [ + { + "fullUrl": "urn:uuid:17773b27-427e-4940-8c16-64cdac715001", + "resource": { + "resourceType": "MessageHeader", + "eventCoding": { + "system": "https://fhir.nhs.uk/CodeSystem/message-event", + "code": "prescription-order", + "display": "Prescription Order" + }, + "destination": [ + { + "endpoint": "https://sandbox.api.service.nhs.uk/electronic-prescriptions/$post-message", + "receiver": { + "identifier": { + "system": "https://fhir.nhs.uk/Id/ods-organization-code", + "value": "VNE51" + }, + "display": "The Simple Pharmacy" + } + } + ], + "sender": { + "identifier": { + "system": "https://fhir.nhs.uk/Id/ods-organization-code", + "value": "A83008" + }, + "display": "HALLGARTH SURGERY" + }, + "source": { + "endpoint": "https://directory.spineservices.nhs.uk/STU3/Organization/A83008" + }, + "focus": [ + { + "reference": "urn:uuid:a54219b8-f741-4c47-b662-e4f8dfa49ab6" + }, + { + "reference": "urn:uuid:6989b7bd-8db6-428c-a593-4022e3044c00" + }, + { + "reference": "urn:uuid:2868554c-5565-4d31-b92a-c5b8dab8b90a" + }, + { + "reference": "urn:uuid:5cb17f5a-11ac-4e18-825f-6470467238b3" + }, + { + "reference": "urn:uuid:56166769-c1c4-4d07-afa8-132b5dfca666" + }, + { + "reference": "urn:uuid:78d3c2eb-009e-4ec8-a358-b042954aa9b2" + } + ] + } + }, + { + "fullUrl": "urn:uuid:a54219b8-f741-4c47-b662-e4f8dfa49ab6", + "resource": { + "resourceType": "MedicationRequest", + "extension": [ + { + "url": "https://fhir.nhs.uk/StructureDefinition/Extension-DM-PrescriptionType", + "valueCoding": { + "system": "https://fhir.nhs.uk/CodeSystem/prescription-type", + "code": "0101", + "display": "Primary Care Prescriber - Medical Prescriber" + } + }, + { + "url": "https://fhir.hl7.org.uk/StructureDefinition/Extension-UKCore-MedicationRepeatInformation", + "extension": [ + { + "url": "numberOfPrescriptionsIssued", + "valueUnsignedInt": 2 + }, + { + "url": "authorisationExpiryDate", + "valueDateTime": "2023-04-07" + } + ] + } + ], + "identifier": [ + { + "system": "https://fhir.nhs.uk/Id/prescription-order-item-number", + "value": "a54219b8-f741-4c47-b662-e4f8dfa49ab6" + } + ], + "status": "active", + "intent": "instance-order", + "category": [ + { + "coding": [ + { + "system": "http://terminology.hl7.org/CodeSystem/medicationrequest-category", + "code": "community", + "display": "Community" + } + ] + } + ], + "medicationCodeableConcept": { + "coding": [ + { + "system": "http://snomed.info/sct", + "code": "39732311000001104", + "display": "Amoxicillin 250mg capsules" + } + ] + }, + "subject": { + "reference": "urn:uuid:78d3c2eb-009e-4ec8-a358-b042954aa9b2" + }, + "requester": { + "reference": "urn:uuid:56166769-c1c4-4d07-afa8-132b5dfca666" + }, + "basedOn": [ + { + "extension": [ + { + "url": "https://fhir.nhs.uk/StructureDefinition/Extension-EPS-RepeatInformation", + "extension": [ + { + "url": "numberOfRepeatsAllowed", + "valueInteger": 5 + } + ] + } + ], + "identifier": { + "system": "https://fhir.nhs.uk/Id/prescription-order-item-number", + "value": "299c610b-f4f1-4eac-a7d7-4fb6b0556e11" + } + } + ], + "groupIdentifier": { + "system": "https://fhir.nhs.uk/Id/prescription-order-number", + "value": "24F5DA-A83008-7EFE6Z", + "extension": [ + { + "url": "https://fhir.nhs.uk/StructureDefinition/Extension-DM-PrescriptionId", + "valueIdentifier": { + "system": "https://fhir.nhs.uk/Id/prescription", + "value": "20ba5fb5-cb58-462c-923e-22d180b09356" + } + } + ] + }, + "courseOfTherapyType": { + "coding": [ + { + "system": "http://terminology.hl7.org/CodeSystem/medicationrequest-course-of-therapy", + "code": "continuous", + "display": "Continuous long term therapy" + } + ] + }, + "dosageInstruction": [ + { + "text": "2 times a day for 10 days", + "timing": { + "repeat": { + "frequency": 2, + "period": 1, + "periodUnit": "d" + } + }, + "route": { + "coding": [ + { + "system": "http://snomed.info/sct", + "code": "26643006", + "display": "Oral" + } + ] + } + } + ], + "dispenseRequest": { + "extension": [ + { + "url": "https://fhir.nhs.uk/StructureDefinition/Extension-DM-PerformerSiteType", + "valueCoding": { + "system": "https://fhir.nhs.uk/CodeSystem/dispensing-site-preference", + "code": "P1" + } + } + ], + "validityPeriod": { + "start": "2022-10-21" + }, + "numberOfRepeatsAllowed": 0, + "quantity": { + "value": 20, + "unit": "tablet", + "system": "http://snomed.info/sct", + "code": "428673006" + }, + "expectedSupplyDuration": { + "value": 10, + "unit": "day", + "system": "http://unitsofmeasure.org", + "code": "d" + }, + "performer": { + "identifier": { + "system": "https://fhir.nhs.uk/Id/ods-organization-code", + "value": "VNE51" + } + } + }, + "substitution": { + "allowedBoolean": false + } + } + }, + { + "fullUrl": "urn:uuid:6989b7bd-8db6-428c-a593-4022e3044c00", + "resource": { + "resourceType": "MedicationRequest", + "extension": [ + { + "url": "https://fhir.nhs.uk/StructureDefinition/Extension-DM-PrescriptionType", + "valueCoding": { + "system": "https://fhir.nhs.uk/CodeSystem/prescription-type", + "code": "0101", + "display": "Primary Care Prescriber - Medical Prescriber" + } + }, + { + "url": "https://fhir.hl7.org.uk/StructureDefinition/Extension-UKCore-MedicationRepeatInformation", + "extension": [ + { + "url": "numberOfPrescriptionsIssued", + "valueUnsignedInt": 2 + }, + { + "url": "authorisationExpiryDate", + "valueDateTime": "2023-04-07" + } + ] + } + ], + "identifier": [ + { + "system": "https://fhir.nhs.uk/Id/prescription-order-item-number", + "value": "6989b7bd-8db6-428c-a593-4022e3044c00" + } + ], + "status": "active", + "intent": "instance-order", + "category": [ + { + "coding": [ + { + "system": "http://terminology.hl7.org/CodeSystem/medicationrequest-category", + "code": "community", + "display": "Community" + } + ] + } + ], + "medicationCodeableConcept": { + "coding": [ + { + "system": "http://snomed.info/sct", + "code": "322341003", + "display": "Co-codamol 30mg/500mg tablets" + } + ] + }, + "subject": { + "reference": "urn:uuid:78d3c2eb-009e-4ec8-a358-b042954aa9b2" + }, + "requester": { + "reference": "urn:uuid:56166769-c1c4-4d07-afa8-132b5dfca666" + }, + "basedOn": [ + { + "extension": [ + { + "url": "https://fhir.nhs.uk/StructureDefinition/Extension-EPS-RepeatInformation", + "extension": [ + { + "url": "numberOfRepeatsAllowed", + "valueInteger": 5 + } + ] + } + ], + "identifier": { + "system": "https://fhir.nhs.uk/Id/prescription-order-item-number", + "value": "299c610b-f4f1-4eac-a7d7-4fb6b0556e11" + } + } + ], + "groupIdentifier": { + "system": "https://fhir.nhs.uk/Id/prescription-order-number", + "value": "24F5DA-A83008-7EFE6Z", + "extension": [ + { + "url": "https://fhir.nhs.uk/StructureDefinition/Extension-DM-PrescriptionId", + "valueIdentifier": { + "system": "https://fhir.nhs.uk/Id/prescription", + "value": "20ba5fb5-cb58-462c-923e-22d180b09356" + } + } + ] + }, + "courseOfTherapyType": { + "coding": [ + { + "system": "http://terminology.hl7.org/CodeSystem/medicationrequest-course-of-therapy", + "code": "continuous", + "display": "Continuous long term therapy" + } + ] + }, + "dosageInstruction": [ + { + "text": "2 times a day for 10 days", + "timing": { + "repeat": { + "frequency": 2, + "period": 1, + "periodUnit": "d" + } + }, + "route": { + "coding": [ + { + "system": "http://snomed.info/sct", + "code": "26643006", + "display": "Oral" + } + ] + } + } + ], + "dispenseRequest": { + "extension": [ + { + "url": "https://fhir.nhs.uk/StructureDefinition/Extension-DM-PerformerSiteType", + "valueCoding": { + "system": "https://fhir.nhs.uk/CodeSystem/dispensing-site-preference", + "code": "P1" + } + } + ], + "validityPeriod": { + "start": "2022-10-21" + }, + "numberOfRepeatsAllowed": 0, + "quantity": { + "value": 20, + "unit": "tablet", + "system": "http://snomed.info/sct", + "code": "428673006" + }, + "expectedSupplyDuration": { + "value": 10, + "unit": "day", + "system": "http://unitsofmeasure.org", + "code": "d" + }, + "performer": { + "identifier": { + "system": "https://fhir.nhs.uk/Id/ods-organization-code", + "value": "VNE51" + } + } + }, + "substitution": { + "allowedBoolean": false + } + } + }, + { + "fullUrl": "urn:uuid:2868554c-5565-4d31-b92a-c5b8dab8b90a", + "resource": { + "resourceType": "MedicationRequest", + "extension": [ + { + "url": "https://fhir.nhs.uk/StructureDefinition/Extension-DM-PrescriptionType", + "valueCoding": { + "system": "https://fhir.nhs.uk/CodeSystem/prescription-type", + "code": "0101", + "display": "Primary Care Prescriber - Medical Prescriber" + } + }, + { + "url": "https://fhir.hl7.org.uk/StructureDefinition/Extension-UKCore-MedicationRepeatInformation", + "extension": [ + { + "url": "numberOfPrescriptionsIssued", + "valueUnsignedInt": 2 + }, + { + "url": "authorisationExpiryDate", + "valueDateTime": "2023-04-07" + } + ] + } + ], + "identifier": [ + { + "system": "https://fhir.nhs.uk/Id/prescription-order-item-number", + "value": "2868554c-5565-4d31-b92a-c5b8dab8b90a" + } + ], + "status": "active", + "intent": "instance-order", + "category": [ + { + "coding": [ + { + "system": "http://terminology.hl7.org/CodeSystem/medicationrequest-category", + "code": "community", + "display": "Community" + } + ] + } + ], + "medicationCodeableConcept": { + "coding": [ + { + "system": "http://snomed.info/sct", + "code": "321080004", + "display": "Pseudoephedrine hydrochloride 60mg tablets" + } + ] + }, + "subject": { + "reference": "urn:uuid:78d3c2eb-009e-4ec8-a358-b042954aa9b2" + }, + "requester": { + "reference": "urn:uuid:56166769-c1c4-4d07-afa8-132b5dfca666" + }, + "basedOn": [ + { + "extension": [ + { + "url": "https://fhir.nhs.uk/StructureDefinition/Extension-EPS-RepeatInformation", + "extension": [ + { + "url": "numberOfRepeatsAllowed", + "valueInteger": 5 + } + ] + } + ], + "identifier": { + "system": "https://fhir.nhs.uk/Id/prescription-order-item-number", + "value": "299c610b-f4f1-4eac-a7d7-4fb6b0556e11" + } + } + ], + "groupIdentifier": { + "system": "https://fhir.nhs.uk/Id/prescription-order-number", + "value": "24F5DA-A83008-7EFE6Z", + "extension": [ + { + "url": "https://fhir.nhs.uk/StructureDefinition/Extension-DM-PrescriptionId", + "valueIdentifier": { + "system": "https://fhir.nhs.uk/Id/prescription", + "value": "20ba5fb5-cb58-462c-923e-22d180b09356" + } + } + ] + }, + "courseOfTherapyType": { + "coding": [ + { + "system": "http://terminology.hl7.org/CodeSystem/medicationrequest-course-of-therapy", + "code": "continuous", + "display": "Continuous long term therapy" + } + ] + }, + "dosageInstruction": [ + { + "text": "3 times a day for 10 days", + "timing": { + "repeat": { + "frequency": 3, + "period": 1, + "periodUnit": "d" + } + }, + "route": { + "coding": [ + { + "system": "http://snomed.info/sct", + "code": "26643006", + "display": "Oral" + } + ] + } + } + ], + "dispenseRequest": { + "extension": [ + { + "url": "https://fhir.nhs.uk/StructureDefinition/Extension-DM-PerformerSiteType", + "valueCoding": { + "system": "https://fhir.nhs.uk/CodeSystem/dispensing-site-preference", + "code": "P1" + } + } + ], + "validityPeriod": { + "start": "2022-10-21" + }, + "numberOfRepeatsAllowed": 0, + "quantity": { + "value": 30, + "unit": "tablet", + "system": "http://snomed.info/sct", + "code": "428673006" + }, + "expectedSupplyDuration": { + "value": 10, + "unit": "day", + "system": "http://unitsofmeasure.org", + "code": "d" + }, + "performer": { + "identifier": { + "system": "https://fhir.nhs.uk/Id/ods-organization-code", + "value": "VNE51" + } + } + }, + "substitution": { + "allowedBoolean": false + } + } + }, + { + "fullUrl": "urn:uuid:5cb17f5a-11ac-4e18-825f-6470467238b3", + "resource": { + "resourceType": "MedicationRequest", + "extension": [ + { + "url": "https://fhir.nhs.uk/StructureDefinition/Extension-DM-PrescriptionType", + "valueCoding": { + "system": "https://fhir.nhs.uk/CodeSystem/prescription-type", + "code": "0101", + "display": "Primary Care Prescriber - Medical Prescriber" + } + }, + { + "url": "https://fhir.hl7.org.uk/StructureDefinition/Extension-UKCore-MedicationRepeatInformation", + "extension": [ + { + "url": "numberOfPrescriptionsIssued", + "valueUnsignedInt": 2 + }, + { + "url": "authorisationExpiryDate", + "valueDateTime": "2023-04-07" + } + ] + } + ], + "identifier": [ + { + "system": "https://fhir.nhs.uk/Id/prescription-order-item-number", + "value": "5cb17f5a-11ac-4e18-825f-6470467238b3" + } + ], + "status": "active", + "intent": "instance-order", + "category": [ + { + "coding": [ + { + "system": "http://terminology.hl7.org/CodeSystem/medicationrequest-category", + "code": "community", + "display": "Community" + } + ] + } + ], + "medicationCodeableConcept": { + "coding": [ + { + "system": "http://snomed.info/sct", + "code": "324252006", + "display": "Azithromycin 250mg capsules" + } + ] + }, + "subject": { + "reference": "urn:uuid:78d3c2eb-009e-4ec8-a358-b042954aa9b2" + }, + "requester": { + "reference": "urn:uuid:56166769-c1c4-4d07-afa8-132b5dfca666" + }, + "basedOn": [ + { + "extension": [ + { + "url": "https://fhir.nhs.uk/StructureDefinition/Extension-EPS-RepeatInformation", + "extension": [ + { + "url": "numberOfRepeatsAllowed", + "valueInteger": 5 + } + ] + } + ], + "identifier": { + "system": "https://fhir.nhs.uk/Id/prescription-order-item-number", + "value": "299c610b-f4f1-4eac-a7d7-4fb6b0556e11" + } + } + ], + "groupIdentifier": { + "system": "https://fhir.nhs.uk/Id/prescription-order-number", + "value": "24F5DA-A83008-7EFE6Z", + "extension": [ + { + "url": "https://fhir.nhs.uk/StructureDefinition/Extension-DM-PrescriptionId", + "valueIdentifier": { + "system": "https://fhir.nhs.uk/Id/prescription", + "value": "20ba5fb5-cb58-462c-923e-22d180b09356" + } + } + ] + }, + "courseOfTherapyType": { + "coding": [ + { + "system": "http://terminology.hl7.org/CodeSystem/medicationrequest-course-of-therapy", + "code": "continuous", + "display": "Continuous long term therapy" + } + ] + }, + "dosageInstruction": [ + { + "text": "3 times a day for 10 days", + "timing": { + "repeat": { + "frequency": 3, + "period": 1, + "periodUnit": "d" + } + }, + "route": { + "coding": [ + { + "system": "http://snomed.info/sct", + "code": "26643006", + "display": "Oral" + } + ] + } + } + ], + "dispenseRequest": { + "extension": [ + { + "url": "https://fhir.nhs.uk/StructureDefinition/Extension-DM-PerformerSiteType", + "valueCoding": { + "system": "https://fhir.nhs.uk/CodeSystem/dispensing-site-preference", + "code": "P1" + } + } + ], + "validityPeriod": { + "start": "2022-10-21" + }, + "numberOfRepeatsAllowed": 0, + "quantity": { + "value": 30, + "unit": "tablet", + "system": "http://snomed.info/sct", + "code": "428673006" + }, + "expectedSupplyDuration": { + "value": 10, + "unit": "day", + "system": "http://unitsofmeasure.org", + "code": "d" + }, + "performer": { + "identifier": { + "system": "https://fhir.nhs.uk/Id/ods-organization-code", + "value": "VNE51" + } + } + }, + "substitution": { + "allowedBoolean": false + } + } + }, + { + "fullUrl": "urn:uuid:78d3c2eb-009e-4ec8-a358-b042954aa9b2", + "resource": { + "resourceType": "Patient", + "identifier": [ + { + "system": "https://fhir.nhs.uk/Id/nhs-number", + "value": "9449304130" + } + ], + "name": [ + { + "use": "usual", + "family": "TWITCHETT", + "given": [ + "STACEY", + "MARISA" + ], + "prefix": [ + "MS" + ] + } + ], + "gender": "female", + "birthDate": "1948-04-30", + "address": [ + { + "use": "home", + "line": [ + "10 HEATHFIELD", + "COBHAM", + "SURREY" + ], + "postalCode": "KT11 2QY" + } + ], + "generalPractitioner": [ + { + "identifier": { + "system": "https://fhir.nhs.uk/Id/ods-organization-code", + "value": "A83008" + } + } + ] + } + }, + { + "fullUrl": "urn:uuid:56166769-c1c4-4d07-afa8-132b5dfca666", + "resource": { + "resourceType": "PractitionerRole", + "identifier": [ + { + "system": "https://fhir.nhs.uk/Id/sds-role-profile-id", + "value": "200102238987" + } + ], + "practitioner": { + "reference": "urn:uuid:a8c85454-f8cb-498d-9629-78e2cb5fa47a" + }, + "organization": { + "reference": "urn:uuid:3b4b03a5-52ba-4ba6-9b82-70350aa109d8" + }, + "code": [ + { + "coding": [ + { + "system": "https://fhir.nhs.uk/CodeSystem/NHSDigital-SDS-JobRoleCode", + "code": "R8000", + "display": "Clinical Practitioner Access Role" + }, + { + "system": "https://fhir.hl7.org.uk/CodeSystem/UKCore-SDSJobRoleName", + "code": "R8000", + "display": "Clinical Practitioner Access Role" + } + ] + } + ], + "telecom": [ + { + "system": "phone", + "use": "work", + "value": "01234567890" + } + ] + } + }, + { + "fullUrl": "urn:uuid:a8c85454-f8cb-498d-9629-78e2cb5fa47a", + "resource": { + "resourceType": "Practitioner", + "identifier": [ + { + "system": "https://fhir.nhs.uk/Id/sds-user-id", + "value": "555086689106" + }, + { + "system": "https://fhir.hl7.org.uk/Id/gmc-number", + "value": "6095103" + }, + { + "system": "https://fhir.hl7.org.uk/Id/din-number", + "value": "977677" + } + ], + "name": [ + { + "family": "BOIN", + "given": [ + "C" + ], + "prefix": [ + "DR" + ] + } + ] + } + }, + { + "fullUrl": "urn:uuid:3b4b03a5-52ba-4ba6-9b82-70350aa109d8", + "resource": { + "resourceType": "Organization", + "identifier": [ + { + "system": "https://fhir.nhs.uk/Id/ods-organization-code", + "value": "A83008" + } + ], + "type": [ + { + "coding": [ + { + "system": "https://fhir.nhs.uk/CodeSystem/organisation-role", + "code": "76", + "display": "GP PRACTICE" + } + ] + } + ], + "name": "HALLGARTH SURGERY", + "telecom": [ + { + "system": "phone", + "use": "work", + "value": "0115 9737320" + } + ], + "address": [ + { + "use": "work", + "type": "both", + "line": [ + "HALLGARTH SURGERY", + "CHEAPSIDE" + ], + "city": "SHILDON", + "district": "COUNTY DURHAM", + "postalCode": "DL4 2HP" + } + ], + "partOf": { + "identifier": { + "system": "https://fhir.nhs.uk/Id/ods-organization-code", + "value": "84H" + }, + "display": "NHS COUNTY DURHAM CCG" + } + } + }, + { + "fullUrl": "urn:uuid:28828c55-8fa7-42d7-916f-fcf076e0c10e", + "resource": { + "resourceType": "Provenance", + "id": "28828c55-8fa7-42d7-916f-fcf076e0c10e", + "target": [ + { + "reference": "urn:uuid:0cb82cfa-76c8-4fb2-a08e-bf0e326e5487" + } + ], + "recorded": "2022-10-21T13:47:00+00:00", + "agent": [ + { + "who": { + "reference": "urn:uuid:56166769-c1c4-4d07-afa8-132b5dfca666" + } + } + ], + "signature": [ + { + "type": [ + { + "system": "urn:iso-astm:E1762-95:2013", + "code": "1.2.840.10065.1.12.1.1" + } + ], + "when": "2022-10-21T13:47:00+00:00", + "who": { + "reference": "urn:uuid:56166769-c1c4-4d07-afa8-132b5dfca666" + }, + "data": "PFNpZ25hdHVyZSB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC8wOS94bWxkc2lnIyI+CiAgICAgICAgICAgIDxTaWduZWRJbmZvPjxDYW5vbmljYWxpemF0aW9uTWV0aG9kIEFsZ29yaXRobT0iaHR0cDovL3d3dy53My5vcmcvMjAwMS8xMC94bWwtZXhjLWMxNG4jIj48L0Nhbm9uaWNhbGl6YXRpb25NZXRob2Q+PFNpZ25hdHVyZU1ldGhvZCBBbGdvcml0aG09Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvMDkveG1sZHNpZyNyc2Etc2hhMSI+PC9TaWduYXR1cmVNZXRob2Q+PFJlZmVyZW5jZT48VHJhbnNmb3Jtcz48VHJhbnNmb3JtIEFsZ29yaXRobT0iaHR0cDovL3d3dy53My5vcmcvMjAwMS8xMC94bWwtZXhjLWMxNG4jIj48L1RyYW5zZm9ybT48L1RyYW5zZm9ybXM+PERpZ2VzdE1ldGhvZCBBbGdvcml0aG09Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvMDkveG1sZHNpZyNzaGExIj48L0RpZ2VzdE1ldGhvZD48RGlnZXN0VmFsdWU+WTg5YWNmSC90VkVtSXI2aVlrRVJrWWMxbG1jPTwvRGlnZXN0VmFsdWU+PC9SZWZlcmVuY2U+PC9TaWduZWRJbmZvPgogICAgICAgICAgICA8U2lnbmF0dXJlVmFsdWU+PC9TaWduYXR1cmVWYWx1ZT4KICAgICAgICAgICAgPEtleUluZm8+PFg1MDlEYXRhPjxYNTA5Q2VydGlmaWNhdGU+PC9YNTA5Q2VydGlmaWNhdGU+PC9YNTA5RGF0YT48L0tleUluZm8+CiAgICAgICAgICA8L1NpZ25hdHVyZT4=" + } + ] + } + } + ] +} diff --git a/src/test/resources/examples/full_examples/primary-care/repeat-prescribing/1-Process-Response-Send-200_OK.json b/src/test/resources/examples/full_examples/primary-care/repeat-prescribing/1-Process-Response-Send-200_OK.json new file mode 100644 index 00000000..d0c17019 --- /dev/null +++ b/src/test/resources/examples/full_examples/primary-care/repeat-prescribing/1-Process-Response-Send-200_OK.json @@ -0,0 +1,12 @@ +{ + "resourceType": "OperationOutcome", + "meta": { + "lastUpdated": "2022-10-21T13:47:00+00:00" + }, + "issue": [ + { + "severity": "information", + "code": "informational" + } + ] +} diff --git a/src/test/resources/examples/full_examples/secondary-care/community/acute/no-nominated-pharmacy/clinical-practitioner/1-Prepare-Request-200_OK.json b/src/test/resources/examples/full_examples/secondary-care/community/acute/no-nominated-pharmacy/clinical-practitioner/1-Prepare-Request-200_OK.json new file mode 100644 index 00000000..5a08d5a9 --- /dev/null +++ b/src/test/resources/examples/full_examples/secondary-care/community/acute/no-nominated-pharmacy/clinical-practitioner/1-Prepare-Request-200_OK.json @@ -0,0 +1,340 @@ +{ + "resourceType": "Bundle", + "id": "0a1fd9ef-a3d5-4e95-84cd-552070a03086", + "identifier": { + "system": "https://tools.ietf.org/html/rfc4122", + "value": "1f829687-73de-48a6-84f4-78f094f0ba10" + }, + "type": "message", + "entry": [ + { + "fullUrl": "urn:uuid:0a1fd9ef-a3d5-4e95-84cd-552070a03086", + "resource": { + "resourceType": "MessageHeader", + "id": "0a1fd9ef-a3d5-4e95-84cd-552070a03086", + "eventCoding": { + "system": "https://fhir.nhs.uk/CodeSystem/message-event", + "code": "prescription-order", + "display": "Prescription Order" + }, + "sender": { + "identifier": { + "system": "https://fhir.nhs.uk/Id/ods-organization-code", + "value": "RBA" + }, + "reference": "urn:uuid:56166769-c1c4-4d07-afa8-132b5dfca666", + "display": "BOOTH|PHIL" + }, + "source": { + "endpoint": "https://directory.spineservices.nhs.uk/STU3/Organization/RBA" + }, + "destination": [ + { + "endpoint": "https://directory.spineservices.nhs.uk/STU3/Organization/FH542", + "receiver": { + "identifier": { + "system": "https://fhir.nhs.uk/Id/ods-organization-code", + "value": "FH542" + } + } + } + ], + "focus": [ + { + "reference": "urn:uuid:78d3c2eb-009e-4ec8-a358-b042954aa9b2" + }, + { + "reference": "urn:uuid:a54219b8-f741-4c47-b662-e4f8dfa49ab6" + } + ] + } + }, + { + "fullUrl": "urn:uuid:a54219b8-f741-4c47-b662-e4f8dfa49ab6", + "resource": { + "resourceType": "MedicationRequest", + "id": "a54219b8-f741-4c47-b662-e4f8dfa49ab6", + "extension": [ + { + "url": "https://fhir.nhs.uk/StructureDefinition/Extension-DM-PrescriptionType", + "valueCoding": { + "system": "https://fhir.nhs.uk/CodeSystem/prescription-type", + "code": "1001", + "display": "Outpatient Community Prescriber - Medical Prescriber" + } + } + ], + "identifier": [ + { + "system": "https://fhir.nhs.uk/Id/prescription-order-item-number", + "value": "c7f5c532-6835-4907-b83e-dc46f758129c" + } + ], + "status": "active", + "intent": "order", + "category": [ + { + "coding": [ + { + "system": "http://terminology.hl7.org/CodeSystem/medicationrequest-category", + "code": "outpatient", + "display": "Outpatient" + } + ] + } + ], + "medicationCodeableConcept": { + "coding": [ + { + "system": "http://snomed.info/sct", + "code": "15517911000001104", + "display": "Methotrexate 10mg/0.2ml solution for injection pre-filled syringes" + } + ] + }, + "subject": { + "reference": "urn:uuid:78d3c2eb-009e-4ec8-a358-b042954aa9b2" + }, + "requester": { + "reference": "urn:uuid:56166769-c1c4-4d07-afa8-132b5dfca666" + }, + "groupIdentifier": { + "extension": [ + { + "url": "https://fhir.nhs.uk/StructureDefinition/Extension-DM-PrescriptionId", + "valueIdentifier": { + "system": "https://fhir.nhs.uk/Id/prescription", + "value": "1270de18-f486-4ae4-8f00-e92dd9ed6cda" + } + } + ], + "system": "https://fhir.nhs.uk/Id/prescription-order-number", + "value": "B61BA2-0RRERP-F2ACDV" + }, + "courseOfTherapyType": { + "coding": [ + { + "system": "http://terminology.hl7.org/CodeSystem/medicationrequest-course-of-therapy", + "code": "acute", + "display": "Short course (acute) therapy" + } + ] + }, + "dosageInstruction": [ + { + "text": "Inject 10 milligram - 5 times a day - Subcutaneous route - for 10 days", + "timing": { + "repeat": { + "frequency": 5, + "period": 1, + "periodUnit": "d", + "boundsDuration": { + "value": 10, + "unit": "day", + "system": "http://unitsofmeasure.org", + "code": "d" + } + } + }, + "method": { + "coding": [ + { + "system": "http://snomed.info/sct", + "code": "422145002", + "display": "Inject" + } + ] + }, + "route": { + "coding": [ + { + "system": "http://snomed.info/sct", + "code": "34206005", + "display": "Subcutaneous route" + } + ] + }, + "doseAndRate": [ + { + "doseQuantity": { + "value": 10, + "unit": "milligram", + "system": "http://unitsofmeasure.org", + "code": "mg" + } + } + ] + } + ], + "dispenseRequest": { + "extension": [ + { + "url": "https://fhir.nhs.uk/StructureDefinition/Extension-DM-PerformerSiteType", + "valueCoding": { + "system": "https://fhir.nhs.uk/CodeSystem/dispensing-site-preference", + "code": "0004" + } + } + ], + "quantity": { + "value": 1, + "unit": "pre-filled disposable injection", + "system": "http://snomed.info/sct", + "code": "3318611000001103" + } + }, + "substitution": { + "allowedBoolean": false + } + } + }, + { + "fullUrl": "urn:uuid:78d3c2eb-009e-4ec8-a358-b042954aa9b2", + "resource": { + "resourceType": "Patient", + "id": "78d3c2eb-009e-4ec8-a358-b042954aa9b2", + "identifier": [ + { + "system": "https://fhir.nhs.uk/Id/nhs-number", + "value": "9449305552" + } + ], + "name": [ + { + "use": "usual", + "family": "DAVIS", + "given": [ + "JANE" + ], + "prefix": [ + "MRS" + ] + } + ], + "gender": "female", + "birthDate": "1999-11-25", + "address": [ + { + "use": "home", + "line": [ + "53 Harrogate Road", + "Chapel Allerton", + "Leeds" + ], + "postalCode": "LS7 3PY" + } + ], + "generalPractitioner": [ + { + "identifier": { + "system": "https://fhir.nhs.uk/Id/ods-organization-code", + "value": "B81001" + } + } + ] + } + }, + { + "fullUrl": "urn:uuid:a8c85454-f8cb-498d-9629-78e2cb5fa47a", + "resource": { + "resourceType": "Practitioner", + "id": "a8c85454-f8cb-498d-9629-78e2cb5fa47a", + "identifier": [ + { + "system": "https://fhir.nhs.uk/Id/sds-user-id", + "value": "555086689106" + }, + { + "system": "https://fhir.hl7.org.uk/Id/gmc-number", + "value": "6150129" + } + ], + "name": [ + { + "family": "FIFTYSEVEN", + "given": [ + "RANDOM" + ], + "prefix": [ + "MR" + ] + } + ] + } + }, + { + "fullUrl": "urn:uuid:56166769-c1c4-4d07-afa8-132b5dfca666", + "resource": { + "resourceType": "PractitionerRole", + "id": "56166769-c1c4-4d07-afa8-132b5dfca666", + "identifier": [ + { + "system": "https://fhir.nhs.uk/Id/sds-role-profile-id", + "value": "601986680555" + } + ], + "practitioner": { + "reference": "urn:uuid:a8c85454-f8cb-498d-9629-78e2cb5fa47a" + }, + "organization": { + "reference": "urn:uuid:3b4b03a5-52ba-4ba6-9b82-70350aa109d8" + }, + "code": [ + { + "coding": [ + { + "system": "https://fhir.nhs.uk/CodeSystem/NHSDigital-SDS-JobRoleCode", + "code": "S8000:G8000:R8000", + "display": "Clinical Practitioner Access Role " + } + ] + } + ], + "telecom": [ + { + "system": "phone", + "value": "01234567890", + "use": "work" + } + ] + } + }, + { + "fullUrl": "urn:uuid:3b4b03a5-52ba-4ba6-9b82-70350aa109d8", + "resource": { + "resourceType": "Organization", + "id": "3b4b03a5-52ba-4ba6-9b82-70350aa109d8", + "identifier": [ + { + "system": "https://fhir.nhs.uk/Id/ods-organization-code", + "value": "RRERP" + } + ], + "name": "PRESCRIBER 240", + "address": [ { + "line": [ + "SEVERN FIELDS MEDICAL PRACTICE", + "SUNDORNE ROAD", + "SHREWSBURY" + ], + "postalCode": "SY1 4RQ" + } + ], + "telecom": [ + { + "system": "phone", + "value": "01233123123", + "use": "work" + } + ], + "partOf": { + "identifier": { + "system": "https://fhir.nhs.uk/Id/ods-organization-code", + "value": "RRE" + }, + "display": "MIDLANDS PARTNERSHIP NHS FOUNDATION TRUST" + } + } + } + ] +} diff --git a/src/test/resources/examples/full_examples/secondary-care/community/acute/no-nominated-pharmacy/clinical-practitioner/1-Prepare-Response-200_OK.json b/src/test/resources/examples/full_examples/secondary-care/community/acute/no-nominated-pharmacy/clinical-practitioner/1-Prepare-Response-200_OK.json new file mode 100644 index 00000000..075e6118 --- /dev/null +++ b/src/test/resources/examples/full_examples/secondary-care/community/acute/no-nominated-pharmacy/clinical-practitioner/1-Prepare-Response-200_OK.json @@ -0,0 +1,17 @@ +{ + "resourceType": "Parameters", + "parameter": [ + { + "name": "digest", + "valueString": "PFNpZ25lZEluZm8geG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvMDkveG1sZHNpZyMiPjxDYW5vbmljYWxpemF0aW9uTWV0aG9kIEFsZ29yaXRobT0iaHR0cDovL3d3dy53My5vcmcvMjAwMS8xMC94bWwtZXhjLWMxNG4jIj48L0Nhbm9uaWNhbGl6YXRpb25NZXRob2Q+PFNpZ25hdHVyZU1ldGhvZCBBbGdvcml0aG09Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvMDkveG1sZHNpZyNyc2Etc2hhMSI+PC9TaWduYXR1cmVNZXRob2Q+PFJlZmVyZW5jZT48VHJhbnNmb3Jtcz48VHJhbnNmb3JtIEFsZ29yaXRobT0iaHR0cDovL3d3dy53My5vcmcvMjAwMS8xMC94bWwtZXhjLWMxNG4jIj48L1RyYW5zZm9ybT48L1RyYW5zZm9ybXM+PERpZ2VzdE1ldGhvZCBBbGdvcml0aG09Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvMDkveG1sZHNpZyNzaGExIj48L0RpZ2VzdE1ldGhvZD48RGlnZXN0VmFsdWU+NkUwUjk4dzJtakFXcEhzdDlQNEtVdndQNnFrPTwvRGlnZXN0VmFsdWU+PC9SZWZlcmVuY2U+PC9TaWduZWRJbmZvPg==" + }, + { + "name": "timestamp", + "valueString": "2022-10-25T10:24:34+00:00" + }, + { + "name": "algorithm", + "valueString": "RS1" + } + ] +} diff --git a/src/test/resources/examples/full_examples/secondary-care/community/acute/no-nominated-pharmacy/clinical-practitioner/1-Process-Request-Send-200_OK.json b/src/test/resources/examples/full_examples/secondary-care/community/acute/no-nominated-pharmacy/clinical-practitioner/1-Process-Request-Send-200_OK.json new file mode 100644 index 00000000..df5ec426 --- /dev/null +++ b/src/test/resources/examples/full_examples/secondary-care/community/acute/no-nominated-pharmacy/clinical-practitioner/1-Process-Request-Send-200_OK.json @@ -0,0 +1,375 @@ +{ + "resourceType": "Bundle", + "id": "0a1fd9ef-a3d5-4e95-84cd-552070a03086", + "identifier": { + "system": "https://tools.ietf.org/html/rfc4122", + "value": "1f829687-73de-48a6-84f4-78f094f0ba10" + }, + "type": "message", + "entry": [ + { + "fullUrl": "urn:uuid:0a1fd9ef-a3d5-4e95-84cd-552070a03086", + "resource": { + "resourceType": "MessageHeader", + "id": "0a1fd9ef-a3d5-4e95-84cd-552070a03086", + "eventCoding": { + "system": "https://fhir.nhs.uk/CodeSystem/message-event", + "code": "prescription-order", + "display": "Prescription Order" + }, + "sender": { + "identifier": { + "system": "https://fhir.nhs.uk/Id/ods-organization-code", + "value": "RBA" + }, + "reference": "urn:uuid:56166769-c1c4-4d07-afa8-132b5dfca666", + "display": "BOOTH|PHIL" + }, + "source": { + "endpoint": "https://directory.spineservices.nhs.uk/STU3/Organization/RBA" + }, + "destination": [ + { + "endpoint": "https://directory.spineservices.nhs.uk/STU3/Organization/FH542", + "receiver": { + "identifier": { + "system": "https://fhir.nhs.uk/Id/ods-organization-code", + "value": "FH542" + } + } + } + ], + "focus": [ + { + "reference": "urn:uuid:78d3c2eb-009e-4ec8-a358-b042954aa9b2" + }, + { + "reference": "urn:uuid:a54219b8-f741-4c47-b662-e4f8dfa49ab6" + } + ] + } + }, + { + "fullUrl": "urn:uuid:a54219b8-f741-4c47-b662-e4f8dfa49ab6", + "resource": { + "resourceType": "MedicationRequest", + "id": "a54219b8-f741-4c47-b662-e4f8dfa49ab6", + "extension": [ + { + "url": "https://fhir.nhs.uk/StructureDefinition/Extension-DM-PrescriptionType", + "valueCoding": { + "system": "https://fhir.nhs.uk/CodeSystem/prescription-type", + "code": "1001", + "display": "Outpatient Community Prescriber - Medical Prescriber" + } + } + ], + "identifier": [ + { + "system": "https://fhir.nhs.uk/Id/prescription-order-item-number", + "value": "c7f5c532-6835-4907-b83e-dc46f758129c" + } + ], + "status": "active", + "intent": "order", + "category": [ + { + "coding": [ + { + "system": "http://terminology.hl7.org/CodeSystem/medicationrequest-category", + "code": "outpatient", + "display": "Outpatient" + } + ] + } + ], + "medicationCodeableConcept": { + "coding": [ + { + "system": "http://snomed.info/sct", + "code": "15517911000001104", + "display": "Methotrexate 10mg/0.2ml solution for injection pre-filled syringes" + } + ] + }, + "subject": { + "reference": "urn:uuid:78d3c2eb-009e-4ec8-a358-b042954aa9b2" + }, + "requester": { + "reference": "urn:uuid:56166769-c1c4-4d07-afa8-132b5dfca666" + }, + "groupIdentifier": { + "extension": [ + { + "url": "https://fhir.nhs.uk/StructureDefinition/Extension-DM-PrescriptionId", + "valueIdentifier": { + "system": "https://fhir.nhs.uk/Id/prescription", + "value": "1270de18-f486-4ae4-8f00-e92dd9ed6cda" + } + } + ], + "system": "https://fhir.nhs.uk/Id/prescription-order-number", + "value": "B61BA2-0RRERP-F2ACDV" + }, + "courseOfTherapyType": { + "coding": [ + { + "system": "http://terminology.hl7.org/CodeSystem/medicationrequest-course-of-therapy", + "code": "acute", + "display": "Short course (acute) therapy" + } + ] + }, + "dosageInstruction": [ + { + "text": "Inject 10 milligram - 5 times a day - Subcutaneous route - for 10 days", + "timing": { + "repeat": { + "frequency": 5, + "period": 1, + "periodUnit": "d", + "boundsDuration": { + "value": 10, + "unit": "day", + "system": "http://unitsofmeasure.org", + "code": "d" + } + } + }, + "method": { + "coding": [ + { + "system": "http://snomed.info/sct", + "code": "422145002", + "display": "Inject" + } + ] + }, + "route": { + "coding": [ + { + "system": "http://snomed.info/sct", + "code": "34206005", + "display": "Subcutaneous route" + } + ] + }, + "doseAndRate": [ + { + "doseQuantity": { + "value": 10, + "unit": "milligram", + "system": "http://unitsofmeasure.org", + "code": "mg" + } + } + ] + } + ], + "dispenseRequest": { + "extension": [ + { + "url": "https://fhir.nhs.uk/StructureDefinition/Extension-DM-PerformerSiteType", + "valueCoding": { + "system": "https://fhir.nhs.uk/CodeSystem/dispensing-site-preference", + "code": "0004" + } + } + ], + "quantity": { + "value": 1, + "unit": "pre-filled disposable injection", + "system": "http://snomed.info/sct", + "code": "3318611000001103" + } + }, + "substitution": { + "allowedBoolean": false + } + } + }, + { + "fullUrl": "urn:uuid:78d3c2eb-009e-4ec8-a358-b042954aa9b2", + "resource": { + "resourceType": "Patient", + "id": "78d3c2eb-009e-4ec8-a358-b042954aa9b2", + "identifier": [ + { + "system": "https://fhir.nhs.uk/Id/nhs-number", + "value": "9449305552" + } + ], + "name": [ + { + "use": "usual", + "family": "DAVIS", + "given": [ + "JANE" + ], + "prefix": [ + "MRS" + ] + } + ], + "gender": "female", + "birthDate": "1999-11-25", + "address": [ + { + "use": "home", + "line": [ + "53 Harrogate Road", + "Chapel Allerton", + "Leeds" + ], + "postalCode": "LS7 3PY" + } + ], + "generalPractitioner": [ + { + "identifier": { + "system": "https://fhir.nhs.uk/Id/ods-organization-code", + "value": "B81001" + } + } + ] + } + }, + { + "fullUrl": "urn:uuid:a8c85454-f8cb-498d-9629-78e2cb5fa47a", + "resource": { + "resourceType": "Practitioner", + "id": "a8c85454-f8cb-498d-9629-78e2cb5fa47a", + "identifier": [ + { + "system": "https://fhir.nhs.uk/Id/sds-user-id", + "value": "555086689106" + }, + { + "system": "https://fhir.hl7.org.uk/Id/gmc-number", + "value": "6150129" + } + ], + "name": [ + { + "family": "FIFTYSEVEN", + "given": [ + "RANDOM" + ], + "prefix": [ + "MR" + ] + } + ] + } + }, + { + "fullUrl": "urn:uuid:56166769-c1c4-4d07-afa8-132b5dfca666", + "resource": { + "resourceType": "PractitionerRole", + "id": "56166769-c1c4-4d07-afa8-132b5dfca666", + "identifier": [ + { + "system": "https://fhir.nhs.uk/Id/sds-role-profile-id", + "value": "601986680555" + } + ], + "practitioner": { + "reference": "urn:uuid:a8c85454-f8cb-498d-9629-78e2cb5fa47a" + }, + "organization": { + "reference": "urn:uuid:3b4b03a5-52ba-4ba6-9b82-70350aa109d8" + }, + "code": [ + { + "coding": [ + { + "system": "https://fhir.nhs.uk/CodeSystem/NHSDigital-SDS-JobRoleCode", + "code": "S8000:G8000:R8000", + "display": "Clinical Practitioner Access Role " + } + ] + } + ], + "telecom": [ + { + "system": "phone", + "value": "01234567890", + "use": "work" + } + ] + } + }, + { + "fullUrl": "urn:uuid:3b4b03a5-52ba-4ba6-9b82-70350aa109d8", + "resource": { + "resourceType": "Organization", + "id": "3b4b03a5-52ba-4ba6-9b82-70350aa109d8", + "identifier": [ + { + "system": "https://fhir.nhs.uk/Id/ods-organization-code", + "value": "RRERP" + } + ], + "name": "PRESCRIBER 240", + "address": [ { + "line": [ + "SEVERN FIELDS MEDICAL PRACTICE", + "SUNDORNE ROAD", + "SHREWSBURY" + ], + "postalCode": "SY1 4RQ" + } + ], + "telecom": [ + { + "system": "phone", + "value": "01233123123", + "use": "work" + } + ], + "partOf": { + "identifier": { + "system": "https://fhir.nhs.uk/Id/ods-organization-code", + "value": "RRE" + }, + "display": "MIDLANDS PARTNERSHIP NHS FOUNDATION TRUST" + } + } + }, + { + "fullUrl": "urn:uuid:28828c55-8fa7-42d7-916f-fcf076e0c10e", + "resource": { + "resourceType": "Provenance", + "id": "28828c55-8fa7-42d7-916f-fcf076e0c10e", + "target": [ + { + "reference": "urn:uuid:a54219b8-f741-4c47-b662-e4f8dfa49ab6" + } + ], + "recorded": "2021-02-11T16:35:38+00:00", + "agent": [ + { + "who": { + "reference": "urn:uuid:56166769-c1c4-4d07-afa8-132b5dfca666" + } + } + ], + "signature": [ + { + "type": [ + { + "system": "urn:iso-astm:E1762-95:2013", + "code": "1.2.840.10065.1.12.1.1" + } + ], + "when": "2022-02-28T14:36:47+00:00", + "who": { + "reference": "urn:uuid:56166769-c1c4-4d07-afa8-132b5dfca666" + }, + "data": "PFNpZ25hdHVyZSB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC8wOS94bWxkc2lnIyI+CiAgICAgICAgICAgICA8U2lnbmVkSW5mbz48Q2Fub25pY2FsaXphdGlvbk1ldGhvZCBBbGdvcml0aG09Imh0dHA6Ly93d3cudzMub3JnLzIwMDEvMTAveG1sLWV4Yy1jMTRuIyI+PC9DYW5vbmljYWxpemF0aW9uTWV0aG9kPjxTaWduYXR1cmVNZXRob2QgQWxnb3JpdGhtPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwLzA5L3htbGRzaWcjcnNhLXNoYTEiPjwvU2lnbmF0dXJlTWV0aG9kPjxSZWZlcmVuY2U+PFRyYW5zZm9ybXM+PFRyYW5zZm9ybSBBbGdvcml0aG09Imh0dHA6Ly93d3cudzMub3JnLzIwMDEvMTAveG1sLWV4Yy1jMTRuIyI+PC9UcmFuc2Zvcm0+PC9UcmFuc2Zvcm1zPjxEaWdlc3RNZXRob2QgQWxnb3JpdGhtPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwLzA5L3htbGRzaWcjc2hhMSI+PC9EaWdlc3RNZXRob2Q+PERpZ2VzdFZhbHVlPkVnRG9raEFvYjl2MjNybWx1aktRWU1oSHpJRT08L0RpZ2VzdFZhbHVlPjwvUmVmZXJlbmNlPjwvU2lnbmVkSW5mbz4KICAgICAgICAgICAgIDxTaWduYXR1cmVWYWx1ZT48L1NpZ25hdHVyZVZhbHVlPgogICAgICAgICAgICAgPEtleUluZm8+PFg1MDlEYXRhPjxYNTA5Q2VydGlmaWNhdGU+PC9YNTA5Q2VydGlmaWNhdGU+PC9YNTA5RGF0YT48L0tleUluZm8+CiAgICAgICAgICAgPC9TaWduYXR1cmU+" + } + ] + } + } + ] +} diff --git a/src/test/resources/examples/full_examples/secondary-care/community/acute/nominated-pharmacy/clinical-practitioner/1-Prepare-Request-200_OK.json b/src/test/resources/examples/full_examples/secondary-care/community/acute/nominated-pharmacy/clinical-practitioner/1-Prepare-Request-200_OK.json new file mode 100644 index 00000000..c1f54d91 --- /dev/null +++ b/src/test/resources/examples/full_examples/secondary-care/community/acute/nominated-pharmacy/clinical-practitioner/1-Prepare-Request-200_OK.json @@ -0,0 +1,347 @@ +{ + "resourceType": "Bundle", + "id": "0a1fd9ef-a3d5-4e95-84cd-552070a03086", + "identifier": { + "system": "https://tools.ietf.org/html/rfc4122", + "value": "c7cb1c13-6129-468b-899b-091a71d86d78" + }, + "type": "message", + "entry": [ + { + "fullUrl": "urn:uuid:0a1fd9ef-a3d5-4e95-84cd-552070a03086", + "resource": { + "resourceType": "MessageHeader", + "id": "0a1fd9ef-a3d5-4e95-84cd-552070a03086", + "eventCoding": { + "system": "https://fhir.nhs.uk/CodeSystem/message-event", + "code": "prescription-order", + "display": "Prescription Order" + }, + "sender": { + "identifier": { + "system": "https://fhir.nhs.uk/Id/ods-organization-code", + "value": "RBA" + }, + "reference": "urn:uuid:56166769-c1c4-4d07-afa8-132b5dfca666", + "display": "BOOTH|PHIL" + }, + "source": { + "endpoint": "https://directory.spineservices.nhs.uk/STU3/Organization/RBA" + }, + "destination": [ + { + "endpoint": "https://directory.spineservices.nhs.uk/STU3/Organization/FH542", + "receiver": { + "identifier": { + "system": "https://fhir.nhs.uk/Id/ods-organization-code", + "value": "FH542" + } + } + } + ], + "focus": [ + { + "reference": "urn:uuid:78d3c2eb-009e-4ec8-a358-b042954aa9b2" + }, + { + "reference": "urn:uuid:a54219b8-f741-4c47-b662-e4f8dfa49ab6" + } + ] + } + }, + { + "fullUrl": "urn:uuid:a54219b8-f741-4c47-b662-e4f8dfa49ab6", + "resource": { + "resourceType": "MedicationRequest", + "id": "a54219b8-f741-4c47-b662-e4f8dfa49ab6", + "extension": [ + { + "url": "https://fhir.nhs.uk/StructureDefinition/Extension-DM-PrescriptionType", + "valueCoding": { + "system": "https://fhir.nhs.uk/CodeSystem/prescription-type", + "code": "1001", + "display": "Outpatient Community Prescriber - Medical Prescriber" + } + } + ], + "identifier": [ + { + "system": "https://fhir.nhs.uk/Id/prescription-order-item-number", + "value": "dcc7c70c-bb4f-46a8-93ca-1f518611b798" + } + ], + "status": "active", + "intent": "order", + "category": [ + { + "coding": [ + { + "system": "http://terminology.hl7.org/CodeSystem/medicationrequest-category", + "code": "outpatient", + "display": "Outpatient" + } + ] + } + ], + "medicationCodeableConcept": { + "coding": [ + { + "system": "http://snomed.info/sct", + "code": "15517911000001104", + "display": "Methotrexate 10mg/0.2ml solution for injection pre-filled syringes" + } + ] + }, + "subject": { + "reference": "urn:uuid:78d3c2eb-009e-4ec8-a358-b042954aa9b2" + }, + "requester": { + "reference": "urn:uuid:56166769-c1c4-4d07-afa8-132b5dfca666" + }, + "groupIdentifier": { + "extension": [ + { + "url": "https://fhir.nhs.uk/StructureDefinition/Extension-DM-PrescriptionId", + "valueIdentifier": { + "system": "https://fhir.nhs.uk/Id/prescription", + "value": "7e27431e-367c-4bee-b9d7-78619e4b7d2d" + } + } + ], + "system": "https://fhir.nhs.uk/Id/prescription-order-number", + "value": "1A7D94-0RRERP-549310" + }, + "courseOfTherapyType": { + "coding": [ + { + "system": "http://terminology.hl7.org/CodeSystem/medicationrequest-course-of-therapy", + "code": "acute", + "display": "Short course (acute) therapy" + } + ] + }, + "dosageInstruction": [ + { + "text": "Inject 10 milligram - 5 times a day - Subcutaneous route - for 10 days", + "timing": { + "repeat": { + "frequency": 5, + "period": 1, + "periodUnit": "d", + "boundsDuration": { + "value": 10, + "unit": "day", + "system": "http://unitsofmeasure.org", + "code": "d" + } + } + }, + "method": { + "coding": [ + { + "system": "http://snomed.info/sct", + "code": "422145002", + "display": "Inject" + } + ] + }, + "route": { + "coding": [ + { + "system": "http://snomed.info/sct", + "code": "34206005", + "display": "Subcutaneous route" + } + ] + }, + "doseAndRate": [ + { + "doseQuantity": { + "value": 10, + "unit": "milligram", + "system": "http://unitsofmeasure.org", + "code": "mg" + } + } + ] + } + ], + "dispenseRequest": { + "extension": [ + { + "url": "https://fhir.nhs.uk/StructureDefinition/Extension-DM-PerformerSiteType", + "valueCoding": { + "system": "https://fhir.nhs.uk/CodeSystem/dispensing-site-preference", + "code": "P1" + } + } + ], + "quantity": { + "value": 1, + "unit": "pre-filled disposable injection", + "system": "http://snomed.info/sct", + "code": "3318611000001103" + }, + "performer": { + "identifier": { + "system": "https://fhir.nhs.uk/Id/ods-organization-code", + "value": "FH542" + } + } + }, + "substitution": { + "allowedBoolean": false + } + } + }, + { + "fullUrl": "urn:uuid:78d3c2eb-009e-4ec8-a358-b042954aa9b2", + "resource": { + "resourceType": "Patient", + "id": "78d3c2eb-009e-4ec8-a358-b042954aa9b2", + "identifier": [ + { + "system": "https://fhir.nhs.uk/Id/nhs-number", + "value": "9449304122" + } + ], + "name": [ + { + "use": "usual", + "family": "FORREST", + "given": [ + "LILAC", + "EMERSON" + ], + "prefix": [ + "MS" + ] + } + ], + "gender": "female", + "birthDate": "2011-03-30", + "address": [ + { + "use": "home", + "line": [ + "10 HAWKHURST", + "COBHAM", + "SURREY" + ], + "postalCode": "KT11 2QX" + } + ], + "generalPractitioner": [ + { + "identifier": { + "system": "https://fhir.nhs.uk/Id/ods-organization-code", + "value": "B81001" + } + } + ] + } + }, + { + "fullUrl": "urn:uuid:a8c85454-f8cb-498d-9629-78e2cb5fa47a", + "resource": { + "resourceType": "Practitioner", + "id": "a8c85454-f8cb-498d-9629-78e2cb5fa47a", + "identifier": [ + { + "system": "https://fhir.nhs.uk/Id/sds-user-id", + "value": "555086689106" + }, + { + "system": "https://fhir.hl7.org.uk/Id/gmc-number", + "value": "6150129" + } + ], + "name": [ + { + "family": "FIFTYSEVEN", + "given": [ + "RANDOM" + ], + "prefix": [ + "MR" + ] + } + ] + } + }, + { + "fullUrl": "urn:uuid:56166769-c1c4-4d07-afa8-132b5dfca666", + "resource": { + "resourceType": "PractitionerRole", + "id": "56166769-c1c4-4d07-afa8-132b5dfca666", + "identifier": [ + { + "system": "https://fhir.nhs.uk/Id/sds-role-profile-id", + "value": "601986680555" + } + ], + "practitioner": { + "reference": "urn:uuid:a8c85454-f8cb-498d-9629-78e2cb5fa47a" + }, + "organization": { + "reference": "urn:uuid:3b4b03a5-52ba-4ba6-9b82-70350aa109d8" + }, + "code": [ + { + "coding": [ + { + "system": "https://fhir.nhs.uk/CodeSystem/NHSDigital-SDS-JobRoleCode", + "code": "S8000:G8000:R8000", + "display": "Clinical Practitioner Access Role " + } + ] + } + ], + "telecom": [ + { + "system": "phone", + "value": "01234567890", + "use": "work" + } + ] + } + }, + { + "fullUrl": "urn:uuid:3b4b03a5-52ba-4ba6-9b82-70350aa109d8", + "resource": { + "resourceType": "Organization", + "id": "3b4b03a5-52ba-4ba6-9b82-70350aa109d8", + "identifier": [ + { + "system": "https://fhir.nhs.uk/Id/ods-organization-code", + "value": "RRERP" + } + ], + "name": "PRESCRIBER 240", + "address": [ { + "line": [ + "SEVERN FIELDS MEDICAL PRACTICE", + "SUNDORNE ROAD", + "SHREWSBURY" + ], + "postalCode": "SY1 4RQ" + } + ], + "telecom": [ + { + "system": "phone", + "value": "01233123123", + "use": "work" + } + ], + "partOf": { + "identifier": { + "system": "https://fhir.nhs.uk/Id/ods-organization-code", + "value": "RRE" + }, + "display": "MIDLANDS PARTNERSHIP NHS FOUNDATION TRUST" + } + } + } + ] +} diff --git a/src/test/resources/examples/full_examples/secondary-care/community/acute/nominated-pharmacy/clinical-practitioner/1-Prepare-Response-200_OK.json b/src/test/resources/examples/full_examples/secondary-care/community/acute/nominated-pharmacy/clinical-practitioner/1-Prepare-Response-200_OK.json new file mode 100644 index 00000000..7b05a36c --- /dev/null +++ b/src/test/resources/examples/full_examples/secondary-care/community/acute/nominated-pharmacy/clinical-practitioner/1-Prepare-Response-200_OK.json @@ -0,0 +1,17 @@ +{ + "resourceType": "Parameters", + "parameter": [ + { + "name": "digest", + "valueString": "PFNpZ25lZEluZm8geG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvMDkveG1sZHNpZyMiPjxDYW5vbmljYWxpemF0aW9uTWV0aG9kIEFsZ29yaXRobT0iaHR0cDovL3d3dy53My5vcmcvMjAwMS8xMC94bWwtZXhjLWMxNG4jIj48L0Nhbm9uaWNhbGl6YXRpb25NZXRob2Q+PFNpZ25hdHVyZU1ldGhvZCBBbGdvcml0aG09Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvMDkveG1sZHNpZyNyc2Etc2hhMSI+PC9TaWduYXR1cmVNZXRob2Q+PFJlZmVyZW5jZT48VHJhbnNmb3Jtcz48VHJhbnNmb3JtIEFsZ29yaXRobT0iaHR0cDovL3d3dy53My5vcmcvMjAwMS8xMC94bWwtZXhjLWMxNG4jIj48L1RyYW5zZm9ybT48L1RyYW5zZm9ybXM+PERpZ2VzdE1ldGhvZCBBbGdvcml0aG09Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvMDkveG1sZHNpZyNzaGExIj48L0RpZ2VzdE1ldGhvZD48RGlnZXN0VmFsdWU+a0h1czhKS3JHTG02UGxwWjhTcUhyQSs5YnhJPTwvRGlnZXN0VmFsdWU+PC9SZWZlcmVuY2U+PC9TaWduZWRJbmZvPg==" + }, + { + "name": "timestamp", + "valueString": "2022-10-25T10:24:34+00:00" + }, + { + "name": "algorithm", + "valueString": "RS1" + } + ] +} diff --git a/src/test/resources/examples/full_examples/secondary-care/community/acute/nominated-pharmacy/clinical-practitioner/1-Process-Request-Cancel-200_OK.json b/src/test/resources/examples/full_examples/secondary-care/community/acute/nominated-pharmacy/clinical-practitioner/1-Process-Request-Cancel-200_OK.json new file mode 100644 index 00000000..11ed1944 --- /dev/null +++ b/src/test/resources/examples/full_examples/secondary-care/community/acute/nominated-pharmacy/clinical-practitioner/1-Process-Request-Cancel-200_OK.json @@ -0,0 +1,404 @@ +{ + "resourceType": "Bundle", + "id": "0a1fd9ef-a3d5-4e95-84cd-552070a03086", + "identifier": { + "system": "https://tools.ietf.org/html/rfc4122", + "value": "78b0df32-e47a-4b94-9f68-e0a3d2825696" + }, + "type": "message", + "entry": [ + { + "fullUrl": "urn:uuid:0a1fd9ef-a3d5-4e95-84cd-552070a03086", + "resource": { + "resourceType": "MessageHeader", + "id": "0a1fd9ef-a3d5-4e95-84cd-552070a03086", + "eventCoding": { + "system": "https://fhir.nhs.uk/CodeSystem/message-event", + "code": "prescription-order-update", + "display": "Prescription Order Update" + }, + "sender": { + "identifier": { + "system": "https://fhir.nhs.uk/Id/ods-organization-code", + "value": "RBA" + }, + "reference": "urn:uuid:56166769-c1c4-4d07-afa8-132b5dfca666", + "display": "BOOTH|PHIL" + }, + "source": { + "endpoint": "https://directory.spineservices.nhs.uk/STU3/Organization/RBA" + }, + "destination": [ + { + "endpoint": "https://directory.spineservices.nhs.uk/STU3/Organization/FH542", + "receiver": { + "identifier": { + "system": "https://fhir.nhs.uk/Id/ods-organization-code", + "value": "FH542" + } + } + } + ], + "focus": [] + } + }, + { + "fullUrl": "urn:uuid:a54219b8-f741-4c47-b662-e4f8dfa49ab6", + "resource": { + "resourceType": "MedicationRequest", + "id": "a54219b8-f741-4c47-b662-e4f8dfa49ab6", + "extension": [ + { + "url": "https://fhir.nhs.uk/StructureDefinition/Extension-DM-PrescriptionType", + "valueCoding": { + "system": "https://fhir.nhs.uk/CodeSystem/prescription-type", + "code": "1001", + "display": "Outpatient Community Prescriber - Medical Prescriber" + } + }, + { + "url": "https://fhir.nhs.uk/StructureDefinition/Extension-DM-ResponsiblePractitioner", + "valueReference": { + "reference": "urn:uuid:7202dc57-9ac4-4666-a1c4-068a940c7a33" + } + } + ], + "identifier": [ + { + "system": "https://fhir.nhs.uk/Id/prescription-order-item-number", + "value": "dcc7c70c-bb4f-46a8-93ca-1f518611b798" + } + ], + "status": "cancelled", + "intent": "order", + "category": [ + { + "coding": [ + { + "system": "http://terminology.hl7.org/CodeSystem/medicationrequest-category", + "code": "outpatient", + "display": "Outpatient" + } + ] + } + ], + "medicationCodeableConcept": { + "coding": [ + { + "system": "http://snomed.info/sct", + "code": "15517911000001104", + "display": "Methotrexate 10mg/0.2ml solution for injection pre-filled syringes" + } + ] + }, + "subject": { + "reference": "urn:uuid:78d3c2eb-009e-4ec8-a358-b042954aa9b2" + }, + "requester": { + "reference": "urn:uuid:56166769-c1c4-4d07-afa8-132b5dfca666" + }, + "groupIdentifier": { + "extension": [ + { + "url": "https://fhir.nhs.uk/StructureDefinition/Extension-DM-PrescriptionId", + "valueIdentifier": { + "system": "https://fhir.nhs.uk/Id/prescription", + "value": "7e27431e-367c-4bee-b9d7-78619e4b7d2d" + } + } + ], + "system": "https://fhir.nhs.uk/Id/prescription-order-number", + "value": "1A7D94-0RRERP-549310" + }, + "courseOfTherapyType": { + "coding": [ + { + "system": "http://terminology.hl7.org/CodeSystem/medicationrequest-course-of-therapy", + "code": "acute", + "display": "Short course (acute) therapy" + } + ] + }, + "dosageInstruction": [ + { + "text": "Inject 10 milligram - 5 times a day - Subcutaneous route - for 10 days", + "timing": { + "repeat": { + "frequency": 5, + "period": 1, + "periodUnit": "d", + "boundsDuration": { + "value": 10, + "unit": "day", + "system": "http://unitsofmeasure.org", + "code": "d" + } + } + }, + "method": { + "coding": [ + { + "system": "http://snomed.info/sct", + "code": "422145002", + "display": "Inject" + } + ] + }, + "route": { + "coding": [ + { + "system": "http://snomed.info/sct", + "code": "34206005", + "display": "Subcutaneous route" + } + ] + }, + "doseAndRate": [ + { + "doseQuantity": { + "value": 10, + "unit": "milligram", + "system": "http://unitsofmeasure.org", + "code": "mg" + } + } + ] + } + ], + "dispenseRequest": { + "extension": [ + { + "url": "https://fhir.nhs.uk/StructureDefinition/Extension-DM-PerformerSiteType", + "valueCoding": { + "system": "https://fhir.nhs.uk/CodeSystem/dispensing-site-preference", + "code": "P1" + } + } + ], + "quantity": { + "value": 1, + "unit": "pre-filled disposable injection", + "system": "http://snomed.info/sct", + "code": "3318611000001103" + }, + "performer": { + "identifier": { + "system": "https://fhir.nhs.uk/Id/ods-organization-code", + "value": "FH542" + } + } + }, + "substitution": { + "allowedBoolean": false + }, + "statusReason": { + "coding": [ + { + "system": "https://fhir.nhs.uk/CodeSystem/medicationrequest-status-reason", + "code": "0005", + "display": "At the Patient's request" + } + ] + } + } + }, + { + "fullUrl": "urn:uuid:78d3c2eb-009e-4ec8-a358-b042954aa9b2", + "resource": { + "resourceType": "Patient", + "id": "78d3c2eb-009e-4ec8-a358-b042954aa9b2", + "identifier": [ + { + "system": "https://fhir.nhs.uk/Id/nhs-number", + "value": "9449304122" + } + ], + "name": [ + { + "use": "usual", + "family": "FORREST", + "given": ["LILAC", "EMERSON"], + "prefix": ["MS"] + } + ], + "gender": "female", + "birthDate": "2011-03-30", + "address": [ + { + "use": "home", + "line": ["10 HAWKHURST", "COBHAM", "SURREY"], + "postalCode": "KT11 2QX" + } + ], + "generalPractitioner": [ + { + "identifier": { + "system": "https://fhir.nhs.uk/Id/ods-organization-code", + "value": "B81001" + } + } + ] + } + }, + { + "fullUrl": "urn:uuid:a8c85454-f8cb-498d-9629-78e2cb5fa47a", + "resource": { + "resourceType": "Practitioner", + "id": "a8c85454-f8cb-498d-9629-78e2cb5fa47a", + "identifier": [ + { + "system": "https://fhir.nhs.uk/Id/sds-user-id", + "value": "555086689106" + }, + { + "system": "https://fhir.hl7.org.uk/Id/gmc-number", + "value": "6150129" + } + ], + "name": [ + { + "family": "FIFTYSEVEN", + "given": ["RANDOM"], + "prefix": ["MR"] + } + ] + } + }, + { + "fullUrl": "urn:uuid:56166769-c1c4-4d07-afa8-132b5dfca666", + "resource": { + "resourceType": "PractitionerRole", + "id": "56166769-c1c4-4d07-afa8-132b5dfca666", + "identifier": [ + { + "system": "https://fhir.nhs.uk/Id/sds-role-profile-id", + "value": "601986680555" + } + ], + "practitioner": { + "reference": "urn:uuid:a8c85454-f8cb-498d-9629-78e2cb5fa47a" + }, + "organization": { + "reference": "urn:uuid:3b4b03a5-52ba-4ba6-9b82-70350aa109d8" + }, + "code": [ + { + "coding": [ + { + "system": "https://fhir.nhs.uk/CodeSystem/NHSDigital-SDS-JobRoleCode", + "code": "S8000:G8000:R8000", + "display": "Clinical Practitioner Access Role " + } + ] + } + ], + "telecom": [ + { + "system": "phone", + "value": "01234567890", + "use": "work" + } + ] + } + }, + { + "fullUrl": "urn:uuid:3b4b03a5-52ba-4ba6-9b82-70350aa109d8", + "resource": { + "resourceType": "Organization", + "id": "3b4b03a5-52ba-4ba6-9b82-70350aa109d8", + "identifier": [ + { + "system": "https://fhir.nhs.uk/Id/ods-organization-code", + "value": "RRERP" + } + ], + "name": "PRESCRIBER 240", + "address": [ + { + "line": [ + "SEVERN FIELDS MEDICAL PRACTICE", + "SUNDORNE ROAD", + "SHREWSBURY" + ], + "postalCode": "SY1 4RQ" + } + ], + "telecom": [ + { + "system": "phone", + "value": "01233123123", + "use": "work" + } + ], + "partOf": { + "identifier": { + "system": "https://fhir.nhs.uk/Id/ods-organization-code", + "value": "RRE" + }, + "display": "MIDLANDS PARTNERSHIP NHS FOUNDATION TRUST" + } + } + }, + { + "fullUrl": "urn:uuid:7202dc57-9ac4-4666-a1c4-068a940c7a33", + "resource": { + "resourceType": "PractitionerRole", + "id": "56166769-c1c4-4d07-afa8-132b5dfca666", + "identifier": [ + { + "system": "https://fhir.nhs.uk/Id/sds-role-profile-id", + "value": "212304192555" + } + ], + "practitioner": { + "reference": "urn:uuid:16fdc6d9-414a-487d-8939-ddc432066c3b" + }, + "organization": { + "reference": "urn:uuid:3b4b03a5-52ba-4ba6-9b82-70350aa109d8" + }, + "code": [ + { + "coding": [ + { + "system": "https://fhir.nhs.uk/CodeSystem/NHSDigital-SDS-JobRoleCode", + "code": "S8006:G8006:R8006", + "display": "Admin - Medical Secretary Access Role" + } + ] + } + ], + "telecom": [ + { + "system": "phone", + "value": "01234567890", + "use": "work" + } + ] + } + }, + { + "fullUrl": "urn:uuid:16fdc6d9-414a-487d-8939-ddc432066c3b", + "resource": { + "resourceType": "Practitioner", + "id": "a8c85454-f8cb-498d-9629-78e2cb5fa47a", + "identifier": [ + { + "system": "https://fhir.nhs.uk/Id/sds-user-id", + "value": "555086718101" + }, + { + "system": "https://fhir.hl7.org.uk/Id/professional-code", + "value": "unknown" + } + ], + "name": [ + { + "family": "Secretary", + "given": ["Medical"], + "prefix": ["MS"] + } + ] + } + } + ] +} diff --git a/src/test/resources/examples/full_examples/secondary-care/community/acute/nominated-pharmacy/clinical-practitioner/1-Process-Request-Send-200_OK.json b/src/test/resources/examples/full_examples/secondary-care/community/acute/nominated-pharmacy/clinical-practitioner/1-Process-Request-Send-200_OK.json new file mode 100644 index 00000000..a8173c9e --- /dev/null +++ b/src/test/resources/examples/full_examples/secondary-care/community/acute/nominated-pharmacy/clinical-practitioner/1-Process-Request-Send-200_OK.json @@ -0,0 +1,382 @@ +{ + "resourceType": "Bundle", + "id": "0a1fd9ef-a3d5-4e95-84cd-552070a03086", + "identifier": { + "system": "https://tools.ietf.org/html/rfc4122", + "value": "c7cb1c13-6129-468b-899b-091a71d86d78" + }, + "type": "message", + "entry": [ + { + "fullUrl": "urn:uuid:0a1fd9ef-a3d5-4e95-84cd-552070a03086", + "resource": { + "resourceType": "MessageHeader", + "id": "0a1fd9ef-a3d5-4e95-84cd-552070a03086", + "eventCoding": { + "system": "https://fhir.nhs.uk/CodeSystem/message-event", + "code": "prescription-order", + "display": "Prescription Order" + }, + "sender": { + "identifier": { + "system": "https://fhir.nhs.uk/Id/ods-organization-code", + "value": "RBA" + }, + "reference": "urn:uuid:56166769-c1c4-4d07-afa8-132b5dfca666", + "display": "BOOTH|PHIL" + }, + "source": { + "endpoint": "https://directory.spineservices.nhs.uk/STU3/Organization/RBA" + }, + "destination": [ + { + "endpoint": "https://directory.spineservices.nhs.uk/STU3/Organization/FH542", + "receiver": { + "identifier": { + "system": "https://fhir.nhs.uk/Id/ods-organization-code", + "value": "FH542" + } + } + } + ], + "focus": [ + { + "reference": "urn:uuid:78d3c2eb-009e-4ec8-a358-b042954aa9b2" + }, + { + "reference": "urn:uuid:a54219b8-f741-4c47-b662-e4f8dfa49ab6" + } + ] + } + }, + { + "fullUrl": "urn:uuid:a54219b8-f741-4c47-b662-e4f8dfa49ab6", + "resource": { + "resourceType": "MedicationRequest", + "id": "a54219b8-f741-4c47-b662-e4f8dfa49ab6", + "extension": [ + { + "url": "https://fhir.nhs.uk/StructureDefinition/Extension-DM-PrescriptionType", + "valueCoding": { + "system": "https://fhir.nhs.uk/CodeSystem/prescription-type", + "code": "1001", + "display": "Outpatient Community Prescriber - Medical Prescriber" + } + } + ], + "identifier": [ + { + "system": "https://fhir.nhs.uk/Id/prescription-order-item-number", + "value": "dcc7c70c-bb4f-46a8-93ca-1f518611b798" + } + ], + "status": "active", + "intent": "order", + "category": [ + { + "coding": [ + { + "system": "http://terminology.hl7.org/CodeSystem/medicationrequest-category", + "code": "outpatient", + "display": "Outpatient" + } + ] + } + ], + "medicationCodeableConcept": { + "coding": [ + { + "system": "http://snomed.info/sct", + "code": "15517911000001104", + "display": "Methotrexate 10mg/0.2ml solution for injection pre-filled syringes" + } + ] + }, + "subject": { + "reference": "urn:uuid:78d3c2eb-009e-4ec8-a358-b042954aa9b2" + }, + "requester": { + "reference": "urn:uuid:56166769-c1c4-4d07-afa8-132b5dfca666" + }, + "groupIdentifier": { + "extension": [ + { + "url": "https://fhir.nhs.uk/StructureDefinition/Extension-DM-PrescriptionId", + "valueIdentifier": { + "system": "https://fhir.nhs.uk/Id/prescription", + "value": "7e27431e-367c-4bee-b9d7-78619e4b7d2d" + } + } + ], + "system": "https://fhir.nhs.uk/Id/prescription-order-number", + "value": "1A7D94-0RRERP-549310" + }, + "courseOfTherapyType": { + "coding": [ + { + "system": "http://terminology.hl7.org/CodeSystem/medicationrequest-course-of-therapy", + "code": "acute", + "display": "Short course (acute) therapy" + } + ] + }, + "dosageInstruction": [ + { + "text": "Inject 10 milligram - 5 times a day - Subcutaneous route - for 10 days", + "timing": { + "repeat": { + "frequency": 5, + "period": 1, + "periodUnit": "d", + "boundsDuration": { + "value": 10, + "unit": "day", + "system": "http://unitsofmeasure.org", + "code": "d" + } + } + }, + "method": { + "coding": [ + { + "system": "http://snomed.info/sct", + "code": "422145002", + "display": "Inject" + } + ] + }, + "route": { + "coding": [ + { + "system": "http://snomed.info/sct", + "code": "34206005", + "display": "Subcutaneous route" + } + ] + }, + "doseAndRate": [ + { + "doseQuantity": { + "value": 10, + "unit": "milligram", + "system": "http://unitsofmeasure.org", + "code": "mg" + } + } + ] + } + ], + "dispenseRequest": { + "extension": [ + { + "url": "https://fhir.nhs.uk/StructureDefinition/Extension-DM-PerformerSiteType", + "valueCoding": { + "system": "https://fhir.nhs.uk/CodeSystem/dispensing-site-preference", + "code": "P1" + } + } + ], + "quantity": { + "value": 1, + "unit": "pre-filled disposable injection", + "system": "http://snomed.info/sct", + "code": "3318611000001103" + }, + "performer": { + "identifier": { + "system": "https://fhir.nhs.uk/Id/ods-organization-code", + "value": "FH542" + } + } + }, + "substitution": { + "allowedBoolean": false + } + } + }, + { + "fullUrl": "urn:uuid:78d3c2eb-009e-4ec8-a358-b042954aa9b2", + "resource": { + "resourceType": "Patient", + "id": "78d3c2eb-009e-4ec8-a358-b042954aa9b2", + "identifier": [ + { + "system": "https://fhir.nhs.uk/Id/nhs-number", + "value": "9449304122" + } + ], + "name": [ + { + "use": "usual", + "family": "FORREST", + "given": [ + "LILAC", + "EMERSON" + ], + "prefix": [ + "MS" + ] + } + ], + "gender": "female", + "birthDate": "2011-03-30", + "address": [ + { + "use": "home", + "line": [ + "10 HAWKHURST", + "COBHAM", + "SURREY" + ], + "postalCode": "KT11 2QX" + } + ], + "generalPractitioner": [ + { + "identifier": { + "system": "https://fhir.nhs.uk/Id/ods-organization-code", + "value": "B81001" + } + } + ] + } + }, + { + "fullUrl": "urn:uuid:a8c85454-f8cb-498d-9629-78e2cb5fa47a", + "resource": { + "resourceType": "Practitioner", + "id": "a8c85454-f8cb-498d-9629-78e2cb5fa47a", + "identifier": [ + { + "system": "https://fhir.nhs.uk/Id/sds-user-id", + "value": "555086689106" + }, + { + "system": "https://fhir.hl7.org.uk/Id/gmc-number", + "value": "6150129" + } + ], + "name": [ + { + "family": "FIFTYSEVEN", + "given": [ + "RANDOM" + ], + "prefix": [ + "MR" + ] + } + ] + } + }, + { + "fullUrl": "urn:uuid:56166769-c1c4-4d07-afa8-132b5dfca666", + "resource": { + "resourceType": "PractitionerRole", + "id": "56166769-c1c4-4d07-afa8-132b5dfca666", + "identifier": [ + { + "system": "https://fhir.nhs.uk/Id/sds-role-profile-id", + "value": "601986680555" + } + ], + "practitioner": { + "reference": "urn:uuid:a8c85454-f8cb-498d-9629-78e2cb5fa47a" + }, + "organization": { + "reference": "urn:uuid:3b4b03a5-52ba-4ba6-9b82-70350aa109d8" + }, + "code": [ + { + "coding": [ + { + "system": "https://fhir.nhs.uk/CodeSystem/NHSDigital-SDS-JobRoleCode", + "code": "S8000:G8000:R8000", + "display": "Clinical Practitioner Access Role " + } + ] + } + ], + "telecom": [ + { + "system": "phone", + "value": "01234567890", + "use": "work" + } + ] + } + }, + { + "fullUrl": "urn:uuid:3b4b03a5-52ba-4ba6-9b82-70350aa109d8", + "resource": { + "resourceType": "Organization", + "id": "3b4b03a5-52ba-4ba6-9b82-70350aa109d8", + "identifier": [ + { + "system": "https://fhir.nhs.uk/Id/ods-organization-code", + "value": "RRERP" + } + ], + "name": "PRESCRIBER 240", + "address": [ { + "line": [ + "SEVERN FIELDS MEDICAL PRACTICE", + "SUNDORNE ROAD", + "SHREWSBURY" + ], + "postalCode": "SY1 4RQ" + } + ], + "telecom": [ + { + "system": "phone", + "value": "01233123123", + "use": "work" + } + ], + "partOf": { + "identifier": { + "system": "https://fhir.nhs.uk/Id/ods-organization-code", + "value": "RRE" + }, + "display": "MIDLANDS PARTNERSHIP NHS FOUNDATION TRUST" + } + } + }, + { + "fullUrl": "urn:uuid:28828c55-8fa7-42d7-916f-fcf076e0c10e", + "resource": { + "resourceType": "Provenance", + "id": "28828c55-8fa7-42d7-916f-fcf076e0c10e", + "target": [ + { + "reference": "urn:uuid:a54219b8-f741-4c47-b662-e4f8dfa49ab6" + } + ], + "recorded": "2021-02-11T16:35:38+00:00", + "agent": [ + { + "who": { + "reference": "urn:uuid:56166769-c1c4-4d07-afa8-132b5dfca666" + } + } + ], + "signature": [ + { + "type": [ + { + "system": "urn:iso-astm:E1762-95:2013", + "code": "1.2.840.10065.1.12.1.1" + } + ], + "when": "2022-02-28T14:57:09+00:00", + "who": { + "reference": "urn:uuid:56166769-c1c4-4d07-afa8-132b5dfca666" + }, + "data": "PFNpZ25hdHVyZSB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC8wOS94bWxkc2lnIyI+CiAgICAgICAgICAgICA8U2lnbmVkSW5mbz48Q2Fub25pY2FsaXphdGlvbk1ldGhvZCBBbGdvcml0aG09Imh0dHA6Ly93d3cudzMub3JnLzIwMDEvMTAveG1sLWV4Yy1jMTRuIyI+PC9DYW5vbmljYWxpemF0aW9uTWV0aG9kPjxTaWduYXR1cmVNZXRob2QgQWxnb3JpdGhtPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwLzA5L3htbGRzaWcjcnNhLXNoYTEiPjwvU2lnbmF0dXJlTWV0aG9kPjxSZWZlcmVuY2U+PFRyYW5zZm9ybXM+PFRyYW5zZm9ybSBBbGdvcml0aG09Imh0dHA6Ly93d3cudzMub3JnLzIwMDEvMTAveG1sLWV4Yy1jMTRuIyI+PC9UcmFuc2Zvcm0+PC9UcmFuc2Zvcm1zPjxEaWdlc3RNZXRob2QgQWxnb3JpdGhtPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwLzA5L3htbGRzaWcjc2hhMSI+PC9EaWdlc3RNZXRob2Q+PERpZ2VzdFZhbHVlPnoxRGZJYkJNV0hXeE9rdk8yQXVqenE2Um1ZTT08L0RpZ2VzdFZhbHVlPjwvUmVmZXJlbmNlPjwvU2lnbmVkSW5mbz4KICAgICAgICAgICAgIDxTaWduYXR1cmVWYWx1ZT48L1NpZ25hdHVyZVZhbHVlPgogICAgICAgICAgICAgPEtleUluZm8+PFg1MDlEYXRhPjxYNTA5Q2VydGlmaWNhdGU+PC9YNTA5Q2VydGlmaWNhdGU+PC9YNTA5RGF0YT48L0tleUluZm8+CiAgICAgICAgICAgPC9TaWduYXR1cmU+" + } + ] + } + } + ] +} diff --git a/src/test/resources/examples/full_examples/secondary-care/community/acute/nominated-pharmacy/clinical-practitioner/1-VerifySignature-Request-200_OK.json b/src/test/resources/examples/full_examples/secondary-care/community/acute/nominated-pharmacy/clinical-practitioner/1-VerifySignature-Request-200_OK.json new file mode 100644 index 00000000..2e95a3da --- /dev/null +++ b/src/test/resources/examples/full_examples/secondary-care/community/acute/nominated-pharmacy/clinical-practitioner/1-VerifySignature-Request-200_OK.json @@ -0,0 +1,400 @@ +{ + "resourceType": "Bundle", + "id": "1afb59cc-ebc4-49e8-8902-2c1d3824352e", + "meta": { + "lastUpdated": "2022-02-17T04:41:42+00:00" + }, + "identifier": { + "system": "https://tools.ietf.org/html/rfc4122", + "value": "1afb59cc-ebc4-49e8-8902-2c1d3824352e" + }, + "type": "searchset", + "total": 1, + "entry": [ + { + "fullUrl": "urn:uuid:60e2080a-dcc1-4a24-bba1-6ffe8bd7fc41", + "resource": { + "resourceType": "Bundle", + "id": "60e2080a-dcc1-4a24-bba1-6ffe8bd7fc41", + "meta": { + "lastUpdated": "2022-02-17T04:40:01+00:00" + }, + "identifier": { + "system": "https://tools.ietf.org/html/rfc4122", + "value": "6faf886e-b7a9-4a82-ab48-cc51747ec9e7" + }, + "type": "message", + "entry": [ + { + "resource": { + "resourceType": "MessageHeader", + "id": "0482f88a-fea5-4608-baec-b7b417e69181", + "extension": [ + { + "url": "https://fhir.nhs.uk/StructureDefinition/Extension-Spine-MessageHeader-messageId", + "valueIdentifier": { + "system": "https://tools.ietf.org/html/rfc4122", + "value": "6faf886e-b7a9-4a82-ab48-cc51747ec9e7" + } + } + ], + "eventCoding": { + "system": "https://fhir.nhs.uk/CodeSystem/message-event", + "code": "prescription-order", + "display": "Prescription Order" + }, + "destination": [ + { + "endpoint": "https://directory.spineservices.nhs.uk/STU3/Organization/FH542", + "receiver": { + "identifier": { + "system": "https://fhir.nhs.uk/Id/ods-organization-code", + "value": "FH542" + } + } + } + ], + "sender": { + "identifier": { + "system": "https://fhir.nhs.uk/Id/ods-organization-code", + "value": "X2601" + }, + "display": "NHS Digital Spine" + }, + "source": { + "name": "NHS Spine", + "endpoint": "https://internal-dev.api.service.nhs.uk/electronic-prescriptions-pr-763/$process-message" + }, + "response": { + "identifier": "862accf6-8a0a-47ae-b4c9-eb9bc8fd637e", + "code": "ok" + }, + "focus": [ + { + "reference": "urn:uuid:bf47a6f3-6ffc-4e49-af55-dac73f0f7108" + }, + { + "reference": "urn:uuid:bb0a194b-f21f-4571-9d75-e967906316f9" + } + ] + }, + "fullUrl": "urn:uuid:0482f88a-fea5-4608-baec-b7b417e69181" + }, + { + "resource": { + "resourceType": "Patient", + "id": "bf47a6f3-6ffc-4e49-af55-dac73f0f7108", + "identifier": [ + { + "system": "https://fhir.nhs.uk/Id/nhs-number", + "value": "9449304122" + } + ], + "name": [ + { + "use": "usual", + "family": "FORREST", + "given": ["LILAC", "EMERSON"], + "prefix": ["MS"] + } + ], + "gender": "female", + "birthDate": "2011-03-30", + "address": [ + { + "use": "home", + "line": ["10 HAWKHURST", "COBHAM", "SURREY"], + "postalCode": "KT11 2QX" + } + ], + "generalPractitioner": [ + { + "identifier": { + "system": "https://fhir.nhs.uk/Id/ods-organization-code", + "value": "B81001" + } + } + ] + }, + "fullUrl": "urn:uuid:bf47a6f3-6ffc-4e49-af55-dac73f0f7108" + }, + { + "resource": { + "resourceType": "PractitionerRole", + "id": "e54a2a9b-ae68-4317-ba68-01aa492d788a", + "identifier": [ + { + "system": "https://fhir.nhs.uk/Id/sds-role-profile-id", + "value": "601986680555" + }, + { + "system": "https://fhir.hl7.org.uk/Id/nhsbsa-spurious-code", + "value": "683458" + } + ], + "practitioner": { + "reference": "urn:uuid:9e945d89-785c-4fb6-bc15-2b7eacad883b" + }, + "code": [ + { + "coding": [ + { + "system": "https://fhir.nhs.uk/CodeSystem/NHSDigital-SDS-JobRoleCode", + "code": "S8000:G8000:R8000", + "display": "S8000:G8000:R8000" + } + ] + } + ], + "telecom": [ + { + "system": "phone", + "use": "work", + "value": "01234567890" + } + ], + "organization": { + "reference": "urn:uuid:60183aa6-3bd5-4ce9-a1ea-21f76be55526" + } + }, + "fullUrl": "urn:uuid:e54a2a9b-ae68-4317-ba68-01aa492d788a" + }, + { + "resource": { + "resourceType": "Location", + "id": "3b613208-7a00-497f-a9a2-25890c5d3fe6", + "address": { + "use": "work", + "line": ["MUSGROVE PARK HOSPITAL", "TAUNTON"], + "postalCode": "TA1 5DA" + } + }, + "fullUrl": "urn:uuid:3b613208-7a00-497f-a9a2-25890c5d3fe6" + }, + { + "resource": { + "resourceType": "Practitioner", + "id": "9e945d89-785c-4fb6-bc15-2b7eacad883b", + "identifier": [ + { + "system": "https://fhir.hl7.org.uk/Id/gphc-number", + "value": "6150129" + } + ], + "name": [ + { + "family": "FIFTYSEVEN", + "given": ["RANDOM"], + "prefix": ["MR"] + } + ] + }, + "fullUrl": "urn:uuid:9e945d89-785c-4fb6-bc15-2b7eacad883b" + }, + { + "resource": { + "resourceType": "Organization", + "id": "60183aa6-3bd5-4ce9-a1ea-21f76be55526", + "identifier": [ + { + "system": "https://fhir.nhs.uk/Id/ods-organization-code", + "value": "A99968" + } + ], + "name": "SOMERSET BOWEL CANCER SCREENING CENTRE", + "telecom": [ + { + "system": "phone", + "use": "work", + "value": "01823333444" + } + ], + "address": [ + { + "use": "work", + "line": ["MUSGROVE PARK HOSPITAL", "TAUNTON"], + "postalCode": "TA1 5DA" + } + ], + "partOf": { + "identifier": { + "system": "https://fhir.nhs.uk/Id/ods-organization-code", + "value": "RBA" + }, + "display": "TAUNTON AND SOMERSET NHS FOUNDATION TRUST" + } + }, + "fullUrl": "urn:uuid:60183aa6-3bd5-4ce9-a1ea-21f76be55526" + }, + { + "resource": { + "resourceType": "MedicationRequest", + "id": "bb0a194b-f21f-4571-9d75-e967906316f9", + "extension": [ + { + "url": "https://fhir.nhs.uk/StructureDefinition/Extension-DM-ResponsiblePractitioner", + "valueReference": { + "reference": "urn:uuid:e54a2a9b-ae68-4317-ba68-01aa492d788a" + } + }, + { + "url": "https://fhir.nhs.uk/StructureDefinition/Extension-DM-PrescriptionType", + "valueCoding": { + "system": "https://fhir.nhs.uk/CodeSystem/prescription-type", + "code": "1001" + } + } + ], + "identifier": [ + { + "system": "https://fhir.nhs.uk/Id/prescription-order-item-number", + "value": "0b7953a8-eb30-47b6-a306-769badf67478" + } + ], + "status": "active", + "intent": "order", + "medicationCodeableConcept": { + "coding": [ + { + "system": "http://snomed.info/sct", + "code": "15517911000001104", + "display": "Methotrexate 10mg/0.2ml solution for injection pre-filled syringes" + } + ] + }, + "subject": { + "reference": "urn:uuid:bf47a6f3-6ffc-4e49-af55-dac73f0f7108" + }, + "authoredOn": "2022-02-17T04:40:01+00:00", + "category": [ + { + "coding": [ + { + "system": "http://terminology.hl7.org/CodeSystem/medicationrequest-category", + "code": "outpatient", + "display": "Outpatient" + } + ] + } + ], + "requester": { + "reference": "urn:uuid:e54a2a9b-ae68-4317-ba68-01aa492d788a" + }, + "groupIdentifier": { + "system": "https://fhir.nhs.uk/Id/prescription-order-number", + "value": "2A9172-A99968-8F11FG", + "extension": [ + { + "url": "https://fhir.nhs.uk/StructureDefinition/Extension-DM-PrescriptionId", + "valueIdentifier": { + "system": "https://fhir.nhs.uk/Id/prescription", + "value": "b6ea6e2e-c302-4f1e-a8d7-10c0469d23be" + } + } + ] + }, + "courseOfTherapyType": { + "coding": [ + { + "system": "http://terminology.hl7.org/CodeSystem/medicationrequest-course-of-therapy", + "code": "acute", + "display": "Short course (acute) therapy" + } + ] + }, + "dosageInstruction": [ + { + "text": "10 milligram, Inject, Subcutaneous route, once weekly" + } + ], + "dispenseRequest": { + "extension": [ + { + "url": "https://fhir.nhs.uk/StructureDefinition/Extension-DM-PerformerSiteType", + "valueCoding": { + "system": "https://fhir.nhs.uk/CodeSystem/dispensing-site-preference", + "code": "P1" + } + } + ], + "numberOfRepeatsAllowed": 0, + "quantity": { + "value": 1, + "unit": "pre-filled disposable injection", + "system": "http://snomed.info/sct", + "code": "3318611000001103" + }, + "performer": { + "identifier": { + "system": "https://fhir.nhs.uk/Id/ods-organization-code", + "value": "FH542" + } + } + }, + "substitution": { + "allowedBoolean": false + } + }, + "fullUrl": "urn:uuid:bb0a194b-f21f-4571-9d75-e967906316f9" + }, + { + "resource": { + "resourceType": "Provenance", + "id": "54fc971f-db30-4f07-abd1-b25b74335948", + "agent": [ + { + "who": { + "reference": "urn:uuid:e54a2a9b-ae68-4317-ba68-01aa492d788a" + } + } + ], + "recorded": "2022-02-17T04:40:01+00:00", + "signature": [ + { + "who": { + "reference": "urn:uuid:e54a2a9b-ae68-4317-ba68-01aa492d788a" + }, + "when": "2022-02-17T04:40:01+00:00", + "data": "PFNpZ25hdHVyZSB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC8wOS94bWxkc2lnIyI+PFNpZ25lZEluZm8+PENhbm9uaWNhbGl6YXRpb25NZXRob2QgQWxnb3JpdGhtPSJodHRwOi8vd3d3LnczLm9yZy8yMDAxLzEwL3htbC1leGMtYzE0biMiPjwvQ2Fub25pY2FsaXphdGlvbk1ldGhvZD48U2lnbmF0dXJlTWV0aG9kIEFsZ29yaXRobT0iaHR0cDovL3d3dy53My5vcmcvMjAwMC8wOS94bWxkc2lnI3JzYS1zaGExIj48L1NpZ25hdHVyZU1ldGhvZD48UmVmZXJlbmNlPjxUcmFuc2Zvcm1zPjxUcmFuc2Zvcm0gQWxnb3JpdGhtPSJodHRwOi8vd3d3LnczLm9yZy8yMDAxLzEwL3htbC1leGMtYzE0biMiPjwvVHJhbnNmb3JtPjwvVHJhbnNmb3Jtcz48RGlnZXN0TWV0aG9kIEFsZ29yaXRobT0iaHR0cDovL3d3dy53My5vcmcvMjAwMC8wOS94bWxkc2lnI3NoYTEiPjwvRGlnZXN0TWV0aG9kPjxEaWdlc3RWYWx1ZT5PbENRTmhtOHM0eThaY1l1Lzg3VVZQaE5WeUk9PC9EaWdlc3RWYWx1ZT48L1JlZmVyZW5jZT48L1NpZ25lZEluZm8+PFNpZ25hdHVyZVZhbHVlPnBsSmprT0FlOHFuMmc5QndMSTdRdUJkZmw5Z2VCdG9LZWJHdzM0aEl3OGc4dVY5bk9OZDh3TEJPbmxnZGdHbWpVcjAyRVdIaFRRYXdseHoxRmFJUDVBa3F1bExJK2QvL2V6cksyK0YxU1FFQ2ZPMmJ4QTg2NWtqbWxndCtnVG5kSDQ3K2NJYzdHRUx4Y2RpMXlxN1E3WVVGSXp2R2VrU0s4V2pWQ2kxemkvOD08L1NpZ25hdHVyZVZhbHVlPjxLZXlJbmZvPjxYNTA5RGF0YT48WDUwOUNlcnRpZmljYXRlPk1JSUR1RENDQXFDZ0F3SUJBZ0lFWGNtdEh6QU5CZ2txaGtpRzl3MEJBUXNGQURBMk1Rd3dDZ1lEVlFRS0V3TnVhSE14Q3pBSkJnTlZCQXNUQWtOQk1Sa3dGd1lEVlFRREV4Qk9TRk1nU1U1VUlFeGxkbVZzSURGRU1CNFhEVEl3TVRBeU1qRXdNakUxTlZvWERUSXlNVEF5TWpFd05URTFOVm93UXpFTU1Bb0dBMVVFQ2hNRGJtaHpNUTh3RFFZRFZRUUxFd1pRWlc5d2JHVXhJakFnQmdOVkJBTU1HVFUxTlRJMU16VXlNVEV3T0Y5U1FVNUVUMDFmVlZORlVsRXdnWjh3RFFZSktvWklodmNOQVFFQkJRQURnWTBBTUlHSkFvR0JBS3Q0c3pOdzdPQUg3QVFSckRlL3hCSW1zTW1NaVM5RXNyVDNhM3AvTGgzYnJkekk5YWFqVFVaMmIvY3ZiT2E3UGVZZDd1K0s0YTJaZDBYayswR0ZtWUd6U1ZYNmlZamJsd3IwdmFpMzF6VjdHK2xHdkh4SDZwU29MQ3dJQ2FaQUZ3YWJlRDVPejk0K3lBM2FXTld0R1YwRGZoOXF3SDNaRkNJTVJzdmVyTjFwQWdNQkFBR2pnZ0ZETUlJQlB6QU9CZ05WSFE4QkFmOEVCQU1DQmtBd1pRWURWUjBnQVFIL0JGc3dXVEJYQmdzcWhqb0FpWHRtQUFNQ0FEQklNRVlHQ0NzR0FRVUZCd0lCRmpwb2RIUndjem92TDNCcmFTNXVhSE11ZFdzdlkyVnlkR2xtYVdOaGRHVmZjRzlzYVdOcFpYTXZZMjl1ZEdWdWRGOWpiMjF0YVhSdFpXNTBNRE1HQTFVZEh3UXNNQ293S0tBbW9DU0dJbWgwZEhBNkx5OWpjbXd1Ym1oekxuVnJMMmx1ZEM4eFpDOWpjbXhqTXk1amNtd3dLd1lEVlIwUUJDUXdJb0FQTWpBeU1ERXdNakl4TURJeE5UVmFnUTh5TURJeU1ETXhOekV3TlRFMU5Wb3dId1lEVlIwakJCZ3dGb0FVb0pZZmdZVE5QZDZFVUtMNlFMSXpIeFk1UEZJd0hRWURWUjBPQkJZRUZMdHl2WVN5YXFnNjBBRVVaZ3hrMHdyalJKYytNQWtHQTFVZEV3UUNNQUF3R1FZSktvWklodlo5QjBFQUJBd3dDaHNFVmpndU13TUNCTEF3RFFZSktvWklodmNOQVFFTEJRQURnZ0VCQUJjenk4QjhqdVBwSWZhVE5GY3hyQzIyYUNYL3hZWm1ockwvTnZJQkFhWDFHNWhqaXdta0dLRTJoUlRJcjY3UHhaeG1Yc0p4aWdSQk1IUGxJK2xZLytva3pIMEdpN2I1YnFsdzdweEdJZ0pPMDAwdzhwRnN2bzl3NDJJWWhIb2Rzdm5EVlN4aE1UMEo0NlFoazlzb0UwTGpvRVVMS1FQUGxZR2tlL0dsM20xN0l0Rll3T2JRSDBmTUV3bWlxQnllSWZ6N2dTY2NPekw1Y0lwNlBjWlRPam8ySXFRcGdFbWhqT2NSSW5FcUFOaXRTZGpvaUpBSnpwYWFaallUUmRIVVg3aTdhakVpSDRtOTFuRlcrNEFxa050dGxiNFdjR0tzU21XZ2ZLS2hlRjRJb1pLTUU4MHhlclNnTXk4dnRqTE9CSkNHWHowd0xHbVF1Um14TVRxODhxND08L1g1MDlDZXJ0aWZpY2F0ZT48L1g1MDlEYXRhPjwvS2V5SW5mbz48L1NpZ25hdHVyZT4=", + "type": [ + { + "code": "1.2.840.10065.1.12.1.1", + "system": "urn:iso-astm:E1762-95:2013" + } + ] + } + ], + "target": [ + { + "reference": "urn:uuid:0482f88a-fea5-4608-baec-b7b417e69181" + }, + { + "reference": "urn:uuid:bf47a6f3-6ffc-4e49-af55-dac73f0f7108" + }, + { + "reference": "urn:uuid:e54a2a9b-ae68-4317-ba68-01aa492d788a" + }, + { + "reference": "urn:uuid:3b613208-7a00-497f-a9a2-25890c5d3fe6" + }, + { + "reference": "urn:uuid:9e945d89-785c-4fb6-bc15-2b7eacad883b" + }, + { + "reference": "urn:uuid:60183aa6-3bd5-4ce9-a1ea-21f76be55526" + }, + { + "reference": "urn:uuid:a0c681a5-6226-49d6-9595-600327ebd13c" + }, + { + "reference": "urn:uuid:bb0a194b-f21f-4571-9d75-e967906316f9" + } + ] + }, + "fullUrl": "urn:uuid:54fc971f-db30-4f07-abd1-b25b74335948" + } + ] + } + } + ] +} diff --git a/src/test/resources/examples/full_examples/secondary-care/community/acute/nominated-pharmacy/clinical-practitioner/controlled-drugs/1-Prepare-Request-200_OK.json b/src/test/resources/examples/full_examples/secondary-care/community/acute/nominated-pharmacy/clinical-practitioner/controlled-drugs/1-Prepare-Request-200_OK.json new file mode 100644 index 00000000..a3298158 --- /dev/null +++ b/src/test/resources/examples/full_examples/secondary-care/community/acute/nominated-pharmacy/clinical-practitioner/controlled-drugs/1-Prepare-Request-200_OK.json @@ -0,0 +1,434 @@ +{ + "resourceType": "Bundle", + "id": "2c251ced-dc17-47ff-bd2f-36f4b8c27dda", + "identifier": { + "system": "https://tools.ietf.org/html/rfc4122", + "value": "022dd4b4-3f7e-47ad-adb5-00e2b64cd4b9" + }, + "type": "message", + "entry": [ + { + "fullUrl": "urn:uuid:2c251ced-dc17-47ff-bd2f-36f4b8c27dda", + "resource": { + "resourceType": "MessageHeader", + "id": "A8F71A7D-B426-4B55-80A5-05436DE80486", + "eventCoding": { + "system": "https://fhir.nhs.uk/CodeSystem/message-event", + "code": "prescription-order", + "display": "Prescription Order" + }, + "sender": { + "identifier": { + "system": "https://fhir.nhs.uk/Id/ods-organization-code", + "value": "RBA" + }, + "reference": "urn:uuid:56166769-c1c4-4d07-afa8-132b5dfca666", + "display": "SEVEN|FIFTY" + }, + "source": { + "endpoint": "https://directory.spineservices.nhs.uk/STU3/Organization/RBA" + }, + "destination": [ + { + "endpoint": "https://int.api.service.nhs.uk/electronic-prescriptions/$prepare", + "receiver": { + "identifier": { + "system": "https://fhir.nhs.uk/Id/ods-organization-code", + "value": "FH542" + } + } + } + ], + "focus": [ + { + "reference": "urn:uuid:00d3dd04-d162-49ce-a808-6f220906f1c8" + }, + { + "reference": "urn:uuid:1de954ac-a1ea-49ab-bd4e-88e99f191186" + }, + { + "reference": "urn:uuid:78d3c2eb-009e-4ec8-a358-b042954aa9b2" + }, + { + "reference": "urn:uuid:a8c85454-f8cb-498d-9629-78e2cb5fa47a" + }, + { + "reference": "urn:uuid:56166769-c1c4-4d07-afa8-132b5dfca666" + }, + { + "reference": "urn:uuid:3b4b03a5-52ba-4ba6-9b82-70350aa109d8" + } + ] + } + }, + { + "fullUrl": "urn:uuid:00d3dd04-d162-49ce-a808-6f220906f1c8", + "resource": { + "resourceType": "MedicationRequest", + "id": "00d3dd04-d162-49ce-a808-6f220906f1c8", + "extension": [ + { + "url": "https://fhir.nhs.uk/StructureDefinition/Extension-DM-PrescriptionType", + "valueCoding": { + "system": "https://fhir.nhs.uk/CodeSystem/prescription-type", + "code": "1001", + "display": "Outpatient Community Prescriber - Medical Prescriber" + } + }, + { + "url": "https://fhir.nhs.uk/StructureDefinition/Extension-DM-ControlledDrug", + "extension": [ + { + "url": "quantityWords", + "valueString": "twenty eight" + }, + { + "url": "schedule", + "valueCoding": { + "system": "https://fhir.nhs.uk/CodeSystem/medicationrequest-controlled-drug", + "code": "CD2", + "display": "Schedule 2" + } + } + ] + } + ], + "identifier": [ + { + "system": "https://fhir.nhs.uk/Id/prescription-order-item-number", + "value": "00d3dd04-d162-49ce-a808-6f220906f1c8" + } + ], + "status": "active", + "intent": "order", + "category": [ + { + "coding": [ + { + "system": "http://terminology.hl7.org/CodeSystem/medicationrequest-category", + "code": "outpatient", + "display": "Outpatient" + } + ] + } + ], + "medicationCodeableConcept": { + "coding": [ + { + "system": "http://snomed.info/sct", + "code": "36126511000001106", + "display": "Morphine 10mg modified-release tablets" + } + ] + }, + "subject": { + "reference": "urn:uuid:78d3c2eb-009e-4ec8-a358-b042954aa9b2" + }, + "requester": { + "reference": "urn:uuid:56166769-c1c4-4d07-afa8-132b5dfca666" + }, + "groupIdentifier": { + "extension": [ + { + "url": "https://fhir.nhs.uk/StructureDefinition/Extension-DM-PrescriptionId", + "valueIdentifier": { + "system": "https://fhir.nhs.uk/Id/prescription", + "value": "a524e315-e629-4381-90e3-df436f0d3a03" + } + } + ], + "system": "https://fhir.nhs.uk/Id/prescription-order-number", + "value": "DE1AF4-A99968-4C918K" + }, + "courseOfTherapyType": { + "coding": [ + { + "system": "http://terminology.hl7.org/CodeSystem/medicationrequest-course-of-therapy", + "code": "acute", + "display": "Short course (acute) therapy" + } + ] + }, + "dosageInstruction": [ + { + "text": "1 tablet, daily" + } + ], + "dispenseRequest": { + "extension": [ + { + "url": "https://fhir.nhs.uk/StructureDefinition/Extension-DM-PerformerSiteType", + "valueCoding": { + "system": "https://fhir.nhs.uk/CodeSystem/dispensing-site-preference", + "code": "P1" + } + } + ], + "quantity": { + "value": 28, + "unit": "tablet", + "system": "http://snomed.info/sct", + "code": "428673006" + }, + "performer": { + "identifier": { + "system": "https://fhir.nhs.uk/Id/ods-organization-code", + "value": "FH542" + } + } + }, + "substitution": { + "allowedBoolean": false + } + } + }, + { + "fullUrl": "urn:uuid:1de954ac-a1ea-49ab-bd4e-88e99f191186", + "resource": { + "resourceType": "MedicationRequest", + "id": "1de954ac-a1ea-49ab-bd4e-88e99f191186", + "extension": [ + { + "url": "https://fhir.nhs.uk/StructureDefinition/Extension-DM-PrescriptionType", + "valueCoding": { + "system": "https://fhir.nhs.uk/CodeSystem/prescription-type", + "code": "1001", + "display": "Outpatient Community Prescriber - Medical Prescriber" + } + } + ], + "identifier": [ + { + "system": "https://fhir.nhs.uk/Id/prescription-order-item-number", + "value": "1de954ac-a1ea-49ab-bd4e-88e99f191186" + } + ], + "status": "active", + "intent": "order", + "category": [ + { + "coding": [ + { + "system": "http://terminology.hl7.org/CodeSystem/medicationrequest-category", + "code": "outpatient", + "display": "Outpatient" + } + ] + } + ], + "medicationCodeableConcept": { + "coding": [ + { + "system": "http://snomed.info/sct", + "code": "321196004", + "display": "Diazepam 2mg tablets" + } + ] + }, + "subject": { + "reference": "urn:uuid:78d3c2eb-009e-4ec8-a358-b042954aa9b2" + }, + "requester": { + "reference": "urn:uuid:56166769-c1c4-4d07-afa8-132b5dfca666" + }, + "groupIdentifier": { + "extension": [ + { + "url": "https://fhir.nhs.uk/StructureDefinition/Extension-DM-PrescriptionId", + "valueIdentifier": { + "system": "https://fhir.nhs.uk/Id/prescription", + "value": "a524e315-e629-4381-90e3-df436f0d3a03" + } + } + ], + "system": "https://fhir.nhs.uk/Id/prescription-order-number", + "value": "DE1AF4-A99968-4C918K" + }, + "courseOfTherapyType": { + "coding": [ + { + "system": "http://terminology.hl7.org/CodeSystem/medicationrequest-course-of-therapy", + "code": "acute", + "display": "Short course (acute) therapy" + } + ] + }, + "note": [ + { + "text": "Dosage has been decreased on advice from the hospital." + } + ], + "dosageInstruction": [ + { + "text": "1 tablet, at NIGHT" + } + ], + "dispenseRequest": { + "extension": [ + { + "url": "https://fhir.nhs.uk/StructureDefinition/Extension-DM-PerformerSiteType", + "valueCoding": { + "system": "https://fhir.nhs.uk/CodeSystem/dispensing-site-preference", + "code": "P1" + } + } + ], + "quantity": { + "value": 28, + "unit": "tablet", + "system": "http://snomed.info/sct", + "code": "428673006" + }, + "performer": { + "identifier": { + "system": "https://fhir.nhs.uk/Id/ods-organization-code", + "value": "FH542" + } + } + }, + "substitution": { + "allowedBoolean": false + } + } + }, + { + "fullUrl": "urn:uuid:78d3c2eb-009e-4ec8-a358-b042954aa9b2", + "resource": { + "resourceType": "Patient", + "id": "78d3c2eb-009e-4ec8-a358-b042954aa9b2", + "identifier": [ + { + "system": "https://fhir.nhs.uk/Id/nhs-number", + "value": "9449303703" + } + ], + "name": [ + { + "use": "usual", + "family": "AKRASI", + "given": ["ROYDON"], + "prefix": ["MR"] + } + ], + "gender": "male", + "birthDate": "1959-08-20", + "address": [ + { + "use": "home", + "line": ["35 STEVENS LANE", "CLAYGATE", "SURREY"], + "postalCode": "KT10 0TQ" + } + ], + "generalPractitioner": [ + { + "identifier": { + "system": "https://fhir.nhs.uk/Id/ods-organization-code", + "value": "B81001" + } + } + ] + } + }, + { + "fullUrl": "urn:uuid:a8c85454-f8cb-498d-9629-78e2cb5fa47a", + "resource": { + "resourceType": "Practitioner", + "id": "a8c85454-f8cb-498d-9629-78e2cb5fa47a", + "identifier": [ + { + "system": "https://fhir.nhs.uk/Id/sds-user-id", + "value": "555086689106" + }, + { + "system": "https://fhir.hl7.org.uk/Id/gmc-number", + "value": "6150129" + } + ], + "name": [ + { + "family": "Fiftyseven", + "given": ["Random"], + "prefix": ["MR"] + } + ] + } + }, + { + "fullUrl": "urn:uuid:56166769-c1c4-4d07-afa8-132b5dfca666", + "resource": { + "resourceType": "PractitionerRole", + "id": "56166769-c1c4-4d07-afa8-132b5dfca666", + "identifier": [ + { + "system": "https://fhir.nhs.uk/Id/sds-role-profile-id", + "value": "601986680555" + }, + { + "system": "https://fhir.hl7.org.uk/Id/nhsbsa-spurious-code", + "value": "683458" + } + ], + "practitioner": { + "reference": "urn:uuid:a8c85454-f8cb-498d-9629-78e2cb5fa47a" + }, + "organization": { + "reference": "urn:uuid:3b4b03a5-52ba-4ba6-9b82-70350aa109d8" + }, + "code": [ + { + "coding": [ + { + "system": "https://fhir.nhs.uk/CodeSystem/NHSDigital-SDS-JobRoleCode", + "code": "S8000:G8000:R8000", + "display": "Clinical Practitioner Access Role" + } + ] + } + ], + "telecom": [ + { + "system": "phone", + "value": "01234567890", + "use": "work" + } + ] + } + }, + { + "fullUrl": "urn:uuid:3b4b03a5-52ba-4ba6-9b82-70350aa109d8", + "resource": { + "resourceType": "Organization", + "id": "3b4b03a5-52ba-4ba6-9b82-70350aa109d8", + "identifier": [ + { + "system": "https://fhir.nhs.uk/Id/ods-organization-code", + "value": "A99968" + } + ], + "name": "SOMERSET BOWEL CANCER SCREENING CENTRE", + "address": [ + { + "use": "work", + "line": ["MUSGROVE PARK HOSPITAL"], + "city": "TAUNTON", + "postalCode": "TA1 5DA" + } + ], + "telecom": [ + { + "system": "phone", + "value": "01823 333444", + "use": "work" + } + ], + "partOf": { + "identifier": { + "system": "https://fhir.nhs.uk/Id/ods-organization-code", + "value": "RBA" + }, + "display": "TAUNTON AND SOMERSET NHS FOUNDATION TRUST" + } + } + } + ] +} diff --git a/src/test/resources/examples/full_examples/secondary-care/community/acute/nominated-pharmacy/clinical-practitioner/controlled-drugs/1-Prepare-Response-200_OK.json b/src/test/resources/examples/full_examples/secondary-care/community/acute/nominated-pharmacy/clinical-practitioner/controlled-drugs/1-Prepare-Response-200_OK.json new file mode 100644 index 00000000..58d67283 --- /dev/null +++ b/src/test/resources/examples/full_examples/secondary-care/community/acute/nominated-pharmacy/clinical-practitioner/controlled-drugs/1-Prepare-Response-200_OK.json @@ -0,0 +1,17 @@ +{ + "resourceType": "Parameters", + "parameter": [ + { + "name": "digest", + "valueString": "PFNpZ25lZEluZm8geG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvMDkveG1sZHNpZyMiPjxDYW5vbmljYWxpemF0aW9uTWV0aG9kIEFsZ29yaXRobT0iaHR0cDovL3d3dy53My5vcmcvMjAwMS8xMC94bWwtZXhjLWMxNG4jIj48L0Nhbm9uaWNhbGl6YXRpb25NZXRob2Q+PFNpZ25hdHVyZU1ldGhvZCBBbGdvcml0aG09Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvMDkveG1sZHNpZyNyc2Etc2hhMSI+PC9TaWduYXR1cmVNZXRob2Q+PFJlZmVyZW5jZT48VHJhbnNmb3Jtcz48VHJhbnNmb3JtIEFsZ29yaXRobT0iaHR0cDovL3d3dy53My5vcmcvMjAwMS8xMC94bWwtZXhjLWMxNG4jIj48L1RyYW5zZm9ybT48L1RyYW5zZm9ybXM+PERpZ2VzdE1ldGhvZCBBbGdvcml0aG09Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvMDkveG1sZHNpZyNzaGExIj48L0RpZ2VzdE1ldGhvZD48RGlnZXN0VmFsdWU+SDNxcGQzYWJEb0RKRmU4ZzdOTDRVSit2a1ZNPTwvRGlnZXN0VmFsdWU+PC9SZWZlcmVuY2U+PC9TaWduZWRJbmZvPg==" + }, + { + "name": "timestamp", + "valueString": "2022-10-25T10:24:34+00:00" + }, + { + "name": "algorithm", + "valueString": "RS1" + } + ] +} diff --git a/src/test/resources/examples/full_examples/secondary-care/community/acute/nominated-pharmacy/clinical-practitioner/controlled-drugs/1-Process-Request-Send-200_OK.json b/src/test/resources/examples/full_examples/secondary-care/community/acute/nominated-pharmacy/clinical-practitioner/controlled-drugs/1-Process-Request-Send-200_OK.json new file mode 100644 index 00000000..7407dfa4 --- /dev/null +++ b/src/test/resources/examples/full_examples/secondary-care/community/acute/nominated-pharmacy/clinical-practitioner/controlled-drugs/1-Process-Request-Send-200_OK.json @@ -0,0 +1,490 @@ +{ + "resourceType": "Bundle", + "id": "2c251ced-dc17-47ff-bd2f-36f4b8c27dda", + "identifier": { + "system": "https://tools.ietf.org/html/rfc4122", + "value": "3b87cba2-c349-468a-ab96-5e1c7457a4b6" + }, + "type": "message", + "entry": [ + { + "fullUrl": "urn:uuid:2c251ced-dc17-47ff-bd2f-36f4b8c27dda", + "resource": { + "resourceType": "MessageHeader", + "id": "A8F71A7D-B426-4B55-80A5-05436DE80486", + "eventCoding": { + "system": "https://fhir.nhs.uk/CodeSystem/message-event", + "code": "prescription-order", + "display": "Prescription Order" + }, + "sender": { + "identifier": { + "system": "https://fhir.nhs.uk/Id/ods-organization-code", + "value": "RBA" + }, + "reference": "urn:uuid:56166769-c1c4-4d07-afa8-132b5dfca666", + "display": "SEVEN|FIFTY" + }, + "source": { + "endpoint": "https://directory.spineservices.nhs.uk/STU3/Organization/RBA" + }, + "destination": [ + { + "endpoint": "https://int.api.service.nhs.uk/electronic-prescriptions/$process-message", + "receiver": { + "identifier": { + "system": "https://fhir.nhs.uk/Id/ods-organization-code", + "value": "FH542" + } + } + } + ], + "focus": [ + { + "reference": "urn:uuid:00d3dd04-d162-49ce-a808-6f220906f1c8" + }, + { + "reference": "urn:uuid:1de954ac-a1ea-49ab-bd4e-88e99f191186" + }, + { + "reference": "urn:uuid:78d3c2eb-009e-4ec8-a358-b042954aa9b2" + }, + { + "reference": "urn:uuid:a8c85454-f8cb-498d-9629-78e2cb5fa47a" + }, + { + "reference": "urn:uuid:56166769-c1c4-4d07-afa8-132b5dfca666" + }, + { + "reference": "urn:uuid:3b4b03a5-52ba-4ba6-9b82-70350aa109d8" + }, + { + "reference": "urn:uuid:b2a46b68-9e1e-49e6-a132-88b3308ed561" + } + ] + } + }, + { + "fullUrl": "urn:uuid:00d3dd04-d162-49ce-a808-6f220906f1c8", + "resource": { + "resourceType": "MedicationRequest", + "id": "00d3dd04-d162-49ce-a808-6f220906f1c8", + "extension": [ + { + "url": "https://fhir.nhs.uk/StructureDefinition/Extension-DM-PrescriptionType", + "valueCoding": { + "system": "https://fhir.nhs.uk/CodeSystem/prescription-type", + "code": "1001", + "display": "Outpatient Community Prescriber - Medical Prescriber" + } + }, + { + "url": "https://fhir.nhs.uk/StructureDefinition/Extension-DM-ControlledDrug", + "extension": [ + { + "url": "quantityWords", + "valueString": "twenty eight" + }, + { + "url": "schedule", + "valueCoding": { + "system": "https://fhir.nhs.uk/CodeSystem/medicationrequest-controlled-drug", + "code": "CD2", + "display": "Schedule 2" + } + } + ] + } + ], + "identifier": [ + { + "system": "https://fhir.nhs.uk/Id/prescription-order-item-number", + "value": "00d3dd04-d162-49ce-a808-6f220906f1c8" + } + ], + "status": "active", + "intent": "order", + "category": [ + { + "coding": [ + { + "system": "http://terminology.hl7.org/CodeSystem/medicationrequest-category", + "code": "outpatient", + "display": "Outpatient" + } + ] + } + ], + "medicationCodeableConcept": { + "coding": [ + { + "system": "http://snomed.info/sct", + "code": "36126511000001106", + "display": "Morphine 10mg modified-release tablets" + } + ] + }, + "subject": { + "reference": "urn:uuid:78d3c2eb-009e-4ec8-a358-b042954aa9b2" + }, + "requester": { + "reference": "urn:uuid:56166769-c1c4-4d07-afa8-132b5dfca666" + }, + "groupIdentifier": { + "extension": [ + { + "url": "https://fhir.nhs.uk/StructureDefinition/Extension-DM-PrescriptionId", + "valueIdentifier": { + "system": "https://fhir.nhs.uk/Id/prescription", + "value": "a524e315-e629-4381-90e3-df436f0d3a03" + } + } + ], + "system": "https://fhir.nhs.uk/Id/prescription-order-number", + "value": "DE1AF4-A99968-4C918K" + }, + "courseOfTherapyType": { + "coding": [ + { + "system": "http://terminology.hl7.org/CodeSystem/medicationrequest-course-of-therapy", + "code": "acute", + "display": "Short course (acute) therapy" + } + ] + }, + "dosageInstruction": [ + { + "text": "1 tablet, daily" + } + ], + "dispenseRequest": { + "extension": [ + { + "url": "https://fhir.nhs.uk/StructureDefinition/Extension-DM-PerformerSiteType", + "valueCoding": { + "system": "https://fhir.nhs.uk/CodeSystem/dispensing-site-preference", + "code": "P1" + } + } + ], + "quantity": { + "value": 28, + "unit": "tablet", + "system": "http://snomed.info/sct", + "code": "428673006" + }, + "performer": { + "identifier": { + "system": "https://fhir.nhs.uk/Id/ods-organization-code", + "value": "FH542" + } + } + }, + "substitution": { + "allowedBoolean": false + } + } + }, + { + "fullUrl": "urn:uuid:1de954ac-a1ea-49ab-bd4e-88e99f191186", + "resource": { + "resourceType": "MedicationRequest", + "id": "1de954ac-a1ea-49ab-bd4e-88e99f191186", + "extension": [ + { + "url": "https://fhir.nhs.uk/StructureDefinition/Extension-DM-PrescriptionType", + "valueCoding": { + "system": "https://fhir.nhs.uk/CodeSystem/prescription-type", + "code": "1001", + "display": "Outpatient Community Prescriber - Medical Prescriber" + } + } + ], + "identifier": [ + { + "system": "https://fhir.nhs.uk/Id/prescription-order-item-number", + "value": "1de954ac-a1ea-49ab-bd4e-88e99f191186" + } + ], + "status": "active", + "intent": "order", + "category": [ + { + "coding": [ + { + "system": "http://terminology.hl7.org/CodeSystem/medicationrequest-category", + "code": "outpatient", + "display": "Outpatient" + } + ] + } + ], + "medicationCodeableConcept": { + "coding": [ + { + "system": "http://snomed.info/sct", + "code": "321196004", + "display": "Diazepam 2mg tablets" + } + ] + }, + "subject": { + "reference": "urn:uuid:78d3c2eb-009e-4ec8-a358-b042954aa9b2" + }, + "requester": { + "reference": "urn:uuid:56166769-c1c4-4d07-afa8-132b5dfca666" + }, + "groupIdentifier": { + "extension": [ + { + "url": "https://fhir.nhs.uk/StructureDefinition/Extension-DM-PrescriptionId", + "valueIdentifier": { + "system": "https://fhir.nhs.uk/Id/prescription", + "value": "a524e315-e629-4381-90e3-df436f0d3a03" + } + } + ], + "system": "https://fhir.nhs.uk/Id/prescription-order-number", + "value": "DE1AF4-A99968-4C918K" + }, + "courseOfTherapyType": { + "coding": [ + { + "system": "http://terminology.hl7.org/CodeSystem/medicationrequest-course-of-therapy", + "code": "acute", + "display": "Short course (acute) therapy" + } + ] + }, + "note": [ + { + "text": "Dosage has been decreased on advice from the hospital." + } + ], + "dosageInstruction": [ + { + "text": "1 tablet, at NIGHT" + } + ], + "dispenseRequest": { + "extension": [ + { + "url": "https://fhir.nhs.uk/StructureDefinition/Extension-DM-PerformerSiteType", + "valueCoding": { + "system": "https://fhir.nhs.uk/CodeSystem/dispensing-site-preference", + "code": "P1" + } + } + ], + "quantity": { + "value": 28, + "unit": "tablet", + "system": "http://snomed.info/sct", + "code": "428673006" + }, + "performer": { + "identifier": { + "system": "https://fhir.nhs.uk/Id/ods-organization-code", + "value": "FH542" + } + } + }, + "substitution": { + "allowedBoolean": false + } + } + }, + { + "fullUrl": "urn:uuid:78d3c2eb-009e-4ec8-a358-b042954aa9b2", + "resource": { + "resourceType": "Patient", + "id": "78d3c2eb-009e-4ec8-a358-b042954aa9b2", + "identifier": [ + { + "system": "https://fhir.nhs.uk/Id/nhs-number", + "value": "9449303703" + } + ], + "name": [ + { + "use": "usual", + "family": "AKRASI", + "given": ["ROYDON"], + "prefix": ["MR"] + } + ], + "gender": "male", + "birthDate": "1959-08-20", + "address": [ + { + "use": "home", + "line": ["35 STEVENS LANE", "CLAYGATE", "SURREY"], + "postalCode": "KT10 0TQ" + } + ], + "generalPractitioner": [ + { + "identifier": { + "system": "https://fhir.nhs.uk/Id/ods-organization-code", + "value": "B81001" + } + } + ] + } + }, + { + "fullUrl": "urn:uuid:a8c85454-f8cb-498d-9629-78e2cb5fa47a", + "resource": { + "resourceType": "Practitioner", + "id": "a8c85454-f8cb-498d-9629-78e2cb5fa47a", + "identifier": [ + { + "system": "https://fhir.nhs.uk/Id/sds-user-id", + "value": "555086689106" + }, + { + "system": "https://fhir.hl7.org.uk/Id/gmc-number", + "value": "6150129" + } + ], + "name": [ + { + "family": "Fiftyseven", + "given": ["Random"], + "prefix": ["MR"] + } + ] + } + }, + { + "fullUrl": "urn:uuid:56166769-c1c4-4d07-afa8-132b5dfca666", + "resource": { + "resourceType": "PractitionerRole", + "id": "56166769-c1c4-4d07-afa8-132b5dfca666", + "identifier": [ + { + "system": "https://fhir.nhs.uk/Id/sds-role-profile-id", + "value": "601986680555" + }, + { + "system": "https://fhir.hl7.org.uk/Id/nhsbsa-spurious-code", + "value": "683458" + } + ], + "practitioner": { + "reference": "urn:uuid:a8c85454-f8cb-498d-9629-78e2cb5fa47a" + }, + "organization": { + "reference": "urn:uuid:3b4b03a5-52ba-4ba6-9b82-70350aa109d8" + }, + "code": [ + { + "coding": [ + { + "system": "https://fhir.nhs.uk/CodeSystem/NHSDigital-SDS-JobRoleCode", + "code": "S8000:G8000:R8000", + "display": "Clinical Practitioner Access Role" + } + ] + } + ], + "telecom": [ + { + "system": "phone", + "value": "01234567890", + "use": "work" + } + ] + } + }, + { + "fullUrl": "urn:uuid:3b4b03a5-52ba-4ba6-9b82-70350aa109d8", + "resource": { + "resourceType": "Organization", + "id": "3b4b03a5-52ba-4ba6-9b82-70350aa109d8", + "identifier": [ + { + "system": "https://fhir.nhs.uk/Id/ods-organization-code", + "value": "A99968" + } + ], + "name": "SOMERSET BOWEL CANCER SCREENING CENTRE", + "address": [ + { + "use": "work", + "line": ["MUSGROVE PARK HOSPITAL"], + "city": "TAUNTON", + "postalCode": "TA1 5DA" + } + ], + "telecom": [ + { + "system": "phone", + "value": "01823 333444", + "use": "work" + } + ], + "partOf": { + "identifier": { + "system": "https://fhir.nhs.uk/Id/ods-organization-code", + "value": "RBA" + }, + "display": "TAUNTON AND SOMERSET NHS FOUNDATION TRUST" + } + } + }, + { + "fullUrl": "urn:uuid:b2a46b68-9e1e-49e6-a132-88b3308ed561", + "resource": { + "resourceType": "Provenance", + "id": "b2a46b68-9e1e-49e6-a132-88b3308ed561", + "target": [ + { + "reference": "urn:uuid:a54219b8-f741-4c47-b662-e4f8dfa49ab6" + }, + { + "reference": "urn:uuid:00d3dd04-d162-49ce-a808-6f220906f1c8" + }, + { + "reference": "urn:uuid:1de954ac-a1ea-49ab-bd4e-88e99f191186" + }, + { + "reference": "urn:uuid:78d3c2eb-009e-4ec8-a358-b042954aa9b2" + }, + { + "reference": "urn:uuid:a8c85454-f8cb-498d-9629-78e2cb5fa47a" + }, + { + "reference": "urn:uuid:56166769-c1c4-4d07-afa8-132b5dfca666" + }, + { + "reference": "urn:uuid:3b4b03a5-52ba-4ba6-9b82-70350aa109d8" + } + ], + "recorded": "2008-02-27T11:38:00+00:00", + "agent": [ + { + "who": { + "reference": "urn:uuid:56166769-c1c4-4d07-afa8-132b5dfca666" + } + } + ], + "signature": [ + { + "type": [ + { + "system": "urn:iso-astm:E1762-95:2013", + "code": "1.2.840.10065.1.12.1.1" + } + ], + "when": "2021-05-07T14:47:46+00:00", + "who": { + "reference": "urn:uuid:56166769-c1c4-4d07-afa8-132b5dfca666" + }, + "data": "DQo8U2lnbmF0dXJlIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwLzA5L3htbGRzaWcjIj4NCiAgICA8U2lnbmVkSW5mbz48Q2Fub25pY2FsaXphdGlvbk1ldGhvZCBBbGdvcml0aG09Imh0dHA6Ly93d3cudzMub3JnLzIwMDEvMTAveG1sLWV4Yy1jMTRuIyI+PC9DYW5vbmljYWxpemF0aW9uTWV0aG9kPjxTaWduYXR1cmVNZXRob2QgQWxnb3JpdGhtPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwLzA5L3htbGRzaWcjcnNhLXNoYTEiPjwvU2lnbmF0dXJlTWV0aG9kPjxSZWZlcmVuY2U+PFRyYW5zZm9ybXM+PFRyYW5zZm9ybSBBbGdvcml0aG09Imh0dHA6Ly93d3cudzMub3JnLzIwMDEvMTAveG1sLWV4Yy1jMTRuIyI+PC9UcmFuc2Zvcm0+PC9UcmFuc2Zvcm1zPjxEaWdlc3RNZXRob2QgQWxnb3JpdGhtPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwLzA5L3htbGRzaWcjc2hhMSI+PC9EaWdlc3RNZXRob2Q+PERpZ2VzdFZhbHVlPllmbWVQTUlQa2VqNkIxTFRjanQvU0dWblRNMD08L0RpZ2VzdFZhbHVlPjwvUmVmZXJlbmNlPjwvU2lnbmVkSW5mbz4NCiAgICA8U2lnbmF0dXJlVmFsdWU+QTdlU1lLZDhaWDdhcThSRVdyWnUvY0huU0txRlVRTHNMVEoycUk4bU05cVlVbWUycUEzQlgwalo5THNLNUVVcWFGV3NCMVNnOWhuQVYxRjhsVmFTN1orbU5lanloREwyT20wSm1qeUt0RUlrN1ExeHRBcmxUNWZvRkhaVFkrOVpzUldROHFtVVJaUU9SQkVONkg2UHV1Y3pTWUg3bjNQL3hJUmdpQlZuZWlJPTwvU2lnbmF0dXJlVmFsdWU+DQogICAgPEtleUluZm8+DQogICAgICAgIDxYNTA5RGF0YT4NCiAgICAgICAgICAgIDxYNTA5Q2VydGlmaWNhdGU+TUlJRHVEQ0NBcUNnQXdJQkFnSUVYY210SHpBTkJna3Foa2lHOXcwQkFRc0ZBREEyTVF3d0NnWURWUVFLRXdOdWFITXhDekFKQmdOVkJBc1RBa05CTVJrd0Z3WURWUVFERXhCT1NGTWdTVTVVSUV4bGRtVnNJREZFTUI0WERUSXdNVEF5TWpFd01qRTFOVm9YRFRJeU1UQXlNakV3TlRFMU5Wb3dRekVNTUFvR0ExVUVDaE1EYm1oek1ROHdEUVlEVlFRTEV3WlFaVzl3YkdVeElqQWdCZ05WQkFNTUdUVTFOVEkxTXpVeU1URXdPRjlTUVU1RVQwMWZWVk5GVWxFd2daOHdEUVlKS29aSWh2Y05BUUVCQlFBRGdZMEFNSUdKQW9HQkFLdDRzek53N09BSDdBUVJyRGUveEJJbXNNbU1pUzlFc3JUM2EzcC9MaDNicmR6STlhYWpUVVoyYi9jdmJPYTdQZVlkN3UrSzRhMlpkMFhrKzBHRm1ZR3pTVlg2aVlqYmx3cjB2YWkzMXpWN0crbEd2SHhINnBTb0xDd0lDYVpBRndhYmVENU96OTQreUEzYVdOV3RHVjBEZmg5cXdIM1pGQ0lNUnN2ZXJOMXBBZ01CQUFHamdnRkRNSUlCUHpBT0JnTlZIUThCQWY4RUJBTUNCa0F3WlFZRFZSMGdBUUgvQkZzd1dUQlhCZ3NxaGpvQWlYdG1BQU1DQURCSU1FWUdDQ3NHQVFVRkJ3SUJGanBvZEhSd2N6b3ZMM0JyYVM1dWFITXVkV3N2WTJWeWRHbG1hV05oZEdWZmNHOXNhV05wWlhNdlkyOXVkR1Z1ZEY5amIyMXRhWFJ0Wlc1ME1ETUdBMVVkSHdRc01Db3dLS0Ftb0NTR0ltaDBkSEE2THk5amNtd3VibWh6TG5WckwybHVkQzh4WkM5amNteGpNeTVqY213d0t3WURWUjBRQkNRd0lvQVBNakF5TURFd01qSXhNREl4TlRWYWdROHlNREl5TURNeE56RXdOVEUxTlZvd0h3WURWUjBqQkJnd0ZvQVVvSllmZ1lUTlBkNkVVS0w2UUxJekh4WTVQRkl3SFFZRFZSME9CQllFRkx0eXZZU3lhcWc2MEFFVVpneGswd3JqUkpjK01Ba0dBMVVkRXdRQ01BQXdHUVlKS29aSWh2WjlCMEVBQkF3d0Noc0VWamd1TXdNQ0JMQXdEUVlKS29aSWh2Y05BUUVMQlFBRGdnRUJBQmN6eThCOGp1UHBJZmFUTkZjeHJDMjJhQ1gveFlabWhyTC9OdklCQWFYMUc1aGppd21rR0tFMmhSVElyNjdQeFp4bVhzSnhpZ1JCTUhQbEkrbFkvK29rekgwR2k3YjVicWx3N3B4R0lnSk8wMDB3OHBGc3ZvOXc0MklZaEhvZHN2bkRWU3hoTVQwSjQ2UWhrOXNvRTBMam9FVUxLUVBQbFlHa2UvR2wzbTE3SXRGWXdPYlFIMGZNRXdtaXFCeWVJZno3Z1NjY096TDVjSXA2UGNaVE9qbzJJcVFwZ0VtaGpPY1JJbkVxQU5pdFNkam9pSkFKenBhYVpqWVRSZEhVWDdpN2FqRWlING05MW5GVys0QXFrTnR0bGI0V2NHS3NTbVdnZktLaGVGNElvWktNRTgweGVyU2dNeTh2dGpMT0JKQ0dYejB3TEdtUXVSbXhNVHE4OHE0PTwvWDUwOUNlcnRpZmljYXRlPg0KICAgICAgICA8L1g1MDlEYXRhPg0KICAgIDwvS2V5SW5mbz4NCjwvU2lnbmF0dXJlPg0K" + } + ] + } + } + ] +} diff --git a/src/test/resources/examples/full_examples/secondary-care/community/acute/nominated-pharmacy/clinical-practitioner/controlled-drugs/2-Prepare-Request-200_OK.json b/src/test/resources/examples/full_examples/secondary-care/community/acute/nominated-pharmacy/clinical-practitioner/controlled-drugs/2-Prepare-Request-200_OK.json new file mode 100644 index 00000000..780f6de3 --- /dev/null +++ b/src/test/resources/examples/full_examples/secondary-care/community/acute/nominated-pharmacy/clinical-practitioner/controlled-drugs/2-Prepare-Request-200_OK.json @@ -0,0 +1,434 @@ +{ + "resourceType": "Bundle", + "id": "2c251ced-dc17-47ff-bd2f-36f4b8c27dda", + "identifier": { + "system": "https://tools.ietf.org/html/rfc4122", + "value": "a0419242-9181-4897-9ca6-ea15c6edf5a8" + }, + "type": "message", + "entry": [ + { + "fullUrl": "urn:uuid:2c251ced-dc17-47ff-bd2f-36f4b8c27dda", + "resource": { + "resourceType": "MessageHeader", + "id": "A8F71A7D-B426-4B55-80A5-05436DE80486", + "eventCoding": { + "system": "https://fhir.nhs.uk/CodeSystem/message-event", + "code": "prescription-order", + "display": "Prescription Order" + }, + "sender": { + "identifier": { + "system": "https://fhir.nhs.uk/Id/ods-organization-code", + "value": "RBA" + }, + "reference": "urn:uuid:56166769-c1c4-4d07-afa8-132b5dfca666", + "display": "SEVEN|FIFTY" + }, + "source": { + "endpoint": "https://directory.spineservices.nhs.uk/STU3/Organization/RBA" + }, + "destination": [ + { + "endpoint": "https://int.api.service.nhs.uk/electronic-prescriptions/$process-message", + "receiver": { + "identifier": { + "system": "https://fhir.nhs.uk/Id/ods-organization-code", + "value": "FH542" + } + } + } + ], + "focus": [ + { + "reference": "urn:uuid:00d3dd04-d162-49ce-a808-6f220906f1c8" + }, + { + "reference": "urn:uuid:1de954ac-a1ea-49ab-bd4e-88e99f191186" + }, + { + "reference": "urn:uuid:78d3c2eb-009e-4ec8-a358-b042954aa9b2" + }, + { + "reference": "urn:uuid:a8c85454-f8cb-498d-9629-78e2cb5fa47a" + }, + { + "reference": "urn:uuid:56166769-c1c4-4d07-afa8-132b5dfca666" + }, + { + "reference": "urn:uuid:3b4b03a5-52ba-4ba6-9b82-70350aa109d8" + } + ] + } + }, + { + "fullUrl": "urn:uuid:00d3dd04-d162-49ce-a808-6f220906f1c8", + "resource": { + "resourceType": "MedicationRequest", + "id": "00d3dd04-d162-49ce-a808-6f220906f1c8", + "extension": [ + { + "url": "https://fhir.nhs.uk/StructureDefinition/Extension-DM-PrescriptionType", + "valueCoding": { + "system": "https://fhir.nhs.uk/CodeSystem/prescription-type", + "code": "1001", + "display": "Outpatient Community Prescriber - Medical Prescriber" + } + }, + { + "url": "https://fhir.nhs.uk/StructureDefinition/Extension-DM-ControlledDrug", + "extension": [ + { + "url": "quantityWords", + "valueString": "twenty eight" + }, + { + "url": "schedule", + "valueCoding": { + "system": "https://fhir.nhs.uk/CodeSystem/medicationrequest-controlled-drug", + "code": "CD2", + "display": "Schedule 2" + } + } + ] + } + ], + "identifier": [ + { + "system": "https://fhir.nhs.uk/Id/prescription-order-item-number", + "value": "00d3dd04-d162-49ce-a808-6f220906f1c8" + } + ], + "status": "active", + "intent": "order", + "category": [ + { + "coding": [ + { + "system": "http://terminology.hl7.org/CodeSystem/medicationrequest-category", + "code": "outpatient", + "display": "Outpatient" + } + ] + } + ], + "medicationCodeableConcept": { + "coding": [ + { + "system": "http://snomed.info/sct", + "code": "36126511000001106", + "display": "Morphine 10mg modified-release tablets" + } + ] + }, + "subject": { + "reference": "urn:uuid:78d3c2eb-009e-4ec8-a358-b042954aa9b2" + }, + "requester": { + "reference": "urn:uuid:56166769-c1c4-4d07-afa8-132b5dfca666" + }, + "groupIdentifier": { + "extension": [ + { + "url": "https://fhir.nhs.uk/StructureDefinition/Extension-DM-PrescriptionId", + "valueIdentifier": { + "system": "https://fhir.nhs.uk/Id/prescription", + "value": "8ff3b279-1483-4db1-a59e-cb7c6f63b17c" + } + } + ], + "system": "https://fhir.nhs.uk/Id/prescription-order-number", + "value": "4F5374-A99968-4556BB" + }, + "courseOfTherapyType": { + "coding": [ + { + "system": "http://terminology.hl7.org/CodeSystem/medicationrequest-course-of-therapy", + "code": "acute", + "display": "Short course (acute) therapy" + } + ] + }, + "dosageInstruction": [ + { + "text": "1 tablet, daily" + } + ], + "dispenseRequest": { + "extension": [ + { + "url": "https://fhir.nhs.uk/StructureDefinition/Extension-DM-PerformerSiteType", + "valueCoding": { + "system": "https://fhir.nhs.uk/CodeSystem/dispensing-site-preference", + "code": "P1" + } + } + ], + "quantity": { + "value": 28, + "unit": "tablet", + "system": "http://snomed.info/sct", + "code": "428673006" + }, + "performer": { + "identifier": { + "system": "https://fhir.nhs.uk/Id/ods-organization-code", + "value": "FH542" + } + } + }, + "substitution": { + "allowedBoolean": false + } + } + }, + { + "fullUrl": "urn:uuid:1de954ac-a1ea-49ab-bd4e-88e99f191186", + "resource": { + "resourceType": "MedicationRequest", + "id": "1de954ac-a1ea-49ab-bd4e-88e99f191186", + "extension": [ + { + "url": "https://fhir.nhs.uk/StructureDefinition/Extension-DM-PrescriptionType", + "valueCoding": { + "system": "https://fhir.nhs.uk/CodeSystem/prescription-type", + "code": "1001", + "display": "Outpatient Community Prescriber - Medical Prescriber" + } + } + ], + "identifier": [ + { + "system": "https://fhir.nhs.uk/Id/prescription-order-item-number", + "value": "1de954ac-a1ea-49ab-bd4e-88e99f191186" + } + ], + "status": "active", + "intent": "order", + "category": [ + { + "coding": [ + { + "system": "http://terminology.hl7.org/CodeSystem/medicationrequest-category", + "code": "outpatient", + "display": "Outpatient" + } + ] + } + ], + "medicationCodeableConcept": { + "coding": [ + { + "system": "http://snomed.info/sct", + "code": "321196004", + "display": "Diazepam 2mg tablets" + } + ] + }, + "subject": { + "reference": "urn:uuid:78d3c2eb-009e-4ec8-a358-b042954aa9b2" + }, + "requester": { + "reference": "urn:uuid:56166769-c1c4-4d07-afa8-132b5dfca666" + }, + "groupIdentifier": { + "extension": [ + { + "url": "https://fhir.nhs.uk/StructureDefinition/Extension-DM-PrescriptionId", + "valueIdentifier": { + "system": "https://fhir.nhs.uk/Id/prescription", + "value": "8ff3b279-1483-4db1-a59e-cb7c6f63b17c" + } + } + ], + "system": "https://fhir.nhs.uk/Id/prescription-order-number", + "value": "4F5374-A99968-4556BB" + }, + "courseOfTherapyType": { + "coding": [ + { + "system": "http://terminology.hl7.org/CodeSystem/medicationrequest-course-of-therapy", + "code": "acute", + "display": "Short course (acute) therapy" + } + ] + }, + "note": [ + { + "text": "Dosage has been decreased on advice from the hospital." + } + ], + "dosageInstruction": [ + { + "text": "1 tablet, at NIGHT" + } + ], + "dispenseRequest": { + "extension": [ + { + "url": "https://fhir.nhs.uk/StructureDefinition/Extension-DM-PerformerSiteType", + "valueCoding": { + "system": "https://fhir.nhs.uk/CodeSystem/dispensing-site-preference", + "code": "P1" + } + } + ], + "quantity": { + "value": 28, + "unit": "tablet", + "system": "http://snomed.info/sct", + "code": "428673006" + }, + "performer": { + "identifier": { + "system": "https://fhir.nhs.uk/Id/ods-organization-code", + "value": "FH542" + } + } + }, + "substitution": { + "allowedBoolean": false + } + } + }, + { + "fullUrl": "urn:uuid:78d3c2eb-009e-4ec8-a358-b042954aa9b2", + "resource": { + "resourceType": "Patient", + "id": "78d3c2eb-009e-4ec8-a358-b042954aa9b2", + "identifier": [ + { + "system": "https://fhir.nhs.uk/Id/nhs-number", + "value": "9449303703" + } + ], + "name": [ + { + "use": "usual", + "family": "AKRASI", + "given": ["ROYDON"], + "prefix": ["MR"] + } + ], + "gender": "male", + "birthDate": "1959-08-20", + "address": [ + { + "use": "home", + "line": ["35 STEVENS LANE", "CLAYGATE", "SURREY"], + "postalCode": "KT10 0TQ" + } + ], + "generalPractitioner": [ + { + "identifier": { + "system": "https://fhir.nhs.uk/Id/ods-organization-code", + "value": "V81999" + } + } + ] + } + }, + { + "fullUrl": "urn:uuid:a8c85454-f8cb-498d-9629-78e2cb5fa47a", + "resource": { + "resourceType": "Practitioner", + "id": "a8c85454-f8cb-498d-9629-78e2cb5fa47a", + "identifier": [ + { + "system": "https://fhir.nhs.uk/Id/sds-user-id", + "value": "555086689106" + }, + { + "system": "https://fhir.hl7.org.uk/Id/gmc-number", + "value": "6150129" + } + ], + "name": [ + { + "family": "Fiftyseven", + "given": ["Random"], + "prefix": ["MR"] + } + ] + } + }, + { + "fullUrl": "urn:uuid:56166769-c1c4-4d07-afa8-132b5dfca666", + "resource": { + "resourceType": "PractitionerRole", + "id": "56166769-c1c4-4d07-afa8-132b5dfca666", + "identifier": [ + { + "system": "https://fhir.nhs.uk/Id/sds-role-profile-id", + "value": "601986680555" + }, + { + "system": "https://fhir.hl7.org.uk/Id/nhsbsa-spurious-code", + "value": "683458" + } + ], + "practitioner": { + "reference": "urn:uuid:a8c85454-f8cb-498d-9629-78e2cb5fa47a" + }, + "organization": { + "reference": "urn:uuid:3b4b03a5-52ba-4ba6-9b82-70350aa109d8" + }, + "code": [ + { + "coding": [ + { + "system": "https://fhir.nhs.uk/CodeSystem/NHSDigital-SDS-JobRoleCode", + "code": "S8000:G8000:R8000", + "display": "Clinical Practitioner Access Role" + } + ] + } + ], + "telecom": [ + { + "system": "phone", + "value": "01234567890", + "use": "work" + } + ] + } + }, + { + "fullUrl": "urn:uuid:3b4b03a5-52ba-4ba6-9b82-70350aa109d8", + "resource": { + "resourceType": "Organization", + "id": "3b4b03a5-52ba-4ba6-9b82-70350aa109d8", + "identifier": [ + { + "system": "https://fhir.nhs.uk/Id/ods-organization-code", + "value": "A99968" + } + ], + "name": "SOMERSET BOWEL CANCER SCREENING CENTRE", + "address": [ + { + "use": "work", + "line": ["MUSGROVE PARK HOSPITAL"], + "city": "TAUNTON", + "postalCode": "TA1 5DA" + } + ], + "telecom": [ + { + "system": "phone", + "value": "01823 333444", + "use": "work" + } + ], + "partOf": { + "identifier": { + "system": "https://fhir.nhs.uk/Id/ods-organization-code", + "value": "RBA" + }, + "display": "TAUNTON AND SOMERSET NHS FOUNDATION TRUST" + } + } + } + ] +} diff --git a/src/test/resources/examples/full_examples/secondary-care/community/acute/nominated-pharmacy/clinical-practitioner/controlled-drugs/2-Prepare-Response-200_OK.json b/src/test/resources/examples/full_examples/secondary-care/community/acute/nominated-pharmacy/clinical-practitioner/controlled-drugs/2-Prepare-Response-200_OK.json new file mode 100644 index 00000000..5c6c8e92 --- /dev/null +++ b/src/test/resources/examples/full_examples/secondary-care/community/acute/nominated-pharmacy/clinical-practitioner/controlled-drugs/2-Prepare-Response-200_OK.json @@ -0,0 +1,17 @@ +{ + "resourceType": "Parameters", + "parameter": [ + { + "name": "digest", + "valueString": "PFNpZ25lZEluZm8geG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvMDkveG1sZHNpZyMiPjxDYW5vbmljYWxpemF0aW9uTWV0aG9kIEFsZ29yaXRobT0iaHR0cDovL3d3dy53My5vcmcvMjAwMS8xMC94bWwtZXhjLWMxNG4jIj48L0Nhbm9uaWNhbGl6YXRpb25NZXRob2Q+PFNpZ25hdHVyZU1ldGhvZCBBbGdvcml0aG09Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvMDkveG1sZHNpZyNyc2Etc2hhMSI+PC9TaWduYXR1cmVNZXRob2Q+PFJlZmVyZW5jZT48VHJhbnNmb3Jtcz48VHJhbnNmb3JtIEFsZ29yaXRobT0iaHR0cDovL3d3dy53My5vcmcvMjAwMS8xMC94bWwtZXhjLWMxNG4jIj48L1RyYW5zZm9ybT48L1RyYW5zZm9ybXM+PERpZ2VzdE1ldGhvZCBBbGdvcml0aG09Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvMDkveG1sZHNpZyNzaGExIj48L0RpZ2VzdE1ldGhvZD48RGlnZXN0VmFsdWU+RE1UWlZlMlA5ZG1vTG04OXBvYXZnbmphbG1JPTwvRGlnZXN0VmFsdWU+PC9SZWZlcmVuY2U+PC9TaWduZWRJbmZvPg==" + }, + { + "name": "timestamp", + "valueString": "2022-10-25T10:24:34+00:00" + }, + { + "name": "algorithm", + "valueString": "RS1" + } + ] +} diff --git a/src/test/resources/examples/full_examples/secondary-care/community/acute/nominated-pharmacy/clinical-practitioner/controlled-drugs/2-Process-Request-Send-200_OK.json b/src/test/resources/examples/full_examples/secondary-care/community/acute/nominated-pharmacy/clinical-practitioner/controlled-drugs/2-Process-Request-Send-200_OK.json new file mode 100644 index 00000000..9d7cd163 --- /dev/null +++ b/src/test/resources/examples/full_examples/secondary-care/community/acute/nominated-pharmacy/clinical-practitioner/controlled-drugs/2-Process-Request-Send-200_OK.json @@ -0,0 +1,490 @@ +{ + "resourceType": "Bundle", + "id": "2c251ced-dc17-47ff-bd2f-36f4b8c27dda", + "identifier": { + "system": "https://tools.ietf.org/html/rfc4122", + "value": "44ad6a7b-bd25-487f-a4d8-4b28857cca63" + }, + "type": "message", + "entry": [ + { + "fullUrl": "urn:uuid:2c251ced-dc17-47ff-bd2f-36f4b8c27dda", + "resource": { + "resourceType": "MessageHeader", + "id": "A8F71A7D-B426-4B55-80A5-05436DE80486", + "eventCoding": { + "system": "https://fhir.nhs.uk/CodeSystem/message-event", + "code": "prescription-order", + "display": "Prescription Order" + }, + "sender": { + "identifier": { + "system": "https://fhir.nhs.uk/Id/ods-organization-code", + "value": "RBA" + }, + "reference": "urn:uuid:56166769-c1c4-4d07-afa8-132b5dfca666", + "display": "SEVEN|FIFTY" + }, + "source": { + "endpoint": "https://directory.spineservices.nhs.uk/STU3/Organization/RBA" + }, + "destination": [ + { + "endpoint": "https://int.api.service.nhs.uk/electronic-prescriptions/$process-message", + "receiver": { + "identifier": { + "system": "https://fhir.nhs.uk/Id/ods-organization-code", + "value": "FH542" + } + } + } + ], + "focus": [ + { + "reference": "urn:uuid:00d3dd04-d162-49ce-a808-6f220906f1c8" + }, + { + "reference": "urn:uuid:1de954ac-a1ea-49ab-bd4e-88e99f191186" + }, + { + "reference": "urn:uuid:78d3c2eb-009e-4ec8-a358-b042954aa9b2" + }, + { + "reference": "urn:uuid:a8c85454-f8cb-498d-9629-78e2cb5fa47a" + }, + { + "reference": "urn:uuid:56166769-c1c4-4d07-afa8-132b5dfca666" + }, + { + "reference": "urn:uuid:3b4b03a5-52ba-4ba6-9b82-70350aa109d8" + }, + { + "reference": "urn:uuid:b2a46b68-9e1e-49e6-a132-88b3308ed561" + } + ] + } + }, + { + "fullUrl": "urn:uuid:00d3dd04-d162-49ce-a808-6f220906f1c8", + "resource": { + "resourceType": "MedicationRequest", + "id": "00d3dd04-d162-49ce-a808-6f220906f1c8", + "extension": [ + { + "url": "https://fhir.nhs.uk/StructureDefinition/Extension-DM-PrescriptionType", + "valueCoding": { + "system": "https://fhir.nhs.uk/CodeSystem/prescription-type", + "code": "1001", + "display": "Outpatient Community Prescriber - Medical Prescriber" + } + }, + { + "url": "https://fhir.nhs.uk/StructureDefinition/Extension-DM-ControlledDrug", + "extension": [ + { + "url": "quantityWords", + "valueString": "twenty eight" + }, + { + "url": "schedule", + "valueCoding": { + "system": "https://fhir.nhs.uk/CodeSystem/medicationrequest-controlled-drug", + "code": "CD2", + "display": "Schedule 2" + } + } + ] + } + ], + "identifier": [ + { + "system": "https://fhir.nhs.uk/Id/prescription-order-item-number", + "value": "00d3dd04-d162-49ce-a808-6f220906f1c8" + } + ], + "status": "active", + "intent": "order", + "category": [ + { + "coding": [ + { + "system": "http://terminology.hl7.org/CodeSystem/medicationrequest-category", + "code": "outpatient", + "display": "Outpatient" + } + ] + } + ], + "medicationCodeableConcept": { + "coding": [ + { + "system": "http://snomed.info/sct", + "code": "36126511000001106", + "display": "Morphine 10mg modified-release tablets" + } + ] + }, + "subject": { + "reference": "urn:uuid:78d3c2eb-009e-4ec8-a358-b042954aa9b2" + }, + "requester": { + "reference": "urn:uuid:56166769-c1c4-4d07-afa8-132b5dfca666" + }, + "groupIdentifier": { + "extension": [ + { + "url": "https://fhir.nhs.uk/StructureDefinition/Extension-DM-PrescriptionId", + "valueIdentifier": { + "system": "https://fhir.nhs.uk/Id/prescription", + "value": "8ff3b279-1483-4db1-a59e-cb7c6f63b17c" + } + } + ], + "system": "https://fhir.nhs.uk/Id/prescription-order-number", + "value": "4F5374-A99968-4556BB" + }, + "courseOfTherapyType": { + "coding": [ + { + "system": "http://terminology.hl7.org/CodeSystem/medicationrequest-course-of-therapy", + "code": "acute", + "display": "Short course (acute) therapy" + } + ] + }, + "dosageInstruction": [ + { + "text": "1 tablet, daily" + } + ], + "dispenseRequest": { + "extension": [ + { + "url": "https://fhir.nhs.uk/StructureDefinition/Extension-DM-PerformerSiteType", + "valueCoding": { + "system": "https://fhir.nhs.uk/CodeSystem/dispensing-site-preference", + "code": "P1" + } + } + ], + "quantity": { + "value": 28, + "unit": "tablet", + "system": "http://snomed.info/sct", + "code": "428673006" + }, + "performer": { + "identifier": { + "system": "https://fhir.nhs.uk/Id/ods-organization-code", + "value": "FH542" + } + } + }, + "substitution": { + "allowedBoolean": false + } + } + }, + { + "fullUrl": "urn:uuid:1de954ac-a1ea-49ab-bd4e-88e99f191186", + "resource": { + "resourceType": "MedicationRequest", + "id": "1de954ac-a1ea-49ab-bd4e-88e99f191186", + "extension": [ + { + "url": "https://fhir.nhs.uk/StructureDefinition/Extension-DM-PrescriptionType", + "valueCoding": { + "system": "https://fhir.nhs.uk/CodeSystem/prescription-type", + "code": "1001", + "display": "Outpatient Community Prescriber - Medical Prescriber" + } + } + ], + "identifier": [ + { + "system": "https://fhir.nhs.uk/Id/prescription-order-item-number", + "value": "1de954ac-a1ea-49ab-bd4e-88e99f191186" + } + ], + "status": "active", + "intent": "order", + "category": [ + { + "coding": [ + { + "system": "http://terminology.hl7.org/CodeSystem/medicationrequest-category", + "code": "outpatient", + "display": "Outpatient" + } + ] + } + ], + "medicationCodeableConcept": { + "coding": [ + { + "system": "http://snomed.info/sct", + "code": "321196004", + "display": "Diazepam 2mg tablets" + } + ] + }, + "subject": { + "reference": "urn:uuid:78d3c2eb-009e-4ec8-a358-b042954aa9b2" + }, + "requester": { + "reference": "urn:uuid:56166769-c1c4-4d07-afa8-132b5dfca666" + }, + "groupIdentifier": { + "extension": [ + { + "url": "https://fhir.nhs.uk/StructureDefinition/Extension-DM-PrescriptionId", + "valueIdentifier": { + "system": "https://fhir.nhs.uk/Id/prescription", + "value": "8ff3b279-1483-4db1-a59e-cb7c6f63b17c" + } + } + ], + "system": "https://fhir.nhs.uk/Id/prescription-order-number", + "value": "4F5374-A99968-4556BB" + }, + "courseOfTherapyType": { + "coding": [ + { + "system": "http://terminology.hl7.org/CodeSystem/medicationrequest-course-of-therapy", + "code": "acute", + "display": "Short course (acute) therapy" + } + ] + }, + "note": [ + { + "text": "Dosage has been decreased on advice from the hospital." + } + ], + "dosageInstruction": [ + { + "text": "1 tablet, at NIGHT" + } + ], + "dispenseRequest": { + "extension": [ + { + "url": "https://fhir.nhs.uk/StructureDefinition/Extension-DM-PerformerSiteType", + "valueCoding": { + "system": "https://fhir.nhs.uk/CodeSystem/dispensing-site-preference", + "code": "P1" + } + } + ], + "quantity": { + "value": 28, + "unit": "tablet", + "system": "http://snomed.info/sct", + "code": "428673006" + }, + "performer": { + "identifier": { + "system": "https://fhir.nhs.uk/Id/ods-organization-code", + "value": "FH542" + } + } + }, + "substitution": { + "allowedBoolean": false + } + } + }, + { + "fullUrl": "urn:uuid:78d3c2eb-009e-4ec8-a358-b042954aa9b2", + "resource": { + "resourceType": "Patient", + "id": "78d3c2eb-009e-4ec8-a358-b042954aa9b2", + "identifier": [ + { + "system": "https://fhir.nhs.uk/Id/nhs-number", + "value": "9449303703" + } + ], + "name": [ + { + "use": "usual", + "family": "AKRASI", + "given": ["ROYDON"], + "prefix": ["MR"] + } + ], + "gender": "male", + "birthDate": "1959-08-20", + "address": [ + { + "use": "home", + "line": ["35 STEVENS LANE", "CLAYGATE", "SURREY"], + "postalCode": "KT10 0TQ" + } + ], + "generalPractitioner": [ + { + "identifier": { + "system": "https://fhir.nhs.uk/Id/ods-organization-code", + "value": "V81999" + } + } + ] + } + }, + { + "fullUrl": "urn:uuid:a8c85454-f8cb-498d-9629-78e2cb5fa47a", + "resource": { + "resourceType": "Practitioner", + "id": "a8c85454-f8cb-498d-9629-78e2cb5fa47a", + "identifier": [ + { + "system": "https://fhir.nhs.uk/Id/sds-user-id", + "value": "555086689106" + }, + { + "system": "https://fhir.hl7.org.uk/Id/gmc-number", + "value": "6150129" + } + ], + "name": [ + { + "family": "Fiftyseven", + "given": ["Random"], + "prefix": ["MR"] + } + ] + } + }, + { + "fullUrl": "urn:uuid:56166769-c1c4-4d07-afa8-132b5dfca666", + "resource": { + "resourceType": "PractitionerRole", + "id": "56166769-c1c4-4d07-afa8-132b5dfca666", + "identifier": [ + { + "system": "https://fhir.nhs.uk/Id/sds-role-profile-id", + "value": "601986680555" + }, + { + "system": "https://fhir.hl7.org.uk/Id/nhsbsa-spurious-code", + "value": "683458" + } + ], + "practitioner": { + "reference": "urn:uuid:a8c85454-f8cb-498d-9629-78e2cb5fa47a" + }, + "organization": { + "reference": "urn:uuid:3b4b03a5-52ba-4ba6-9b82-70350aa109d8" + }, + "code": [ + { + "coding": [ + { + "system": "https://fhir.nhs.uk/CodeSystem/NHSDigital-SDS-JobRoleCode", + "code": "S8000:G8000:R8000", + "display": "Clinical Practitioner Access Role" + } + ] + } + ], + "telecom": [ + { + "system": "phone", + "value": "01234567890", + "use": "work" + } + ] + } + }, + { + "fullUrl": "urn:uuid:3b4b03a5-52ba-4ba6-9b82-70350aa109d8", + "resource": { + "resourceType": "Organization", + "id": "3b4b03a5-52ba-4ba6-9b82-70350aa109d8", + "identifier": [ + { + "system": "https://fhir.nhs.uk/Id/ods-organization-code", + "value": "A99968" + } + ], + "name": "SOMERSET BOWEL CANCER SCREENING CENTRE", + "address": [ + { + "use": "work", + "line": ["MUSGROVE PARK HOSPITAL"], + "city": "TAUNTON", + "postalCode": "TA1 5DA" + } + ], + "telecom": [ + { + "system": "phone", + "value": "01823 333444", + "use": "work" + } + ], + "partOf": { + "identifier": { + "system": "https://fhir.nhs.uk/Id/ods-organization-code", + "value": "RBA" + }, + "display": "TAUNTON AND SOMERSET NHS FOUNDATION TRUST" + } + } + }, + { + "fullUrl": "urn:uuid:b2a46b68-9e1e-49e6-a132-88b3308ed561", + "resource": { + "resourceType": "Provenance", + "id": "b2a46b68-9e1e-49e6-a132-88b3308ed561", + "target": [ + { + "reference": "urn:uuid:a54219b8-f741-4c47-b662-e4f8dfa49ab6" + }, + { + "reference": "urn:uuid:00d3dd04-d162-49ce-a808-6f220906f1c8" + }, + { + "reference": "urn:uuid:1de954ac-a1ea-49ab-bd4e-88e99f191186" + }, + { + "reference": "urn:uuid:78d3c2eb-009e-4ec8-a358-b042954aa9b2" + }, + { + "reference": "urn:uuid:a8c85454-f8cb-498d-9629-78e2cb5fa47a" + }, + { + "reference": "urn:uuid:56166769-c1c4-4d07-afa8-132b5dfca666" + }, + { + "reference": "urn:uuid:3b4b03a5-52ba-4ba6-9b82-70350aa109d8" + } + ], + "recorded": "2008-02-27T11:38:00+00:00", + "agent": [ + { + "who": { + "reference": "urn:uuid:56166769-c1c4-4d07-afa8-132b5dfca666" + } + } + ], + "signature": [ + { + "type": [ + { + "system": "urn:iso-astm:E1762-95:2013", + "code": "1.2.840.10065.1.12.1.1" + } + ], + "when": "2021-05-07T14:47:45+00:00", + "who": { + "reference": "urn:uuid:56166769-c1c4-4d07-afa8-132b5dfca666" + }, + "data": "DQo8U2lnbmF0dXJlIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwLzA5L3htbGRzaWcjIj4NCiAgICA8U2lnbmVkSW5mbz48Q2Fub25pY2FsaXphdGlvbk1ldGhvZCBBbGdvcml0aG09Imh0dHA6Ly93d3cudzMub3JnLzIwMDEvMTAveG1sLWV4Yy1jMTRuIyI+PC9DYW5vbmljYWxpemF0aW9uTWV0aG9kPjxTaWduYXR1cmVNZXRob2QgQWxnb3JpdGhtPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwLzA5L3htbGRzaWcjcnNhLXNoYTEiPjwvU2lnbmF0dXJlTWV0aG9kPjxSZWZlcmVuY2U+PFRyYW5zZm9ybXM+PFRyYW5zZm9ybSBBbGdvcml0aG09Imh0dHA6Ly93d3cudzMub3JnLzIwMDEvMTAveG1sLWV4Yy1jMTRuIyI+PC9UcmFuc2Zvcm0+PC9UcmFuc2Zvcm1zPjxEaWdlc3RNZXRob2QgQWxnb3JpdGhtPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwLzA5L3htbGRzaWcjc2hhMSI+PC9EaWdlc3RNZXRob2Q+PERpZ2VzdFZhbHVlPmVNUjlEQjI5bnNlZGZYUHR6aDRTU3ZYL0FXTT08L0RpZ2VzdFZhbHVlPjwvUmVmZXJlbmNlPjwvU2lnbmVkSW5mbz4NCiAgICA8U2lnbmF0dXJlVmFsdWU+SHFQdzNHTzZLMXNTWXd5NFlYd2lxUnUxMWlRZnBPNkFVTW45cXA0bTBTdFVBcXJXYmt6dE9JWjcxeDgwVWwwZkl3RThzTDF3cHNtQXdoQzZxeFJuc3piemZvaXZQR25uMERnNFBneG1XVDZtOU1EL3ozNURxZVdWRkVrMGs1Nm4xUlE2REF2OHdDQXF0MVBzUS9uK1hha1hTSXQxS2pRNG00ckdhYzRJY0MwPTwvU2lnbmF0dXJlVmFsdWU+DQogICAgPEtleUluZm8+DQogICAgICAgIDxYNTA5RGF0YT4NCiAgICAgICAgICAgIDxYNTA5Q2VydGlmaWNhdGU+TUlJRHVEQ0NBcUNnQXdJQkFnSUVYY210SHpBTkJna3Foa2lHOXcwQkFRc0ZBREEyTVF3d0NnWURWUVFLRXdOdWFITXhDekFKQmdOVkJBc1RBa05CTVJrd0Z3WURWUVFERXhCT1NGTWdTVTVVSUV4bGRtVnNJREZFTUI0WERUSXdNVEF5TWpFd01qRTFOVm9YRFRJeU1UQXlNakV3TlRFMU5Wb3dRekVNTUFvR0ExVUVDaE1EYm1oek1ROHdEUVlEVlFRTEV3WlFaVzl3YkdVeElqQWdCZ05WQkFNTUdUVTFOVEkxTXpVeU1URXdPRjlTUVU1RVQwMWZWVk5GVWxFd2daOHdEUVlKS29aSWh2Y05BUUVCQlFBRGdZMEFNSUdKQW9HQkFLdDRzek53N09BSDdBUVJyRGUveEJJbXNNbU1pUzlFc3JUM2EzcC9MaDNicmR6STlhYWpUVVoyYi9jdmJPYTdQZVlkN3UrSzRhMlpkMFhrKzBHRm1ZR3pTVlg2aVlqYmx3cjB2YWkzMXpWN0crbEd2SHhINnBTb0xDd0lDYVpBRndhYmVENU96OTQreUEzYVdOV3RHVjBEZmg5cXdIM1pGQ0lNUnN2ZXJOMXBBZ01CQUFHamdnRkRNSUlCUHpBT0JnTlZIUThCQWY4RUJBTUNCa0F3WlFZRFZSMGdBUUgvQkZzd1dUQlhCZ3NxaGpvQWlYdG1BQU1DQURCSU1FWUdDQ3NHQVFVRkJ3SUJGanBvZEhSd2N6b3ZMM0JyYVM1dWFITXVkV3N2WTJWeWRHbG1hV05oZEdWZmNHOXNhV05wWlhNdlkyOXVkR1Z1ZEY5amIyMXRhWFJ0Wlc1ME1ETUdBMVVkSHdRc01Db3dLS0Ftb0NTR0ltaDBkSEE2THk5amNtd3VibWh6TG5WckwybHVkQzh4WkM5amNteGpNeTVqY213d0t3WURWUjBRQkNRd0lvQVBNakF5TURFd01qSXhNREl4TlRWYWdROHlNREl5TURNeE56RXdOVEUxTlZvd0h3WURWUjBqQkJnd0ZvQVVvSllmZ1lUTlBkNkVVS0w2UUxJekh4WTVQRkl3SFFZRFZSME9CQllFRkx0eXZZU3lhcWc2MEFFVVpneGswd3JqUkpjK01Ba0dBMVVkRXdRQ01BQXdHUVlKS29aSWh2WjlCMEVBQkF3d0Noc0VWamd1TXdNQ0JMQXdEUVlKS29aSWh2Y05BUUVMQlFBRGdnRUJBQmN6eThCOGp1UHBJZmFUTkZjeHJDMjJhQ1gveFlabWhyTC9OdklCQWFYMUc1aGppd21rR0tFMmhSVElyNjdQeFp4bVhzSnhpZ1JCTUhQbEkrbFkvK29rekgwR2k3YjVicWx3N3B4R0lnSk8wMDB3OHBGc3ZvOXc0MklZaEhvZHN2bkRWU3hoTVQwSjQ2UWhrOXNvRTBMam9FVUxLUVBQbFlHa2UvR2wzbTE3SXRGWXdPYlFIMGZNRXdtaXFCeWVJZno3Z1NjY096TDVjSXA2UGNaVE9qbzJJcVFwZ0VtaGpPY1JJbkVxQU5pdFNkam9pSkFKenBhYVpqWVRSZEhVWDdpN2FqRWlING05MW5GVys0QXFrTnR0bGI0V2NHS3NTbVdnZktLaGVGNElvWktNRTgweGVyU2dNeTh2dGpMT0JKQ0dYejB3TEdtUXVSbXhNVHE4OHE0PTwvWDUwOUNlcnRpZmljYXRlPg0KICAgICAgICA8L1g1MDlEYXRhPg0KICAgIDwvS2V5SW5mbz4NCjwvU2lnbmF0dXJlPg0K" + } + ] + } + } + ] +} diff --git a/src/test/resources/examples/full_examples/secondary-care/community/acute/nominated-pharmacy/clinical-practitioner/multiple-drugs/1-Prepare-Request-200_OK.json b/src/test/resources/examples/full_examples/secondary-care/community/acute/nominated-pharmacy/clinical-practitioner/multiple-drugs/1-Prepare-Request-200_OK.json new file mode 100644 index 00000000..4a598505 --- /dev/null +++ b/src/test/resources/examples/full_examples/secondary-care/community/acute/nominated-pharmacy/clinical-practitioner/multiple-drugs/1-Prepare-Request-200_OK.json @@ -0,0 +1,684 @@ +{ + "resourceType": "Bundle", + "id": "f190329a-3854-4a31-9ff5-417969f2a40d", + "identifier": { + "system": "https://tools.ietf.org/html/rfc4122", + "value": "d8f2e9c9-789d-402f-9995-1911be7431df" + }, + "type": "message", + "entry": [ + { + "fullUrl": "urn:uuid:f190329a-3854-4a31-9ff5-417969f2a40d", + "resource": { + "resourceType": "MessageHeader", + "id": "f190329a-3854-4a31-9ff5-417969f2a40d", + "eventCoding": { + "system": "https://fhir.nhs.uk/CodeSystem/message-event", + "code": "prescription-order", + "display": "Prescription Order" + }, + "sender": { + "identifier": { + "system": "https://fhir.nhs.uk/Id/ods-organization-code", + "value": "RBA" + }, + "reference": "urn:uuid:56166769-c1c4-4d07-afa8-132b5dfca666", + "display": "RANDOM|FIFTYSEVEN" + }, + "source": { + "endpoint": "https://directory.spineservices.nhs.uk/STU3/Organization/RBA" + }, + "destination": [ + { + "endpoint": "https://directory.spineservices.nhs.uk/STU3/Organization/FH542", + "receiver": { + "identifier": { + "system": "https://fhir.nhs.uk/Id/ods-organization-code", + "value": "FH542" + } + } + } + ], + "focus": [ + { + "reference": "urn:uuid:78d3c2eb-009e-4ec8-a358-b042954aa9b2" + } + ] + } + }, + { + "fullUrl": "urn:uuid:c1c92ca5-8d60-4d0d-a423-9c25f8a4c24d", + "resource": { + "resourceType": "MedicationRequest", + "id": "c1c92ca5-8d60-4d0d-a423-9c25f8a4c24d", + "extension": [ + { + "url": "https://fhir.nhs.uk/StructureDefinition/Extension-DM-PrescriptionType", + "valueCoding": { + "system": "https://fhir.nhs.uk/CodeSystem/prescription-type", + "code": "1001", + "display": "Outpatient Community Prescriber - Medical Prescriber" + } + } + ], + "identifier": [ + { + "system": "https://fhir.nhs.uk/Id/prescription-order-item-number", + "value": "c1c92ca5-8d60-4d0d-a423-9c25f8a4c24d" + } + ], + "status": "active", + "intent": "order", + "category": [ + { + "coding": [ + { + "system": "http://terminology.hl7.org/CodeSystem/medicationrequest-category", + "code": "outpatient", + "display": "Outpatient" + } + ] + } + ], + "medicationCodeableConcept": { + "coding": [ + { + "system": "http://snomed.info/sct", + "code": "329968007", + "display": "Diclofenac potassium 50mg tablets" + } + ] + }, + "subject": { + "reference": "urn:uuid:78d3c2eb-009e-4ec8-a358-b042954aa9b2" + }, + "requester": { + "reference": "urn:uuid:56166769-c1c4-4d07-afa8-132b5dfca666" + }, + "groupIdentifier": { + "extension": [ + { + "url": "https://fhir.nhs.uk/StructureDefinition/Extension-DM-PrescriptionId", + "valueIdentifier": { + "system": "https://fhir.nhs.uk/Id/prescription", + "value": "a030c4d8-c40f-4703-a020-2d91ed42fc62" + } + } + ], + "system": "https://fhir.nhs.uk/Id/prescription-order-number", + "value": "4243A0-A99968-4E149+" + }, + "courseOfTherapyType": { + "coding": [ + { + "system": "http://terminology.hl7.org/CodeSystem/medicationrequest-course-of-therapy", + "code": "acute", + "display": "Short course (acute) therapy" + } + ] + }, + "dosageInstruction": [ + { + "text": "1 tablet - 3 times a day - Oral route - One tablet three times daily", + "patientInstruction": "One tablet three times daily", + "timing": { + "repeat": { + "frequency": 3, + "period": 1, + "periodUnit": "d" + } + }, + "route": { + "coding": [ + { + "system": "http://snomed.info/sct", + "code": "26643006", + "display": "Oral route" + } + ] + }, + "doseAndRate": [ + { + "doseQuantity": { + "value": 1, + "unit": "tablet", + "system": "http://snomed.info/sct", + "code": "428673006" + } + } + ] + } + ], + "dispenseRequest": { + "extension": [ + { + "url": "https://fhir.nhs.uk/StructureDefinition/Extension-DM-PerformerSiteType", + "valueCoding": { + "system": "https://fhir.nhs.uk/CodeSystem/dispensing-site-preference", + "code": "P1" + } + } + ], + "quantity": { + "value": 84, + "unit": "tablet", + "system": "http://snomed.info/sct", + "code": "428673006" + }, + "performer": { + "identifier": { + "system": "https://fhir.nhs.uk/Id/ods-organization-code", + "value": "FH542" + } + } + }, + "substitution": { + "allowedBoolean": false + } + } + }, + { + "fullUrl": "urn:uuid:586a29cc-55ec-4fa0-aca5-8cd99a04b9f9", + "resource": { + "resourceType": "MedicationRequest", + "id": "586a29cc-55ec-4fa0-aca5-8cd99a04b9f9", + "extension": [ + { + "url": "https://fhir.nhs.uk/StructureDefinition/Extension-DM-PrescriptionType", + "valueCoding": { + "system": "https://fhir.nhs.uk/CodeSystem/prescription-type", + "code": "1001", + "display": "Outpatient Community Prescriber - Medical Prescriber" + } + } + ], + "identifier": [ + { + "system": "https://fhir.nhs.uk/Id/prescription-order-item-number", + "value": "586a29cc-55ec-4fa0-aca5-8cd99a04b9f9" + } + ], + "status": "active", + "intent": "order", + "category": [ + { + "coding": [ + { + "system": "http://terminology.hl7.org/CodeSystem/medicationrequest-category", + "code": "outpatient", + "display": "Outpatient" + } + ] + } + ], + "medicationCodeableConcept": { + "coding": [ + { + "system": "http://snomed.info/sct", + "code": "322236009", + "display": "Paracetamol 500mg tablets" + } + ] + }, + "subject": { + "reference": "urn:uuid:78d3c2eb-009e-4ec8-a358-b042954aa9b2" + }, + "requester": { + "reference": "urn:uuid:56166769-c1c4-4d07-afa8-132b5dfca666" + }, + "groupIdentifier": { + "extension": [ + { + "url": "https://fhir.nhs.uk/StructureDefinition/Extension-DM-PrescriptionId", + "valueIdentifier": { + "system": "https://fhir.nhs.uk/Id/prescription", + "value": "a030c4d8-c40f-4703-a020-2d91ed42fc62" + } + } + ], + "system": "https://fhir.nhs.uk/Id/prescription-order-number", + "value": "4243A0-A99968-4E149+" + }, + "courseOfTherapyType": { + "coding": [ + { + "system": "http://terminology.hl7.org/CodeSystem/medicationrequest-course-of-therapy", + "code": "acute", + "display": "Short course (acute) therapy" + } + ] + }, + "dosageInstruction": [ + { + "text": "4 times a day - Oral route - One or two, four times daily", + "patientInstruction": "One or two, four times daily", + "timing": { + "repeat": { + "frequency": 4, + "period": 1, + "periodUnit": "d" + } + }, + "route": { + "coding": [ + { + "system": "http://snomed.info/sct", + "code": "26643006", + "display": "Oral route" + } + ] + } + } + ], + "dispenseRequest": { + "extension": [ + { + "url": "https://fhir.nhs.uk/StructureDefinition/Extension-DM-PerformerSiteType", + "valueCoding": { + "system": "https://fhir.nhs.uk/CodeSystem/dispensing-site-preference", + "code": "P1" + } + } + ], + "quantity": { + "value": 100, + "unit": "tablet", + "system": "http://snomed.info/sct", + "code": "428673006" + }, + "performer": { + "identifier": { + "system": "https://fhir.nhs.uk/Id/ods-organization-code", + "value": "FH542" + } + } + }, + "substitution": { + "allowedBoolean": false + } + } + }, + { + "fullUrl": "urn:uuid:4a850960-6d79-4fcc-8e5a-7f6e24b09d80", + "resource": { + "resourceType": "MedicationRequest", + "id": "4a850960-6d79-4fcc-8e5a-7f6e24b09d80", + "extension": [ + { + "url": "https://fhir.nhs.uk/StructureDefinition/Extension-DM-PrescriptionType", + "valueCoding": { + "system": "https://fhir.nhs.uk/CodeSystem/prescription-type", + "code": "1001", + "display": "Outpatient Community Prescriber - Medical Prescriber" + } + } + ], + "identifier": [ + { + "system": "https://fhir.nhs.uk/Id/prescription-order-item-number", + "value": "4a850960-6d79-4fcc-8e5a-7f6e24b09d80" + } + ], + "status": "active", + "intent": "order", + "category": [ + { + "coding": [ + { + "system": "http://terminology.hl7.org/CodeSystem/medicationrequest-category", + "code": "outpatient", + "display": "Outpatient" + } + ] + } + ], + "medicationCodeableConcept": { + "coding": [ + { + "system": "http://snomed.info/sct", + "code": "36126811000001109", + "display": "Morphine 15mg modified-release tablets" + } + ] + }, + "subject": { + "reference": "urn:uuid:78d3c2eb-009e-4ec8-a358-b042954aa9b2" + }, + "requester": { + "reference": "urn:uuid:56166769-c1c4-4d07-afa8-132b5dfca666" + }, + "groupIdentifier": { + "extension": [ + { + "url": "https://fhir.nhs.uk/StructureDefinition/Extension-DM-PrescriptionId", + "valueIdentifier": { + "system": "https://fhir.nhs.uk/Id/prescription", + "value": "a030c4d8-c40f-4703-a020-2d91ed42fc62" + } + } + ], + "system": "https://fhir.nhs.uk/Id/prescription-order-number", + "value": "4243A0-A99968-4E149+" + }, + "courseOfTherapyType": { + "coding": [ + { + "system": "http://terminology.hl7.org/CodeSystem/medicationrequest-course-of-therapy", + "code": "acute", + "display": "Short course (acute) therapy" + } + ] + }, + "dosageInstruction": [ + { + "text": "twice a day - Oral route - One twice daily", + "patientInstruction": "One twice daily", + "timing": { + "repeat": { + "frequency": 2, + "period": 1, + "periodUnit": "d" + } + }, + "route": { + "coding": [ + { + "system": "http://snomed.info/sct", + "code": "26643006", + "display": "Oral route" + } + ] + } + } + ], + "dispenseRequest": { + "extension": [ + { + "url": "https://fhir.nhs.uk/StructureDefinition/Extension-DM-PerformerSiteType", + "valueCoding": { + "system": "https://fhir.nhs.uk/CodeSystem/dispensing-site-preference", + "code": "P1" + } + } + ], + "quantity": { + "value": 60, + "unit": "tablet", + "system": "http://snomed.info/sct", + "code": "428673006" + }, + "performer": { + "identifier": { + "system": "https://fhir.nhs.uk/Id/ods-organization-code", + "value": "FH542" + } + } + }, + "substitution": { + "allowedBoolean": false + } + } + }, + { + "fullUrl": "urn:uuid:f3ed8bb5-7331-4510-978f-4fe2d7d7b3d7", + "resource": { + "resourceType": "MedicationRequest", + "id": "f3ed8bb5-7331-4510-978f-4fe2d7d7b3d7", + "extension": [ + { + "url": "https://fhir.nhs.uk/StructureDefinition/Extension-DM-PrescriptionType", + "valueCoding": { + "system": "https://fhir.nhs.uk/CodeSystem/prescription-type", + "code": "1001", + "display": "Outpatient Community Prescriber - Medical Prescriber" + } + } + ], + "identifier": [ + { + "system": "https://fhir.nhs.uk/Id/prescription-order-item-number", + "value": "f3ed8bb5-7331-4510-978f-4fe2d7d7b3d7" + } + ], + "status": "active", + "intent": "order", + "category": [ + { + "coding": [ + { + "system": "http://terminology.hl7.org/CodeSystem/medicationrequest-category", + "code": "outpatient", + "display": "Outpatient" + } + ] + } + ], + "medicationCodeableConcept": { + "coding": [ + { + "system": "http://snomed.info/sct", + "code": "36120011000001101", + "display": "Fentanyl 25micrograms/hour transdermal patches" + } + ] + }, + "subject": { + "reference": "urn:uuid:78d3c2eb-009e-4ec8-a358-b042954aa9b2" + }, + "requester": { + "reference": "urn:uuid:56166769-c1c4-4d07-afa8-132b5dfca666" + }, + "groupIdentifier": { + "extension": [ + { + "url": "https://fhir.nhs.uk/StructureDefinition/Extension-DM-PrescriptionId", + "valueIdentifier": { + "system": "https://fhir.nhs.uk/Id/prescription", + "value": "a030c4d8-c40f-4703-a020-2d91ed42fc62" + } + } + ], + "system": "https://fhir.nhs.uk/Id/prescription-order-number", + "value": "4243A0-A99968-4E149+" + }, + "courseOfTherapyType": { + "coding": [ + { + "system": "http://terminology.hl7.org/CodeSystem/medicationrequest-course-of-therapy", + "code": "acute", + "display": "Short course (acute) therapy" + } + ] + }, + "dosageInstruction": [ + { + "text": "1 patch - every 72 hours - One every 72 hours", + "patientInstruction": "One every 72 hours", + "timing": { + "repeat": { + "frequency": 1, + "period": 72, + "periodUnit": "h" + } + }, + "doseAndRate": [ + { + "doseQuantity": { + "value": 1, + "unit": "patch", + "system": "http://snomed.info/sct", + "code": "419702001" + } + } + ] + } + ], + "dispenseRequest": { + "extension": [ + { + "url": "https://fhir.nhs.uk/StructureDefinition/Extension-DM-PerformerSiteType", + "valueCoding": { + "system": "https://fhir.nhs.uk/CodeSystem/dispensing-site-preference", + "code": "P1" + } + } + ], + "quantity": { + "value": 5, + "unit": "patch", + "system": "http://snomed.info/sct", + "code": "419702001" + }, + "performer": { + "identifier": { + "system": "https://fhir.nhs.uk/Id/ods-organization-code", + "value": "FH542" + } + } + }, + "substitution": { + "allowedBoolean": false + } + } + }, + { + "fullUrl": "urn:uuid:78d3c2eb-009e-4ec8-a358-b042954aa9b2", + "resource": { + "resourceType": "Patient", + "id": "78d3c2eb-009e-4ec8-a358-b042954aa9b2", + "identifier": [ + { + "system": "https://fhir.nhs.uk/Id/nhs-number", + "value": "9449310394" + } + ], + "name": [ + { + "use": "official", + "family": "Lewington", + "given": ["TRACE"], + "prefix": ["MR"] + } + ], + "gender": "male", + "birthDate": "1908-04-03", + "address": [ + { + "use": "home", + "line": ["1 NETHERNE LANE", "COULSDON", "Surrey"], + "postalCode": "CR5 1NR" + } + ], + "generalPractitioner": [ + { + "identifier": { + "system": "https://fhir.nhs.uk/Id/ods-organization-code", + "value": "B81001" + } + } + ] + } + }, + { + "fullUrl": "urn:uuid:a8c85454-f8cb-498d-9629-78e2cb5fa47a", + "resource": { + "resourceType": "Practitioner", + "id": "a8c85454-f8cb-498d-9629-78e2cb5fa47a", + "identifier": [ + { + "system": "https://fhir.nhs.uk/Id/sds-user-id", + "value": "555086689106" + }, + { + "system": "https://fhir.hl7.org.uk/Id/gmc-number", + "value": "6150129" + } + ], + "name": [ + { + "family": "FIFTYSEVEN", + "given": ["RANDOM"], + "prefix": ["MR"] + } + ] + } + }, + { + "fullUrl": "urn:uuid:56166769-c1c4-4d07-afa8-132b5dfca666", + "resource": { + "resourceType": "PractitionerRole", + "id": "56166769-c1c4-4d07-afa8-132b5dfca666", + "identifier": [ + { + "system": "https://fhir.nhs.uk/Id/sds-role-profile-id", + "value": "201715352555" + }, + { + "system": "https://fhir.hl7.org.uk/Id/nhsbsa-spurious-code", + "value": "683458" + } + ], + "practitioner": { + "reference": "urn:uuid:a8c85454-f8cb-498d-9629-78e2cb5fa47a" + }, + "organization": { + "reference": "urn:uuid:3b4b03a5-52ba-4ba6-9b82-70350aa109d8" + }, + "code": [ + { + "coding": [ + { + "system": "https://fhir.nhs.uk/CodeSystem/NHSDigital-SDS-JobRoleCode", + "code": "S8000:G8000:R8000", + "display": "Clinical Practitioner Access Role" + } + ] + } + ], + "telecom": [ + { + "system": "phone", + "value": "01234567890", + "use": "work" + } + ] + } + }, + { + "fullUrl": "urn:uuid:3b4b03a5-52ba-4ba6-9b82-70350aa109d8", + "resource": { + "resourceType": "Organization", + "id": "3b4b03a5-52ba-4ba6-9b82-70350aa109d8", + "identifier": [ + { + "system": "https://fhir.nhs.uk/Id/ods-organization-code", + "value": "A99968" + } + ], + "name": "SOMERSET BOWEL CANCER SCREENING CENTRE", + "address": [ + { + "use": "work", + "line": ["MUSGROVE PARK HOSPITAL"], + "city": "TAUNTON", + "postalCode": "TA1 5DA" + } + ], + "telecom": [ + { + "system": "phone", + "value": "01823 333444", + "use": "work" + } + ], + "partOf": { + "identifier": { + "system": "https://fhir.nhs.uk/Id/ods-organization-code", + "value": "RBA" + }, + "display": "TAUNTON AND SOMERSET NHS FOUNDATION TRUST" + } + } + } + ] +} diff --git a/src/test/resources/examples/full_examples/secondary-care/community/acute/nominated-pharmacy/clinical-practitioner/multiple-drugs/1-Prepare-Response-200_OK.json b/src/test/resources/examples/full_examples/secondary-care/community/acute/nominated-pharmacy/clinical-practitioner/multiple-drugs/1-Prepare-Response-200_OK.json new file mode 100644 index 00000000..a3d275c1 --- /dev/null +++ b/src/test/resources/examples/full_examples/secondary-care/community/acute/nominated-pharmacy/clinical-practitioner/multiple-drugs/1-Prepare-Response-200_OK.json @@ -0,0 +1,17 @@ +{ + "resourceType": "Parameters", + "parameter": [ + { + "name": "digest", + "valueString": "PFNpZ25lZEluZm8geG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvMDkveG1sZHNpZyMiPjxDYW5vbmljYWxpemF0aW9uTWV0aG9kIEFsZ29yaXRobT0iaHR0cDovL3d3dy53My5vcmcvMjAwMS8xMC94bWwtZXhjLWMxNG4jIj48L0Nhbm9uaWNhbGl6YXRpb25NZXRob2Q+PFNpZ25hdHVyZU1ldGhvZCBBbGdvcml0aG09Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvMDkveG1sZHNpZyNyc2Etc2hhMSI+PC9TaWduYXR1cmVNZXRob2Q+PFJlZmVyZW5jZT48VHJhbnNmb3Jtcz48VHJhbnNmb3JtIEFsZ29yaXRobT0iaHR0cDovL3d3dy53My5vcmcvMjAwMS8xMC94bWwtZXhjLWMxNG4jIj48L1RyYW5zZm9ybT48L1RyYW5zZm9ybXM+PERpZ2VzdE1ldGhvZCBBbGdvcml0aG09Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvMDkveG1sZHNpZyNzaGExIj48L0RpZ2VzdE1ldGhvZD48RGlnZXN0VmFsdWU+Q3ppTHlDcE9aMkNNbzhkVzgzVkEvSjZFblVRPTwvRGlnZXN0VmFsdWU+PC9SZWZlcmVuY2U+PC9TaWduZWRJbmZvPg==" + }, + { + "name": "timestamp", + "valueString": "2022-10-25T10:24:34+00:00" + }, + { + "name": "algorithm", + "valueString": "RS1" + } + ] +} diff --git a/src/test/resources/examples/full_examples/secondary-care/community/acute/nominated-pharmacy/clinical-practitioner/multiple-drugs/1-Process-Request-Send-200_OK.json b/src/test/resources/examples/full_examples/secondary-care/community/acute/nominated-pharmacy/clinical-practitioner/multiple-drugs/1-Process-Request-Send-200_OK.json new file mode 100644 index 00000000..38617c76 --- /dev/null +++ b/src/test/resources/examples/full_examples/secondary-care/community/acute/nominated-pharmacy/clinical-practitioner/multiple-drugs/1-Process-Request-Send-200_OK.json @@ -0,0 +1,719 @@ +{ + "resourceType": "Bundle", + "id": "f190329a-3854-4a31-9ff5-417969f2a40d", + "identifier": { + "system": "https://tools.ietf.org/html/rfc4122", + "value": "0e36a275-da3e-4bfa-9846-838ffe7b8e8b" + }, + "type": "message", + "entry": [ + { + "fullUrl": "urn:uuid:f190329a-3854-4a31-9ff5-417969f2a40d", + "resource": { + "resourceType": "MessageHeader", + "id": "f190329a-3854-4a31-9ff5-417969f2a40d", + "eventCoding": { + "system": "https://fhir.nhs.uk/CodeSystem/message-event", + "code": "prescription-order", + "display": "Prescription Order" + }, + "sender": { + "identifier": { + "system": "https://fhir.nhs.uk/Id/ods-organization-code", + "value": "RBA" + }, + "reference": "urn:uuid:56166769-c1c4-4d07-afa8-132b5dfca666", + "display": "RANDOM|FIFTYSEVEN" + }, + "source": { + "endpoint": "https://directory.spineservices.nhs.uk/STU3/Organization/RBA" + }, + "destination": [ + { + "endpoint": "https://directory.spineservices.nhs.uk/STU3/Organization/FH542", + "receiver": { + "identifier": { + "system": "https://fhir.nhs.uk/Id/ods-organization-code", + "value": "FH542" + } + } + } + ], + "focus": [ + { + "reference": "urn:uuid:78d3c2eb-009e-4ec8-a358-b042954aa9b2" + } + ] + } + }, + { + "fullUrl": "urn:uuid:c1c92ca5-8d60-4d0d-a423-9c25f8a4c24d", + "resource": { + "resourceType": "MedicationRequest", + "id": "c1c92ca5-8d60-4d0d-a423-9c25f8a4c24d", + "extension": [ + { + "url": "https://fhir.nhs.uk/StructureDefinition/Extension-DM-PrescriptionType", + "valueCoding": { + "system": "https://fhir.nhs.uk/CodeSystem/prescription-type", + "code": "1001", + "display": "Outpatient Community Prescriber - Medical Prescriber" + } + } + ], + "identifier": [ + { + "system": "https://fhir.nhs.uk/Id/prescription-order-item-number", + "value": "c1c92ca5-8d60-4d0d-a423-9c25f8a4c24d" + } + ], + "status": "active", + "intent": "order", + "category": [ + { + "coding": [ + { + "system": "http://terminology.hl7.org/CodeSystem/medicationrequest-category", + "code": "outpatient", + "display": "Outpatient" + } + ] + } + ], + "medicationCodeableConcept": { + "coding": [ + { + "system": "http://snomed.info/sct", + "code": "329968007", + "display": "Diclofenac potassium 50mg tablets" + } + ] + }, + "subject": { + "reference": "urn:uuid:78d3c2eb-009e-4ec8-a358-b042954aa9b2" + }, + "requester": { + "reference": "urn:uuid:56166769-c1c4-4d07-afa8-132b5dfca666" + }, + "groupIdentifier": { + "extension": [ + { + "url": "https://fhir.nhs.uk/StructureDefinition/Extension-DM-PrescriptionId", + "valueIdentifier": { + "system": "https://fhir.nhs.uk/Id/prescription", + "value": "a030c4d8-c40f-4703-a020-2d91ed42fc62" + } + } + ], + "system": "https://fhir.nhs.uk/Id/prescription-order-number", + "value": "4243A0-A99968-4E149+" + }, + "courseOfTherapyType": { + "coding": [ + { + "system": "http://terminology.hl7.org/CodeSystem/medicationrequest-course-of-therapy", + "code": "acute", + "display": "Short course (acute) therapy" + } + ] + }, + "dosageInstruction": [ + { + "text": "1 tablet - 3 times a day - Oral route - One tablet three times daily", + "patientInstruction": "One tablet three times daily", + "timing": { + "repeat": { + "frequency": 3, + "period": 1, + "periodUnit": "d" + } + }, + "route": { + "coding": [ + { + "system": "http://snomed.info/sct", + "code": "26643006", + "display": "Oral route" + } + ] + }, + "doseAndRate": [ + { + "doseQuantity": { + "value": 1, + "unit": "tablet", + "system": "http://snomed.info/sct", + "code": "428673006" + } + } + ] + } + ], + "dispenseRequest": { + "extension": [ + { + "url": "https://fhir.nhs.uk/StructureDefinition/Extension-DM-PerformerSiteType", + "valueCoding": { + "system": "https://fhir.nhs.uk/CodeSystem/dispensing-site-preference", + "code": "P1" + } + } + ], + "quantity": { + "value": 84, + "unit": "tablet", + "system": "http://snomed.info/sct", + "code": "428673006" + }, + "performer": { + "identifier": { + "system": "https://fhir.nhs.uk/Id/ods-organization-code", + "value": "FH542" + } + } + }, + "substitution": { + "allowedBoolean": false + } + } + }, + { + "fullUrl": "urn:uuid:586a29cc-55ec-4fa0-aca5-8cd99a04b9f9", + "resource": { + "resourceType": "MedicationRequest", + "id": "586a29cc-55ec-4fa0-aca5-8cd99a04b9f9", + "extension": [ + { + "url": "https://fhir.nhs.uk/StructureDefinition/Extension-DM-PrescriptionType", + "valueCoding": { + "system": "https://fhir.nhs.uk/CodeSystem/prescription-type", + "code": "1001", + "display": "Outpatient Community Prescriber - Medical Prescriber" + } + } + ], + "identifier": [ + { + "system": "https://fhir.nhs.uk/Id/prescription-order-item-number", + "value": "586a29cc-55ec-4fa0-aca5-8cd99a04b9f9" + } + ], + "status": "active", + "intent": "order", + "category": [ + { + "coding": [ + { + "system": "http://terminology.hl7.org/CodeSystem/medicationrequest-category", + "code": "outpatient", + "display": "Outpatient" + } + ] + } + ], + "medicationCodeableConcept": { + "coding": [ + { + "system": "http://snomed.info/sct", + "code": "322236009", + "display": "Paracetamol 500mg tablets" + } + ] + }, + "subject": { + "reference": "urn:uuid:78d3c2eb-009e-4ec8-a358-b042954aa9b2" + }, + "requester": { + "reference": "urn:uuid:56166769-c1c4-4d07-afa8-132b5dfca666" + }, + "groupIdentifier": { + "extension": [ + { + "url": "https://fhir.nhs.uk/StructureDefinition/Extension-DM-PrescriptionId", + "valueIdentifier": { + "system": "https://fhir.nhs.uk/Id/prescription", + "value": "a030c4d8-c40f-4703-a020-2d91ed42fc62" + } + } + ], + "system": "https://fhir.nhs.uk/Id/prescription-order-number", + "value": "4243A0-A99968-4E149+" + }, + "courseOfTherapyType": { + "coding": [ + { + "system": "http://terminology.hl7.org/CodeSystem/medicationrequest-course-of-therapy", + "code": "acute", + "display": "Short course (acute) therapy" + } + ] + }, + "dosageInstruction": [ + { + "text": "4 times a day - Oral route - One or two, four times daily", + "patientInstruction": "One or two, four times daily", + "timing": { + "repeat": { + "frequency": 4, + "period": 1, + "periodUnit": "d" + } + }, + "route": { + "coding": [ + { + "system": "http://snomed.info/sct", + "code": "26643006", + "display": "Oral route" + } + ] + } + } + ], + "dispenseRequest": { + "extension": [ + { + "url": "https://fhir.nhs.uk/StructureDefinition/Extension-DM-PerformerSiteType", + "valueCoding": { + "system": "https://fhir.nhs.uk/CodeSystem/dispensing-site-preference", + "code": "P1" + } + } + ], + "quantity": { + "value": 100, + "unit": "tablet", + "system": "http://snomed.info/sct", + "code": "428673006" + }, + "performer": { + "identifier": { + "system": "https://fhir.nhs.uk/Id/ods-organization-code", + "value": "FH542" + } + } + }, + "substitution": { + "allowedBoolean": false + } + } + }, + { + "fullUrl": "urn:uuid:4a850960-6d79-4fcc-8e5a-7f6e24b09d80", + "resource": { + "resourceType": "MedicationRequest", + "id": "4a850960-6d79-4fcc-8e5a-7f6e24b09d80", + "extension": [ + { + "url": "https://fhir.nhs.uk/StructureDefinition/Extension-DM-PrescriptionType", + "valueCoding": { + "system": "https://fhir.nhs.uk/CodeSystem/prescription-type", + "code": "1001", + "display": "Outpatient Community Prescriber - Medical Prescriber" + } + } + ], + "identifier": [ + { + "system": "https://fhir.nhs.uk/Id/prescription-order-item-number", + "value": "4a850960-6d79-4fcc-8e5a-7f6e24b09d80" + } + ], + "status": "active", + "intent": "order", + "category": [ + { + "coding": [ + { + "system": "http://terminology.hl7.org/CodeSystem/medicationrequest-category", + "code": "outpatient", + "display": "Outpatient" + } + ] + } + ], + "medicationCodeableConcept": { + "coding": [ + { + "system": "http://snomed.info/sct", + "code": "36126811000001109", + "display": "Morphine 15mg modified-release tablets" + } + ] + }, + "subject": { + "reference": "urn:uuid:78d3c2eb-009e-4ec8-a358-b042954aa9b2" + }, + "requester": { + "reference": "urn:uuid:56166769-c1c4-4d07-afa8-132b5dfca666" + }, + "groupIdentifier": { + "extension": [ + { + "url": "https://fhir.nhs.uk/StructureDefinition/Extension-DM-PrescriptionId", + "valueIdentifier": { + "system": "https://fhir.nhs.uk/Id/prescription", + "value": "a030c4d8-c40f-4703-a020-2d91ed42fc62" + } + } + ], + "system": "https://fhir.nhs.uk/Id/prescription-order-number", + "value": "4243A0-A99968-4E149+" + }, + "courseOfTherapyType": { + "coding": [ + { + "system": "http://terminology.hl7.org/CodeSystem/medicationrequest-course-of-therapy", + "code": "acute", + "display": "Short course (acute) therapy" + } + ] + }, + "dosageInstruction": [ + { + "text": "twice a day - Oral route - One twice daily", + "patientInstruction": "One twice daily", + "timing": { + "repeat": { + "frequency": 2, + "period": 1, + "periodUnit": "d" + } + }, + "route": { + "coding": [ + { + "system": "http://snomed.info/sct", + "code": "26643006", + "display": "Oral route" + } + ] + } + } + ], + "dispenseRequest": { + "extension": [ + { + "url": "https://fhir.nhs.uk/StructureDefinition/Extension-DM-PerformerSiteType", + "valueCoding": { + "system": "https://fhir.nhs.uk/CodeSystem/dispensing-site-preference", + "code": "P1" + } + } + ], + "quantity": { + "value": 60, + "unit": "tablet", + "system": "http://snomed.info/sct", + "code": "428673006" + }, + "performer": { + "identifier": { + "system": "https://fhir.nhs.uk/Id/ods-organization-code", + "value": "FH542" + } + } + }, + "substitution": { + "allowedBoolean": false + } + } + }, + { + "fullUrl": "urn:uuid:f3ed8bb5-7331-4510-978f-4fe2d7d7b3d7", + "resource": { + "resourceType": "MedicationRequest", + "id": "f3ed8bb5-7331-4510-978f-4fe2d7d7b3d7", + "extension": [ + { + "url": "https://fhir.nhs.uk/StructureDefinition/Extension-DM-PrescriptionType", + "valueCoding": { + "system": "https://fhir.nhs.uk/CodeSystem/prescription-type", + "code": "1001", + "display": "Outpatient Community Prescriber - Medical Prescriber" + } + } + ], + "identifier": [ + { + "system": "https://fhir.nhs.uk/Id/prescription-order-item-number", + "value": "f3ed8bb5-7331-4510-978f-4fe2d7d7b3d7" + } + ], + "status": "active", + "intent": "order", + "category": [ + { + "coding": [ + { + "system": "http://terminology.hl7.org/CodeSystem/medicationrequest-category", + "code": "outpatient", + "display": "Outpatient" + } + ] + } + ], + "medicationCodeableConcept": { + "coding": [ + { + "system": "http://snomed.info/sct", + "code": "36120011000001101", + "display": "Fentanyl 25micrograms/hour transdermal patches" + } + ] + }, + "subject": { + "reference": "urn:uuid:78d3c2eb-009e-4ec8-a358-b042954aa9b2" + }, + "requester": { + "reference": "urn:uuid:56166769-c1c4-4d07-afa8-132b5dfca666" + }, + "groupIdentifier": { + "extension": [ + { + "url": "https://fhir.nhs.uk/StructureDefinition/Extension-DM-PrescriptionId", + "valueIdentifier": { + "system": "https://fhir.nhs.uk/Id/prescription", + "value": "a030c4d8-c40f-4703-a020-2d91ed42fc62" + } + } + ], + "system": "https://fhir.nhs.uk/Id/prescription-order-number", + "value": "4243A0-A99968-4E149+" + }, + "courseOfTherapyType": { + "coding": [ + { + "system": "http://terminology.hl7.org/CodeSystem/medicationrequest-course-of-therapy", + "code": "acute", + "display": "Short course (acute) therapy" + } + ] + }, + "dosageInstruction": [ + { + "text": "1 patch - every 72 hours - One every 72 hours", + "patientInstruction": "One every 72 hours", + "timing": { + "repeat": { + "frequency": 1, + "period": 72, + "periodUnit": "h" + } + }, + "doseAndRate": [ + { + "doseQuantity": { + "value": 1, + "unit": "patch", + "system": "http://snomed.info/sct", + "code": "419702001" + } + } + ] + } + ], + "dispenseRequest": { + "extension": [ + { + "url": "https://fhir.nhs.uk/StructureDefinition/Extension-DM-PerformerSiteType", + "valueCoding": { + "system": "https://fhir.nhs.uk/CodeSystem/dispensing-site-preference", + "code": "P1" + } + } + ], + "quantity": { + "value": 5, + "unit": "patch", + "system": "http://snomed.info/sct", + "code": "419702001" + }, + "performer": { + "identifier": { + "system": "https://fhir.nhs.uk/Id/ods-organization-code", + "value": "FH542" + } + } + }, + "substitution": { + "allowedBoolean": false + } + } + }, + { + "fullUrl": "urn:uuid:78d3c2eb-009e-4ec8-a358-b042954aa9b2", + "resource": { + "resourceType": "Patient", + "id": "78d3c2eb-009e-4ec8-a358-b042954aa9b2", + "identifier": [ + { + "system": "https://fhir.nhs.uk/Id/nhs-number", + "value": "9449310394" + } + ], + "name": [ + { + "use": "official", + "family": "Lewington", + "given": ["TRACE"], + "prefix": ["MR"] + } + ], + "gender": "male", + "birthDate": "1908-04-03", + "address": [ + { + "use": "home", + "line": ["1 NETHERNE LANE", "COULSDON", "Surrey"], + "postalCode": "CR5 1NR" + } + ], + "generalPractitioner": [ + { + "identifier": { + "system": "https://fhir.nhs.uk/Id/ods-organization-code", + "value": "B81001" + } + } + ] + } + }, + { + "fullUrl": "urn:uuid:a8c85454-f8cb-498d-9629-78e2cb5fa47a", + "resource": { + "resourceType": "Practitioner", + "id": "a8c85454-f8cb-498d-9629-78e2cb5fa47a", + "identifier": [ + { + "system": "https://fhir.nhs.uk/Id/sds-user-id", + "value": "555086689106" + }, + { + "system": "https://fhir.hl7.org.uk/Id/gmc-number", + "value": "6150129" + } + ], + "name": [ + { + "family": "FIFTYSEVEN", + "given": ["RANDOM"], + "prefix": ["MR"] + } + ] + } + }, + { + "fullUrl": "urn:uuid:56166769-c1c4-4d07-afa8-132b5dfca666", + "resource": { + "resourceType": "PractitionerRole", + "id": "56166769-c1c4-4d07-afa8-132b5dfca666", + "identifier": [ + { + "system": "https://fhir.nhs.uk/Id/sds-role-profile-id", + "value": "201715352555" + }, + { + "system": "https://fhir.hl7.org.uk/Id/nhsbsa-spurious-code", + "value": "683458" + } + ], + "practitioner": { + "reference": "urn:uuid:a8c85454-f8cb-498d-9629-78e2cb5fa47a" + }, + "organization": { + "reference": "urn:uuid:3b4b03a5-52ba-4ba6-9b82-70350aa109d8" + }, + "code": [ + { + "coding": [ + { + "system": "https://fhir.nhs.uk/CodeSystem/NHSDigital-SDS-JobRoleCode", + "code": "S8000:G8000:R8000", + "display": "Clinical Practitioner Access Role" + } + ] + } + ], + "telecom": [ + { + "system": "phone", + "value": "01234567890", + "use": "work" + } + ] + } + }, + { + "fullUrl": "urn:uuid:3b4b03a5-52ba-4ba6-9b82-70350aa109d8", + "resource": { + "resourceType": "Organization", + "id": "3b4b03a5-52ba-4ba6-9b82-70350aa109d8", + "identifier": [ + { + "system": "https://fhir.nhs.uk/Id/ods-organization-code", + "value": "A99968" + } + ], + "name": "SOMERSET BOWEL CANCER SCREENING CENTRE", + "address": [ + { + "use": "work", + "line": ["MUSGROVE PARK HOSPITAL"], + "city": "TAUNTON", + "postalCode": "TA1 5DA" + } + ], + "telecom": [ + { + "system": "phone", + "value": "01823 333444", + "use": "work" + } + ], + "partOf": { + "identifier": { + "system": "https://fhir.nhs.uk/Id/ods-organization-code", + "value": "RBA" + }, + "display": "TAUNTON AND SOMERSET NHS FOUNDATION TRUST" + } + } + }, + { + "fullUrl": "urn:uuid:28828c55-8fa7-42d7-916f-fcf076e0c10e", + "resource": { + "resourceType": "Provenance", + "id": "28828c55-8fa7-42d7-916f-fcf076e0c10e", + "target": [ + { + "reference": "urn:uuid:a54219b8-f741-4c47-b662-e4f8dfa49ab6" + } + ], + "recorded": "2008-02-27T11:38:00+00:00", + "agent": [ + { + "who": { + "reference": "urn:uuid:56166769-c1c4-4d07-afa8-132b5dfca666" + } + } + ], + "signature": [ + { + "type": [ + { + "system": "urn:iso-astm:E1762-95:2013", + "code": "1.2.840.10065.1.12.1.1" + } + ], + "when": "2021-05-28T14:19:40+00:00", + "who": { + "reference": "urn:uuid:56166769-c1c4-4d07-afa8-132b5dfca666" + }, + "data": "DQo8U2lnbmF0dXJlIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwLzA5L3htbGRzaWcjIj4NCiAgICA8U2lnbmVkSW5mbz48Q2Fub25pY2FsaXphdGlvbk1ldGhvZCBBbGdvcml0aG09Imh0dHA6Ly93d3cudzMub3JnLzIwMDEvMTAveG1sLWV4Yy1jMTRuIyI+PC9DYW5vbmljYWxpemF0aW9uTWV0aG9kPjxTaWduYXR1cmVNZXRob2QgQWxnb3JpdGhtPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwLzA5L3htbGRzaWcjcnNhLXNoYTEiPjwvU2lnbmF0dXJlTWV0aG9kPjxSZWZlcmVuY2U+PFRyYW5zZm9ybXM+PFRyYW5zZm9ybSBBbGdvcml0aG09Imh0dHA6Ly93d3cudzMub3JnLzIwMDEvMTAveG1sLWV4Yy1jMTRuIyI+PC9UcmFuc2Zvcm0+PC9UcmFuc2Zvcm1zPjxEaWdlc3RNZXRob2QgQWxnb3JpdGhtPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwLzA5L3htbGRzaWcjc2hhMSI+PC9EaWdlc3RNZXRob2Q+PERpZ2VzdFZhbHVlPjNkSTNnWTA4SURMNjVIb2FLRmx1YkVrNTQzYz08L0RpZ2VzdFZhbHVlPjwvUmVmZXJlbmNlPjwvU2lnbmVkSW5mbz4NCiAgICA8U2lnbmF0dXJlVmFsdWU+bE1mMUtKYnR6UStDdXR6c1Q4YklRV2dFS1ArcERtVkhpek1DemQzVkhQN3gzemROenJVWGlOT0gyOUNzWVgzcko5UXVaWDZzRDQ5M0JpZ0JDRFUrU1NrMHJGdE5hVHl4MGJRV2hjd3VwNC9iRysyb2JXZHQrcFZLQ3dMVElTM0pHeG1sS0hyQkpudlJOOFg0TExtVEs0b1BkTVhmbkJXY2pmWmFLRk9rbmRrPTwvU2lnbmF0dXJlVmFsdWU+DQogICAgPEtleUluZm8+DQogICAgICAgIDxYNTA5RGF0YT4NCiAgICAgICAgICAgIDxYNTA5Q2VydGlmaWNhdGU+TUlJRHVEQ0NBcUNnQXdJQkFnSUVYY210SHpBTkJna3Foa2lHOXcwQkFRc0ZBREEyTVF3d0NnWURWUVFLRXdOdWFITXhDekFKQmdOVkJBc1RBa05CTVJrd0Z3WURWUVFERXhCT1NGTWdTVTVVSUV4bGRtVnNJREZFTUI0WERUSXdNVEF5TWpFd01qRTFOVm9YRFRJeU1UQXlNakV3TlRFMU5Wb3dRekVNTUFvR0ExVUVDaE1EYm1oek1ROHdEUVlEVlFRTEV3WlFaVzl3YkdVeElqQWdCZ05WQkFNTUdUVTFOVEkxTXpVeU1URXdPRjlTUVU1RVQwMWZWVk5GVWxFd2daOHdEUVlKS29aSWh2Y05BUUVCQlFBRGdZMEFNSUdKQW9HQkFLdDRzek53N09BSDdBUVJyRGUveEJJbXNNbU1pUzlFc3JUM2EzcC9MaDNicmR6STlhYWpUVVoyYi9jdmJPYTdQZVlkN3UrSzRhMlpkMFhrKzBHRm1ZR3pTVlg2aVlqYmx3cjB2YWkzMXpWN0crbEd2SHhINnBTb0xDd0lDYVpBRndhYmVENU96OTQreUEzYVdOV3RHVjBEZmg5cXdIM1pGQ0lNUnN2ZXJOMXBBZ01CQUFHamdnRkRNSUlCUHpBT0JnTlZIUThCQWY4RUJBTUNCa0F3WlFZRFZSMGdBUUgvQkZzd1dUQlhCZ3NxaGpvQWlYdG1BQU1DQURCSU1FWUdDQ3NHQVFVRkJ3SUJGanBvZEhSd2N6b3ZMM0JyYVM1dWFITXVkV3N2WTJWeWRHbG1hV05oZEdWZmNHOXNhV05wWlhNdlkyOXVkR1Z1ZEY5amIyMXRhWFJ0Wlc1ME1ETUdBMVVkSHdRc01Db3dLS0Ftb0NTR0ltaDBkSEE2THk5amNtd3VibWh6TG5WckwybHVkQzh4WkM5amNteGpNeTVqY213d0t3WURWUjBRQkNRd0lvQVBNakF5TURFd01qSXhNREl4TlRWYWdROHlNREl5TURNeE56RXdOVEUxTlZvd0h3WURWUjBqQkJnd0ZvQVVvSllmZ1lUTlBkNkVVS0w2UUxJekh4WTVQRkl3SFFZRFZSME9CQllFRkx0eXZZU3lhcWc2MEFFVVpneGswd3JqUkpjK01Ba0dBMVVkRXdRQ01BQXdHUVlKS29aSWh2WjlCMEVBQkF3d0Noc0VWamd1TXdNQ0JMQXdEUVlKS29aSWh2Y05BUUVMQlFBRGdnRUJBQmN6eThCOGp1UHBJZmFUTkZjeHJDMjJhQ1gveFlabWhyTC9OdklCQWFYMUc1aGppd21rR0tFMmhSVElyNjdQeFp4bVhzSnhpZ1JCTUhQbEkrbFkvK29rekgwR2k3YjVicWx3N3B4R0lnSk8wMDB3OHBGc3ZvOXc0MklZaEhvZHN2bkRWU3hoTVQwSjQ2UWhrOXNvRTBMam9FVUxLUVBQbFlHa2UvR2wzbTE3SXRGWXdPYlFIMGZNRXdtaXFCeWVJZno3Z1NjY096TDVjSXA2UGNaVE9qbzJJcVFwZ0VtaGpPY1JJbkVxQU5pdFNkam9pSkFKenBhYVpqWVRSZEhVWDdpN2FqRWlING05MW5GVys0QXFrTnR0bGI0V2NHS3NTbVdnZktLaGVGNElvWktNRTgweGVyU2dNeTh2dGpMT0JKQ0dYejB3TEdtUXVSbXhNVHE4OHE0PTwvWDUwOUNlcnRpZmljYXRlPg0KICAgICAgICA8L1g1MDlEYXRhPg0KICAgIDwvS2V5SW5mbz4NCjwvU2lnbmF0dXJlPg0K" + } + ] + } + } + ] +} diff --git a/src/test/resources/examples/full_examples/secondary-care/community/acute/nominated-pharmacy/clinical-practitioner/multiple-drugs/2-Prepare-Request-200_OK.json b/src/test/resources/examples/full_examples/secondary-care/community/acute/nominated-pharmacy/clinical-practitioner/multiple-drugs/2-Prepare-Request-200_OK.json new file mode 100644 index 00000000..f3973688 --- /dev/null +++ b/src/test/resources/examples/full_examples/secondary-care/community/acute/nominated-pharmacy/clinical-practitioner/multiple-drugs/2-Prepare-Request-200_OK.json @@ -0,0 +1,304 @@ +{ + "resourceType": "Bundle", + "id": "f190329a-3854-4a31-9ff5-417969f2a40d", + "identifier": { + "system": "https://tools.ietf.org/html/rfc4122", + "value": "7966761a-6c1f-4a79-b797-541e0440ddd2" + }, + "type": "message", + "entry": [ + { + "fullUrl": "urn:uuid:f190329a-3854-4a31-9ff5-417969f2a40d", + "resource": { + "resourceType": "MessageHeader", + "id": "f190329a-3854-4a31-9ff5-417969f2a40d", + "eventCoding": { + "system": "https://fhir.nhs.uk/CodeSystem/message-event", + "code": "prescription-order", + "display": "Prescription Order" + }, + "sender": { + "identifier": { + "system": "https://fhir.nhs.uk/Id/ods-organization-code", + "value": "RBA" + }, + "reference": "urn:uuid:56166769-c1c4-4d07-afa8-132b5dfca666", + "display": "RANDOM|FIFTYSEVEN" + }, + "source": { + "endpoint": "https://directory.spineservices.nhs.uk/STU3/Organization/RBA" + }, + "destination": [ + { + "endpoint": "https://directory.spineservices.nhs.uk/STU3/Organization/FH542", + "receiver": { + "identifier": { + "system": "https://fhir.nhs.uk/Id/ods-organization-code", + "value": "FH542" + } + } + } + ], + "focus": [ + { + "reference": "urn:uuid:78d3c2eb-009e-4ec8-a358-b042954aa9b2" + } + ] + } + }, + { + "fullUrl": "urn:uuid:787bcfda-e555-40ba-8422-ac79f3d11f0e", + "resource": { + "resourceType": "MedicationRequest", + "id": "787bcfda-e555-40ba-8422-ac79f3d11f0e", + "extension": [ + { + "url": "https://fhir.nhs.uk/StructureDefinition/Extension-DM-PrescriptionType", + "valueCoding": { + "system": "https://fhir.nhs.uk/CodeSystem/prescription-type", + "code": "1001", + "display": "Outpatient Community Prescriber - Medical Prescriber" + } + } + ], + "identifier": [ + { + "system": "https://fhir.nhs.uk/Id/prescription-order-item-number", + "value": "787bcfda-e555-40ba-8422-ac79f3d11f0e" + } + ], + "status": "active", + "intent": "order", + "category": [ + { + "coding": [ + { + "system": "http://terminology.hl7.org/CodeSystem/medicationrequest-category", + "code": "outpatient", + "display": "Outpatient" + } + ] + } + ], + "medicationCodeableConcept": { + "coding": [ + { + "system": "http://snomed.info/sct", + "code": "9655601000001105", + "display": "Glandosane" + } + ] + }, + "subject": { + "reference": "urn:uuid:78d3c2eb-009e-4ec8-a358-b042954aa9b2" + }, + "requester": { + "reference": "urn:uuid:56166769-c1c4-4d07-afa8-132b5dfca666" + }, + "groupIdentifier": { + "extension": [ + { + "url": "https://fhir.nhs.uk/StructureDefinition/Extension-DM-PrescriptionId", + "valueIdentifier": { + "system": "https://fhir.nhs.uk/Id/prescription", + "value": "b784fb9f-d2ec-4db7-a3e3-fcd5bbd53681" + } + } + ], + "system": "https://fhir.nhs.uk/Id/prescription-order-number", + "value": "FF7110-A99968-4179BK" + }, + "courseOfTherapyType": { + "coding": [ + { + "system": "http://terminology.hl7.org/CodeSystem/medicationrequest-course-of-therapy", + "code": "acute", + "display": "Short course (acute) therapy" + } + ] + }, + "dosageInstruction": [ + { + "text": "Follow directions", + "additionalInstruction": [ + { + "coding": [ + { + "system": "http://snomed.info/sct", + "code": "421769005", + "display": "Follow directions" + } + ] + } + ] + } + ], + "dispenseRequest": { + "extension": [ + { + "url": "https://fhir.nhs.uk/StructureDefinition/Extension-DM-PerformerSiteType", + "valueCoding": { + "system": "https://fhir.nhs.uk/CodeSystem/dispensing-site-preference", + "code": "P1" + } + } + ], + "quantity": { + "value": 50, + "unit": "ml", + "system": "http://snomed.info/sct", + "code": "258773002" + }, + "performer": { + "identifier": { + "system": "https://fhir.nhs.uk/Id/ods-organization-code", + "value": "FH542" + } + } + }, + "substitution": { + "allowedBoolean": false + } + } + }, + { + "fullUrl": "urn:uuid:78d3c2eb-009e-4ec8-a358-b042954aa9b2", + "resource": { + "resourceType": "Patient", + "id": "78d3c2eb-009e-4ec8-a358-b042954aa9b2", + "identifier": [ + { + "system": "https://fhir.nhs.uk/Id/nhs-number", + "value": "9449310394" + } + ], + "name": [ + { + "use": "official", + "family": "Lewington", + "given": ["TRACE"], + "prefix": ["MR"] + } + ], + "gender": "male", + "birthDate": "1908-04-03", + "address": [ + { + "use": "home", + "line": ["1 NETHERNE LANE", "COULSDON", "Surrey"], + "postalCode": "CR5 1NR" + } + ], + "generalPractitioner": [ + { + "identifier": { + "system": "https://fhir.nhs.uk/Id/ods-organization-code", + "value": "B81001" + } + } + ] + } + }, + { + "fullUrl": "urn:uuid:a8c85454-f8cb-498d-9629-78e2cb5fa47a", + "resource": { + "resourceType": "Practitioner", + "id": "a8c85454-f8cb-498d-9629-78e2cb5fa47a", + "identifier": [ + { + "system": "https://fhir.nhs.uk/Id/sds-user-id", + "value": "555086689106" + }, + { + "system": "https://fhir.hl7.org.uk/Id/gmc-number", + "value": "6150129" + } + ], + "name": [ + { + "family": "FIFTYSEVEN", + "given": ["RANDOM"], + "prefix": ["MR"] + } + ] + } + }, + { + "fullUrl": "urn:uuid:56166769-c1c4-4d07-afa8-132b5dfca666", + "resource": { + "resourceType": "PractitionerRole", + "id": "56166769-c1c4-4d07-afa8-132b5dfca666", + "identifier": [ + { + "system": "https://fhir.nhs.uk/Id/sds-role-profile-id", + "value": "201715352555" + }, + { + "system": "https://fhir.hl7.org.uk/Id/nhsbsa-spurious-code", + "value": "683458" + } + ], + "practitioner": { + "reference": "urn:uuid:a8c85454-f8cb-498d-9629-78e2cb5fa47a" + }, + "organization": { + "reference": "urn:uuid:3b4b03a5-52ba-4ba6-9b82-70350aa109d8" + }, + "code": [ + { + "coding": [ + { + "system": "https://fhir.nhs.uk/CodeSystem/NHSDigital-SDS-JobRoleCode", + "code": "S8000:G8000:R8000", + "display": "Clinical Practitioner Access Role" + } + ] + } + ], + "telecom": [ + { + "system": "phone", + "value": "01234567890", + "use": "work" + } + ] + } + }, + { + "fullUrl": "urn:uuid:3b4b03a5-52ba-4ba6-9b82-70350aa109d8", + "resource": { + "resourceType": "Organization", + "id": "3b4b03a5-52ba-4ba6-9b82-70350aa109d8", + "identifier": [ + { + "system": "https://fhir.nhs.uk/Id/ods-organization-code", + "value": "A99968" + } + ], + "name": "SOMERSET BOWEL CANCER SCREENING CENTRE", + "address": [ + { + "use": "work", + "line": ["MUSGROVE PARK HOSPITAL"], + "city": "TAUNTON", + "postalCode": "TA1 5DA" + } + ], + "telecom": [ + { + "system": "phone", + "value": "01823 333444", + "use": "work" + } + ], + "partOf": { + "identifier": { + "system": "https://fhir.nhs.uk/Id/ods-organization-code", + "value": "RBA" + }, + "display": "TAUNTON AND SOMERSET NHS FOUNDATION TRUST" + } + } + } + ] +} diff --git a/src/test/resources/examples/full_examples/secondary-care/community/acute/nominated-pharmacy/clinical-practitioner/multiple-drugs/2-Prepare-Response-200_OK.json b/src/test/resources/examples/full_examples/secondary-care/community/acute/nominated-pharmacy/clinical-practitioner/multiple-drugs/2-Prepare-Response-200_OK.json new file mode 100644 index 00000000..66c72ac9 --- /dev/null +++ b/src/test/resources/examples/full_examples/secondary-care/community/acute/nominated-pharmacy/clinical-practitioner/multiple-drugs/2-Prepare-Response-200_OK.json @@ -0,0 +1,17 @@ +{ + "resourceType": "Parameters", + "parameter": [ + { + "name": "digest", + "valueString": "PFNpZ25lZEluZm8geG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvMDkveG1sZHNpZyMiPjxDYW5vbmljYWxpemF0aW9uTWV0aG9kIEFsZ29yaXRobT0iaHR0cDovL3d3dy53My5vcmcvMjAwMS8xMC94bWwtZXhjLWMxNG4jIj48L0Nhbm9uaWNhbGl6YXRpb25NZXRob2Q+PFNpZ25hdHVyZU1ldGhvZCBBbGdvcml0aG09Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvMDkveG1sZHNpZyNyc2Etc2hhMSI+PC9TaWduYXR1cmVNZXRob2Q+PFJlZmVyZW5jZT48VHJhbnNmb3Jtcz48VHJhbnNmb3JtIEFsZ29yaXRobT0iaHR0cDovL3d3dy53My5vcmcvMjAwMS8xMC94bWwtZXhjLWMxNG4jIj48L1RyYW5zZm9ybT48L1RyYW5zZm9ybXM+PERpZ2VzdE1ldGhvZCBBbGdvcml0aG09Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvMDkveG1sZHNpZyNzaGExIj48L0RpZ2VzdE1ldGhvZD48RGlnZXN0VmFsdWU+SkYxWUUwZVpKRlc2N1Z0MStlV09Fa2t2RWRBPTwvRGlnZXN0VmFsdWU+PC9SZWZlcmVuY2U+PC9TaWduZWRJbmZvPg==" + }, + { + "name": "timestamp", + "valueString": "2022-10-25T10:24:34+00:00" + }, + { + "name": "algorithm", + "valueString": "RS1" + } + ] +} diff --git a/src/test/resources/examples/full_examples/secondary-care/community/acute/nominated-pharmacy/clinical-practitioner/multiple-drugs/2-Process-Request-Send-200_OK.json b/src/test/resources/examples/full_examples/secondary-care/community/acute/nominated-pharmacy/clinical-practitioner/multiple-drugs/2-Process-Request-Send-200_OK.json new file mode 100644 index 00000000..578da614 --- /dev/null +++ b/src/test/resources/examples/full_examples/secondary-care/community/acute/nominated-pharmacy/clinical-practitioner/multiple-drugs/2-Process-Request-Send-200_OK.json @@ -0,0 +1,339 @@ +{ + "resourceType": "Bundle", + "id": "f190329a-3854-4a31-9ff5-417969f2a40d", + "identifier": { + "system": "https://tools.ietf.org/html/rfc4122", + "value": "b947391d-db3a-43b4-8978-25ed965a05ab" + }, + "type": "message", + "entry": [ + { + "fullUrl": "urn:uuid:f190329a-3854-4a31-9ff5-417969f2a40d", + "resource": { + "resourceType": "MessageHeader", + "id": "f190329a-3854-4a31-9ff5-417969f2a40d", + "eventCoding": { + "system": "https://fhir.nhs.uk/CodeSystem/message-event", + "code": "prescription-order", + "display": "Prescription Order" + }, + "sender": { + "identifier": { + "system": "https://fhir.nhs.uk/Id/ods-organization-code", + "value": "RBA" + }, + "reference": "urn:uuid:56166769-c1c4-4d07-afa8-132b5dfca666", + "display": "RANDOM|FIFTYSEVEN" + }, + "source": { + "endpoint": "https://directory.spineservices.nhs.uk/STU3/Organization/RBA" + }, + "destination": [ + { + "endpoint": "https://directory.spineservices.nhs.uk/STU3/Organization/FH542", + "receiver": { + "identifier": { + "system": "https://fhir.nhs.uk/Id/ods-organization-code", + "value": "FH542" + } + } + } + ], + "focus": [ + { + "reference": "urn:uuid:78d3c2eb-009e-4ec8-a358-b042954aa9b2" + } + ] + } + }, + { + "fullUrl": "urn:uuid:787bcfda-e555-40ba-8422-ac79f3d11f0e", + "resource": { + "resourceType": "MedicationRequest", + "id": "787bcfda-e555-40ba-8422-ac79f3d11f0e", + "extension": [ + { + "url": "https://fhir.nhs.uk/StructureDefinition/Extension-DM-PrescriptionType", + "valueCoding": { + "system": "https://fhir.nhs.uk/CodeSystem/prescription-type", + "code": "1001", + "display": "Outpatient Community Prescriber - Medical Prescriber" + } + } + ], + "identifier": [ + { + "system": "https://fhir.nhs.uk/Id/prescription-order-item-number", + "value": "787bcfda-e555-40ba-8422-ac79f3d11f0e" + } + ], + "status": "active", + "intent": "order", + "category": [ + { + "coding": [ + { + "system": "http://terminology.hl7.org/CodeSystem/medicationrequest-category", + "code": "outpatient", + "display": "Outpatient" + } + ] + } + ], + "medicationCodeableConcept": { + "coding": [ + { + "system": "http://snomed.info/sct", + "code": "9655601000001105", + "display": "Glandosane" + } + ] + }, + "subject": { + "reference": "urn:uuid:78d3c2eb-009e-4ec8-a358-b042954aa9b2" + }, + "requester": { + "reference": "urn:uuid:56166769-c1c4-4d07-afa8-132b5dfca666" + }, + "groupIdentifier": { + "extension": [ + { + "url": "https://fhir.nhs.uk/StructureDefinition/Extension-DM-PrescriptionId", + "valueIdentifier": { + "system": "https://fhir.nhs.uk/Id/prescription", + "value": "30cb0885-a186-457d-b5d3-42b445d6d97a" + } + } + ], + "system": "https://fhir.nhs.uk/Id/prescription-order-number", + "value": "CF397C-A99968-4B009F" + }, + "courseOfTherapyType": { + "coding": [ + { + "system": "http://terminology.hl7.org/CodeSystem/medicationrequest-course-of-therapy", + "code": "acute", + "display": "Short course (acute) therapy" + } + ] + }, + "dosageInstruction": [ + { + "text": "Follow directions", + "additionalInstruction": [ + { + "coding": [ + { + "system": "http://snomed.info/sct", + "code": "421769005", + "display": "Follow directions" + } + ] + } + ] + } + ], + "dispenseRequest": { + "extension": [ + { + "url": "https://fhir.nhs.uk/StructureDefinition/Extension-DM-PerformerSiteType", + "valueCoding": { + "system": "https://fhir.nhs.uk/CodeSystem/dispensing-site-preference", + "code": "P1" + } + } + ], + "quantity": { + "value": 50, + "unit": "ml", + "system": "http://snomed.info/sct", + "code": "258773002" + }, + "performer": { + "identifier": { + "system": "https://fhir.nhs.uk/Id/ods-organization-code", + "value": "FH542" + } + } + }, + "substitution": { + "allowedBoolean": false + } + } + }, + { + "fullUrl": "urn:uuid:78d3c2eb-009e-4ec8-a358-b042954aa9b2", + "resource": { + "resourceType": "Patient", + "id": "78d3c2eb-009e-4ec8-a358-b042954aa9b2", + "identifier": [ + { + "system": "https://fhir.nhs.uk/Id/nhs-number", + "value": "9449310394" + } + ], + "name": [ + { + "use": "official", + "family": "Lewington", + "given": ["TRACE"], + "prefix": ["MR"] + } + ], + "gender": "male", + "birthDate": "1908-04-03", + "address": [ + { + "use": "home", + "line": ["1 NETHERNE LANE", "COULSDON", "Surrey"], + "postalCode": "CR5 1NR" + } + ], + "generalPractitioner": [ + { + "identifier": { + "system": "https://fhir.nhs.uk/Id/ods-organization-code", + "value": "B81001" + } + } + ] + } + }, + { + "fullUrl": "urn:uuid:a8c85454-f8cb-498d-9629-78e2cb5fa47a", + "resource": { + "resourceType": "Practitioner", + "id": "a8c85454-f8cb-498d-9629-78e2cb5fa47a", + "identifier": [ + { + "system": "https://fhir.nhs.uk/Id/sds-user-id", + "value": "555086689106" + }, + { + "system": "https://fhir.hl7.org.uk/Id/gmc-number", + "value": "6150129" + } + ], + "name": [ + { + "family": "FIFTYSEVEN", + "given": ["RANDOM"], + "prefix": ["MR"] + } + ] + } + }, + { + "fullUrl": "urn:uuid:56166769-c1c4-4d07-afa8-132b5dfca666", + "resource": { + "resourceType": "PractitionerRole", + "id": "56166769-c1c4-4d07-afa8-132b5dfca666", + "identifier": [ + { + "system": "https://fhir.nhs.uk/Id/sds-role-profile-id", + "value": "201715352555" + }, + { + "system": "https://fhir.hl7.org.uk/Id/nhsbsa-spurious-code", + "value": "683458" + } + ], + "practitioner": { + "reference": "urn:uuid:a8c85454-f8cb-498d-9629-78e2cb5fa47a" + }, + "organization": { + "reference": "urn:uuid:3b4b03a5-52ba-4ba6-9b82-70350aa109d8" + }, + "code": [ + { + "coding": [ + { + "system": "https://fhir.nhs.uk/CodeSystem/NHSDigital-SDS-JobRoleCode", + "code": "S8000:G8000:R8000", + "display": "Clinical Practitioner Access Role" + } + ] + } + ], + "telecom": [ + { + "system": "phone", + "value": "01234567890", + "use": "work" + } + ] + } + }, + { + "fullUrl": "urn:uuid:3b4b03a5-52ba-4ba6-9b82-70350aa109d8", + "resource": { + "resourceType": "Organization", + "id": "3b4b03a5-52ba-4ba6-9b82-70350aa109d8", + "identifier": [ + { + "system": "https://fhir.nhs.uk/Id/ods-organization-code", + "value": "A99968" + } + ], + "name": "SOMERSET BOWEL CANCER SCREENING CENTRE", + "address": [ + { + "use": "work", + "line": ["MUSGROVE PARK HOSPITAL"], + "city": "TAUNTON", + "postalCode": "TA1 5DA" + } + ], + "telecom": [ + { + "system": "phone", + "value": "01823 333444", + "use": "work" + } + ], + "partOf": { + "identifier": { + "system": "https://fhir.nhs.uk/Id/ods-organization-code", + "value": "RBA" + }, + "display": "TAUNTON AND SOMERSET NHS FOUNDATION TRUST" + } + } + }, + { + "fullUrl": "urn:uuid:28828c55-8fa7-42d7-916f-fcf076e0c10e", + "resource": { + "resourceType": "Provenance", + "id": "28828c55-8fa7-42d7-916f-fcf076e0c10e", + "target": [ + { + "reference": "urn:uuid:a54219b8-f741-4c47-b662-e4f8dfa49ab6" + } + ], + "recorded": "2008-02-27T11:38:00+00:00", + "agent": [ + { + "who": { + "reference": "urn:uuid:56166769-c1c4-4d07-afa8-132b5dfca666" + } + } + ], + "signature": [ + { + "type": [ + { + "system": "urn:iso-astm:E1762-95:2013", + "code": "1.2.840.10065.1.12.1.1" + } + ], + "when": "2021-05-28T14:19:41+00:00", + "who": { + "reference": "urn:uuid:56166769-c1c4-4d07-afa8-132b5dfca666" + }, + "data": "DQo8U2lnbmF0dXJlIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwLzA5L3htbGRzaWcjIj4NCiAgICA8U2lnbmVkSW5mbz48Q2Fub25pY2FsaXphdGlvbk1ldGhvZCBBbGdvcml0aG09Imh0dHA6Ly93d3cudzMub3JnLzIwMDEvMTAveG1sLWV4Yy1jMTRuIyI+PC9DYW5vbmljYWxpemF0aW9uTWV0aG9kPjxTaWduYXR1cmVNZXRob2QgQWxnb3JpdGhtPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwLzA5L3htbGRzaWcjcnNhLXNoYTEiPjwvU2lnbmF0dXJlTWV0aG9kPjxSZWZlcmVuY2U+PFRyYW5zZm9ybXM+PFRyYW5zZm9ybSBBbGdvcml0aG09Imh0dHA6Ly93d3cudzMub3JnLzIwMDEvMTAveG1sLWV4Yy1jMTRuIyI+PC9UcmFuc2Zvcm0+PC9UcmFuc2Zvcm1zPjxEaWdlc3RNZXRob2QgQWxnb3JpdGhtPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwLzA5L3htbGRzaWcjc2hhMSI+PC9EaWdlc3RNZXRob2Q+PERpZ2VzdFZhbHVlPlRWUUNwMnNQS3NNa0pvR2M0bUliYk96aFQ1MD08L0RpZ2VzdFZhbHVlPjwvUmVmZXJlbmNlPjwvU2lnbmVkSW5mbz4NCiAgICA8U2lnbmF0dXJlVmFsdWU+UUlkTTdGV2ZCSjJHcGFEckZOSkVGRkxmbTFCaURFTFI2aS8zc0FqSzFKOVY1RlhacGs5cm1oVDJxaTR5c3RjMThwSFNpVkF0UHVncWJDcEh4MEhwam4yVmpSZ08rY0xiKy8yb01GcTFSaE1sanc5YVdrNHB2bDV6MlVjSmhYdUNxTnptcFVMRndycDVoRFFCUHpNOHNpOVRjMHI2TlhJMjVGOHZLdzE3cmxJPTwvU2lnbmF0dXJlVmFsdWU+DQogICAgPEtleUluZm8+DQogICAgICAgIDxYNTA5RGF0YT4NCiAgICAgICAgICAgIDxYNTA5Q2VydGlmaWNhdGU+TUlJRHVEQ0NBcUNnQXdJQkFnSUVYY210SHpBTkJna3Foa2lHOXcwQkFRc0ZBREEyTVF3d0NnWURWUVFLRXdOdWFITXhDekFKQmdOVkJBc1RBa05CTVJrd0Z3WURWUVFERXhCT1NGTWdTVTVVSUV4bGRtVnNJREZFTUI0WERUSXdNVEF5TWpFd01qRTFOVm9YRFRJeU1UQXlNakV3TlRFMU5Wb3dRekVNTUFvR0ExVUVDaE1EYm1oek1ROHdEUVlEVlFRTEV3WlFaVzl3YkdVeElqQWdCZ05WQkFNTUdUVTFOVEkxTXpVeU1URXdPRjlTUVU1RVQwMWZWVk5GVWxFd2daOHdEUVlKS29aSWh2Y05BUUVCQlFBRGdZMEFNSUdKQW9HQkFLdDRzek53N09BSDdBUVJyRGUveEJJbXNNbU1pUzlFc3JUM2EzcC9MaDNicmR6STlhYWpUVVoyYi9jdmJPYTdQZVlkN3UrSzRhMlpkMFhrKzBHRm1ZR3pTVlg2aVlqYmx3cjB2YWkzMXpWN0crbEd2SHhINnBTb0xDd0lDYVpBRndhYmVENU96OTQreUEzYVdOV3RHVjBEZmg5cXdIM1pGQ0lNUnN2ZXJOMXBBZ01CQUFHamdnRkRNSUlCUHpBT0JnTlZIUThCQWY4RUJBTUNCa0F3WlFZRFZSMGdBUUgvQkZzd1dUQlhCZ3NxaGpvQWlYdG1BQU1DQURCSU1FWUdDQ3NHQVFVRkJ3SUJGanBvZEhSd2N6b3ZMM0JyYVM1dWFITXVkV3N2WTJWeWRHbG1hV05oZEdWZmNHOXNhV05wWlhNdlkyOXVkR1Z1ZEY5amIyMXRhWFJ0Wlc1ME1ETUdBMVVkSHdRc01Db3dLS0Ftb0NTR0ltaDBkSEE2THk5amNtd3VibWh6TG5WckwybHVkQzh4WkM5amNteGpNeTVqY213d0t3WURWUjBRQkNRd0lvQVBNakF5TURFd01qSXhNREl4TlRWYWdROHlNREl5TURNeE56RXdOVEUxTlZvd0h3WURWUjBqQkJnd0ZvQVVvSllmZ1lUTlBkNkVVS0w2UUxJekh4WTVQRkl3SFFZRFZSME9CQllFRkx0eXZZU3lhcWc2MEFFVVpneGswd3JqUkpjK01Ba0dBMVVkRXdRQ01BQXdHUVlKS29aSWh2WjlCMEVBQkF3d0Noc0VWamd1TXdNQ0JMQXdEUVlKS29aSWh2Y05BUUVMQlFBRGdnRUJBQmN6eThCOGp1UHBJZmFUTkZjeHJDMjJhQ1gveFlabWhyTC9OdklCQWFYMUc1aGppd21rR0tFMmhSVElyNjdQeFp4bVhzSnhpZ1JCTUhQbEkrbFkvK29rekgwR2k3YjVicWx3N3B4R0lnSk8wMDB3OHBGc3ZvOXc0MklZaEhvZHN2bkRWU3hoTVQwSjQ2UWhrOXNvRTBMam9FVUxLUVBQbFlHa2UvR2wzbTE3SXRGWXdPYlFIMGZNRXdtaXFCeWVJZno3Z1NjY096TDVjSXA2UGNaVE9qbzJJcVFwZ0VtaGpPY1JJbkVxQU5pdFNkam9pSkFKenBhYVpqWVRSZEhVWDdpN2FqRWlING05MW5GVys0QXFrTnR0bGI0V2NHS3NTbVdnZktLaGVGNElvWktNRTgweGVyU2dNeTh2dGpMT0JKQ0dYejB3TEdtUXVSbXhNVHE4OHE0PTwvWDUwOUNlcnRpZmljYXRlPg0KICAgICAgICA8L1g1MDlEYXRhPg0KICAgIDwvS2V5SW5mbz4NCjwvU2lnbmF0dXJlPg0K" + } + ] + } + } + ] +} diff --git a/src/test/resources/examples/full_examples/secondary-care/community/acute/nominated-pharmacy/health-professional/1-Prepare-Request-200_OK.json b/src/test/resources/examples/full_examples/secondary-care/community/acute/nominated-pharmacy/health-professional/1-Prepare-Request-200_OK.json new file mode 100644 index 00000000..b61c7edd --- /dev/null +++ b/src/test/resources/examples/full_examples/secondary-care/community/acute/nominated-pharmacy/health-professional/1-Prepare-Request-200_OK.json @@ -0,0 +1,332 @@ +{ + "resourceType": "Bundle", + "id": "f190329a-3854-4a31-9ff5-417969f2a40d", + "identifier": { + "system": "https://tools.ietf.org/html/rfc4122", + "value": "704567ad-b5b6-4dbb-92b2-35308a520a26" + }, + "type": "message", + "entry": [ + { + "fullUrl": "urn:uuid:f190329a-3854-4a31-9ff5-417969f2a40d", + "resource": { + "resourceType": "MessageHeader", + "id": "f190329a-3854-4a31-9ff5-417969f2a40d", + "eventCoding": { + "system": "https://fhir.nhs.uk/CodeSystem/message-event", + "code": "prescription-order", + "display": "Prescription Order" + }, + "sender": { + "reference": "urn:uuid:56166769-c1c4-4d07-afa8-132b5dfca666", + "display": "BOOTH|PHIL" + }, + "source": { + "extension": [ + { + "url": "https://fhir.nhs.uk/R4/StructureDefinition/Extension-spineEndpoint", + "valueIdentifier": { + "system": "https://fhir.nhs.uk/Id/spine-ASID", + "value": "12456789012" + } + } + ], + "name": "DJM", + "endpoint": "https://mait.digital.nhs.uk/" + }, + "focus": [ + { + "reference": "urn:uuid:78d3c2eb-009e-4ec8-a358-b042954aa9b2" + }, + { + "reference": "urn:uuid:a54219b8-f741-4c47-b662-e4f8dfa49ab6" + } + ] + } + }, + { + "fullUrl": "urn:uuid:a54219b8-f741-4c47-b662-e4f8dfa49ab6", + "resource": { + "resourceType": "MedicationRequest", + "id": "a54219b8-f741-4c47-b662-e4f8dfa49ab6", + "extension": [ + { + "url": "https://fhir.nhs.uk/StructureDefinition/Extension-DM-PrescriptionType", + "valueCoding": { + "system": "https://fhir.nhs.uk/CodeSystem/prescription-type", + "code": "1008", + "display": "Outpatient Community Prescriber - Pharmacist Independent/Supplementary prescriber" + } + } + ], + "identifier": [ + { + "system": "https://fhir.nhs.uk/Id/prescription-order-item-number", + "value": "a54219b8-f741-4c47-b662-e4f8dfa49ab6" + } + ], + "status": "active", + "intent": "order", + "category": [ + { + "coding": [ + { + "system": "http://terminology.hl7.org/CodeSystem/medicationrequest-category", + "code": "outpatient", + "display": "Outpatient" + } + ] + } + ], + "medicationCodeableConcept": { + "coding": [ + { + "system": "http://snomed.info/sct", + "code": "15517911000001104", + "display": "Methotrexate 10mg/0.2ml solution for injection pre-filled syringes" + } + ] + }, + "subject": { + "reference": "urn:uuid:78d3c2eb-009e-4ec8-a358-b042954aa9b2" + }, + "requester": { + "reference": "urn:uuid:56166769-c1c4-4d07-afa8-132b5dfca666" + }, + "groupIdentifier": { + "extension": [ + { + "url": "https://fhir.nhs.uk/StructureDefinition/Extension-DM-PrescriptionId", + "valueIdentifier": { + "system": "https://fhir.nhs.uk/Id/prescription", + "value": "2b21b5eb-b188-443e-bb3b-199588b13fbf" + } + } + ], + "system": "https://fhir.nhs.uk/Id/prescription-order-number", + "value": "C296DE-A99968-4E09B2" + }, + "courseOfTherapyType": { + "coding": [ + { + "system": "http://terminology.hl7.org/CodeSystem/medicationrequest-course-of-therapy", + "code": "acute", + "display": "Short course (acute) therapy" + } + ] + }, + "dosageInstruction": [ + { + "text": "Inject 10 milligram - 5 times a day - Subcutaneous route - for 10 days", + "timing": { + "repeat": { + "frequency": 5, + "period": 1, + "periodUnit": "d", + "boundsDuration": { + "value": 10, + "unit": "day", + "system": "http://unitsofmeasure.org", + "code": "d" + } + } + }, + "method": { + "coding": [ + { + "system": "http://snomed.info/sct", + "code": "422145002", + "display": "Inject" + } + ] + }, + "route": { + "coding": [ + { + "system": "http://snomed.info/sct", + "code": "34206005", + "display": "Subcutaneous route" + } + ] + }, + "doseAndRate": [ + { + "doseQuantity": { + "value": 10, + "unit": "milligram", + "system": "http://unitsofmeasure.org", + "code": "mg" + } + } + ] + } + ], + "dispenseRequest": { + "extension": [ + { + "url": "https://fhir.nhs.uk/StructureDefinition/Extension-DM-PerformerSiteType", + "valueCoding": { + "system": "https://fhir.nhs.uk/CodeSystem/dispensing-site-preference", + "code": "P1" + } + } + ], + "quantity": { + "value": 1, + "unit": "pre-filled disposable injection", + "system": "http://snomed.info/sct", + "code": "3318611000001103" + }, + "performer": { + "identifier": { + "system": "https://fhir.nhs.uk/Id/ods-organization-code", + "value": "FH542" + } + } + }, + "substitution": { + "allowedBoolean": false + } + } + }, + { + "fullUrl": "urn:uuid:78d3c2eb-009e-4ec8-a358-b042954aa9b2", + "resource": { + "resourceType": "Patient", + "id": "78d3c2eb-009e-4ec8-a358-b042954aa9b2", + "identifier": [ + { + "system": "https://fhir.nhs.uk/Id/nhs-number", + "value": "9449310394" + } + ], + "name": [ + { + "use": "official", + "family": "Lewington", + "given": ["TRACE"], + "prefix": ["MR"] + } + ], + "gender": "female", + "birthDate": "1999-11-25", + "address": [ + { + "use": "home", + "line": ["1 NETHERNE LANE", "COULSDON", "Surrey"], + "postalCode": "CR5 1NR" + } + ], + "generalPractitioner": [ + { + "identifier": { + "system": "https://fhir.nhs.uk/Id/ods-organization-code", + "value": "B81001" + } + } + ] + } + }, + { + "fullUrl": "urn:uuid:a8c85454-f8cb-498d-9629-78e2cb5fa47a", + "resource": { + "resourceType": "Practitioner", + "id": "a8c85454-f8cb-498d-9629-78e2cb5fa47a", + "identifier": [ + { + "system": "https://fhir.nhs.uk/Id/sds-user-id", + "value": "555086689106" + }, + { + "system": "https://fhir.hl7.org.uk/Id/gphc-number", + "value": "2083469" + } + ], + "name": [ + { + "family": "UserM", + "given": ["RANDOM"], + "prefix": ["MR"] + } + ] + } + }, + { + "fullUrl": "urn:uuid:56166769-c1c4-4d07-afa8-132b5dfca666", + "resource": { + "resourceType": "PractitionerRole", + "id": "56166769-c1c4-4d07-afa8-132b5dfca666", + "identifier": [ + { + "system": "https://fhir.nhs.uk/Id/sds-role-profile-id", + "value": "201715352555" + }, + { + "system": "https://fhir.hl7.org.uk/Id/nhsbsa-spurious-code", + "value": "2083469" + } + ], + "practitioner": { + "reference": "urn:uuid:a8c85454-f8cb-498d-9629-78e2cb5fa47a" + }, + "organization": { + "reference": "urn:uuid:3b4b03a5-52ba-4ba6-9b82-70350aa109d8" + }, + "code": [ + { + "coding": [ + { + "system": "https://fhir.nhs.uk/CodeSystem/NHSDigital-SDS-JobRoleCode", + "code": "S8003:G8003:R8003", + "display": "Health Professional Access Role" + } + ] + } + ], + "telecom": [ + { + "system": "phone", + "value": "01234567890", + "use": "work" + } + ] + } + }, + { + "fullUrl": "urn:uuid:3b4b03a5-52ba-4ba6-9b82-70350aa109d8", + "resource": { + "resourceType": "Organization", + "id": "3b4b03a5-52ba-4ba6-9b82-70350aa109d8", + "identifier": [ + { + "system": "https://fhir.nhs.uk/Id/ods-organization-code", + "value": "A99968" + } + ], + "name": "SOMERSET BOWEL CANCER SCREENING CENTRE", + "address": [ + { + "use": "work", + "line": ["MUSGROVE PARK HOSPITAL"], + "city": "TAUNTON", + "postalCode": "TA1 5DA" + } + ], + "telecom": [ + { + "system": "phone", + "value": "01823 333444", + "use": "work" + } + ], + "partOf": { + "identifier": { + "system": "https://fhir.nhs.uk/Id/ods-organization-code", + "value": "RBA" + }, + "display": "TAUNTON AND SOMERSET NHS FOUNDATION TRUST" + } + } + } + ] +} diff --git a/src/test/resources/examples/full_examples/secondary-care/community/acute/nominated-pharmacy/health-professional/1-Prepare-Response-200_OK.json b/src/test/resources/examples/full_examples/secondary-care/community/acute/nominated-pharmacy/health-professional/1-Prepare-Response-200_OK.json new file mode 100644 index 00000000..352759b9 --- /dev/null +++ b/src/test/resources/examples/full_examples/secondary-care/community/acute/nominated-pharmacy/health-professional/1-Prepare-Response-200_OK.json @@ -0,0 +1,17 @@ +{ + "resourceType": "Parameters", + "parameter": [ + { + "name": "digest", + "valueString": "PFNpZ25lZEluZm8geG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvMDkveG1sZHNpZyMiPjxDYW5vbmljYWxpemF0aW9uTWV0aG9kIEFsZ29yaXRobT0iaHR0cDovL3d3dy53My5vcmcvMjAwMS8xMC94bWwtZXhjLWMxNG4jIj48L0Nhbm9uaWNhbGl6YXRpb25NZXRob2Q+PFNpZ25hdHVyZU1ldGhvZCBBbGdvcml0aG09Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvMDkveG1sZHNpZyNyc2Etc2hhMSI+PC9TaWduYXR1cmVNZXRob2Q+PFJlZmVyZW5jZT48VHJhbnNmb3Jtcz48VHJhbnNmb3JtIEFsZ29yaXRobT0iaHR0cDovL3d3dy53My5vcmcvMjAwMS8xMC94bWwtZXhjLWMxNG4jIj48L1RyYW5zZm9ybT48L1RyYW5zZm9ybXM+PERpZ2VzdE1ldGhvZCBBbGdvcml0aG09Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvMDkveG1sZHNpZyNzaGExIj48L0RpZ2VzdE1ldGhvZD48RGlnZXN0VmFsdWU+VDBCd0JQVEUzZksyWmlhWUxsZkR1K0hpUGdrPTwvRGlnZXN0VmFsdWU+PC9SZWZlcmVuY2U+PC9TaWduZWRJbmZvPg==" + }, + { + "name": "timestamp", + "valueString": "2022-10-25T10:24:34+00:00" + }, + { + "name": "algorithm", + "valueString": "RS1" + } + ] +} diff --git a/src/test/resources/examples/full_examples/secondary-care/community/acute/nominated-pharmacy/health-professional/1-Process-Request-Cancel-200_OK.json b/src/test/resources/examples/full_examples/secondary-care/community/acute/nominated-pharmacy/health-professional/1-Process-Request-Cancel-200_OK.json new file mode 100644 index 00000000..8049f385 --- /dev/null +++ b/src/test/resources/examples/full_examples/secondary-care/community/acute/nominated-pharmacy/health-professional/1-Process-Request-Cancel-200_OK.json @@ -0,0 +1,346 @@ +{ + "resourceType": "Bundle", + "id": "0a1fd9ef-a3d5-4e95-84cd-552070a03083", + "identifier": { + "system": "https://tools.ietf.org/html/rfc4122", + "value": "e78f40d0-f889-4144-8733-60a1126384d7" + }, + "type": "message", + "entry": [ + { + "fullUrl": "urn:uuid:0a1fd9ef-a3d5-4e95-84cd-552070a03083", + "resource": { + "resourceType": "MessageHeader", + "id": "0a1fd9ef-a3d5-4e95-84cd-552070a03086", + "eventCoding": { + "system": "https://fhir.nhs.uk/CodeSystem/message-event", + "code": "prescription-order-update", + "display": "Prescription Order Update" + }, + "sender": { + "identifier": { + "system": "https://fhir.nhs.uk/Id/ods-organization-code", + "value": "RBA" + }, + "reference": "urn:uuid:56166769-c1c4-4d07-afa8-132b5dfca666", + "display": "BOOTH|PHIL" + }, + "source": { + "endpoint": "https://directory.spineservices.nhs.uk/STU3/Organization/RBA" + }, + "destination": [ + { + "endpoint": "https://directory.spineservices.nhs.uk/STU3/Organization/FH542", + "receiver": { + "identifier": { + "system": "https://fhir.nhs.uk/Id/ods-organization-code", + "value": "FH542" + } + } + } + ], + "focus": [ + { + "reference": "urn:uuid:78d3c2eb-009e-4ec8-a358-b042954aa9b2" + }, + { + "reference": "urn:uuid:a54219b8-f741-4c47-b662-e4f8dfa49ab6" + } + ] + } + }, + { + "fullUrl": "urn:uuid:a54219b8-f741-4c47-b662-e4f8dfa49ab6", + "resource": { + "resourceType": "MedicationRequest", + "id": "a54219b8-f741-4c47-b662-e4f8dfa49ab6", + "extension": [ + { + "url": "https://fhir.nhs.uk/StructureDefinition/Extension-DM-PrescriptionType", + "valueCoding": { + "system": "https://fhir.nhs.uk/CodeSystem/prescription-type", + "code": "1008", + "display": "Outpatient Community Prescriber - Pharmacist Independent/Supplementary prescriber" + } + } + ], + "identifier": [ + { + "system": "https://fhir.nhs.uk/Id/prescription-order-item-number", + "value": "a54219b8-f741-4c47-b662-e4f8dfa49ab6" + } + ], + "status": "cancelled", + "statusReason": { + "coding": [ + { + "system": "https://fhir.nhs.uk/CodeSystem/medicationrequest-status-reason", + "code": "0001", + "display": "Prescribing Error" + } + ] + }, + "intent": "order", + "category": [ + { + "coding": [ + { + "system": "http://terminology.hl7.org/CodeSystem/medicationrequest-category", + "code": "outpatient", + "display": "Outpatient" + } + ] + } + ], + "medicationCodeableConcept": { + "coding": [ + { + "system": "http://snomed.info/sct", + "code": "15517911000001104", + "display": "Methotrexate 10mg/0.2ml solution for injection pre-filled syringes" + } + ] + }, + "subject": { + "reference": "urn:uuid:78d3c2eb-009e-4ec8-a358-b042954aa9b2" + }, + "requester": { + "reference": "urn:uuid:56166769-c1c4-4d07-afa8-132b5dfca666" + }, + "groupIdentifier": { + "extension": [ + { + "url": "https://fhir.nhs.uk/StructureDefinition/Extension-DM-PrescriptionId", + "valueIdentifier": { + "system": "https://fhir.nhs.uk/Id/prescription", + "value": "2b21b5eb-b188-443e-bb3b-199588b13fbf" + } + } + ], + "system": "https://fhir.nhs.uk/Id/prescription-order-number", + "value": "C296DE-A99968-4E09B2" + }, + "courseOfTherapyType": { + "coding": [ + { + "system": "http://terminology.hl7.org/CodeSystem/medicationrequest-course-of-therapy", + "code": "acute", + "display": "Short course (acute) therapy" + } + ] + }, + "dosageInstruction": [ + { + "text": "Inject 10 milligram - 5 times a day - Subcutaneous route - for 10 days", + "timing": { + "repeat": { + "frequency": 5, + "period": 1, + "periodUnit": "d", + "boundsDuration": { + "value": 10, + "unit": "day", + "system": "http://unitsofmeasure.org", + "code": "d" + } + } + }, + "method": { + "coding": [ + { + "system": "http://snomed.info/sct", + "code": "422145002", + "display": "Inject" + } + ] + }, + "route": { + "coding": [ + { + "system": "http://snomed.info/sct", + "code": "34206005", + "display": "Subcutaneous route" + } + ] + }, + "doseAndRate": [ + { + "doseQuantity": { + "value": 10, + "unit": "milligram", + "system": "http://unitsofmeasure.org", + "code": "mg" + } + } + ] + } + ], + "dispenseRequest": { + "extension": [ + { + "url": "https://fhir.nhs.uk/StructureDefinition/Extension-DM-PerformerSiteType", + "valueCoding": { + "system": "https://fhir.nhs.uk/CodeSystem/dispensing-site-preference", + "code": "P1" + } + } + ], + "quantity": { + "value": 1, + "unit": "pre-filled disposable injection", + "system": "http://snomed.info/sct", + "code": "3318611000001103" + }, + "performer": { + "identifier": { + "system": "https://fhir.nhs.uk/Id/ods-organization-code", + "value": "FH542" + } + } + }, + "substitution": { + "allowedBoolean": false + } + } + }, + { + "fullUrl": "urn:uuid:78d3c2eb-009e-4ec8-a358-b042954aa9b2", + "resource": { + "resourceType": "Patient", + "id": "78d3c2eb-009e-4ec8-a358-b042954aa9b2", + "identifier": [ + { + "system": "https://fhir.nhs.uk/Id/nhs-number", + "value": "9449310394" + } + ], + "name": [ + { + "use": "official", + "family": "Lewington", + "given": ["TRACE"], + "prefix": ["MR"] + } + ], + "gender": "female", + "birthDate": "1999-11-25", + "address": [ + { + "use": "home", + "line": ["1 NETHERNE LANE", "COULSDON", "Surrey"], + "postalCode": "CR5 1NR" + } + ], + "generalPractitioner": [ + { + "identifier": { + "system": "https://fhir.nhs.uk/Id/ods-organization-code", + "value": "B81001" + } + } + ] + } + }, + { + "fullUrl": "urn:uuid:a8c85454-f8cb-498d-9629-78e2cb5fa47a", + "resource": { + "resourceType": "Practitioner", + "id": "a8c85454-f8cb-498d-9629-78e2cb5fa47a", + "identifier": [ + { + "system": "https://fhir.nhs.uk/Id/sds-user-id", + "value": "555086689106" + }, + { + "system": "https://fhir.hl7.org.uk/Id/gphc-number", + "value": "2083469" + } + ], + "name": [ + { + "family": "UserM", + "given": ["RANDOM"], + "prefix": ["MR"] + } + ] + } + }, + { + "fullUrl": "urn:uuid:56166769-c1c4-4d07-afa8-132b5dfca666", + "resource": { + "resourceType": "PractitionerRole", + "id": "56166769-c1c4-4d07-afa8-132b5dfca666", + "identifier": [ + { + "system": "https://fhir.nhs.uk/Id/sds-role-profile-id", + "value": "201715352555" + }, + { + "system": "https://fhir.hl7.org.uk/Id/nhsbsa-spurious-code", + "value": "2083469" + } + ], + "practitioner": { + "reference": "urn:uuid:a8c85454-f8cb-498d-9629-78e2cb5fa47a" + }, + "organization": { + "reference": "urn:uuid:3b4b03a5-52ba-4ba6-9b82-70350aa109d8" + }, + "code": [ + { + "coding": [ + { + "system": "https://fhir.nhs.uk/CodeSystem/NHSDigital-SDS-JobRoleCode", + "code": "S8003:G8003:R8003", + "display": "Health Professional Access Role" + } + ] + } + ], + "telecom": [ + { + "system": "phone", + "value": "01234567890", + "use": "work" + } + ] + } + }, + { + "fullUrl": "urn:uuid:3b4b03a5-52ba-4ba6-9b82-70350aa109d8", + "resource": { + "resourceType": "Organization", + "id": "3b4b03a5-52ba-4ba6-9b82-70350aa109d8", + "identifier": [ + { + "system": "https://fhir.nhs.uk/Id/ods-organization-code", + "value": "A99968" + } + ], + "name": "SOMERSET BOWEL CANCER SCREENING CENTRE", + "address": [ + { + "use": "work", + "line": ["MUSGROVE PARK HOSPITAL"], + "city": "TAUNTON", + "postalCode": "TA1 5DA" + } + ], + "telecom": [ + { + "system": "phone", + "value": "01823 333444", + "use": "work" + } + ], + "partOf": { + "identifier": { + "system": "https://fhir.nhs.uk/Id/ods-organization-code", + "value": "RBA" + }, + "display": "TAUNTON AND SOMERSET NHS FOUNDATION TRUST" + } + } + } + ] +} diff --git a/src/test/resources/examples/full_examples/secondary-care/community/acute/nominated-pharmacy/health-professional/1-Process-Request-Send-200_OK.json b/src/test/resources/examples/full_examples/secondary-care/community/acute/nominated-pharmacy/health-professional/1-Process-Request-Send-200_OK.json new file mode 100644 index 00000000..7943bbbc --- /dev/null +++ b/src/test/resources/examples/full_examples/secondary-care/community/acute/nominated-pharmacy/health-professional/1-Process-Request-Send-200_OK.json @@ -0,0 +1,370 @@ +{ + "resourceType": "Bundle", + "id": "f190329a-3854-4a31-9ff5-417969f2a40d", + "identifier": { + "system": "https://tools.ietf.org/html/rfc4122", + "value": "2bf951f5-bd09-441e-aaa1-fc370a92ec6c" + }, + "type": "message", + "entry": [ + { + "fullUrl": "urn:uuid:f190329a-3854-4a31-9ff5-417969f2a40d", + "resource": { + "resourceType": "MessageHeader", + "id": "f190329a-3854-4a31-9ff5-417969f2a40d", + "eventCoding": { + "system": "https://fhir.nhs.uk/CodeSystem/message-event", + "code": "prescription-order", + "display": "Prescription Order" + }, + "sender": { + "reference": "urn:uuid:56166769-c1c4-4d07-afa8-132b5dfca666", + "display": "BOOTH|PHIL" + }, + "source": { + "extension": [ + { + "url": "https://fhir.nhs.uk/R4/StructureDefinition/Extension-spineEndpoint", + "valueIdentifier": { + "system": "https://fhir.nhs.uk/Id/spine-ASID", + "value": "12456789012" + } + } + ], + "name": "DJM", + "endpoint": "https://mait.digital.nhs.uk/" + }, + "focus": [ + { + "reference": "urn:uuid:78d3c2eb-009e-4ec8-a358-b042954aa9b2" + }, + { + "reference": "urn:uuid:a54219b8-f741-4c47-b662-e4f8dfa49ab6" + }, + { + "reference": "urn:uuid:28828c55-8fa7-42d7-916f-fcf076e0c10e" + } + ] + } + }, + { + "fullUrl": "urn:uuid:a54219b8-f741-4c47-b662-e4f8dfa49ab6", + "resource": { + "resourceType": "MedicationRequest", + "id": "a54219b8-f741-4c47-b662-e4f8dfa49ab6", + "extension": [ + { + "url": "https://fhir.nhs.uk/StructureDefinition/Extension-DM-PrescriptionType", + "valueCoding": { + "system": "https://fhir.nhs.uk/CodeSystem/prescription-type", + "code": "1008", + "display": "Outpatient Community Prescriber - Pharmacist Independent/Supplementary prescriber" + } + } + ], + "identifier": [ + { + "system": "https://fhir.nhs.uk/Id/prescription-order-item-number", + "value": "a54219b8-f741-4c47-b662-e4f8dfa49ab6" + } + ], + "status": "active", + "intent": "order", + "category": [ + { + "coding": [ + { + "system": "http://terminology.hl7.org/CodeSystem/medicationrequest-category", + "code": "outpatient", + "display": "Outpatient" + } + ] + } + ], + "medicationCodeableConcept": { + "coding": [ + { + "system": "http://snomed.info/sct", + "code": "15517911000001104", + "display": "Methotrexate 10mg/0.2ml solution for injection pre-filled syringes" + } + ] + }, + "subject": { + "reference": "urn:uuid:78d3c2eb-009e-4ec8-a358-b042954aa9b2" + }, + "requester": { + "reference": "urn:uuid:56166769-c1c4-4d07-afa8-132b5dfca666" + }, + "groupIdentifier": { + "extension": [ + { + "url": "https://fhir.nhs.uk/StructureDefinition/Extension-DM-PrescriptionId", + "valueIdentifier": { + "system": "https://fhir.nhs.uk/Id/prescription", + "value": "2b21b5eb-b188-443e-bb3b-199588b13fbf" + } + } + ], + "system": "https://fhir.nhs.uk/Id/prescription-order-number", + "value": "C296DE-A99968-4E09B2" + }, + "courseOfTherapyType": { + "coding": [ + { + "system": "http://terminology.hl7.org/CodeSystem/medicationrequest-course-of-therapy", + "code": "acute", + "display": "Short course (acute) therapy" + } + ] + }, + "dosageInstruction": [ + { + "text": "Inject 10 milligram - 5 times a day - Subcutaneous route - for 10 days", + "timing": { + "repeat": { + "frequency": 5, + "period": 1, + "periodUnit": "d", + "boundsDuration": { + "value": 10, + "unit": "day", + "system": "http://unitsofmeasure.org", + "code": "d" + } + } + }, + "method": { + "coding": [ + { + "system": "http://snomed.info/sct", + "code": "422145002", + "display": "Inject" + } + ] + }, + "route": { + "coding": [ + { + "system": "http://snomed.info/sct", + "code": "34206005", + "display": "Subcutaneous route" + } + ] + }, + "doseAndRate": [ + { + "doseQuantity": { + "value": 10, + "unit": "milligram", + "system": "http://unitsofmeasure.org", + "code": "mg" + } + } + ] + } + ], + "dispenseRequest": { + "extension": [ + { + "url": "https://fhir.nhs.uk/StructureDefinition/Extension-DM-PerformerSiteType", + "valueCoding": { + "system": "https://fhir.nhs.uk/CodeSystem/dispensing-site-preference", + "code": "P1" + } + } + ], + "quantity": { + "value": 1, + "unit": "pre-filled disposable injection", + "system": "http://snomed.info/sct", + "code": "3318611000001103" + }, + "performer": { + "identifier": { + "system": "https://fhir.nhs.uk/Id/ods-organization-code", + "value": "FH542" + } + } + }, + "substitution": { + "allowedBoolean": false + } + } + }, + { + "fullUrl": "urn:uuid:78d3c2eb-009e-4ec8-a358-b042954aa9b2", + "resource": { + "resourceType": "Patient", + "id": "78d3c2eb-009e-4ec8-a358-b042954aa9b2", + "identifier": [ + { + "system": "https://fhir.nhs.uk/Id/nhs-number", + "value": "9449310394" + } + ], + "name": [ + { + "use": "official", + "family": "Lewington", + "given": ["TRACE"], + "prefix": ["MR"] + } + ], + "gender": "female", + "birthDate": "1999-11-25", + "address": [ + { + "use": "home", + "line": ["1 NETHERNE LANE", "COULSDON", "Surrey"], + "postalCode": "CR5 1NR" + } + ], + "generalPractitioner": [ + { + "identifier": { + "system": "https://fhir.nhs.uk/Id/ods-organization-code", + "value": "B81001" + } + } + ] + } + }, + { + "fullUrl": "urn:uuid:a8c85454-f8cb-498d-9629-78e2cb5fa47a", + "resource": { + "resourceType": "Practitioner", + "id": "a8c85454-f8cb-498d-9629-78e2cb5fa47a", + "identifier": [ + { + "system": "https://fhir.nhs.uk/Id/sds-user-id", + "value": "555086689106" + }, + { + "system": "https://fhir.hl7.org.uk/Id/gphc-number", + "value": "2083469" + } + ], + "name": [ + { + "family": "UserM", + "given": ["RANDOM"], + "prefix": ["MR"] + } + ] + } + }, + { + "fullUrl": "urn:uuid:56166769-c1c4-4d07-afa8-132b5dfca666", + "resource": { + "resourceType": "PractitionerRole", + "id": "56166769-c1c4-4d07-afa8-132b5dfca666", + "identifier": [ + { + "system": "https://fhir.nhs.uk/Id/sds-role-profile-id", + "value": "201715352555" + }, + { + "system": "https://fhir.hl7.org.uk/Id/nhsbsa-spurious-code", + "value": "2083469" + } + ], + "practitioner": { + "reference": "urn:uuid:a8c85454-f8cb-498d-9629-78e2cb5fa47a" + }, + "organization": { + "reference": "urn:uuid:3b4b03a5-52ba-4ba6-9b82-70350aa109d8" + }, + "code": [ + { + "coding": [ + { + "system": "https://fhir.nhs.uk/CodeSystem/NHSDigital-SDS-JobRoleCode", + "code": "S8003:G8003:R8003", + "display": "Health Professional Access Role" + } + ] + } + ], + "telecom": [ + { + "system": "phone", + "value": "01234567890", + "use": "work" + } + ] + } + }, + { + "fullUrl": "urn:uuid:3b4b03a5-52ba-4ba6-9b82-70350aa109d8", + "resource": { + "resourceType": "Organization", + "id": "3b4b03a5-52ba-4ba6-9b82-70350aa109d8", + "identifier": [ + { + "system": "https://fhir.nhs.uk/Id/ods-organization-code", + "value": "A99968" + } + ], + "name": "SOMERSET BOWEL CANCER SCREENING CENTRE", + "address": [ + { + "use": "work", + "line": ["MUSGROVE PARK HOSPITAL"], + "city": "TAUNTON", + "postalCode": "TA1 5DA" + } + ], + "telecom": [ + { + "system": "phone", + "value": "01823 333444", + "use": "work" + } + ], + "partOf": { + "identifier": { + "system": "https://fhir.nhs.uk/Id/ods-organization-code", + "value": "RBA" + }, + "display": "TAUNTON AND SOMERSET NHS FOUNDATION TRUST" + } + } + }, + { + "fullUrl": "urn:uuid:28828c55-8fa7-42d7-916f-fcf076e0c10e", + "resource": { + "resourceType": "Provenance", + "id": "28828c55-8fa7-42d7-916f-fcf076e0c10e", + "target": [ + { + "reference": "urn:uuid:a54219b8-f741-4c47-b662-e4f8dfa49ab6" + } + ], + "recorded": "2008-02-27T11:38:00+00:00", + "agent": [ + { + "who": { + "reference": "urn:uuid:56166769-c1c4-4d07-afa8-132b5dfca666" + } + } + ], + "signature": [ + { + "type": [ + { + "system": "urn:iso-astm:E1762-95:2013", + "code": "1.2.840.10065.1.12.1.1" + } + ], + "when": "2021-05-07T14:47:38+00:00", + "who": { + "reference": "urn:uuid:56166769-c1c4-4d07-afa8-132b5dfca666" + }, + "data": "DQo8U2lnbmF0dXJlIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwLzA5L3htbGRzaWcjIj4NCiAgICA8U2lnbmVkSW5mbz48Q2Fub25pY2FsaXphdGlvbk1ldGhvZCBBbGdvcml0aG09Imh0dHA6Ly93d3cudzMub3JnLzIwMDEvMTAveG1sLWV4Yy1jMTRuIyI+PC9DYW5vbmljYWxpemF0aW9uTWV0aG9kPjxTaWduYXR1cmVNZXRob2QgQWxnb3JpdGhtPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwLzA5L3htbGRzaWcjcnNhLXNoYTEiPjwvU2lnbmF0dXJlTWV0aG9kPjxSZWZlcmVuY2U+PFRyYW5zZm9ybXM+PFRyYW5zZm9ybSBBbGdvcml0aG09Imh0dHA6Ly93d3cudzMub3JnLzIwMDEvMTAveG1sLWV4Yy1jMTRuIyI+PC9UcmFuc2Zvcm0+PC9UcmFuc2Zvcm1zPjxEaWdlc3RNZXRob2QgQWxnb3JpdGhtPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwLzA5L3htbGRzaWcjc2hhMSI+PC9EaWdlc3RNZXRob2Q+PERpZ2VzdFZhbHVlPkRpVW9pcWhzYW9NOG5rM0FEV0F5QWRqOGdPQT08L0RpZ2VzdFZhbHVlPjwvUmVmZXJlbmNlPjwvU2lnbmVkSW5mbz4NCiAgICA8U2lnbmF0dXJlVmFsdWU+aGFWOTBrQ1U1aGxKYzkzOFBKSlhFdXZJejJXWmwvRHRXaXI0a043YWtTU1R3SFVST3dhM1JYNmJsWEM0NWZlczBZTWRuVjFYTFFiVG9hMXl3cE94cEdRNSt5WENmVGh3ZjJPMStmeXlnM0R5VHlJbGNLeUx0M21MTEU0NjU5NzhXY2RvV1BWc3c3WkZ6RFlnT2FMbWM1MEtZZDF2d1ltSm1sa2xwTXZrQzVrPTwvU2lnbmF0dXJlVmFsdWU+DQogICAgPEtleUluZm8+DQogICAgICAgIDxYNTA5RGF0YT4NCiAgICAgICAgICAgIDxYNTA5Q2VydGlmaWNhdGU+TUlJRHVEQ0NBcUNnQXdJQkFnSUVYY210SHpBTkJna3Foa2lHOXcwQkFRc0ZBREEyTVF3d0NnWURWUVFLRXdOdWFITXhDekFKQmdOVkJBc1RBa05CTVJrd0Z3WURWUVFERXhCT1NGTWdTVTVVSUV4bGRtVnNJREZFTUI0WERUSXdNVEF5TWpFd01qRTFOVm9YRFRJeU1UQXlNakV3TlRFMU5Wb3dRekVNTUFvR0ExVUVDaE1EYm1oek1ROHdEUVlEVlFRTEV3WlFaVzl3YkdVeElqQWdCZ05WQkFNTUdUVTFOVEkxTXpVeU1URXdPRjlTUVU1RVQwMWZWVk5GVWxFd2daOHdEUVlKS29aSWh2Y05BUUVCQlFBRGdZMEFNSUdKQW9HQkFLdDRzek53N09BSDdBUVJyRGUveEJJbXNNbU1pUzlFc3JUM2EzcC9MaDNicmR6STlhYWpUVVoyYi9jdmJPYTdQZVlkN3UrSzRhMlpkMFhrKzBHRm1ZR3pTVlg2aVlqYmx3cjB2YWkzMXpWN0crbEd2SHhINnBTb0xDd0lDYVpBRndhYmVENU96OTQreUEzYVdOV3RHVjBEZmg5cXdIM1pGQ0lNUnN2ZXJOMXBBZ01CQUFHamdnRkRNSUlCUHpBT0JnTlZIUThCQWY4RUJBTUNCa0F3WlFZRFZSMGdBUUgvQkZzd1dUQlhCZ3NxaGpvQWlYdG1BQU1DQURCSU1FWUdDQ3NHQVFVRkJ3SUJGanBvZEhSd2N6b3ZMM0JyYVM1dWFITXVkV3N2WTJWeWRHbG1hV05oZEdWZmNHOXNhV05wWlhNdlkyOXVkR1Z1ZEY5amIyMXRhWFJ0Wlc1ME1ETUdBMVVkSHdRc01Db3dLS0Ftb0NTR0ltaDBkSEE2THk5amNtd3VibWh6TG5WckwybHVkQzh4WkM5amNteGpNeTVqY213d0t3WURWUjBRQkNRd0lvQVBNakF5TURFd01qSXhNREl4TlRWYWdROHlNREl5TURNeE56RXdOVEUxTlZvd0h3WURWUjBqQkJnd0ZvQVVvSllmZ1lUTlBkNkVVS0w2UUxJekh4WTVQRkl3SFFZRFZSME9CQllFRkx0eXZZU3lhcWc2MEFFVVpneGswd3JqUkpjK01Ba0dBMVVkRXdRQ01BQXdHUVlKS29aSWh2WjlCMEVBQkF3d0Noc0VWamd1TXdNQ0JMQXdEUVlKS29aSWh2Y05BUUVMQlFBRGdnRUJBQmN6eThCOGp1UHBJZmFUTkZjeHJDMjJhQ1gveFlabWhyTC9OdklCQWFYMUc1aGppd21rR0tFMmhSVElyNjdQeFp4bVhzSnhpZ1JCTUhQbEkrbFkvK29rekgwR2k3YjVicWx3N3B4R0lnSk8wMDB3OHBGc3ZvOXc0MklZaEhvZHN2bkRWU3hoTVQwSjQ2UWhrOXNvRTBMam9FVUxLUVBQbFlHa2UvR2wzbTE3SXRGWXdPYlFIMGZNRXdtaXFCeWVJZno3Z1NjY096TDVjSXA2UGNaVE9qbzJJcVFwZ0VtaGpPY1JJbkVxQU5pdFNkam9pSkFKenBhYVpqWVRSZEhVWDdpN2FqRWlING05MW5GVys0QXFrTnR0bGI0V2NHS3NTbVdnZktLaGVGNElvWktNRTgweGVyU2dNeTh2dGpMT0JKQ0dYejB3TEdtUXVSbXhNVHE4OHE0PTwvWDUwOUNlcnRpZmljYXRlPg0KICAgICAgICA8L1g1MDlEYXRhPg0KICAgIDwvS2V5SW5mbz4NCjwvU2lnbmF0dXJlPg0K" + } + ] + } + } + ] +} diff --git a/src/test/resources/examples/full_examples/secondary-care/community/acute/nominated-pharmacy/health-professional/6-Prepare-Request-200_OK.json b/src/test/resources/examples/full_examples/secondary-care/community/acute/nominated-pharmacy/health-professional/6-Prepare-Request-200_OK.json new file mode 100644 index 00000000..98a58770 --- /dev/null +++ b/src/test/resources/examples/full_examples/secondary-care/community/acute/nominated-pharmacy/health-professional/6-Prepare-Request-200_OK.json @@ -0,0 +1,332 @@ +{ + "resourceType": "Bundle", + "id": "f190329a-3854-4a31-9ff5-417969f2a40d", + "identifier": { + "system": "https://tools.ietf.org/html/rfc4122", + "value": "7567077b-f276-42d2-981d-e139d991f425" + }, + "type": "message", + "entry": [ + { + "fullUrl": "urn:uuid:f190329a-3854-4a31-9ff5-417969f2a40d", + "resource": { + "resourceType": "MessageHeader", + "id": "f190329a-3854-4a31-9ff5-417969f2a40d", + "eventCoding": { + "system": "https://fhir.nhs.uk/CodeSystem/message-event", + "code": "prescription-order", + "display": "Prescription Order" + }, + "sender": { + "identifier": { + "system": "https://fhir.nhs.uk/Id/ods-organization-code", + "value": "RBA" + }, + "reference": "urn:uuid:56166769-c1c4-4d07-afa8-132b5dfca666", + "display": "USERM|PHARMACIST" + }, + "source": { + "endpoint": "https://directory.spineservices.nhs.uk/STU3/Organization/RBA" + }, + "destination": [ + { + "endpoint": "https://directory.spineservices.nhs.uk/STU3/Organization/FH542", + "receiver": { + "identifier": { + "system": "https://fhir.nhs.uk/Id/ods-organization-code", + "value": "FH542" + } + } + } + ], + "focus": [ + { + "reference": "urn:uuid:78d3c2eb-009e-4ec8-a358-b042954aa9b2" + }, + { + "reference": "urn:uuid:a54219b8-f741-4c47-b662-e4f8dfa49ab6" + } + ] + } + }, + { + "fullUrl": "urn:uuid:a54219b8-f741-4c47-b662-e4f8dfa49ab6", + "resource": { + "resourceType": "MedicationRequest", + "id": "a54219b8-f741-4c47-b662-e4f8dfa49ab6", + "extension": [ + { + "url": "https://fhir.nhs.uk/StructureDefinition/Extension-DM-PrescriptionType", + "valueCoding": { + "system": "https://fhir.nhs.uk/CodeSystem/prescription-type", + "code": "1008", + "display": "Outpatient Community Prescriber - Pharmacist Independent Supplementary prescriber" + } + }, + { + "url": "https://fhir.nhs.uk/StructureDefinition/Extension-DM-PrescriptionEndorsement", + "valueCodeableConcept": { + "coding": [ + { + "system": "https://fhir.nhs.uk/CodeSystem/medicationrequest-endorsement", + "code": "CC", + "display": "Contraceptive" + } + ] + } + }, + { + "url": "https://fhir.nhs.uk/StructureDefinition/Extension-DM-PrescriptionEndorsement", + "valueCodeableConcept": { + "coding": [ + { + "system": "https://fhir.nhs.uk/CodeSystem/medicationrequest-endorsement", + "code": "FS", + "display": "Sexual Health" + } + ] + } + } + ], + "identifier": [ + { + "system": "https://fhir.nhs.uk/Id/prescription-order-item-number", + "value": "a54219b8-f741-4c47-b662-e4f8dfa49ab6" + } + ], + "status": "active", + "intent": "order", + "category": [ + { + "coding": [ + { + "system": "http://terminology.hl7.org/CodeSystem/medicationrequest-category", + "code": "outpatient", + "display": "Outpatient" + } + ] + } + ], + "medicationCodeableConcept": { + "coding": [ + { + "system": "http://snomed.info/sct", + "code": "332402005", + "display": "Co-cyprindiol 2000microgram/35microgram tablets" + } + ] + }, + "subject": { + "reference": "urn:uuid:78d3c2eb-009e-4ec8-a358-b042954aa9b2" + }, + "requester": { + "reference": "urn:uuid:56166769-c1c4-4d07-afa8-132b5dfca666" + }, + "groupIdentifier": { + "extension": [ + { + "url": "https://fhir.nhs.uk/StructureDefinition/Extension-DM-PrescriptionId", + "valueIdentifier": { + "system": "https://fhir.nhs.uk/Id/prescription", + "value": "cc3b29a7-2ae4-4dbc-8967-033463020ff2" + } + } + ], + "system": "https://fhir.nhs.uk/Id/prescription-order-number", + "value": "8AA24F-A99968-487B8O" + }, + "courseOfTherapyType": { + "coding": [ + { + "system": "http://terminology.hl7.org/CodeSystem/medicationrequest-course-of-therapy", + "code": "acute", + "display": "Short course (acute) therapy" + } + ] + }, + "dosageInstruction": [ + { + "text": "Follow directions", + "additionalInstruction": [ + { + "coding": [ + { + "system": "http://snomed.info/sct", + "code": "421769005", + "display": "Follow directions" + } + ], + "text": "Follow directions" + } + ] + } + ], + "dispenseRequest": { + "extension": [ + { + "url": "https://fhir.nhs.uk/StructureDefinition/Extension-DM-PerformerSiteType", + "valueCoding": { + "system": "https://fhir.nhs.uk/CodeSystem/dispensing-site-preference", + "code": "P1" + } + } + ], + "quantity": { + "value": 63, + "unit": "tablet", + "system": "http://snomed.info/sct", + "code": "428673006" + }, + "performer": { + "identifier": { + "system": "https://fhir.nhs.uk/Id/ods-organization-code", + "value": "FH542" + } + } + }, + "substitution": { + "allowedBoolean": false + } + } + }, + { + "fullUrl": "urn:uuid:78d3c2eb-009e-4ec8-a358-b042954aa9b2", + "resource": { + "resourceType": "Patient", + "id": "78d3c2eb-009e-4ec8-a358-b042954aa9b2", + "identifier": [ + { + "system": "https://fhir.nhs.uk/Id/nhs-number", + "value": "9449305552" + } + ], + "name": [ + { + "use": "usual", + "family": "DAVIS", + "given": ["JANE"], + "prefix": ["MRS"] + } + ], + "gender": "female", + "birthDate": "1999-11-25", + "address": [ + { + "use": "home", + "line": ["53 Harrogate Road", "Chapel Allerton", "Leeds"], + "postalCode": "LS7 3PY" + } + ], + "generalPractitioner": [ + { + "identifier": { + "system": "https://fhir.nhs.uk/Id/ods-organization-code", + "value": "B81001" + } + } + ] + } + }, + { + "fullUrl": "urn:uuid:a8c85454-f8cb-498d-9629-78e2cb5fa47a", + "resource": { + "resourceType": "Practitioner", + "id": "a8c85454-f8cb-498d-9629-78e2cb5fa47a", + "identifier": [ + { + "system": "https://fhir.nhs.uk/Id/sds-user-id", + "value": "5555086689106" + }, + { + "system": "https://fhir.hl7.org.uk/Id/gphc-number", + "value": "2083469" + } + ], + "name": [ + { + "family": "USERM", + "given": ["RANDOM"], + "prefix": ["MR"] + } + ] + } + }, + { + "fullUrl": "urn:uuid:56166769-c1c4-4d07-afa8-132b5dfca666", + "resource": { + "resourceType": "PractitionerRole", + "id": "56166769-c1c4-4d07-afa8-132b5dfca666", + "identifier": [ + { + "system": "https://fhir.nhs.uk/Id/sds-role-profile-id", + "value": "201715352555" + }, + { + "system": "https://fhir.hl7.org.uk/Id/nhsbsa-spurious-code", + "value": "2083469" + } + ], + "practitioner": { + "reference": "urn:uuid:a8c85454-f8cb-498d-9629-78e2cb5fa47a" + }, + "organization": { + "reference": "urn:uuid:3b4b03a5-52ba-4ba6-9b82-70350aa109d8" + }, + "code": [ + { + "coding": [ + { + "system": "https://fhir.nhs.uk/CodeSystem/NHSDigital-SDS-JobRoleCode", + "code": "S8003:G8003:R8003", + "display": "Healthcare Access Role" + } + ] + } + ], + "telecom": [ + { + "system": "phone", + "value": "01234567890", + "use": "work" + } + ] + } + }, + { + "fullUrl": "urn:uuid:3b4b03a5-52ba-4ba6-9b82-70350aa109d8", + "resource": { + "resourceType": "Organization", + "id": "3b4b03a5-52ba-4ba6-9b82-70350aa109d8", + "identifier": [ + { + "system": "https://fhir.nhs.uk/Id/ods-organization-code", + "value": "A99968" + } + ], + "name": "SOMERSET BOWEL CANCER SCREENING CENTRE", + "address": [ + { + "use": "work", + "line": ["MUSGROVE PARK HOSPITAL"], + "city": "TAUNTON", + "postalCode": "TA1 5DA" + } + ], + "telecom": [ + { + "system": "phone", + "value": "01823 333444", + "use": "work" + } + ], + "partOf": { + "identifier": { + "system": "https://fhir.nhs.uk/Id/ods-organization-code", + "value": "RBA" + }, + "display": "TAUNTON AND SOMERSET NHS FOUNDATION TRUST" + } + } + } + ] +} diff --git a/src/test/resources/examples/full_examples/secondary-care/community/acute/nominated-pharmacy/health-professional/6-Prepare-Response-200_OK.json b/src/test/resources/examples/full_examples/secondary-care/community/acute/nominated-pharmacy/health-professional/6-Prepare-Response-200_OK.json new file mode 100644 index 00000000..80b0b3de --- /dev/null +++ b/src/test/resources/examples/full_examples/secondary-care/community/acute/nominated-pharmacy/health-professional/6-Prepare-Response-200_OK.json @@ -0,0 +1,17 @@ +{ + "resourceType": "Parameters", + "parameter": [ + { + "name": "digest", + "valueString": "PFNpZ25lZEluZm8geG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvMDkveG1sZHNpZyMiPjxDYW5vbmljYWxpemF0aW9uTWV0aG9kIEFsZ29yaXRobT0iaHR0cDovL3d3dy53My5vcmcvMjAwMS8xMC94bWwtZXhjLWMxNG4jIj48L0Nhbm9uaWNhbGl6YXRpb25NZXRob2Q+PFNpZ25hdHVyZU1ldGhvZCBBbGdvcml0aG09Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvMDkveG1sZHNpZyNyc2Etc2hhMSI+PC9TaWduYXR1cmVNZXRob2Q+PFJlZmVyZW5jZT48VHJhbnNmb3Jtcz48VHJhbnNmb3JtIEFsZ29yaXRobT0iaHR0cDovL3d3dy53My5vcmcvMjAwMS8xMC94bWwtZXhjLWMxNG4jIj48L1RyYW5zZm9ybT48L1RyYW5zZm9ybXM+PERpZ2VzdE1ldGhvZCBBbGdvcml0aG09Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvMDkveG1sZHNpZyNzaGExIj48L0RpZ2VzdE1ldGhvZD48RGlnZXN0VmFsdWU+ekZWMVRrdndmNHo0UFU4cy9BVWpQZTN2MXY0PTwvRGlnZXN0VmFsdWU+PC9SZWZlcmVuY2U+PC9TaWduZWRJbmZvPg==" + }, + { + "name": "timestamp", + "valueString": "2022-10-25T10:24:34+00:00" + }, + { + "name": "algorithm", + "valueString": "RS1" + } + ] +} diff --git a/src/test/resources/examples/full_examples/secondary-care/community/acute/nominated-pharmacy/health-professional/6-Process-Request-Send-200_OK.json b/src/test/resources/examples/full_examples/secondary-care/community/acute/nominated-pharmacy/health-professional/6-Process-Request-Send-200_OK.json new file mode 100644 index 00000000..5e87302a --- /dev/null +++ b/src/test/resources/examples/full_examples/secondary-care/community/acute/nominated-pharmacy/health-professional/6-Process-Request-Send-200_OK.json @@ -0,0 +1,370 @@ +{ + "resourceType": "Bundle", + "id": "f190329a-3854-4a31-9ff5-417969f2a40d", + "identifier": { + "system": "https://tools.ietf.org/html/rfc4122", + "value": "ec9c4f98-a31e-46b6-a8fb-6cd0483a60cb" + }, + "type": "message", + "entry": [ + { + "fullUrl": "urn:uuid:f190329a-3854-4a31-9ff5-417969f2a40d", + "resource": { + "resourceType": "MessageHeader", + "id": "f190329a-3854-4a31-9ff5-417969f2a40d", + "eventCoding": { + "system": "https://fhir.nhs.uk/CodeSystem/message-event", + "code": "prescription-order", + "display": "Prescription Order" + }, + "sender": { + "identifier": { + "system": "https://fhir.nhs.uk/Id/ods-organization-code", + "value": "RBA" + }, + "reference": "urn:uuid:56166769-c1c4-4d07-afa8-132b5dfca666", + "display": "USERM|PHARMACIST" + }, + "source": { + "endpoint": "https://directory.spineservices.nhs.uk/STU3/Organization/RBA" + }, + "destination": [ + { + "endpoint": "https://directory.spineservices.nhs.uk/STU3/Organization/FH542", + "receiver": { + "identifier": { + "system": "https://fhir.nhs.uk/Id/ods-organization-code", + "value": "FH542" + } + } + } + ], + "focus": [ + { + "reference": "urn:uuid:78d3c2eb-009e-4ec8-a358-b042954aa9b2" + }, + { + "reference": "urn:uuid:a54219b8-f741-4c47-b662-e4f8dfa49ab6" + }, + { + "reference": "urn:uuid:28828c55-8fa7-42d7-916f-fcf076e0c10e" + } + ] + } + }, + { + "fullUrl": "urn:uuid:a54219b8-f741-4c47-b662-e4f8dfa49ab6", + "resource": { + "resourceType": "MedicationRequest", + "id": "a54219b8-f741-4c47-b662-e4f8dfa49ab6", + "extension": [ + { + "url": "https://fhir.nhs.uk/StructureDefinition/Extension-DM-PrescriptionType", + "valueCoding": { + "system": "https://fhir.nhs.uk/CodeSystem/prescription-type", + "code": "1008", + "display": "Outpatient Community Prescriber - Pharmacist Independent Supplementary prescriber" + } + }, + { + "url": "https://fhir.nhs.uk/StructureDefinition/Extension-DM-PrescriptionEndorsement", + "valueCodeableConcept": { + "coding": [ + { + "system": "https://fhir.nhs.uk/CodeSystem/medicationrequest-endorsement", + "code": "CC", + "display": "Contraceptive" + } + ] + } + }, + { + "url": "https://fhir.nhs.uk/StructureDefinition/Extension-DM-PrescriptionEndorsement", + "valueCodeableConcept": { + "coding": [ + { + "system": "https://fhir.nhs.uk/CodeSystem/medicationrequest-endorsement", + "code": "FS", + "display": "Sexual Health" + } + ] + } + } + ], + "identifier": [ + { + "system": "https://fhir.nhs.uk/Id/prescription-order-item-number", + "value": "a54219b8-f741-4c47-b662-e4f8dfa49ab6" + } + ], + "status": "active", + "intent": "order", + "category": [ + { + "coding": [ + { + "system": "http://terminology.hl7.org/CodeSystem/medicationrequest-category", + "code": "outpatient", + "display": "Outpatient" + } + ] + } + ], + "medicationCodeableConcept": { + "coding": [ + { + "system": "http://snomed.info/sct", + "code": "332402005", + "display": "Co-cyprindiol 2000microgram/35microgram tablets" + } + ] + }, + "subject": { + "reference": "urn:uuid:78d3c2eb-009e-4ec8-a358-b042954aa9b2" + }, + "requester": { + "reference": "urn:uuid:56166769-c1c4-4d07-afa8-132b5dfca666" + }, + "groupIdentifier": { + "extension": [ + { + "url": "https://fhir.nhs.uk/StructureDefinition/Extension-DM-PrescriptionId", + "valueIdentifier": { + "system": "https://fhir.nhs.uk/Id/prescription", + "value": "cc3b29a7-2ae4-4dbc-8967-033463020ff2" + } + } + ], + "system": "https://fhir.nhs.uk/Id/prescription-order-number", + "value": "8AA24F-A99968-487B8O" + }, + "courseOfTherapyType": { + "coding": [ + { + "system": "http://terminology.hl7.org/CodeSystem/medicationrequest-course-of-therapy", + "code": "acute", + "display": "Short course (acute) therapy" + } + ] + }, + "dosageInstruction": [ + { + "text": "Follow directions", + "additionalInstruction": [ + { + "coding": [ + { + "system": "http://snomed.info/sct", + "code": "421769005", + "display": "Follow directions" + } + ], + "text": "Follow directions" + } + ] + } + ], + "dispenseRequest": { + "extension": [ + { + "url": "https://fhir.nhs.uk/StructureDefinition/Extension-DM-PerformerSiteType", + "valueCoding": { + "system": "https://fhir.nhs.uk/CodeSystem/dispensing-site-preference", + "code": "P1" + } + } + ], + "quantity": { + "value": 63, + "unit": "tablet", + "system": "http://snomed.info/sct", + "code": "428673006" + }, + "performer": { + "identifier": { + "system": "https://fhir.nhs.uk/Id/ods-organization-code", + "value": "FH542" + } + } + }, + "substitution": { + "allowedBoolean": false + } + } + }, + { + "fullUrl": "urn:uuid:78d3c2eb-009e-4ec8-a358-b042954aa9b2", + "resource": { + "resourceType": "Patient", + "id": "78d3c2eb-009e-4ec8-a358-b042954aa9b2", + "identifier": [ + { + "system": "https://fhir.nhs.uk/Id/nhs-number", + "value": "9449305552" + } + ], + "name": [ + { + "use": "usual", + "family": "DAVIS", + "given": ["JANE"], + "prefix": ["MRS"] + } + ], + "gender": "female", + "birthDate": "1999-11-25", + "address": [ + { + "use": "home", + "line": ["53 Harrogate Road", "Chapel Allerton", "Leeds"], + "postalCode": "LS7 3PY" + } + ], + "generalPractitioner": [ + { + "identifier": { + "system": "https://fhir.nhs.uk/Id/ods-organization-code", + "value": "B81001" + } + } + ] + } + }, + { + "fullUrl": "urn:uuid:a8c85454-f8cb-498d-9629-78e2cb5fa47a", + "resource": { + "resourceType": "Practitioner", + "id": "a8c85454-f8cb-498d-9629-78e2cb5fa47a", + "identifier": [ + { + "system": "https://fhir.nhs.uk/Id/sds-user-id", + "value": "5555086689106" + }, + { + "system": "https://fhir.hl7.org.uk/Id/gphc-number", + "value": "2083469" + } + ], + "name": [ + { + "family": "USERM", + "given": ["RANDOM"], + "prefix": ["MR"] + } + ] + } + }, + { + "fullUrl": "urn:uuid:56166769-c1c4-4d07-afa8-132b5dfca666", + "resource": { + "resourceType": "PractitionerRole", + "id": "56166769-c1c4-4d07-afa8-132b5dfca666", + "identifier": [ + { + "system": "https://fhir.nhs.uk/Id/sds-role-profile-id", + "value": "201715352555" + }, + { + "system": "https://fhir.hl7.org.uk/Id/nhsbsa-spurious-code", + "value": "2083469" + } + ], + "practitioner": { + "reference": "urn:uuid:a8c85454-f8cb-498d-9629-78e2cb5fa47a" + }, + "organization": { + "reference": "urn:uuid:3b4b03a5-52ba-4ba6-9b82-70350aa109d8" + }, + "code": [ + { + "coding": [ + { + "system": "https://fhir.nhs.uk/CodeSystem/NHSDigital-SDS-JobRoleCode", + "code": "S8003:G8003:R8003", + "display": "Healthcare Access Role" + } + ] + } + ], + "telecom": [ + { + "system": "phone", + "value": "01234567890", + "use": "work" + } + ] + } + }, + { + "fullUrl": "urn:uuid:3b4b03a5-52ba-4ba6-9b82-70350aa109d8", + "resource": { + "resourceType": "Organization", + "id": "3b4b03a5-52ba-4ba6-9b82-70350aa109d8", + "identifier": [ + { + "system": "https://fhir.nhs.uk/Id/ods-organization-code", + "value": "A99968" + } + ], + "name": "SOMERSET BOWEL CANCER SCREENING CENTRE", + "address": [ + { + "use": "work", + "line": ["MUSGROVE PARK HOSPITAL"], + "city": "TAUNTON", + "postalCode": "TA1 5DA" + } + ], + "telecom": [ + { + "system": "phone", + "value": "01823 333444", + "use": "work" + } + ], + "partOf": { + "identifier": { + "system": "https://fhir.nhs.uk/Id/ods-organization-code", + "value": "RBA" + }, + "display": "TAUNTON AND SOMERSET NHS FOUNDATION TRUST" + } + } + }, + { + "fullUrl": "urn:uuid:28828c55-8fa7-42d7-916f-fcf076e0c10e", + "resource": { + "resourceType": "Provenance", + "id": "28828c55-8fa7-42d7-916f-fcf076e0c10e", + "target": [ + { + "reference": "urn:uuid:a54219b8-f741-4c47-b662-e4f8dfa49ab6" + } + ], + "recorded": "2008-02-27T11:38:00+00:00", + "agent": [ + { + "who": { + "reference": "urn:uuid:56166769-c1c4-4d07-afa8-132b5dfca666" + } + } + ], + "signature": [ + { + "type": [ + { + "system": "urn:iso-astm:E1762-95:2013", + "code": "1.2.840.10065.1.12.1.1" + } + ], + "when": "2021-05-07T14:47:37+00:00", + "who": { + "reference": "urn:uuid:56166769-c1c4-4d07-afa8-132b5dfca666" + }, + "data": "DQo8U2lnbmF0dXJlIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwLzA5L3htbGRzaWcjIj4NCiAgICA8U2lnbmVkSW5mbz48Q2Fub25pY2FsaXphdGlvbk1ldGhvZCBBbGdvcml0aG09Imh0dHA6Ly93d3cudzMub3JnLzIwMDEvMTAveG1sLWV4Yy1jMTRuIyI+PC9DYW5vbmljYWxpemF0aW9uTWV0aG9kPjxTaWduYXR1cmVNZXRob2QgQWxnb3JpdGhtPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwLzA5L3htbGRzaWcjcnNhLXNoYTEiPjwvU2lnbmF0dXJlTWV0aG9kPjxSZWZlcmVuY2U+PFRyYW5zZm9ybXM+PFRyYW5zZm9ybSBBbGdvcml0aG09Imh0dHA6Ly93d3cudzMub3JnLzIwMDEvMTAveG1sLWV4Yy1jMTRuIyI+PC9UcmFuc2Zvcm0+PC9UcmFuc2Zvcm1zPjxEaWdlc3RNZXRob2QgQWxnb3JpdGhtPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwLzA5L3htbGRzaWcjc2hhMSI+PC9EaWdlc3RNZXRob2Q+PERpZ2VzdFZhbHVlPnZmUUdIRHJyM01TQjhIV29IYitXQVUzS2c2MD08L0RpZ2VzdFZhbHVlPjwvUmVmZXJlbmNlPjwvU2lnbmVkSW5mbz4NCiAgICA8U2lnbmF0dXJlVmFsdWU+SCtHUmVSVXB4ZWJpN1NTT0NtOEw0TmFNN3VkT3paMEE5cGx2N0JGdk1QTEhpOTRCMTJEQXdLaFA2SmVIeHRpRWtHdmhod0Nkbk9jSUN5VnZhSTFGdmp5QXBINXQ1M05KOUsvcU9DZXJiNGJyK3pYU2R1b24yODRJVnprcWNGN1NPYXNJTW03OE1oTnVOUEFic3YybmFYRmdSSWlrVFgzd0pydGh1ZmFZU0lVPTwvU2lnbmF0dXJlVmFsdWU+DQogICAgPEtleUluZm8+DQogICAgICAgIDxYNTA5RGF0YT4NCiAgICAgICAgICAgIDxYNTA5Q2VydGlmaWNhdGU+TUlJRHVEQ0NBcUNnQXdJQkFnSUVYY210SHpBTkJna3Foa2lHOXcwQkFRc0ZBREEyTVF3d0NnWURWUVFLRXdOdWFITXhDekFKQmdOVkJBc1RBa05CTVJrd0Z3WURWUVFERXhCT1NGTWdTVTVVSUV4bGRtVnNJREZFTUI0WERUSXdNVEF5TWpFd01qRTFOVm9YRFRJeU1UQXlNakV3TlRFMU5Wb3dRekVNTUFvR0ExVUVDaE1EYm1oek1ROHdEUVlEVlFRTEV3WlFaVzl3YkdVeElqQWdCZ05WQkFNTUdUVTFOVEkxTXpVeU1URXdPRjlTUVU1RVQwMWZWVk5GVWxFd2daOHdEUVlKS29aSWh2Y05BUUVCQlFBRGdZMEFNSUdKQW9HQkFLdDRzek53N09BSDdBUVJyRGUveEJJbXNNbU1pUzlFc3JUM2EzcC9MaDNicmR6STlhYWpUVVoyYi9jdmJPYTdQZVlkN3UrSzRhMlpkMFhrKzBHRm1ZR3pTVlg2aVlqYmx3cjB2YWkzMXpWN0crbEd2SHhINnBTb0xDd0lDYVpBRndhYmVENU96OTQreUEzYVdOV3RHVjBEZmg5cXdIM1pGQ0lNUnN2ZXJOMXBBZ01CQUFHamdnRkRNSUlCUHpBT0JnTlZIUThCQWY4RUJBTUNCa0F3WlFZRFZSMGdBUUgvQkZzd1dUQlhCZ3NxaGpvQWlYdG1BQU1DQURCSU1FWUdDQ3NHQVFVRkJ3SUJGanBvZEhSd2N6b3ZMM0JyYVM1dWFITXVkV3N2WTJWeWRHbG1hV05oZEdWZmNHOXNhV05wWlhNdlkyOXVkR1Z1ZEY5amIyMXRhWFJ0Wlc1ME1ETUdBMVVkSHdRc01Db3dLS0Ftb0NTR0ltaDBkSEE2THk5amNtd3VibWh6TG5WckwybHVkQzh4WkM5amNteGpNeTVqY213d0t3WURWUjBRQkNRd0lvQVBNakF5TURFd01qSXhNREl4TlRWYWdROHlNREl5TURNeE56RXdOVEUxTlZvd0h3WURWUjBqQkJnd0ZvQVVvSllmZ1lUTlBkNkVVS0w2UUxJekh4WTVQRkl3SFFZRFZSME9CQllFRkx0eXZZU3lhcWc2MEFFVVpneGswd3JqUkpjK01Ba0dBMVVkRXdRQ01BQXdHUVlKS29aSWh2WjlCMEVBQkF3d0Noc0VWamd1TXdNQ0JMQXdEUVlKS29aSWh2Y05BUUVMQlFBRGdnRUJBQmN6eThCOGp1UHBJZmFUTkZjeHJDMjJhQ1gveFlabWhyTC9OdklCQWFYMUc1aGppd21rR0tFMmhSVElyNjdQeFp4bVhzSnhpZ1JCTUhQbEkrbFkvK29rekgwR2k3YjVicWx3N3B4R0lnSk8wMDB3OHBGc3ZvOXc0MklZaEhvZHN2bkRWU3hoTVQwSjQ2UWhrOXNvRTBMam9FVUxLUVBQbFlHa2UvR2wzbTE3SXRGWXdPYlFIMGZNRXdtaXFCeWVJZno3Z1NjY096TDVjSXA2UGNaVE9qbzJJcVFwZ0VtaGpPY1JJbkVxQU5pdFNkam9pSkFKenBhYVpqWVRSZEhVWDdpN2FqRWlING05MW5GVys0QXFrTnR0bGI0V2NHS3NTbVdnZktLaGVGNElvWktNRTgweGVyU2dNeTh2dGpMT0JKQ0dYejB3TEdtUXVSbXhNVHE4OHE0PTwvWDUwOUNlcnRpZmljYXRlPg0KICAgICAgICA8L1g1MDlEYXRhPg0KICAgIDwvS2V5SW5mbz4NCjwvU2lnbmF0dXJlPg0K" + } + ] + } + } + ] +} diff --git a/src/test/resources/examples/full_examples/secondary-care/community/acute/nominated-pharmacy/health-professional/controlled-drugs/1-Prepare-Request-200_OK.json b/src/test/resources/examples/full_examples/secondary-care/community/acute/nominated-pharmacy/health-professional/controlled-drugs/1-Prepare-Request-200_OK.json new file mode 100644 index 00000000..0a67018e --- /dev/null +++ b/src/test/resources/examples/full_examples/secondary-care/community/acute/nominated-pharmacy/health-professional/controlled-drugs/1-Prepare-Request-200_OK.json @@ -0,0 +1,444 @@ +{ + "resourceType": "Bundle", + "id": "2c251ced-dc17-47ff-bd2f-36f4b8c27dda", + "identifier": { + "system": "https://tools.ietf.org/html/rfc4122", + "value": "0fbfabd7-c1e5-4435-ac7f-ac2083e7f2b5" + }, + "type": "message", + "entry": [ + { + "fullUrl": "urn:uuid:2c251ced-dc17-47ff-bd2f-36f4b8c27dda", + "resource": { + "resourceType": "MessageHeader", + "id": "A8F71A7D-B426-4B55-80A5-05436DE80486", + "eventCoding": { + "system": "https://fhir.nhs.uk/CodeSystem/message-event", + "code": "prescription-order", + "display": "Prescription Order" + }, + "sender": { + "identifier": { + "system": "https://fhir.nhs.uk/Id/ods-organization-code", + "value": "RBA" + }, + "reference": "urn:uuid:56166769-c1c4-4d07-afa8-132b5dfca666", + "display": "Pharmacist|UserM" + }, + "source": { + "endpoint": "https://directory.spineservices.nhs.uk/STU3/Organization/RBA" + }, + "destination": [ + { + "endpoint": "https://int.api.service.nhs.uk/electronic-prescriptions/$prepare", + "receiver": { + "identifier": { + "system": "https://fhir.nhs.uk/Id/ods-organization-code", + "value": "FY210" + } + } + } + ], + "focus": [ + { + "reference": "urn:uuid:00d3dd04-d162-49ce-a808-6f220906f1c8" + }, + { + "reference": "urn:uuid:1de954ac-a1ea-49ab-bd4e-88e99f191186" + }, + { + "reference": "urn:uuid:78d3c2eb-009e-4ec8-a358-b042954aa9b2" + }, + { + "reference": "urn:uuid:a8c85454-f8cb-498d-9629-78e2cb5fa47a" + }, + { + "reference": "urn:uuid:56166769-c1c4-4d07-afa8-132b5dfca666" + }, + { + "reference": "urn:uuid:3b4b03a5-52ba-4ba6-9b82-70350aa109d8" + } + ] + } + }, + { + "fullUrl": "urn:uuid:00d3dd04-d162-49ce-a808-6f220906f1c8", + "resource": { + "resourceType": "MedicationRequest", + "id": "00d3dd04-d162-49ce-a808-6f220906f1c8", + "extension": [ + { + "url": "https://fhir.nhs.uk/StructureDefinition/Extension-DM-PrescriptionType", + "valueCoding": { + "system": "https://fhir.nhs.uk/CodeSystem/prescription-type", + "code": "1008", + "display": "Outpatient Community Prescriber - Pharmacist Independent/Supplementary prescriber" + } + }, + { + "url": "https://fhir.nhs.uk/StructureDefinition/Extension-DM-ControlledDrug", + "extension": [ + { + "url": "quantityWords", + "valueString": "twenty eight" + }, + { + "url": "schedule", + "valueCoding": { + "system": "https://fhir.nhs.uk/CodeSystem/medicationrequest-controlled-drug", + "code": "CD2", + "display": "Schedule 2" + } + } + ] + } + ], + "identifier": [ + { + "system": "https://fhir.nhs.uk/Id/prescription-order-item-number", + "value": "00d3dd04-d162-49ce-a808-6f220906f1c8" + } + ], + "status": "active", + "intent": "order", + "category": [ + { + "coding": [ + { + "system": "http://terminology.hl7.org/CodeSystem/medicationrequest-category", + "code": "outpatient", + "display": "Outpatient" + } + ] + } + ], + "medicationCodeableConcept": { + "coding": [ + { + "system": "http://snomed.info/sct", + "code": "36126511000001106", + "display": "Morphine 10mg modified-release tablets" + } + ] + }, + "subject": { + "reference": "urn:uuid:78d3c2eb-009e-4ec8-a358-b042954aa9b2" + }, + "requester": { + "reference": "urn:uuid:56166769-c1c4-4d07-afa8-132b5dfca666" + }, + "groupIdentifier": { + "extension": [ + { + "url": "https://fhir.nhs.uk/StructureDefinition/Extension-DM-PrescriptionId", + "valueIdentifier": { + "system": "https://fhir.nhs.uk/Id/prescription", + "value": "a472f8aa-b039-454e-9380-76377d549022" + } + } + ], + "system": "https://fhir.nhs.uk/Id/prescription-order-number", + "value": "F4B59B-A99968-4D22B6" + }, + "courseOfTherapyType": { + "coding": [ + { + "system": "http://terminology.hl7.org/CodeSystem/medicationrequest-course-of-therapy", + "code": "acute", + "display": "Short course (acute) therapy" + } + ] + }, + "dosageInstruction": [ + { + "text": "1 tablet, daily" + } + ], + "dispenseRequest": { + "extension": [ + { + "url": "https://fhir.nhs.uk/StructureDefinition/Extension-DM-PerformerSiteType", + "valueCoding": { + "system": "https://fhir.nhs.uk/CodeSystem/dispensing-site-preference", + "code": "P1" + } + } + ], + "quantity": { + "value": 28, + "unit": "tablet", + "system": "http://snomed.info/sct", + "code": "428673006" + }, + "performer": { + "identifier": { + "system": "https://fhir.nhs.uk/Id/ods-organization-code", + "value": "FY210" + } + } + }, + "substitution": { + "allowedBoolean": false + } + } + }, + { + "fullUrl": "urn:uuid:1de954ac-a1ea-49ab-bd4e-88e99f191186", + "resource": { + "resourceType": "MedicationRequest", + "id": "1de954ac-a1ea-49ab-bd4e-88e99f191186", + "extension": [ + { + "url": "https://fhir.nhs.uk/StructureDefinition/Extension-DM-PrescriptionType", + "valueCoding": { + "system": "https://fhir.nhs.uk/CodeSystem/prescription-type", + "code": "1008", + "display": "Outpatient Community Prescriber - Pharmacist Independent/Supplementary prescriber" + } + } + ], + "identifier": [ + { + "system": "https://fhir.nhs.uk/Id/prescription-order-item-number", + "value": "1de954ac-a1ea-49ab-bd4e-88e99f191186" + } + ], + "status": "active", + "intent": "order", + "category": [ + { + "coding": [ + { + "system": "http://terminology.hl7.org/CodeSystem/medicationrequest-category", + "code": "outpatient", + "display": "Outpatient" + } + ] + } + ], + "medicationCodeableConcept": { + "coding": [ + { + "system": "http://snomed.info/sct", + "code": "321196004", + "display": "Diazepam 2mg tablets" + } + ] + }, + "subject": { + "reference": "urn:uuid:78d3c2eb-009e-4ec8-a358-b042954aa9b2" + }, + "requester": { + "reference": "urn:uuid:56166769-c1c4-4d07-afa8-132b5dfca666" + }, + "groupIdentifier": { + "extension": [ + { + "url": "https://fhir.nhs.uk/StructureDefinition/Extension-DM-PrescriptionId", + "valueIdentifier": { + "system": "https://fhir.nhs.uk/Id/prescription", + "value": "a472f8aa-b039-454e-9380-76377d549022" + } + } + ], + "system": "https://fhir.nhs.uk/Id/prescription-order-number", + "value": "F4B59B-A99968-4D22B6" + }, + "courseOfTherapyType": { + "coding": [ + { + "system": "http://terminology.hl7.org/CodeSystem/medicationrequest-course-of-therapy", + "code": "acute", + "display": "Short course (acute) therapy" + } + ] + }, + "note": [{ + "text": "Dosage has been decreased on advice from the hospital." + }], + "dosageInstruction": [ + { + "text": "1 tablet, at NIGHT" + } + ], + "dispenseRequest": { + "extension": [ + { + "url": "https://fhir.nhs.uk/StructureDefinition/Extension-DM-PerformerSiteType", + "valueCoding": { + "system": "https://fhir.nhs.uk/CodeSystem/dispensing-site-preference", + "code": "P1" + } + } + ], + "quantity": { + "value": 28, + "unit": "tablet", + "system": "http://snomed.info/sct", + "code": "428673006" + }, + "performer": { + "identifier": { + "system": "https://fhir.nhs.uk/Id/ods-organization-code", + "value": "FY210" + } + } + }, + "substitution": { + "allowedBoolean": false + } + } + }, + { + "fullUrl": "urn:uuid:78d3c2eb-009e-4ec8-a358-b042954aa9b2", + "resource": { + "resourceType": "Patient", + "id": "78d3c2eb-009e-4ec8-a358-b042954aa9b2", + "identifier": [ + { + "system": "https://fhir.nhs.uk/Id/nhs-number", + "value": "9449306036" + } + ], + "name": [ + { + "use": "usual", + "family": "ILLIDGE", + "given": [ + "DIANN" + ], + "prefix": [ + "MISS" + ] + } + ], + "gender": "female", + "birthDate": "1996-10-15", + "address": [ + { + "use": "home", + "line": [ + "20 POOLE ROAD", + "EPSOM", + "SURREY" + ], + "postalCode": "KT19 9SH" + } + ], + "generalPractitioner": [ + { + "identifier": { + "system": "https://fhir.nhs.uk/Id/ods-organization-code", + "value": "H81109" + } + } + ] + } + }, + { + "fullUrl": "urn:uuid:a8c85454-f8cb-498d-9629-78e2cb5fa47a", + "resource": { + "resourceType": "Practitioner", + "id": "a8c85454-f8cb-498d-9629-78e2cb5fa47a", + "identifier": [ + { + "system": "https://fhir.nhs.uk/Id/sds-user-id", + "value": "5555086689106" + }, + { + "system": "https://fhir.hl7.org.uk/Id/gphc-number", + "value": "2083469" + } + ], + "name": [ + { + "family": "UserM", + "given": [ + "Random" + ], + "prefix": [ + "MR" + ] + } + ] + } + }, + { + "fullUrl": "urn:uuid:56166769-c1c4-4d07-afa8-132b5dfca666", + "resource": { + "resourceType": "PractitionerRole", + "id": "56166769-c1c4-4d07-afa8-132b5dfca666", + "identifier": [ + { + "system": "https://fhir.nhs.uk/Id/sds-role-profile-id", + "value": "201715352555" + }, + { + "system": "https://fhir.hl7.org.uk/Id/nhsbsa-spurious-code", + "value": "2083469" + } + ], + "practitioner": { + "reference": "urn:uuid:a8c85454-f8cb-498d-9629-78e2cb5fa47a" + }, + "organization": { + "reference": "urn:uuid:3b4b03a5-52ba-4ba6-9b82-70350aa109d8" + }, + "code": [ + { + "coding": [ + { + "system": "https://fhir.nhs.uk/CodeSystem/NHSDigital-SDS-JobRoleCode", + "code": "S8003:G8003:R8003", + "display": "Health Professional Access Role" + } + ] + } + ], + "telecom": [ + { + "system": "phone", + "value": "01234567890", + "use": "work" + } + ] + } + }, + { + "fullUrl": "urn:uuid:3b4b03a5-52ba-4ba6-9b82-70350aa109d8", + "resource": { + "resourceType": "Organization", + "id": "3b4b03a5-52ba-4ba6-9b82-70350aa109d8", + "identifier": [ + { + "system": "https://fhir.nhs.uk/Id/ods-organization-code", + "value": "A99968" + } + ], + "name": "SOMERSET BOWEL CANCER SCREENING CENTRE", + "address": [ + { + "use": "work", + "line": ["MUSGROVE PARK HOSPITAL"], + "city": "TAUNTON", + "postalCode": "TA1 5DA" + } + ], + "telecom": [ + { + "system": "phone", + "value": "01823 333444", + "use": "work" + } + ], + "partOf": { + "identifier": { + "system": "https://fhir.nhs.uk/Id/ods-organization-code", + "value": "RBA" + }, + "display": "TAUNTON AND SOMERSET NHS FOUNDATION TRUST" + } + } + } + ] +} diff --git a/src/test/resources/examples/full_examples/secondary-care/community/acute/nominated-pharmacy/health-professional/controlled-drugs/1-Prepare-Response-200_OK.json b/src/test/resources/examples/full_examples/secondary-care/community/acute/nominated-pharmacy/health-professional/controlled-drugs/1-Prepare-Response-200_OK.json new file mode 100644 index 00000000..a7747950 --- /dev/null +++ b/src/test/resources/examples/full_examples/secondary-care/community/acute/nominated-pharmacy/health-professional/controlled-drugs/1-Prepare-Response-200_OK.json @@ -0,0 +1,17 @@ +{ + "resourceType": "Parameters", + "parameter": [ + { + "name": "digest", + "valueString": "PFNpZ25lZEluZm8geG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvMDkveG1sZHNpZyMiPjxDYW5vbmljYWxpemF0aW9uTWV0aG9kIEFsZ29yaXRobT0iaHR0cDovL3d3dy53My5vcmcvMjAwMS8xMC94bWwtZXhjLWMxNG4jIj48L0Nhbm9uaWNhbGl6YXRpb25NZXRob2Q+PFNpZ25hdHVyZU1ldGhvZCBBbGdvcml0aG09Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvMDkveG1sZHNpZyNyc2Etc2hhMSI+PC9TaWduYXR1cmVNZXRob2Q+PFJlZmVyZW5jZT48VHJhbnNmb3Jtcz48VHJhbnNmb3JtIEFsZ29yaXRobT0iaHR0cDovL3d3dy53My5vcmcvMjAwMS8xMC94bWwtZXhjLWMxNG4jIj48L1RyYW5zZm9ybT48L1RyYW5zZm9ybXM+PERpZ2VzdE1ldGhvZCBBbGdvcml0aG09Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvMDkveG1sZHNpZyNzaGExIj48L0RpZ2VzdE1ldGhvZD48RGlnZXN0VmFsdWU+UkxUNHd6cnpGWTZXYS9WNk11YWhVbE9qUjZrPTwvRGlnZXN0VmFsdWU+PC9SZWZlcmVuY2U+PC9TaWduZWRJbmZvPg==" + }, + { + "name": "timestamp", + "valueString": "2023-03-31T11:56:30+00:00" + }, + { + "name": "algorithm", + "valueString": "RS1" + } + ] +} diff --git a/src/test/resources/examples/full_examples/secondary-care/community/acute/nominated-pharmacy/health-professional/controlled-drugs/1-Process-Request-Send-200_OK.json b/src/test/resources/examples/full_examples/secondary-care/community/acute/nominated-pharmacy/health-professional/controlled-drugs/1-Process-Request-Send-200_OK.json new file mode 100644 index 00000000..5599d903 --- /dev/null +++ b/src/test/resources/examples/full_examples/secondary-care/community/acute/nominated-pharmacy/health-professional/controlled-drugs/1-Process-Request-Send-200_OK.json @@ -0,0 +1,500 @@ +{ + "resourceType": "Bundle", + "id": "2c251ced-dc17-47ff-bd2f-36f4b8c27dda", + "identifier": { + "system": "https://tools.ietf.org/html/rfc4122", + "value": "648f2894-4358-4592-af13-486dab2c686c" + }, + "type": "message", + "entry": [ + { + "fullUrl": "urn:uuid:2c251ced-dc17-47ff-bd2f-36f4b8c27dda", + "resource": { + "resourceType": "MessageHeader", + "id": "A8F71A7D-B426-4B55-80A5-05436DE80486", + "eventCoding": { + "system": "https://fhir.nhs.uk/CodeSystem/message-event", + "code": "prescription-order", + "display": "Prescription Order" + }, + "sender": { + "identifier": { + "system": "https://fhir.nhs.uk/Id/ods-organization-code", + "value": "RBA" + }, + "reference": "urn:uuid:56166769-c1c4-4d07-afa8-132b5dfca666", + "display": "Pharmacist|UserM" + }, + "source": { + "endpoint": "https://directory.spineservices.nhs.uk/STU3/Organization/RBA" + }, + "destination": [ + { + "endpoint": "https://int.api.service.nhs.uk/electronic-prescriptions/$process-message", + "receiver": { + "identifier": { + "system": "https://fhir.nhs.uk/Id/ods-organization-code", + "value": "FY210" + } + } + } + ], + "focus": [ + { + "reference": "urn:uuid:00d3dd04-d162-49ce-a808-6f220906f1c8" + }, + { + "reference": "urn:uuid:1de954ac-a1ea-49ab-bd4e-88e99f191186" + }, + { + "reference": "urn:uuid:78d3c2eb-009e-4ec8-a358-b042954aa9b2" + }, + { + "reference": "urn:uuid:a8c85454-f8cb-498d-9629-78e2cb5fa47a" + }, + { + "reference": "urn:uuid:56166769-c1c4-4d07-afa8-132b5dfca666" + }, + { + "reference": "urn:uuid:3b4b03a5-52ba-4ba6-9b82-70350aa109d8" + }, + { + "reference": "urn:uuid:b2a46b68-9e1e-49e6-a132-88b3308ed561" + } + ] + } + }, + { + "fullUrl": "urn:uuid:00d3dd04-d162-49ce-a808-6f220906f1c8", + "resource": { + "resourceType": "MedicationRequest", + "id": "00d3dd04-d162-49ce-a808-6f220906f1c8", + "extension": [ + { + "url": "https://fhir.nhs.uk/StructureDefinition/Extension-DM-PrescriptionType", + "valueCoding": { + "system": "https://fhir.nhs.uk/CodeSystem/prescription-type", + "code": "1008", + "display": "Outpatient Community Prescriber - Pharmacist Independent/Supplementary prescriber" + } + }, + { + "url": "https://fhir.nhs.uk/StructureDefinition/Extension-DM-ControlledDrug", + "extension": [ + { + "url": "quantityWords", + "valueString": "twenty eight" + }, + { + "url": "schedule", + "valueCoding": { + "system": "https://fhir.nhs.uk/CodeSystem/medicationrequest-controlled-drug", + "code": "CD2", + "display": "Schedule 2" + } + } + ] + } + ], + "identifier": [ + { + "system": "https://fhir.nhs.uk/Id/prescription-order-item-number", + "value": "00d3dd04-d162-49ce-a808-6f220906f1c8" + } + ], + "status": "active", + "intent": "order", + "category": [ + { + "coding": [ + { + "system": "http://terminology.hl7.org/CodeSystem/medicationrequest-category", + "code": "outpatient", + "display": "Outpatient" + } + ] + } + ], + "medicationCodeableConcept": { + "coding": [ + { + "system": "http://snomed.info/sct", + "code": "36126511000001106", + "display": "Morphine 10mg modified-release tablets" + } + ] + }, + "subject": { + "reference": "urn:uuid:78d3c2eb-009e-4ec8-a358-b042954aa9b2" + }, + "requester": { + "reference": "urn:uuid:56166769-c1c4-4d07-afa8-132b5dfca666" + }, + "groupIdentifier": { + "extension": [ + { + "url": "https://fhir.nhs.uk/StructureDefinition/Extension-DM-PrescriptionId", + "valueIdentifier": { + "system": "https://fhir.nhs.uk/Id/prescription", + "value": "a472f8aa-b039-454e-9380-76377d549022" + } + } + ], + "system": "https://fhir.nhs.uk/Id/prescription-order-number", + "value": "F4B59B-A99968-4D22B6" + }, + "courseOfTherapyType": { + "coding": [ + { + "system": "http://terminology.hl7.org/CodeSystem/medicationrequest-course-of-therapy", + "code": "acute", + "display": "Short course (acute) therapy" + } + ] + }, + "dosageInstruction": [ + { + "text": "1 tablet, daily" + } + ], + "dispenseRequest": { + "extension": [ + { + "url": "https://fhir.nhs.uk/StructureDefinition/Extension-DM-PerformerSiteType", + "valueCoding": { + "system": "https://fhir.nhs.uk/CodeSystem/dispensing-site-preference", + "code": "P1" + } + } + ], + "quantity": { + "value": 28, + "unit": "tablet", + "system": "http://snomed.info/sct", + "code": "428673006" + }, + "performer": { + "identifier": { + "system": "https://fhir.nhs.uk/Id/ods-organization-code", + "value": "FY210" + } + } + }, + "substitution": { + "allowedBoolean": false + } + } + }, + { + "fullUrl": "urn:uuid:1de954ac-a1ea-49ab-bd4e-88e99f191186", + "resource": { + "resourceType": "MedicationRequest", + "id": "1de954ac-a1ea-49ab-bd4e-88e99f191186", + "extension": [ + { + "url": "https://fhir.nhs.uk/StructureDefinition/Extension-DM-PrescriptionType", + "valueCoding": { + "system": "https://fhir.nhs.uk/CodeSystem/prescription-type", + "code": "1008", + "display": "Outpatient Community Prescriber - Pharmacist Independent/Supplementary prescriber" + } + } + ], + "identifier": [ + { + "system": "https://fhir.nhs.uk/Id/prescription-order-item-number", + "value": "1de954ac-a1ea-49ab-bd4e-88e99f191186" + } + ], + "status": "active", + "intent": "order", + "category": [ + { + "coding": [ + { + "system": "http://terminology.hl7.org/CodeSystem/medicationrequest-category", + "code": "outpatient", + "display": "Outpatient" + } + ] + } + ], + "medicationCodeableConcept": { + "coding": [ + { + "system": "http://snomed.info/sct", + "code": "321196004", + "display": "Diazepam 2mg tablets" + } + ] + }, + "subject": { + "reference": "urn:uuid:78d3c2eb-009e-4ec8-a358-b042954aa9b2" + }, + "requester": { + "reference": "urn:uuid:56166769-c1c4-4d07-afa8-132b5dfca666" + }, + "groupIdentifier": { + "extension": [ + { + "url": "https://fhir.nhs.uk/StructureDefinition/Extension-DM-PrescriptionId", + "valueIdentifier": { + "system": "https://fhir.nhs.uk/Id/prescription", + "value": "a472f8aa-b039-454e-9380-76377d549022" + } + } + ], + "system": "https://fhir.nhs.uk/Id/prescription-order-number", + "value": "F4B59B-A99968-4D22B6" + }, + "courseOfTherapyType": { + "coding": [ + { + "system": "http://terminology.hl7.org/CodeSystem/medicationrequest-course-of-therapy", + "code": "acute", + "display": "Short course (acute) therapy" + } + ] + }, + "note": [{ + "text": "Dosage has been decreased on advice from the hospital." + }], + "dosageInstruction": [ + { + "text": "1 tablet, at NIGHT" + } + ], + "dispenseRequest": { + "extension": [ + { + "url": "https://fhir.nhs.uk/StructureDefinition/Extension-DM-PerformerSiteType", + "valueCoding": { + "system": "https://fhir.nhs.uk/CodeSystem/dispensing-site-preference", + "code": "P1" + } + } + ], + "quantity": { + "value": 28, + "unit": "tablet", + "system": "http://snomed.info/sct", + "code": "428673006" + }, + "performer": { + "identifier": { + "system": "https://fhir.nhs.uk/Id/ods-organization-code", + "value": "FY210" + } + } + }, + "substitution": { + "allowedBoolean": false + } + } + }, + { + "fullUrl": "urn:uuid:78d3c2eb-009e-4ec8-a358-b042954aa9b2", + "resource": { + "resourceType": "Patient", + "id": "78d3c2eb-009e-4ec8-a358-b042954aa9b2", + "identifier": [ + { + "system": "https://fhir.nhs.uk/Id/nhs-number", + "value": "9449306036" + } + ], + "name": [ + { + "use": "usual", + "family": "ILLIDGE", + "given": [ + "DIANN" + ], + "prefix": [ + "MISS" + ] + } + ], + "gender": "female", + "birthDate": "1996-10-15", + "address": [ + { + "use": "home", + "line": [ + "20 POOLE ROAD", + "EPSOM", + "SURREY" + ], + "postalCode": "KT19 9SH" + } + ], + "generalPractitioner": [ + { + "identifier": { + "system": "https://fhir.nhs.uk/Id/ods-organization-code", + "value": "H81109" + } + } + ] + } + }, + { + "fullUrl": "urn:uuid:a8c85454-f8cb-498d-9629-78e2cb5fa47a", + "resource": { + "resourceType": "Practitioner", + "id": "a8c85454-f8cb-498d-9629-78e2cb5fa47a", + "identifier": [ + { + "system": "https://fhir.nhs.uk/Id/sds-user-id", + "value": "5555086689106" + }, + { + "system": "https://fhir.hl7.org.uk/Id/gphc-number", + "value": "2083469" + } + ], + "name": [ + { + "family": "UserM", + "given": [ + "Random" + ], + "prefix": [ + "MR" + ] + } + ] + } + }, + { + "fullUrl": "urn:uuid:56166769-c1c4-4d07-afa8-132b5dfca666", + "resource": { + "resourceType": "PractitionerRole", + "id": "56166769-c1c4-4d07-afa8-132b5dfca666", + "identifier": [ + { + "system": "https://fhir.nhs.uk/Id/sds-role-profile-id", + "value": "201715352555" + }, + { + "system": "https://fhir.hl7.org.uk/Id/nhsbsa-spurious-code", + "value": "2083469" + } + ], + "practitioner": { + "reference": "urn:uuid:a8c85454-f8cb-498d-9629-78e2cb5fa47a" + }, + "organization": { + "reference": "urn:uuid:3b4b03a5-52ba-4ba6-9b82-70350aa109d8" + }, + "code": [ + { + "coding": [ + { + "system": "https://fhir.nhs.uk/CodeSystem/NHSDigital-SDS-JobRoleCode", + "code": "S8003:G8003:R8003", + "display": "Health Professional Access Role" + } + ] + } + ], + "telecom": [ + { + "system": "phone", + "value": "01234567890", + "use": "work" + } + ] + } + }, + { + "fullUrl": "urn:uuid:3b4b03a5-52ba-4ba6-9b82-70350aa109d8", + "resource": { + "resourceType": "Organization", + "id": "3b4b03a5-52ba-4ba6-9b82-70350aa109d8", + "identifier": [ + { + "system": "https://fhir.nhs.uk/Id/ods-organization-code", + "value": "A99968" + } + ], + "name": "SOMERSET BOWEL CANCER SCREENING CENTRE", + "address": [ + { + "use": "work", + "line": ["MUSGROVE PARK HOSPITAL"], + "city": "TAUNTON", + "postalCode": "TA1 5DA" + } + ], + "telecom": [ + { + "system": "phone", + "value": "01823 333444", + "use": "work" + } + ], + "partOf": { + "identifier": { + "system": "https://fhir.nhs.uk/Id/ods-organization-code", + "value": "RBA" + }, + "display": "TAUNTON AND SOMERSET NHS FOUNDATION TRUST" + } + } + }, + { + "fullUrl": "urn:uuid:b2a46b68-9e1e-49e6-a132-88b3308ed561", + "resource": { + "resourceType": "Provenance", + "id": "b2a46b68-9e1e-49e6-a132-88b3308ed561", + "target": [ + { + "reference": "urn:uuid:a54219b8-f741-4c47-b662-e4f8dfa49ab6" + }, + { + "reference": "urn:uuid:00d3dd04-d162-49ce-a808-6f220906f1c8" + }, + { + "reference": "urn:uuid:1de954ac-a1ea-49ab-bd4e-88e99f191186" + }, + { + "reference": "urn:uuid:78d3c2eb-009e-4ec8-a358-b042954aa9b2" + }, + { + "reference": "urn:uuid:a8c85454-f8cb-498d-9629-78e2cb5fa47a" + }, + { + "reference": "urn:uuid:56166769-c1c4-4d07-afa8-132b5dfca666" + }, + { + "reference": "urn:uuid:3b4b03a5-52ba-4ba6-9b82-70350aa109d8" + } + ], + "recorded": "2008-02-27T11:38:00+00:00", + "agent": [ + { + "who": { + "reference": "urn:uuid:56166769-c1c4-4d07-afa8-132b5dfca666" + } + } + ], + "signature": [ + { + "type": [ + { + "system": "urn:iso-astm:E1762-95:2013", + "code": "1.2.840.10065.1.12.1.1" + } + ], + "when": "2021-05-07T14:47:39+00:00", + "who": { + "reference": "urn:uuid:56166769-c1c4-4d07-afa8-132b5dfca666" + }, + "data": "DQo8U2lnbmF0dXJlIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwLzA5L3htbGRzaWcjIj4NCiAgICA8U2lnbmVkSW5mbz48Q2Fub25pY2FsaXphdGlvbk1ldGhvZCBBbGdvcml0aG09Imh0dHA6Ly93d3cudzMub3JnLzIwMDEvMTAveG1sLWV4Yy1jMTRuIyI+PC9DYW5vbmljYWxpemF0aW9uTWV0aG9kPjxTaWduYXR1cmVNZXRob2QgQWxnb3JpdGhtPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwLzA5L3htbGRzaWcjcnNhLXNoYTEiPjwvU2lnbmF0dXJlTWV0aG9kPjxSZWZlcmVuY2U+PFRyYW5zZm9ybXM+PFRyYW5zZm9ybSBBbGdvcml0aG09Imh0dHA6Ly93d3cudzMub3JnLzIwMDEvMTAveG1sLWV4Yy1jMTRuIyI+PC9UcmFuc2Zvcm0+PC9UcmFuc2Zvcm1zPjxEaWdlc3RNZXRob2QgQWxnb3JpdGhtPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwLzA5L3htbGRzaWcjc2hhMSI+PC9EaWdlc3RNZXRob2Q+PERpZ2VzdFZhbHVlPnRvZk92dDJ6a0MrVngya3ZlNHRsN095c3QwVT08L0RpZ2VzdFZhbHVlPjwvUmVmZXJlbmNlPjwvU2lnbmVkSW5mbz4NCiAgICA8U2lnbmF0dXJlVmFsdWU+VittK0labFk0c0ZSdU83ZDNHMlVsUU5xaDlmSUtHSExYeFdHTDFmUzRjZlVOTnRJbkh6MFFaUWtIclV4SmxRWENicFFTRTRYN0VmcXNmeEJaNHlwMG9UT0g4V0J5eCs4UHVDVE80a0YramJCdTlvZ0cxdjJKeHNhL21IdDVrZFdveFRmRW1OTlQ1VktJdzcvTHdJN0pQREREZE5VcUVHZ1VpZ2VUd1MrdHlFPTwvU2lnbmF0dXJlVmFsdWU+DQogICAgPEtleUluZm8+DQogICAgICAgIDxYNTA5RGF0YT4NCiAgICAgICAgICAgIDxYNTA5Q2VydGlmaWNhdGU+TUlJRHVEQ0NBcUNnQXdJQkFnSUVYY210SHpBTkJna3Foa2lHOXcwQkFRc0ZBREEyTVF3d0NnWURWUVFLRXdOdWFITXhDekFKQmdOVkJBc1RBa05CTVJrd0Z3WURWUVFERXhCT1NGTWdTVTVVSUV4bGRtVnNJREZFTUI0WERUSXdNVEF5TWpFd01qRTFOVm9YRFRJeU1UQXlNakV3TlRFMU5Wb3dRekVNTUFvR0ExVUVDaE1EYm1oek1ROHdEUVlEVlFRTEV3WlFaVzl3YkdVeElqQWdCZ05WQkFNTUdUVTFOVEkxTXpVeU1URXdPRjlTUVU1RVQwMWZWVk5GVWxFd2daOHdEUVlKS29aSWh2Y05BUUVCQlFBRGdZMEFNSUdKQW9HQkFLdDRzek53N09BSDdBUVJyRGUveEJJbXNNbU1pUzlFc3JUM2EzcC9MaDNicmR6STlhYWpUVVoyYi9jdmJPYTdQZVlkN3UrSzRhMlpkMFhrKzBHRm1ZR3pTVlg2aVlqYmx3cjB2YWkzMXpWN0crbEd2SHhINnBTb0xDd0lDYVpBRndhYmVENU96OTQreUEzYVdOV3RHVjBEZmg5cXdIM1pGQ0lNUnN2ZXJOMXBBZ01CQUFHamdnRkRNSUlCUHpBT0JnTlZIUThCQWY4RUJBTUNCa0F3WlFZRFZSMGdBUUgvQkZzd1dUQlhCZ3NxaGpvQWlYdG1BQU1DQURCSU1FWUdDQ3NHQVFVRkJ3SUJGanBvZEhSd2N6b3ZMM0JyYVM1dWFITXVkV3N2WTJWeWRHbG1hV05oZEdWZmNHOXNhV05wWlhNdlkyOXVkR1Z1ZEY5amIyMXRhWFJ0Wlc1ME1ETUdBMVVkSHdRc01Db3dLS0Ftb0NTR0ltaDBkSEE2THk5amNtd3VibWh6TG5WckwybHVkQzh4WkM5amNteGpNeTVqY213d0t3WURWUjBRQkNRd0lvQVBNakF5TURFd01qSXhNREl4TlRWYWdROHlNREl5TURNeE56RXdOVEUxTlZvd0h3WURWUjBqQkJnd0ZvQVVvSllmZ1lUTlBkNkVVS0w2UUxJekh4WTVQRkl3SFFZRFZSME9CQllFRkx0eXZZU3lhcWc2MEFFVVpneGswd3JqUkpjK01Ba0dBMVVkRXdRQ01BQXdHUVlKS29aSWh2WjlCMEVBQkF3d0Noc0VWamd1TXdNQ0JMQXdEUVlKS29aSWh2Y05BUUVMQlFBRGdnRUJBQmN6eThCOGp1UHBJZmFUTkZjeHJDMjJhQ1gveFlabWhyTC9OdklCQWFYMUc1aGppd21rR0tFMmhSVElyNjdQeFp4bVhzSnhpZ1JCTUhQbEkrbFkvK29rekgwR2k3YjVicWx3N3B4R0lnSk8wMDB3OHBGc3ZvOXc0MklZaEhvZHN2bkRWU3hoTVQwSjQ2UWhrOXNvRTBMam9FVUxLUVBQbFlHa2UvR2wzbTE3SXRGWXdPYlFIMGZNRXdtaXFCeWVJZno3Z1NjY096TDVjSXA2UGNaVE9qbzJJcVFwZ0VtaGpPY1JJbkVxQU5pdFNkam9pSkFKenBhYVpqWVRSZEhVWDdpN2FqRWlING05MW5GVys0QXFrTnR0bGI0V2NHS3NTbVdnZktLaGVGNElvWktNRTgweGVyU2dNeTh2dGpMT0JKQ0dYejB3TEdtUXVSbXhNVHE4OHE0PTwvWDUwOUNlcnRpZmljYXRlPg0KICAgICAgICA8L1g1MDlEYXRhPg0KICAgIDwvS2V5SW5mbz4NCjwvU2lnbmF0dXJlPg0K" + } + ] + } + } + ] +} diff --git a/src/test/resources/examples/full_examples/secondary-care/community/acute/nominated-pharmacy/nurse/medication-reference/1-Prepare-Request-200_OK.json b/src/test/resources/examples/full_examples/secondary-care/community/acute/nominated-pharmacy/nurse/medication-reference/1-Prepare-Request-200_OK.json new file mode 100644 index 00000000..3ba3d682 --- /dev/null +++ b/src/test/resources/examples/full_examples/secondary-care/community/acute/nominated-pharmacy/nurse/medication-reference/1-Prepare-Request-200_OK.json @@ -0,0 +1,670 @@ +{ + "resourceType": "Bundle", + "id": "0A1FD9EF-A3D5-4E95-84CD-552070A03089", + "identifier": { + "system": "https://tools.ietf.org/html/rfc4122", + "value": "66375d07-8e0a-44c6-8561-c4da3cdbc99a" + }, + "type": "message", + "entry": [ + { + "fullUrl": "urn:uuid:0a1fd9ef-a3d5-4e95-84cd-552070a03086", + "resource": { + "resourceType": "MessageHeader", + "id": "0A1FD9EF-A3D5-4E95-84CD-552070A03089", + "eventCoding": { + "system": "https://fhir.nhs.uk/CodeSystem/message-event", + "code": "prescription-order", + "display": "Prescription Order" + }, + "sender": { + "identifier": { + "system": "https://fhir.nhs.uk/Id/ods-organization-code", + "value": "RBA" + }, + "reference": "urn:uuid:56166769-c1c4-4d07-afa8-132b5dfca666", + "display": "USERM|PHARMACIST" + }, + "source": { + "endpoint": "https://directory.spineservices.nhs.uk/STU3/Organization/RBA" + }, + "destination": [ + { + "endpoint": "https://directory.spineservices.nhs.uk/STU3/Organization/FH542", + "receiver": { + "identifier": { + "system": "https://fhir.nhs.uk/Id/ods-organization-code", + "value": "FH542" + } + } + } + ], + "focus": [ + { + "reference": "urn:uuid:78d3c2eb-009e-4ec8-a358-b042954aa9b2" + }, + { + "reference": "urn:uuid:a54219b8-f741-4c47-b662-e4f8dfa49ab6" + } + ] + } + }, + { + "fullUrl": "urn:uuid:a54219b8-f741-4c47-b662-e4f8dfa49ab6", + "resource": { + "resourceType": "MedicationRequest", + "id": "a54219b8-f741-4c47-b662-e4f8dfa49ab6", + "extension": [ + { + "url": "https://fhir.nhs.uk/StructureDefinition/Extension-DM-PrescriptionType", + "valueCoding": { + "system": "https://fhir.nhs.uk/CodeSystem/prescription-type", + "code": "1005", + "display": "Outpatient Community Prescriber - Community Practitioner Nurse prescriber" + } + } + ], + "identifier": [ + { + "system": "https://fhir.nhs.uk/Id/prescription-order-item-number", + "value": "a54219b8-f741-4c47-b662-e4f8dfa49ab6" + } + ], + "status": "active", + "intent": "order", + "category": [ + { + "coding": [ + { + "system": "http://terminology.hl7.org/CodeSystem/medicationrequest-category", + "code": "outpatient", + "display": "Outpatient" + } + ] + } + ], + "medicationCodeableConcept": { + "coding": [ + { + "system": "http://snomed.info/sct", + "code": "324689003", + "display": "Nystatin 100,000units/ml oral suspension" + } + ] + }, + "subject": { + "reference": "urn:uuid:78d3c2eb-009e-4ec8-a358-b042954aa9b2" + }, + "requester": { + "reference": "urn:uuid:56166769-c1c4-4d07-afa8-132b5dfca666" + }, + "groupIdentifier": { + "extension": [ + { + "url": "https://fhir.nhs.uk/StructureDefinition/Extension-DM-PrescriptionId", + "valueIdentifier": { + "system": "https://fhir.nhs.uk/Id/prescription", + "value": "65162689-6918-460c-a1e4-5918e0d7de0b" + } + } + ], + "system": "https://fhir.nhs.uk/Id/prescription-order-number", + "value": "7E5416-A99968-42DBAE" + }, + "courseOfTherapyType": { + "coding": [ + { + "system": "http://terminology.hl7.org/CodeSystem/medicationrequest-course-of-therapy", + "code": "acute", + "display": "Short course (acute) therapy" + } + ] + }, + "dosageInstruction": [ + { + "text": "Follow directions", + "additionalInstruction": [ + { + "coding": [ + { + "system": "http://snomed.info/sct", + "code": "421769005", + "display": "Follow directions" + } + ] + } + ] + } + ], + "dispenseRequest": { + "extension": [ + { + "url": "https://fhir.nhs.uk/StructureDefinition/Extension-DM-PerformerSiteType", + "valueCoding": { + "system": "https://fhir.nhs.uk/CodeSystem/dispensing-site-preference", + "code": "P1" + } + } + ], + "quantity": { + "value": 30, + "unit": "ml", + "system": "http://snomed.info/sct", + "code": "385024007" + }, + "performer": { + "identifier": { + "system": "https://fhir.nhs.uk/Id/ods-organization-code", + "value": "FH542" + } + } + }, + "substitution": { + "allowedBoolean": false + } + } + }, + { + "fullUrl": "urn:uuid:dd994697-df0e-4202-bd5a-a8e3080bf0bc", + "resource": { + "resourceType": "MedicationRequest", + "id": "dd994697-df0e-4202-bd5a-a8e3080bf0bc", + "extension": [ + { + "url": "https://fhir.nhs.uk/StructureDefinition/Extension-DM-PrescriptionType", + "valueCoding": { + "system": "https://fhir.nhs.uk/CodeSystem/prescription-type", + "code": "1005", + "display": "Outpatient Community Prescriber - Community Practitioner Nurse prescriber" + } + } + ], + "identifier": [ + { + "system": "https://fhir.nhs.uk/Id/prescription-order-item-number", + "value": "dd994697-df0e-4202-bd5a-a8e3080bf0bc" + } + ], + "status": "active", + "intent": "order", + "category": [ + { + "coding": [ + { + "system": "http://terminology.hl7.org/CodeSystem/medicationrequest-category", + "code": "outpatient", + "display": "Outpatient" + } + ] + } + ], + "medicationCodeableConcept": { + "coding": [ + { + "system": "http://snomed.info/sct", + "code": "14611011000001107", + "display": "Phosphates enema (Formula B) 128ml standard tube" + } + ] + }, + "subject": { + "reference": "urn:uuid:78d3c2eb-009e-4ec8-a358-b042954aa9b2" + }, + "requester": { + "reference": "urn:uuid:56166769-c1c4-4d07-afa8-132b5dfca666" + }, + "groupIdentifier": { + "extension": [ + { + "url": "https://fhir.nhs.uk/StructureDefinition/Extension-DM-PrescriptionId", + "valueIdentifier": { + "system": "https://fhir.nhs.uk/Id/prescription", + "value": "65162689-6918-460c-a1e4-5918e0d7de0b" + } + } + ], + "system": "https://fhir.nhs.uk/Id/prescription-order-number", + "value": "7E5416-A99968-42DBAE" + }, + "courseOfTherapyType": { + "coding": [ + { + "system": "http://terminology.hl7.org/CodeSystem/medicationrequest-course-of-therapy", + "code": "acute", + "display": "Short course (acute) therapy" + } + ] + }, + "dosageInstruction": [ + { + "text": "Follow directions", + "additionalInstruction": [ + { + "coding": [ + { + "system": "http://snomed.info/sct", + "code": "421769005", + "display": "Follow directions" + } + ] + } + ] + } + ], + "dispenseRequest": { + "extension": [ + { + "url": "https://fhir.nhs.uk/StructureDefinition/Extension-DM-PerformerSiteType", + "valueCoding": { + "system": "https://fhir.nhs.uk/CodeSystem/dispensing-site-preference", + "code": "P1" + } + } + ], + "quantity": { + "value": 1, + "unit": "Enema", + "system": "http://snomed.info/sct", + "code": "700476008" + }, + "performer": { + "identifier": { + "system": "https://fhir.nhs.uk/Id/ods-organization-code", + "value": "FH542" + } + } + }, + "substitution": { + "allowedBoolean": false + } + } + }, + { + "fullUrl": "urn:uuid:1e35d3a9-a256-4985-8476-0294bb12d37e", + "resource": { + "resourceType": "MedicationRequest", + "id": "1e35d3a9-a256-4985-8476-0294bb12d37e", + "extension": [ + { + "url": "https://fhir.nhs.uk/StructureDefinition/Extension-DM-PrescriptionType", + "valueCoding": { + "system": "https://fhir.nhs.uk/CodeSystem/prescription-type", + "code": "1005", + "display": "Outpatient Community Prescriber - Community Practitioner Nurse prescriber" + } + } + ], + "identifier": [ + { + "system": "https://fhir.nhs.uk/Id/prescription-order-item-number", + "value": "1e35d3a9-a256-4985-8476-0294bb12d37e" + } + ], + "status": "active", + "intent": "order", + "category": [ + { + "coding": [ + { + "system": "http://terminology.hl7.org/CodeSystem/medicationrequest-category", + "code": "outpatient", + "display": "Outpatient" + } + ] + } + ], + "medicationCodeableConcept": { + "coding": [ + { + "system": "http://snomed.info/sct", + "code": "30318011000001108", + "display": "Diclofenac 140mg medicated plasters" + } + ] + }, + "subject": { + "reference": "urn:uuid:78d3c2eb-009e-4ec8-a358-b042954aa9b2" + }, + "requester": { + "reference": "urn:uuid:56166769-c1c4-4d07-afa8-132b5dfca666" + }, + "groupIdentifier": { + "extension": [ + { + "url": "https://fhir.nhs.uk/StructureDefinition/Extension-DM-PrescriptionId", + "valueIdentifier": { + "system": "https://fhir.nhs.uk/Id/prescription", + "value": "65162689-6918-460c-a1e4-5918e0d7de0b" + } + } + ], + "system": "https://fhir.nhs.uk/Id/prescription-order-number", + "value": "7E5416-A99968-42DBAE" + }, + "courseOfTherapyType": { + "coding": [ + { + "system": "http://terminology.hl7.org/CodeSystem/medicationrequest-course-of-therapy", + "code": "acute", + "display": "Short course (acute) therapy" + } + ] + }, + "dosageInstruction": [ + { + "text": "Follow directions", + "additionalInstruction": [ + { + "coding": [ + { + "system": "http://snomed.info/sct", + "code": "421769005", + "display": "Follow directions" + } + ] + } + ] + } + ], + "dispenseRequest": { + "extension": [ + { + "url": "https://fhir.nhs.uk/StructureDefinition/Extension-DM-PerformerSiteType", + "valueCoding": { + "system": "https://fhir.nhs.uk/CodeSystem/dispensing-site-preference", + "code": "P1" + } + } + ], + "quantity": { + "value": 2, + "unit": "Plaster", + "system": "http://snomed.info/sct", + "code": "733010002" + }, + "performer": { + "identifier": { + "system": "https://fhir.nhs.uk/Id/ods-organization-code", + "value": "FH542" + } + } + }, + "substitution": { + "allowedBoolean": false + } + } + }, + { + "fullUrl": "urn:uuid:a51041ce-9a43-4bc4-a277-cffa434bdd63", + "resource": { + "resourceType": "MedicationRequest", + "id": "a51041ce-9a43-4bc4-a277-cffa434bdd63", + "extension": [ + { + "url": "https://fhir.nhs.uk/StructureDefinition/Extension-DM-PrescriptionType", + "valueCoding": { + "system": "https://fhir.nhs.uk/CodeSystem/prescription-type", + "code": "1005", + "display": "Outpatient Community Prescriber - Community Practitioner Nurse prescriber" + } + } + ], + "identifier": [ + { + "system": "https://fhir.nhs.uk/Id/prescription-order-item-number", + "value": "a51041ce-9a43-4bc4-a277-cffa434bdd63" + } + ], + "status": "active", + "intent": "order", + "category": [ + { + "coding": [ + { + "system": "http://terminology.hl7.org/CodeSystem/medicationrequest-category", + "code": "outpatient", + "display": "Outpatient" + } + ] + } + ], + "subject": { + "reference": "urn:uuid:78d3c2eb-009e-4ec8-a358-b042954aa9b2" + }, + "requester": { + "reference": "urn:uuid:56166769-c1c4-4d07-afa8-132b5dfca666" + }, + "groupIdentifier": { + "extension": [ + { + "url": "https://fhir.nhs.uk/StructureDefinition/Extension-DM-PrescriptionId", + "valueIdentifier": { + "system": "https://fhir.nhs.uk/Id/prescription", + "value": "65162689-6918-460c-a1e4-5918e0d7de0b" + } + } + ], + "system": "https://fhir.nhs.uk/Id/prescription-order-number", + "value": "7E5416-A99968-42DBAE" + }, + "medicationReference": { + "reference": "urn:uuid:495df5c5-5931-4795-960d-d2188bec3c2e" + }, + "courseOfTherapyType": { + "coding": [ + { + "system": "http://terminology.hl7.org/CodeSystem/medicationrequest-course-of-therapy", + "code": "acute", + "display": "Short course (acute) therapy" + } + ] + }, + "dosageInstruction": [ + { + "text": "Follow directions", + "additionalInstruction": [ + { + "coding": [ + { + "system": "http://snomed.info/sct", + "code": "421769005", + "display": "Follow directions" + } + ] + } + ] + } + ], + "dispenseRequest": { + "extension": [ + { + "url": "https://fhir.nhs.uk/StructureDefinition/Extension-DM-PerformerSiteType", + "valueCoding": { + "system": "https://fhir.nhs.uk/CodeSystem/dispensing-site-preference", + "code": "P1" + } + } + ], + "quantity": { + "value": 5, + "unit": "Ampoule", + "system": "http://snomed.info/sct", + "code": "413516001" + }, + "performer": { + "identifier": { + "system": "https://fhir.nhs.uk/Id/ods-organization-code", + "value": "FH542" + } + } + }, + "substitution": { + "allowedBoolean": false + } + } + }, + { + "fullUrl": "urn:uuid:78d3c2eb-009e-4ec8-a358-b042954aa9b2", + "resource": { + "resourceType": "Patient", + "id": "78d3c2eb-009e-4ec8-a358-b042954aa9b2", + "identifier": [ + { + "system": "https://fhir.nhs.uk/Id/nhs-number", + "value": "9449305552" + } + ], + "name": [ + { + "use": "usual", + "family": "DAVIS", + "given": ["JANE"], + "prefix": ["MRS"] + } + ], + "gender": "female", + "birthDate": "1999-11-25", + "address": [ + { + "use": "home", + "line": ["53 Harrogate Road", "Chapel Allerton", "Leeds"], + "postalCode": "LS7 3PY" + } + ], + "generalPractitioner": [ + { + "identifier": { + "system": "https://fhir.nhs.uk/Id/ods-organization-code", + "value": "B81001" + } + } + ] + } + }, + { + "fullUrl": "urn:uuid:a8c85454-f8cb-498d-9629-78e2cb5fa47a", + "resource": { + "resourceType": "Practitioner", + "id": "a8c85454-f8cb-498d-9629-78e2cb5fa47a", + "identifier": [ + { + "system": "https://fhir.nhs.uk/Id/sds-user-id", + "value": "5555086689106" + }, + { + "system": "https://fhir.hl7.org.uk/Id/gphc-number", + "value": "2083469" + } + ], + "name": [ + { + "family": "USERM", + "given": ["RANDOM"], + "prefix": ["MR"] + } + ] + } + }, + { + "fullUrl": "urn:uuid:56166769-c1c4-4d07-afa8-132b5dfca666", + "resource": { + "resourceType": "PractitionerRole", + "id": "56166769-c1c4-4d07-afa8-132b5dfca666", + "identifier": [ + { + "system": "https://fhir.nhs.uk/Id/sds-role-profile-id", + "value": "201715352555" + }, + { + "system": "https://fhir.hl7.org.uk/Id/nhsbsa-spurious-code", + "value": "2083469" + } + ], + "practitioner": { + "reference": "urn:uuid:a8c85454-f8cb-498d-9629-78e2cb5fa47a" + }, + "organization": { + "reference": "urn:uuid:3b4b03a5-52ba-4ba6-9b82-70350aa109d8" + }, + "code": [ + { + "coding": [ + { + "system": "https://fhir.nhs.uk/CodeSystem/NHSDigital-SDS-JobRoleCode", + "code": "S8003:G8003:R8003", + "display": "Healthcare Access Role" + } + ] + } + ], + "telecom": [ + { + "system": "phone", + "value": "01234567890", + "use": "work" + } + ] + } + }, + { + "fullUrl": "urn:uuid:3b4b03a5-52ba-4ba6-9b82-70350aa109d8", + "resource": { + "resourceType": "Organization", + "id": "3b4b03a5-52ba-4ba6-9b82-70350aa109d8", + "identifier": [ + { + "system": "https://fhir.nhs.uk/Id/ods-organization-code", + "value": "A99968" + } + ], + "name": "SOMERSET BOWEL CANCER SCREENING CENTRE", + "address": [ + { + "use": "work", + "line": ["MUSGROVE PARK HOSPITAL"], + "city": "TAUNTON", + "postalCode": "TA1 5DA" + } + ], + "telecom": [ + { + "system": "phone", + "value": "01823 333444", + "use": "work" + } + ], + "partOf": { + "identifier": { + "system": "https://fhir.nhs.uk/Id/ods-organization-code", + "value": "RBA" + }, + "display": "TAUNTON AND SOMERSET NHS FOUNDATION TRUST" + } + } + }, + { + "fullUrl": "urn:uuid:495df5c5-5931-4795-960d-d2188bec3c2e", + "resource": { + "resourceType": "Medication", + "code": { + "coding": [ + { + "system": "http://snomed.info/sct", + "code": "15517911000001104", + "display": "Methotrexate 10mg/0.2ml solution for injection pre-filled syringes" + } + ] + }, + "form": { + "coding": [ + { + "system": "http://snomed.info/sct", + "code": "3318611000001103", + "display": "pre-filled disposable injection" + } + ] + } + } + } + ] +} diff --git a/src/test/resources/examples/full_examples/secondary-care/community/acute/nominated-pharmacy/nurse/medication-reference/1-Prepare-Response-200_OK.json b/src/test/resources/examples/full_examples/secondary-care/community/acute/nominated-pharmacy/nurse/medication-reference/1-Prepare-Response-200_OK.json new file mode 100644 index 00000000..6c92cf59 --- /dev/null +++ b/src/test/resources/examples/full_examples/secondary-care/community/acute/nominated-pharmacy/nurse/medication-reference/1-Prepare-Response-200_OK.json @@ -0,0 +1,17 @@ +{ + "resourceType": "Parameters", + "parameter": [ + { + "name": "digest", + "valueString": "PFNpZ25lZEluZm8geG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvMDkveG1sZHNpZyMiPjxDYW5vbmljYWxpemF0aW9uTWV0aG9kIEFsZ29yaXRobT0iaHR0cDovL3d3dy53My5vcmcvMjAwMS8xMC94bWwtZXhjLWMxNG4jIj48L0Nhbm9uaWNhbGl6YXRpb25NZXRob2Q+PFNpZ25hdHVyZU1ldGhvZCBBbGdvcml0aG09Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvMDkveG1sZHNpZyNyc2Etc2hhMSI+PC9TaWduYXR1cmVNZXRob2Q+PFJlZmVyZW5jZT48VHJhbnNmb3Jtcz48VHJhbnNmb3JtIEFsZ29yaXRobT0iaHR0cDovL3d3dy53My5vcmcvMjAwMS8xMC94bWwtZXhjLWMxNG4jIj48L1RyYW5zZm9ybT48L1RyYW5zZm9ybXM+PERpZ2VzdE1ldGhvZCBBbGdvcml0aG09Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvMDkveG1sZHNpZyNzaGExIj48L0RpZ2VzdE1ldGhvZD48RGlnZXN0VmFsdWU+UDhIRHAvZTg3b3hvNTRvOHpxZ1ZSOHRwMTJVPTwvRGlnZXN0VmFsdWU+PC9SZWZlcmVuY2U+PC9TaWduZWRJbmZvPg==" + }, + { + "name": "timestamp", + "valueString": "2022-10-25T10:24:34+00:00" + }, + { + "name": "algorithm", + "valueString": "RS1" + } + ] +} diff --git a/src/test/resources/examples/full_examples/secondary-care/community/acute/nominated-pharmacy/nurse/medication-reference/1-Process-Request-Send-200_OK.json b/src/test/resources/examples/full_examples/secondary-care/community/acute/nominated-pharmacy/nurse/medication-reference/1-Process-Request-Send-200_OK.json new file mode 100644 index 00000000..e64a5899 --- /dev/null +++ b/src/test/resources/examples/full_examples/secondary-care/community/acute/nominated-pharmacy/nurse/medication-reference/1-Process-Request-Send-200_OK.json @@ -0,0 +1,705 @@ +{ + "resourceType": "Bundle", + "id": "0A1FD9EF-A3D5-4E95-84CD-552070A03089", + "identifier": { + "system": "https://tools.ietf.org/html/rfc4122", + "value": "29957cde-a9f1-4d01-8601-81921bc2da39" + }, + "type": "message", + "entry": [ + { + "fullUrl": "urn:uuid:0a1fd9ef-a3d5-4e95-84cd-552070a03086", + "resource": { + "resourceType": "MessageHeader", + "id": "0A1FD9EF-A3D5-4E95-84CD-552070A03089", + "eventCoding": { + "system": "https://fhir.nhs.uk/CodeSystem/message-event", + "code": "prescription-order", + "display": "Prescription Order" + }, + "sender": { + "identifier": { + "system": "https://fhir.nhs.uk/Id/ods-organization-code", + "value": "RBA" + }, + "reference": "urn:uuid:56166769-c1c4-4d07-afa8-132b5dfca666", + "display": "USERM|PHARMACIST" + }, + "source": { + "endpoint": "https://directory.spineservices.nhs.uk/STU3/Organization/RBA" + }, + "destination": [ + { + "endpoint": "https://directory.spineservices.nhs.uk/STU3/Organization/FH542", + "receiver": { + "identifier": { + "system": "https://fhir.nhs.uk/Id/ods-organization-code", + "value": "FH542" + } + } + } + ], + "focus": [ + { + "reference": "urn:uuid:78d3c2eb-009e-4ec8-a358-b042954aa9b2" + }, + { + "reference": "urn:uuid:a54219b8-f741-4c47-b662-e4f8dfa49ab6" + } + ] + } + }, + { + "fullUrl": "urn:uuid:a54219b8-f741-4c47-b662-e4f8dfa49ab6", + "resource": { + "resourceType": "MedicationRequest", + "id": "a54219b8-f741-4c47-b662-e4f8dfa49ab6", + "extension": [ + { + "url": "https://fhir.nhs.uk/StructureDefinition/Extension-DM-PrescriptionType", + "valueCoding": { + "system": "https://fhir.nhs.uk/CodeSystem/prescription-type", + "code": "1005", + "display": "Outpatient Community Prescriber - Community Practitioner Nurse prescriber" + } + } + ], + "identifier": [ + { + "system": "https://fhir.nhs.uk/Id/prescription-order-item-number", + "value": "a54219b8-f741-4c47-b662-e4f8dfa49ab6" + } + ], + "status": "active", + "intent": "order", + "category": [ + { + "coding": [ + { + "system": "http://terminology.hl7.org/CodeSystem/medicationrequest-category", + "code": "outpatient", + "display": "Outpatient" + } + ] + } + ], + "medicationCodeableConcept": { + "coding": [ + { + "system": "http://snomed.info/sct", + "code": "324689003", + "display": "Nystatin 100,000units/ml oral suspension" + } + ] + }, + "subject": { + "reference": "urn:uuid:78d3c2eb-009e-4ec8-a358-b042954aa9b2" + }, + "requester": { + "reference": "urn:uuid:56166769-c1c4-4d07-afa8-132b5dfca666" + }, + "groupIdentifier": { + "extension": [ + { + "url": "https://fhir.nhs.uk/StructureDefinition/Extension-DM-PrescriptionId", + "valueIdentifier": { + "system": "https://fhir.nhs.uk/Id/prescription", + "value": "65162689-6918-460c-a1e4-5918e0d7de0b" + } + } + ], + "system": "https://fhir.nhs.uk/Id/prescription-order-number", + "value": "7E5416-A99968-42DBAE" + }, + "courseOfTherapyType": { + "coding": [ + { + "system": "http://terminology.hl7.org/CodeSystem/medicationrequest-course-of-therapy", + "code": "acute", + "display": "Short course (acute) therapy" + } + ] + }, + "dosageInstruction": [ + { + "text": "Follow directions", + "additionalInstruction": [ + { + "coding": [ + { + "system": "http://snomed.info/sct", + "code": "421769005", + "display": "Follow directions" + } + ] + } + ] + } + ], + "dispenseRequest": { + "extension": [ + { + "url": "https://fhir.nhs.uk/StructureDefinition/Extension-DM-PerformerSiteType", + "valueCoding": { + "system": "https://fhir.nhs.uk/CodeSystem/dispensing-site-preference", + "code": "P1" + } + } + ], + "quantity": { + "value": 30, + "unit": "ml", + "system": "http://snomed.info/sct", + "code": "385024007" + }, + "performer": { + "identifier": { + "system": "https://fhir.nhs.uk/Id/ods-organization-code", + "value": "FH542" + } + } + }, + "substitution": { + "allowedBoolean": false + } + } + }, + { + "fullUrl": "urn:uuid:dd994697-df0e-4202-bd5a-a8e3080bf0bc", + "resource": { + "resourceType": "MedicationRequest", + "id": "dd994697-df0e-4202-bd5a-a8e3080bf0bc", + "extension": [ + { + "url": "https://fhir.nhs.uk/StructureDefinition/Extension-DM-PrescriptionType", + "valueCoding": { + "system": "https://fhir.nhs.uk/CodeSystem/prescription-type", + "code": "1005", + "display": "Outpatient Community Prescriber - Community Practitioner Nurse prescriber" + } + } + ], + "identifier": [ + { + "system": "https://fhir.nhs.uk/Id/prescription-order-item-number", + "value": "dd994697-df0e-4202-bd5a-a8e3080bf0bc" + } + ], + "status": "active", + "intent": "order", + "category": [ + { + "coding": [ + { + "system": "http://terminology.hl7.org/CodeSystem/medicationrequest-category", + "code": "outpatient", + "display": "Outpatient" + } + ] + } + ], + "medicationCodeableConcept": { + "coding": [ + { + "system": "http://snomed.info/sct", + "code": "14611011000001107", + "display": "Phosphates enema (Formula B) 128ml standard tube" + } + ] + }, + "subject": { + "reference": "urn:uuid:78d3c2eb-009e-4ec8-a358-b042954aa9b2" + }, + "requester": { + "reference": "urn:uuid:56166769-c1c4-4d07-afa8-132b5dfca666" + }, + "groupIdentifier": { + "extension": [ + { + "url": "https://fhir.nhs.uk/StructureDefinition/Extension-DM-PrescriptionId", + "valueIdentifier": { + "system": "https://fhir.nhs.uk/Id/prescription", + "value": "65162689-6918-460c-a1e4-5918e0d7de0b" + } + } + ], + "system": "https://fhir.nhs.uk/Id/prescription-order-number", + "value": "7E5416-A99968-42DBAE" + }, + "courseOfTherapyType": { + "coding": [ + { + "system": "http://terminology.hl7.org/CodeSystem/medicationrequest-course-of-therapy", + "code": "acute", + "display": "Short course (acute) therapy" + } + ] + }, + "dosageInstruction": [ + { + "text": "Follow directions", + "additionalInstruction": [ + { + "coding": [ + { + "system": "http://snomed.info/sct", + "code": "421769005", + "display": "Follow directions" + } + ] + } + ] + } + ], + "dispenseRequest": { + "extension": [ + { + "url": "https://fhir.nhs.uk/StructureDefinition/Extension-DM-PerformerSiteType", + "valueCoding": { + "system": "https://fhir.nhs.uk/CodeSystem/dispensing-site-preference", + "code": "P1" + } + } + ], + "quantity": { + "value": 1, + "unit": "Enema", + "system": "http://snomed.info/sct", + "code": "700476008" + }, + "performer": { + "identifier": { + "system": "https://fhir.nhs.uk/Id/ods-organization-code", + "value": "FH542" + } + } + }, + "substitution": { + "allowedBoolean": false + } + } + }, + { + "fullUrl": "urn:uuid:1e35d3a9-a256-4985-8476-0294bb12d37e", + "resource": { + "resourceType": "MedicationRequest", + "id": "1e35d3a9-a256-4985-8476-0294bb12d37e", + "extension": [ + { + "url": "https://fhir.nhs.uk/StructureDefinition/Extension-DM-PrescriptionType", + "valueCoding": { + "system": "https://fhir.nhs.uk/CodeSystem/prescription-type", + "code": "1005", + "display": "Outpatient Community Prescriber - Community Practitioner Nurse prescriber" + } + } + ], + "identifier": [ + { + "system": "https://fhir.nhs.uk/Id/prescription-order-item-number", + "value": "1e35d3a9-a256-4985-8476-0294bb12d37e" + } + ], + "status": "active", + "intent": "order", + "category": [ + { + "coding": [ + { + "system": "http://terminology.hl7.org/CodeSystem/medicationrequest-category", + "code": "outpatient", + "display": "Outpatient" + } + ] + } + ], + "medicationCodeableConcept": { + "coding": [ + { + "system": "http://snomed.info/sct", + "code": "30318011000001108", + "display": "Diclofenac 140mg medicated plasters" + } + ] + }, + "subject": { + "reference": "urn:uuid:78d3c2eb-009e-4ec8-a358-b042954aa9b2" + }, + "requester": { + "reference": "urn:uuid:56166769-c1c4-4d07-afa8-132b5dfca666" + }, + "groupIdentifier": { + "extension": [ + { + "url": "https://fhir.nhs.uk/StructureDefinition/Extension-DM-PrescriptionId", + "valueIdentifier": { + "system": "https://fhir.nhs.uk/Id/prescription", + "value": "65162689-6918-460c-a1e4-5918e0d7de0b" + } + } + ], + "system": "https://fhir.nhs.uk/Id/prescription-order-number", + "value": "7E5416-A99968-42DBAE" + }, + "courseOfTherapyType": { + "coding": [ + { + "system": "http://terminology.hl7.org/CodeSystem/medicationrequest-course-of-therapy", + "code": "acute", + "display": "Short course (acute) therapy" + } + ] + }, + "dosageInstruction": [ + { + "text": "Follow directions", + "additionalInstruction": [ + { + "coding": [ + { + "system": "http://snomed.info/sct", + "code": "421769005", + "display": "Follow directions" + } + ] + } + ] + } + ], + "dispenseRequest": { + "extension": [ + { + "url": "https://fhir.nhs.uk/StructureDefinition/Extension-DM-PerformerSiteType", + "valueCoding": { + "system": "https://fhir.nhs.uk/CodeSystem/dispensing-site-preference", + "code": "P1" + } + } + ], + "quantity": { + "value": 2, + "unit": "Plaster", + "system": "http://snomed.info/sct", + "code": "733010002" + }, + "performer": { + "identifier": { + "system": "https://fhir.nhs.uk/Id/ods-organization-code", + "value": "FH542" + } + } + }, + "substitution": { + "allowedBoolean": false + } + } + }, + { + "fullUrl": "urn:uuid:a51041ce-9a43-4bc4-a277-cffa434bdd63", + "resource": { + "resourceType": "MedicationRequest", + "id": "a51041ce-9a43-4bc4-a277-cffa434bdd63", + "extension": [ + { + "url": "https://fhir.nhs.uk/StructureDefinition/Extension-DM-PrescriptionType", + "valueCoding": { + "system": "https://fhir.nhs.uk/CodeSystem/prescription-type", + "code": "1005", + "display": "Outpatient Community Prescriber - Community Practitioner Nurse prescriber" + } + } + ], + "identifier": [ + { + "system": "https://fhir.nhs.uk/Id/prescription-order-item-number", + "value": "a51041ce-9a43-4bc4-a277-cffa434bdd63" + } + ], + "status": "active", + "intent": "order", + "category": [ + { + "coding": [ + { + "system": "http://terminology.hl7.org/CodeSystem/medicationrequest-category", + "code": "outpatient", + "display": "Outpatient" + } + ] + } + ], + "subject": { + "reference": "urn:uuid:78d3c2eb-009e-4ec8-a358-b042954aa9b2" + }, + "requester": { + "reference": "urn:uuid:56166769-c1c4-4d07-afa8-132b5dfca666" + }, + "groupIdentifier": { + "extension": [ + { + "url": "https://fhir.nhs.uk/StructureDefinition/Extension-DM-PrescriptionId", + "valueIdentifier": { + "system": "https://fhir.nhs.uk/Id/prescription", + "value": "65162689-6918-460c-a1e4-5918e0d7de0b" + } + } + ], + "system": "https://fhir.nhs.uk/Id/prescription-order-number", + "value": "7E5416-A99968-42DBAE" + }, + "medicationReference": { + "reference": "urn:uuid:495df5c5-5931-4795-960d-d2188bec3c2e" + }, + "courseOfTherapyType": { + "coding": [ + { + "system": "http://terminology.hl7.org/CodeSystem/medicationrequest-course-of-therapy", + "code": "acute", + "display": "Short course (acute) therapy" + } + ] + }, + "dosageInstruction": [ + { + "text": "Follow directions", + "additionalInstruction": [ + { + "coding": [ + { + "system": "http://snomed.info/sct", + "code": "421769005", + "display": "Follow directions" + } + ] + } + ] + } + ], + "dispenseRequest": { + "extension": [ + { + "url": "https://fhir.nhs.uk/StructureDefinition/Extension-DM-PerformerSiteType", + "valueCoding": { + "system": "https://fhir.nhs.uk/CodeSystem/dispensing-site-preference", + "code": "P1" + } + } + ], + "quantity": { + "value": 5, + "unit": "Ampoule", + "system": "http://snomed.info/sct", + "code": "413516001" + }, + "performer": { + "identifier": { + "system": "https://fhir.nhs.uk/Id/ods-organization-code", + "value": "FH542" + } + } + }, + "substitution": { + "allowedBoolean": false + } + } + }, + { + "fullUrl": "urn:uuid:78d3c2eb-009e-4ec8-a358-b042954aa9b2", + "resource": { + "resourceType": "Patient", + "id": "78d3c2eb-009e-4ec8-a358-b042954aa9b2", + "identifier": [ + { + "system": "https://fhir.nhs.uk/Id/nhs-number", + "value": "9449305552" + } + ], + "name": [ + { + "use": "usual", + "family": "DAVIS", + "given": ["JANE"], + "prefix": ["MRS"] + } + ], + "gender": "female", + "birthDate": "1999-11-25", + "address": [ + { + "use": "home", + "line": ["53 Harrogate Road", "Chapel Allerton", "Leeds"], + "postalCode": "LS7 3PY" + } + ], + "generalPractitioner": [ + { + "identifier": { + "system": "https://fhir.nhs.uk/Id/ods-organization-code", + "value": "B81001" + } + } + ] + } + }, + { + "fullUrl": "urn:uuid:a8c85454-f8cb-498d-9629-78e2cb5fa47a", + "resource": { + "resourceType": "Practitioner", + "id": "a8c85454-f8cb-498d-9629-78e2cb5fa47a", + "identifier": [ + { + "system": "https://fhir.nhs.uk/Id/sds-user-id", + "value": "5555086689106" + }, + { + "system": "https://fhir.hl7.org.uk/Id/gphc-number", + "value": "2083469" + } + ], + "name": [ + { + "family": "USERM", + "given": ["RANDOM"], + "prefix": ["MR"] + } + ] + } + }, + { + "fullUrl": "urn:uuid:56166769-c1c4-4d07-afa8-132b5dfca666", + "resource": { + "resourceType": "PractitionerRole", + "id": "56166769-c1c4-4d07-afa8-132b5dfca666", + "identifier": [ + { + "system": "https://fhir.nhs.uk/Id/sds-role-profile-id", + "value": "201715352555" + }, + { + "system": "https://fhir.hl7.org.uk/Id/nhsbsa-spurious-code", + "value": "2083469" + } + ], + "practitioner": { + "reference": "urn:uuid:a8c85454-f8cb-498d-9629-78e2cb5fa47a" + }, + "organization": { + "reference": "urn:uuid:3b4b03a5-52ba-4ba6-9b82-70350aa109d8" + }, + "code": [ + { + "coding": [ + { + "system": "https://fhir.nhs.uk/CodeSystem/NHSDigital-SDS-JobRoleCode", + "code": "S8003:G8003:R8003", + "display": "Healthcare Access Role" + } + ] + } + ], + "telecom": [ + { + "system": "phone", + "value": "01234567890", + "use": "work" + } + ] + } + }, + { + "fullUrl": "urn:uuid:3b4b03a5-52ba-4ba6-9b82-70350aa109d8", + "resource": { + "resourceType": "Organization", + "id": "3b4b03a5-52ba-4ba6-9b82-70350aa109d8", + "identifier": [ + { + "system": "https://fhir.nhs.uk/Id/ods-organization-code", + "value": "A99968" + } + ], + "name": "SOMERSET BOWEL CANCER SCREENING CENTRE", + "address": [ + { + "use": "work", + "line": ["MUSGROVE PARK HOSPITAL"], + "city": "TAUNTON", + "postalCode": "TA1 5DA" + } + ], + "telecom": [ + { + "system": "phone", + "value": "01823 333444", + "use": "work" + } + ], + "partOf": { + "identifier": { + "system": "https://fhir.nhs.uk/Id/ods-organization-code", + "value": "RBA" + }, + "display": "TAUNTON AND SOMERSET NHS FOUNDATION TRUST" + } + } + }, + { + "fullUrl": "urn:uuid:28828c55-8fa7-42d7-916f-fcf076e0c10e", + "resource": { + "resourceType": "Provenance", + "id": "28828c55-8fa7-42d7-916f-fcf076e0c10e", + "target": [ + { + "reference": "urn:uuid:a54219b8-f741-4c47-b662-e4f8dfa49ab6" + } + ], + "recorded": "2008-02-27T11:38:00+00:00", + "agent": [ + { + "who": { + "reference": "urn:uuid:56166769-c1c4-4d07-afa8-132b5dfca666" + } + } + ], + "signature": [ + { + "type": [ + { + "system": "urn:iso-astm:E1762-95:2013", + "code": "1.2.840.10065.1.12.1.1" + } + ], + "when": "2021-05-07T14:47:51+00:00", + "who": { + "reference": "urn:uuid:56166769-c1c4-4d07-afa8-132b5dfca666" + }, + "data": "DQo8U2lnbmF0dXJlIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwLzA5L3htbGRzaWcjIj4NCiAgICA8U2lnbmVkSW5mbz48Q2Fub25pY2FsaXphdGlvbk1ldGhvZCBBbGdvcml0aG09Imh0dHA6Ly93d3cudzMub3JnLzIwMDEvMTAveG1sLWV4Yy1jMTRuIyI+PC9DYW5vbmljYWxpemF0aW9uTWV0aG9kPjxTaWduYXR1cmVNZXRob2QgQWxnb3JpdGhtPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwLzA5L3htbGRzaWcjcnNhLXNoYTEiPjwvU2lnbmF0dXJlTWV0aG9kPjxSZWZlcmVuY2U+PFRyYW5zZm9ybXM+PFRyYW5zZm9ybSBBbGdvcml0aG09Imh0dHA6Ly93d3cudzMub3JnLzIwMDEvMTAveG1sLWV4Yy1jMTRuIyI+PC9UcmFuc2Zvcm0+PC9UcmFuc2Zvcm1zPjxEaWdlc3RNZXRob2QgQWxnb3JpdGhtPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwLzA5L3htbGRzaWcjc2hhMSI+PC9EaWdlc3RNZXRob2Q+PERpZ2VzdFZhbHVlPkowYjNWMUhHc0YvRjZsMGxIZXh5ZVZWdHFGND08L0RpZ2VzdFZhbHVlPjwvUmVmZXJlbmNlPjwvU2lnbmVkSW5mbz4NCiAgICA8U2lnbmF0dXJlVmFsdWU+Wm9id0FnSVU5UXZma1p5UGJWUVlIell5SFQ3bFNJRStVOEtkd2FKaW9KWHFiQ3h5SzVzMkk1aHp5bzY2a0RXUGtVdmJTNzRpa24ySUR2K3Awem1QWFNsSVYycjFWUFVCNmhzb09ldjhLeE83TzVEdnRTMnJaVW1udXhyUHJrSXdGNlY3eSs1dWJYVUJMb3RqWFc0M2hOR2JNTk5NY2k5eDFZeTVmWUZnQ2lVPTwvU2lnbmF0dXJlVmFsdWU+DQogICAgPEtleUluZm8+DQogICAgICAgIDxYNTA5RGF0YT4NCiAgICAgICAgICAgIDxYNTA5Q2VydGlmaWNhdGU+TUlJRHVEQ0NBcUNnQXdJQkFnSUVYY210SHpBTkJna3Foa2lHOXcwQkFRc0ZBREEyTVF3d0NnWURWUVFLRXdOdWFITXhDekFKQmdOVkJBc1RBa05CTVJrd0Z3WURWUVFERXhCT1NGTWdTVTVVSUV4bGRtVnNJREZFTUI0WERUSXdNVEF5TWpFd01qRTFOVm9YRFRJeU1UQXlNakV3TlRFMU5Wb3dRekVNTUFvR0ExVUVDaE1EYm1oek1ROHdEUVlEVlFRTEV3WlFaVzl3YkdVeElqQWdCZ05WQkFNTUdUVTFOVEkxTXpVeU1URXdPRjlTUVU1RVQwMWZWVk5GVWxFd2daOHdEUVlKS29aSWh2Y05BUUVCQlFBRGdZMEFNSUdKQW9HQkFLdDRzek53N09BSDdBUVJyRGUveEJJbXNNbU1pUzlFc3JUM2EzcC9MaDNicmR6STlhYWpUVVoyYi9jdmJPYTdQZVlkN3UrSzRhMlpkMFhrKzBHRm1ZR3pTVlg2aVlqYmx3cjB2YWkzMXpWN0crbEd2SHhINnBTb0xDd0lDYVpBRndhYmVENU96OTQreUEzYVdOV3RHVjBEZmg5cXdIM1pGQ0lNUnN2ZXJOMXBBZ01CQUFHamdnRkRNSUlCUHpBT0JnTlZIUThCQWY4RUJBTUNCa0F3WlFZRFZSMGdBUUgvQkZzd1dUQlhCZ3NxaGpvQWlYdG1BQU1DQURCSU1FWUdDQ3NHQVFVRkJ3SUJGanBvZEhSd2N6b3ZMM0JyYVM1dWFITXVkV3N2WTJWeWRHbG1hV05oZEdWZmNHOXNhV05wWlhNdlkyOXVkR1Z1ZEY5amIyMXRhWFJ0Wlc1ME1ETUdBMVVkSHdRc01Db3dLS0Ftb0NTR0ltaDBkSEE2THk5amNtd3VibWh6TG5WckwybHVkQzh4WkM5amNteGpNeTVqY213d0t3WURWUjBRQkNRd0lvQVBNakF5TURFd01qSXhNREl4TlRWYWdROHlNREl5TURNeE56RXdOVEUxTlZvd0h3WURWUjBqQkJnd0ZvQVVvSllmZ1lUTlBkNkVVS0w2UUxJekh4WTVQRkl3SFFZRFZSME9CQllFRkx0eXZZU3lhcWc2MEFFVVpneGswd3JqUkpjK01Ba0dBMVVkRXdRQ01BQXdHUVlKS29aSWh2WjlCMEVBQkF3d0Noc0VWamd1TXdNQ0JMQXdEUVlKS29aSWh2Y05BUUVMQlFBRGdnRUJBQmN6eThCOGp1UHBJZmFUTkZjeHJDMjJhQ1gveFlabWhyTC9OdklCQWFYMUc1aGppd21rR0tFMmhSVElyNjdQeFp4bVhzSnhpZ1JCTUhQbEkrbFkvK29rekgwR2k3YjVicWx3N3B4R0lnSk8wMDB3OHBGc3ZvOXc0MklZaEhvZHN2bkRWU3hoTVQwSjQ2UWhrOXNvRTBMam9FVUxLUVBQbFlHa2UvR2wzbTE3SXRGWXdPYlFIMGZNRXdtaXFCeWVJZno3Z1NjY096TDVjSXA2UGNaVE9qbzJJcVFwZ0VtaGpPY1JJbkVxQU5pdFNkam9pSkFKenBhYVpqWVRSZEhVWDdpN2FqRWlING05MW5GVys0QXFrTnR0bGI0V2NHS3NTbVdnZktLaGVGNElvWktNRTgweGVyU2dNeTh2dGpMT0JKQ0dYejB3TEdtUXVSbXhNVHE4OHE0PTwvWDUwOUNlcnRpZmljYXRlPg0KICAgICAgICA8L1g1MDlEYXRhPg0KICAgIDwvS2V5SW5mbz4NCjwvU2lnbmF0dXJlPg0K" + } + ] + } + }, + { + "fullUrl": "urn:uuid:495df5c5-5931-4795-960d-d2188bec3c2e", + "resource": { + "resourceType": "Medication", + "code": { + "coding": [ + { + "system": "http://snomed.info/sct", + "code": "15517911000001104", + "display": "Methotrexate 10mg/0.2ml solution for injection pre-filled syringes" + } + ] + }, + "form": { + "coding": [ + { + "system": "http://snomed.info/sct", + "code": "3318611000001103", + "display": "pre-filled disposable injection" + } + ] + } + } + } + ] +} diff --git a/src/test/resources/examples/full_examples/secondary-care/community/acute/nominated-pharmacy/nurse/multiple-medications/1-Prepare-Request-200_OK.json b/src/test/resources/examples/full_examples/secondary-care/community/acute/nominated-pharmacy/nurse/multiple-medications/1-Prepare-Request-200_OK.json new file mode 100644 index 00000000..c2f9a19b --- /dev/null +++ b/src/test/resources/examples/full_examples/secondary-care/community/acute/nominated-pharmacy/nurse/multiple-medications/1-Prepare-Request-200_OK.json @@ -0,0 +1,652 @@ +{ + "resourceType": "Bundle", + "id": "0A1FD9EF-A3D5-4E95-84CD-552070A03089", + "identifier": { + "system": "https://tools.ietf.org/html/rfc4122", + "value": "9bc4efad-d208-4d8b-8e0a-1e6fdc6a8207" + }, + "type": "message", + "entry": [ + { + "fullUrl": "urn:uuid:0a1fd9ef-a3d5-4e95-84cd-552070a03086", + "resource": { + "resourceType": "MessageHeader", + "id": "0A1FD9EF-A3D5-4E95-84CD-552070A03089", + "eventCoding": { + "system": "https://fhir.nhs.uk/CodeSystem/message-event", + "code": "prescription-order", + "display": "Prescription Order" + }, + "sender": { + "identifier": { + "system": "https://fhir.nhs.uk/Id/ods-organization-code", + "value": "RBA" + }, + "reference": "urn:uuid:56166769-c1c4-4d07-afa8-132b5dfca666", + "display": "USERM|PHARMACIST" + }, + "source": { + "endpoint": "https://directory.spineservices.nhs.uk/STU3/Organization/RBA" + }, + "destination": [ + { + "endpoint": "https://directory.spineservices.nhs.uk/STU3/Organization/FH542", + "receiver": { + "identifier": { + "system": "https://fhir.nhs.uk/Id/ods-organization-code", + "value": "FH542" + } + } + } + ], + "focus": [ + { + "reference": "urn:uuid:78d3c2eb-009e-4ec8-a358-b042954aa9b2" + }, + { + "reference": "urn:uuid:a54219b8-f741-4c47-b662-e4f8dfa49ab6" + } + ] + } + }, + { + "fullUrl": "urn:uuid:a54219b8-f741-4c47-b662-e4f8dfa49ab6", + "resource": { + "resourceType": "MedicationRequest", + "id": "a54219b8-f741-4c47-b662-e4f8dfa49ab6", + "extension": [ + { + "url": "https://fhir.nhs.uk/StructureDefinition/Extension-DM-PrescriptionType", + "valueCoding": { + "system": "https://fhir.nhs.uk/CodeSystem/prescription-type", + "code": "1005", + "display": "Outpatient Community Prescriber - Community Practitioner Nurse prescriber" + } + } + ], + "identifier": [ + { + "system": "https://fhir.nhs.uk/Id/prescription-order-item-number", + "value": "a54219b8-f741-4c47-b662-e4f8dfa49ab6" + } + ], + "status": "active", + "intent": "order", + "category": [ + { + "coding": [ + { + "system": "http://terminology.hl7.org/CodeSystem/medicationrequest-category", + "code": "outpatient", + "display": "Outpatient" + } + ] + } + ], + "medicationCodeableConcept": { + "coding": [ + { + "system": "http://snomed.info/sct", + "code": "324689003", + "display": "Nystatin 100,000units/ml oral suspension" + } + ] + }, + "subject": { + "reference": "urn:uuid:78d3c2eb-009e-4ec8-a358-b042954aa9b2" + }, + "requester": { + "reference": "urn:uuid:56166769-c1c4-4d07-afa8-132b5dfca666" + }, + "groupIdentifier": { + "extension": [ + { + "url": "https://fhir.nhs.uk/StructureDefinition/Extension-DM-PrescriptionId", + "valueIdentifier": { + "system": "https://fhir.nhs.uk/Id/prescription", + "value": "a157e44d-ef58-45db-a821-ced1572d2319" + } + } + ], + "system": "https://fhir.nhs.uk/Id/prescription-order-number", + "value": "D8E3A8-A99968-4468B0" + }, + "courseOfTherapyType": { + "coding": [ + { + "system": "http://terminology.hl7.org/CodeSystem/medicationrequest-course-of-therapy", + "code": "acute", + "display": "Short course (acute) therapy" + } + ] + }, + "dosageInstruction": [ + { + "text": "Follow directions", + "additionalInstruction": [ + { + "coding": [ + { + "system": "http://snomed.info/sct", + "code": "421769005", + "display": "Follow directions" + } + ] + } + ] + } + ], + "dispenseRequest": { + "extension": [ + { + "url": "https://fhir.nhs.uk/StructureDefinition/Extension-DM-PerformerSiteType", + "valueCoding": { + "system": "https://fhir.nhs.uk/CodeSystem/dispensing-site-preference", + "code": "P1" + } + } + ], + "quantity": { + "value": 30, + "unit": "ml", + "system": "http://snomed.info/sct", + "code": "385024007" + }, + "performer": { + "identifier": { + "system": "https://fhir.nhs.uk/Id/ods-organization-code", + "value": "FH542" + } + } + }, + "substitution": { + "allowedBoolean": false + } + } + }, + { + "fullUrl": "urn:uuid:dd994697-df0e-4202-bd5a-a8e3080bf0bc", + "resource": { + "resourceType": "MedicationRequest", + "id": "dd994697-df0e-4202-bd5a-a8e3080bf0bc", + "extension": [ + { + "url": "https://fhir.nhs.uk/StructureDefinition/Extension-DM-PrescriptionType", + "valueCoding": { + "system": "https://fhir.nhs.uk/CodeSystem/prescription-type", + "code": "1005", + "display": "Outpatient Community Prescriber - Community Practitioner Nurse prescriber" + } + } + ], + "identifier": [ + { + "system": "https://fhir.nhs.uk/Id/prescription-order-item-number", + "value": "dd994697-df0e-4202-bd5a-a8e3080bf0bc" + } + ], + "status": "active", + "intent": "order", + "category": [ + { + "coding": [ + { + "system": "http://terminology.hl7.org/CodeSystem/medicationrequest-category", + "code": "outpatient", + "display": "Outpatient" + } + ] + } + ], + "medicationCodeableConcept": { + "coding": [ + { + "system": "http://snomed.info/sct", + "code": "14611011000001107", + "display": "Phosphates enema (Formula B) 128ml standard tube" + } + ] + }, + "subject": { + "reference": "urn:uuid:78d3c2eb-009e-4ec8-a358-b042954aa9b2" + }, + "requester": { + "reference": "urn:uuid:56166769-c1c4-4d07-afa8-132b5dfca666" + }, + "groupIdentifier": { + "extension": [ + { + "url": "https://fhir.nhs.uk/StructureDefinition/Extension-DM-PrescriptionId", + "valueIdentifier": { + "system": "https://fhir.nhs.uk/Id/prescription", + "value": "a157e44d-ef58-45db-a821-ced1572d2319" + } + } + ], + "system": "https://fhir.nhs.uk/Id/prescription-order-number", + "value": "D8E3A8-A99968-4468B0" + }, + "courseOfTherapyType": { + "coding": [ + { + "system": "http://terminology.hl7.org/CodeSystem/medicationrequest-course-of-therapy", + "code": "acute", + "display": "Short course (acute) therapy" + } + ] + }, + "dosageInstruction": [ + { + "text": "Follow directions", + "additionalInstruction": [ + { + "coding": [ + { + "system": "http://snomed.info/sct", + "code": "421769005", + "display": "Follow directions" + } + ] + } + ] + } + ], + "dispenseRequest": { + "extension": [ + { + "url": "https://fhir.nhs.uk/StructureDefinition/Extension-DM-PerformerSiteType", + "valueCoding": { + "system": "https://fhir.nhs.uk/CodeSystem/dispensing-site-preference", + "code": "P1" + } + } + ], + "quantity": { + "value": 1, + "unit": "Enema", + "system": "http://snomed.info/sct", + "code": "700476008" + }, + "performer": { + "identifier": { + "system": "https://fhir.nhs.uk/Id/ods-organization-code", + "value": "FH542" + } + } + }, + "substitution": { + "allowedBoolean": false + } + } + }, + { + "fullUrl": "urn:uuid:1e35d3a9-a256-4985-8476-0294bb12d37e", + "resource": { + "resourceType": "MedicationRequest", + "id": "1e35d3a9-a256-4985-8476-0294bb12d37e", + "extension": [ + { + "url": "https://fhir.nhs.uk/StructureDefinition/Extension-DM-PrescriptionType", + "valueCoding": { + "system": "https://fhir.nhs.uk/CodeSystem/prescription-type", + "code": "1005", + "display": "Outpatient Community Prescriber - Community Practitioner Nurse prescriber" + } + } + ], + "identifier": [ + { + "system": "https://fhir.nhs.uk/Id/prescription-order-item-number", + "value": "1e35d3a9-a256-4985-8476-0294bb12d37e" + } + ], + "status": "active", + "intent": "order", + "category": [ + { + "coding": [ + { + "system": "http://terminology.hl7.org/CodeSystem/medicationrequest-category", + "code": "outpatient", + "display": "Outpatient" + } + ] + } + ], + "medicationCodeableConcept": { + "coding": [ + { + "system": "http://snomed.info/sct", + "code": "30318011000001108", + "display": "Diclofenac 140mg medicated plasters" + } + ] + }, + "subject": { + "reference": "urn:uuid:78d3c2eb-009e-4ec8-a358-b042954aa9b2" + }, + "requester": { + "reference": "urn:uuid:56166769-c1c4-4d07-afa8-132b5dfca666" + }, + "groupIdentifier": { + "extension": [ + { + "url": "https://fhir.nhs.uk/StructureDefinition/Extension-DM-PrescriptionId", + "valueIdentifier": { + "system": "https://fhir.nhs.uk/Id/prescription", + "value": "a157e44d-ef58-45db-a821-ced1572d2319" + } + } + ], + "system": "https://fhir.nhs.uk/Id/prescription-order-number", + "value": "D8E3A8-A99968-4468B0" + }, + "courseOfTherapyType": { + "coding": [ + { + "system": "http://terminology.hl7.org/CodeSystem/medicationrequest-course-of-therapy", + "code": "acute", + "display": "Short course (acute) therapy" + } + ] + }, + "dosageInstruction": [ + { + "text": "Follow directions", + "additionalInstruction": [ + { + "coding": [ + { + "system": "http://snomed.info/sct", + "code": "421769005", + "display": "Follow directions" + } + ] + } + ] + } + ], + "dispenseRequest": { + "extension": [ + { + "url": "https://fhir.nhs.uk/StructureDefinition/Extension-DM-PerformerSiteType", + "valueCoding": { + "system": "https://fhir.nhs.uk/CodeSystem/dispensing-site-preference", + "code": "P1" + } + } + ], + "quantity": { + "value": 2, + "unit": "Plaster", + "system": "http://snomed.info/sct", + "code": "733010002" + }, + "performer": { + "identifier": { + "system": "https://fhir.nhs.uk/Id/ods-organization-code", + "value": "FH542" + } + } + }, + "substitution": { + "allowedBoolean": false + } + } + }, + { + "fullUrl": "urn:uuid:a51041ce-9a43-4bc4-a277-cffa434bdd63", + "resource": { + "resourceType": "MedicationRequest", + "id": "a51041ce-9a43-4bc4-a277-cffa434bdd63", + "extension": [ + { + "url": "https://fhir.nhs.uk/StructureDefinition/Extension-DM-PrescriptionType", + "valueCoding": { + "system": "https://fhir.nhs.uk/CodeSystem/prescription-type", + "code": "1005", + "display": "Outpatient Community Prescriber - Community Practitioner Nurse prescriber" + } + } + ], + "identifier": [ + { + "system": "https://fhir.nhs.uk/Id/prescription-order-item-number", + "value": "a51041ce-9a43-4bc4-a277-cffa434bdd63" + } + ], + "status": "active", + "intent": "order", + "category": [ + { + "coding": [ + { + "system": "http://terminology.hl7.org/CodeSystem/medicationrequest-category", + "code": "outpatient", + "display": "Outpatient" + } + ] + } + ], + "medicationCodeableConcept": { + "coding": [ + { + "system": "http://snomed.info/sct", + "code": "110171000001104", + "display": "Water for injections 2ml ampoules" + } + ] + }, + "subject": { + "reference": "urn:uuid:78d3c2eb-009e-4ec8-a358-b042954aa9b2" + }, + "requester": { + "reference": "urn:uuid:56166769-c1c4-4d07-afa8-132b5dfca666" + }, + "groupIdentifier": { + "extension": [ + { + "url": "https://fhir.nhs.uk/StructureDefinition/Extension-DM-PrescriptionId", + "valueIdentifier": { + "system": "https://fhir.nhs.uk/Id/prescription", + "value": "a157e44d-ef58-45db-a821-ced1572d2319" + } + } + ], + "system": "https://fhir.nhs.uk/Id/prescription-order-number", + "value": "D8E3A8-A99968-4468B0" + }, + "courseOfTherapyType": { + "coding": [ + { + "system": "http://terminology.hl7.org/CodeSystem/medicationrequest-course-of-therapy", + "code": "acute", + "display": "Short course (acute) therapy" + } + ] + }, + "dosageInstruction": [ + { + "text": "Follow directions", + "additionalInstruction": [ + { + "coding": [ + { + "system": "http://snomed.info/sct", + "code": "421769005", + "display": "Follow directions" + } + ] + } + ] + } + ], + "dispenseRequest": { + "extension": [ + { + "url": "https://fhir.nhs.uk/StructureDefinition/Extension-DM-PerformerSiteType", + "valueCoding": { + "system": "https://fhir.nhs.uk/CodeSystem/dispensing-site-preference", + "code": "P1" + } + } + ], + "quantity": { + "value": 5, + "unit": "Ampoule", + "system": "http://snomed.info/sct", + "code": "413516001" + }, + "performer": { + "identifier": { + "system": "https://fhir.nhs.uk/Id/ods-organization-code", + "value": "FH542" + } + } + }, + "substitution": { + "allowedBoolean": false + } + } + }, + { + "fullUrl": "urn:uuid:78d3c2eb-009e-4ec8-a358-b042954aa9b2", + "resource": { + "resourceType": "Patient", + "id": "78d3c2eb-009e-4ec8-a358-b042954aa9b2", + "identifier": [ + { + "system": "https://fhir.nhs.uk/Id/nhs-number", + "value": "9449305552" + } + ], + "name": [ + { + "use": "usual", + "family": "DAVIS", + "given": ["JANE"], + "prefix": ["MRS"] + } + ], + "gender": "female", + "birthDate": "1999-11-25", + "address": [ + { + "use": "home", + "line": ["53 Harrogate Road", "Chapel Allerton", "Leeds"], + "postalCode": "LS7 3PY" + } + ], + "generalPractitioner": [ + { + "identifier": { + "system": "https://fhir.nhs.uk/Id/ods-organization-code", + "value": "B81001" + } + } + ] + } + }, + { + "fullUrl": "urn:uuid:a8c85454-f8cb-498d-9629-78e2cb5fa47a", + "resource": { + "resourceType": "Practitioner", + "id": "a8c85454-f8cb-498d-9629-78e2cb5fa47a", + "identifier": [ + { + "system": "https://fhir.nhs.uk/Id/sds-user-id", + "value": "5555086689106" + }, + { + "system": "https://fhir.hl7.org.uk/Id/gphc-number", + "value": "2083469" + } + ], + "name": [ + { + "family": "USERM", + "given": ["RANDOM"], + "prefix": ["MR"] + } + ] + } + }, + { + "fullUrl": "urn:uuid:56166769-c1c4-4d07-afa8-132b5dfca666", + "resource": { + "resourceType": "PractitionerRole", + "id": "56166769-c1c4-4d07-afa8-132b5dfca666", + "identifier": [ + { + "system": "https://fhir.nhs.uk/Id/sds-role-profile-id", + "value": "201715352555" + }, + { + "system": "https://fhir.hl7.org.uk/Id/nhsbsa-spurious-code", + "value": "2083469" + } + ], + "practitioner": { + "reference": "urn:uuid:a8c85454-f8cb-498d-9629-78e2cb5fa47a" + }, + "organization": { + "reference": "urn:uuid:3b4b03a5-52ba-4ba6-9b82-70350aa109d8" + }, + "code": [ + { + "coding": [ + { + "system": "https://fhir.nhs.uk/CodeSystem/NHSDigital-SDS-JobRoleCode", + "code": "S8003:G8003:R8003", + "display": "Healthcare Access Role" + } + ] + } + ], + "telecom": [ + { + "system": "phone", + "value": "01234567890", + "use": "work" + } + ] + } + }, + { + "fullUrl": "urn:uuid:3b4b03a5-52ba-4ba6-9b82-70350aa109d8", + "resource": { + "resourceType": "Organization", + "id": "3b4b03a5-52ba-4ba6-9b82-70350aa109d8", + "identifier": [ + { + "system": "https://fhir.nhs.uk/Id/ods-organization-code", + "value": "A99968" + } + ], + "name": "SOMERSET BOWEL CANCER SCREENING CENTRE", + "address": [ + { + "use": "work", + "line": ["MUSGROVE PARK HOSPITAL"], + "city": "TAUNTON", + "postalCode": "TA1 5DA" + } + ], + "telecom": [ + { + "system": "phone", + "value": "01823 333444", + "use": "work" + } + ], + "partOf": { + "identifier": { + "system": "https://fhir.nhs.uk/Id/ods-organization-code", + "value": "RBA" + }, + "display": "TAUNTON AND SOMERSET NHS FOUNDATION TRUST" + } + } + } + ] +} diff --git a/src/test/resources/examples/full_examples/secondary-care/community/acute/nominated-pharmacy/nurse/multiple-medications/1-Prepare-Response-200_OK.json b/src/test/resources/examples/full_examples/secondary-care/community/acute/nominated-pharmacy/nurse/multiple-medications/1-Prepare-Response-200_OK.json new file mode 100644 index 00000000..b6552984 --- /dev/null +++ b/src/test/resources/examples/full_examples/secondary-care/community/acute/nominated-pharmacy/nurse/multiple-medications/1-Prepare-Response-200_OK.json @@ -0,0 +1,17 @@ +{ + "resourceType": "Parameters", + "parameter": [ + { + "name": "digest", + "valueString": "PFNpZ25lZEluZm8geG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvMDkveG1sZHNpZyMiPjxDYW5vbmljYWxpemF0aW9uTWV0aG9kIEFsZ29yaXRobT0iaHR0cDovL3d3dy53My5vcmcvMjAwMS8xMC94bWwtZXhjLWMxNG4jIj48L0Nhbm9uaWNhbGl6YXRpb25NZXRob2Q+PFNpZ25hdHVyZU1ldGhvZCBBbGdvcml0aG09Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvMDkveG1sZHNpZyNyc2Etc2hhMSI+PC9TaWduYXR1cmVNZXRob2Q+PFJlZmVyZW5jZT48VHJhbnNmb3Jtcz48VHJhbnNmb3JtIEFsZ29yaXRobT0iaHR0cDovL3d3dy53My5vcmcvMjAwMS8xMC94bWwtZXhjLWMxNG4jIj48L1RyYW5zZm9ybT48L1RyYW5zZm9ybXM+PERpZ2VzdE1ldGhvZCBBbGdvcml0aG09Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvMDkveG1sZHNpZyNzaGExIj48L0RpZ2VzdE1ldGhvZD48RGlnZXN0VmFsdWU+d1BjeThUZmtWUitpdEFGRnBUMUlhOGc4cVZZPTwvRGlnZXN0VmFsdWU+PC9SZWZlcmVuY2U+PC9TaWduZWRJbmZvPg==" + }, + { + "name": "timestamp", + "valueString": "2022-10-25T10:24:34+00:00" + }, + { + "name": "algorithm", + "valueString": "RS1" + } + ] +} diff --git a/src/test/resources/examples/full_examples/secondary-care/community/acute/nominated-pharmacy/nurse/multiple-medications/1-Process-Request-Send-200_OK.json b/src/test/resources/examples/full_examples/secondary-care/community/acute/nominated-pharmacy/nurse/multiple-medications/1-Process-Request-Send-200_OK.json new file mode 100644 index 00000000..0c7ff837 --- /dev/null +++ b/src/test/resources/examples/full_examples/secondary-care/community/acute/nominated-pharmacy/nurse/multiple-medications/1-Process-Request-Send-200_OK.json @@ -0,0 +1,687 @@ +{ + "resourceType": "Bundle", + "id": "0A1FD9EF-A3D5-4E95-84CD-552070A03089", + "identifier": { + "system": "https://tools.ietf.org/html/rfc4122", + "value": "91926526-f0e8-4a04-b6bb-46e3fe80f8d6" + }, + "type": "message", + "entry": [ + { + "fullUrl": "urn:uuid:0a1fd9ef-a3d5-4e95-84cd-552070a03086", + "resource": { + "resourceType": "MessageHeader", + "id": "0A1FD9EF-A3D5-4E95-84CD-552070A03089", + "eventCoding": { + "system": "https://fhir.nhs.uk/CodeSystem/message-event", + "code": "prescription-order", + "display": "Prescription Order" + }, + "sender": { + "identifier": { + "system": "https://fhir.nhs.uk/Id/ods-organization-code", + "value": "RBA" + }, + "reference": "urn:uuid:56166769-c1c4-4d07-afa8-132b5dfca666", + "display": "USERM|PHARMACIST" + }, + "source": { + "endpoint": "https://directory.spineservices.nhs.uk/STU3/Organization/RBA" + }, + "destination": [ + { + "endpoint": "https://directory.spineservices.nhs.uk/STU3/Organization/FH542", + "receiver": { + "identifier": { + "system": "https://fhir.nhs.uk/Id/ods-organization-code", + "value": "FH542" + } + } + } + ], + "focus": [ + { + "reference": "urn:uuid:78d3c2eb-009e-4ec8-a358-b042954aa9b2" + }, + { + "reference": "urn:uuid:a54219b8-f741-4c47-b662-e4f8dfa49ab6" + } + ] + } + }, + { + "fullUrl": "urn:uuid:a54219b8-f741-4c47-b662-e4f8dfa49ab6", + "resource": { + "resourceType": "MedicationRequest", + "id": "a54219b8-f741-4c47-b662-e4f8dfa49ab6", + "extension": [ + { + "url": "https://fhir.nhs.uk/StructureDefinition/Extension-DM-PrescriptionType", + "valueCoding": { + "system": "https://fhir.nhs.uk/CodeSystem/prescription-type", + "code": "1005", + "display": "Outpatient Community Prescriber - Community Practitioner Nurse prescriber" + } + } + ], + "identifier": [ + { + "system": "https://fhir.nhs.uk/Id/prescription-order-item-number", + "value": "a54219b8-f741-4c47-b662-e4f8dfa49ab6" + } + ], + "status": "active", + "intent": "order", + "category": [ + { + "coding": [ + { + "system": "http://terminology.hl7.org/CodeSystem/medicationrequest-category", + "code": "outpatient", + "display": "Outpatient" + } + ] + } + ], + "medicationCodeableConcept": { + "coding": [ + { + "system": "http://snomed.info/sct", + "code": "324689003", + "display": "Nystatin 100,000units/ml oral suspension" + } + ] + }, + "subject": { + "reference": "urn:uuid:78d3c2eb-009e-4ec8-a358-b042954aa9b2" + }, + "requester": { + "reference": "urn:uuid:56166769-c1c4-4d07-afa8-132b5dfca666" + }, + "groupIdentifier": { + "extension": [ + { + "url": "https://fhir.nhs.uk/StructureDefinition/Extension-DM-PrescriptionId", + "valueIdentifier": { + "system": "https://fhir.nhs.uk/Id/prescription", + "value": "a157e44d-ef58-45db-a821-ced1572d2319" + } + } + ], + "system": "https://fhir.nhs.uk/Id/prescription-order-number", + "value": "D8E3A8-A99968-4468B0" + }, + "courseOfTherapyType": { + "coding": [ + { + "system": "http://terminology.hl7.org/CodeSystem/medicationrequest-course-of-therapy", + "code": "acute", + "display": "Short course (acute) therapy" + } + ] + }, + "dosageInstruction": [ + { + "text": "Follow directions", + "additionalInstruction": [ + { + "coding": [ + { + "system": "http://snomed.info/sct", + "code": "421769005", + "display": "Follow directions" + } + ] + } + ] + } + ], + "dispenseRequest": { + "extension": [ + { + "url": "https://fhir.nhs.uk/StructureDefinition/Extension-DM-PerformerSiteType", + "valueCoding": { + "system": "https://fhir.nhs.uk/CodeSystem/dispensing-site-preference", + "code": "P1" + } + } + ], + "quantity": { + "value": 30, + "unit": "ml", + "system": "http://snomed.info/sct", + "code": "385024007" + }, + "performer": { + "identifier": { + "system": "https://fhir.nhs.uk/Id/ods-organization-code", + "value": "FH542" + } + } + }, + "substitution": { + "allowedBoolean": false + } + } + }, + { + "fullUrl": "urn:uuid:dd994697-df0e-4202-bd5a-a8e3080bf0bc", + "resource": { + "resourceType": "MedicationRequest", + "id": "dd994697-df0e-4202-bd5a-a8e3080bf0bc", + "extension": [ + { + "url": "https://fhir.nhs.uk/StructureDefinition/Extension-DM-PrescriptionType", + "valueCoding": { + "system": "https://fhir.nhs.uk/CodeSystem/prescription-type", + "code": "1005", + "display": "Outpatient Community Prescriber - Community Practitioner Nurse prescriber" + } + } + ], + "identifier": [ + { + "system": "https://fhir.nhs.uk/Id/prescription-order-item-number", + "value": "dd994697-df0e-4202-bd5a-a8e3080bf0bc" + } + ], + "status": "active", + "intent": "order", + "category": [ + { + "coding": [ + { + "system": "http://terminology.hl7.org/CodeSystem/medicationrequest-category", + "code": "outpatient", + "display": "Outpatient" + } + ] + } + ], + "medicationCodeableConcept": { + "coding": [ + { + "system": "http://snomed.info/sct", + "code": "14611011000001107", + "display": "Phosphates enema (Formula B) 128ml standard tube" + } + ] + }, + "subject": { + "reference": "urn:uuid:78d3c2eb-009e-4ec8-a358-b042954aa9b2" + }, + "requester": { + "reference": "urn:uuid:56166769-c1c4-4d07-afa8-132b5dfca666" + }, + "groupIdentifier": { + "extension": [ + { + "url": "https://fhir.nhs.uk/StructureDefinition/Extension-DM-PrescriptionId", + "valueIdentifier": { + "system": "https://fhir.nhs.uk/Id/prescription", + "value": "a157e44d-ef58-45db-a821-ced1572d2319" + } + } + ], + "system": "https://fhir.nhs.uk/Id/prescription-order-number", + "value": "D8E3A8-A99968-4468B0" + }, + "courseOfTherapyType": { + "coding": [ + { + "system": "http://terminology.hl7.org/CodeSystem/medicationrequest-course-of-therapy", + "code": "acute", + "display": "Short course (acute) therapy" + } + ] + }, + "dosageInstruction": [ + { + "text": "Follow directions", + "additionalInstruction": [ + { + "coding": [ + { + "system": "http://snomed.info/sct", + "code": "421769005", + "display": "Follow directions" + } + ] + } + ] + } + ], + "dispenseRequest": { + "extension": [ + { + "url": "https://fhir.nhs.uk/StructureDefinition/Extension-DM-PerformerSiteType", + "valueCoding": { + "system": "https://fhir.nhs.uk/CodeSystem/dispensing-site-preference", + "code": "P1" + } + } + ], + "quantity": { + "value": 1, + "unit": "Enema", + "system": "http://snomed.info/sct", + "code": "700476008" + }, + "performer": { + "identifier": { + "system": "https://fhir.nhs.uk/Id/ods-organization-code", + "value": "FH542" + } + } + }, + "substitution": { + "allowedBoolean": false + } + } + }, + { + "fullUrl": "urn:uuid:1e35d3a9-a256-4985-8476-0294bb12d37e", + "resource": { + "resourceType": "MedicationRequest", + "id": "1e35d3a9-a256-4985-8476-0294bb12d37e", + "extension": [ + { + "url": "https://fhir.nhs.uk/StructureDefinition/Extension-DM-PrescriptionType", + "valueCoding": { + "system": "https://fhir.nhs.uk/CodeSystem/prescription-type", + "code": "1005", + "display": "Outpatient Community Prescriber - Community Practitioner Nurse prescriber" + } + } + ], + "identifier": [ + { + "system": "https://fhir.nhs.uk/Id/prescription-order-item-number", + "value": "1e35d3a9-a256-4985-8476-0294bb12d37e" + } + ], + "status": "active", + "intent": "order", + "category": [ + { + "coding": [ + { + "system": "http://terminology.hl7.org/CodeSystem/medicationrequest-category", + "code": "outpatient", + "display": "Outpatient" + } + ] + } + ], + "medicationCodeableConcept": { + "coding": [ + { + "system": "http://snomed.info/sct", + "code": "30318011000001108", + "display": "Diclofenac 140mg medicated plasters" + } + ] + }, + "subject": { + "reference": "urn:uuid:78d3c2eb-009e-4ec8-a358-b042954aa9b2" + }, + "requester": { + "reference": "urn:uuid:56166769-c1c4-4d07-afa8-132b5dfca666" + }, + "groupIdentifier": { + "extension": [ + { + "url": "https://fhir.nhs.uk/StructureDefinition/Extension-DM-PrescriptionId", + "valueIdentifier": { + "system": "https://fhir.nhs.uk/Id/prescription", + "value": "a157e44d-ef58-45db-a821-ced1572d2319" + } + } + ], + "system": "https://fhir.nhs.uk/Id/prescription-order-number", + "value": "D8E3A8-A99968-4468B0" + }, + "courseOfTherapyType": { + "coding": [ + { + "system": "http://terminology.hl7.org/CodeSystem/medicationrequest-course-of-therapy", + "code": "acute", + "display": "Short course (acute) therapy" + } + ] + }, + "dosageInstruction": [ + { + "text": "Follow directions", + "additionalInstruction": [ + { + "coding": [ + { + "system": "http://snomed.info/sct", + "code": "421769005", + "display": "Follow directions" + } + ] + } + ] + } + ], + "dispenseRequest": { + "extension": [ + { + "url": "https://fhir.nhs.uk/StructureDefinition/Extension-DM-PerformerSiteType", + "valueCoding": { + "system": "https://fhir.nhs.uk/CodeSystem/dispensing-site-preference", + "code": "P1" + } + } + ], + "quantity": { + "value": 2, + "unit": "Plaster", + "system": "http://snomed.info/sct", + "code": "733010002" + }, + "performer": { + "identifier": { + "system": "https://fhir.nhs.uk/Id/ods-organization-code", + "value": "FH542" + } + } + }, + "substitution": { + "allowedBoolean": false + } + } + }, + { + "fullUrl": "urn:uuid:a51041ce-9a43-4bc4-a277-cffa434bdd63", + "resource": { + "resourceType": "MedicationRequest", + "id": "a51041ce-9a43-4bc4-a277-cffa434bdd63", + "extension": [ + { + "url": "https://fhir.nhs.uk/StructureDefinition/Extension-DM-PrescriptionType", + "valueCoding": { + "system": "https://fhir.nhs.uk/CodeSystem/prescription-type", + "code": "1005", + "display": "Outpatient Community Prescriber - Community Practitioner Nurse prescriber" + } + } + ], + "identifier": [ + { + "system": "https://fhir.nhs.uk/Id/prescription-order-item-number", + "value": "a51041ce-9a43-4bc4-a277-cffa434bdd63" + } + ], + "status": "active", + "intent": "order", + "category": [ + { + "coding": [ + { + "system": "http://terminology.hl7.org/CodeSystem/medicationrequest-category", + "code": "outpatient", + "display": "Outpatient" + } + ] + } + ], + "medicationCodeableConcept": { + "coding": [ + { + "system": "http://snomed.info/sct", + "code": "110171000001104", + "display": "Water for injections 2ml ampoules" + } + ] + }, + "subject": { + "reference": "urn:uuid:78d3c2eb-009e-4ec8-a358-b042954aa9b2" + }, + "requester": { + "reference": "urn:uuid:56166769-c1c4-4d07-afa8-132b5dfca666" + }, + "groupIdentifier": { + "extension": [ + { + "url": "https://fhir.nhs.uk/StructureDefinition/Extension-DM-PrescriptionId", + "valueIdentifier": { + "system": "https://fhir.nhs.uk/Id/prescription", + "value": "a157e44d-ef58-45db-a821-ced1572d2319" + } + } + ], + "system": "https://fhir.nhs.uk/Id/prescription-order-number", + "value": "D8E3A8-A99968-4468B0" + }, + "courseOfTherapyType": { + "coding": [ + { + "system": "http://terminology.hl7.org/CodeSystem/medicationrequest-course-of-therapy", + "code": "acute", + "display": "Short course (acute) therapy" + } + ] + }, + "dosageInstruction": [ + { + "text": "Follow directions", + "additionalInstruction": [ + { + "coding": [ + { + "system": "http://snomed.info/sct", + "code": "421769005", + "display": "Follow directions" + } + ] + } + ] + } + ], + "dispenseRequest": { + "extension": [ + { + "url": "https://fhir.nhs.uk/StructureDefinition/Extension-DM-PerformerSiteType", + "valueCoding": { + "system": "https://fhir.nhs.uk/CodeSystem/dispensing-site-preference", + "code": "P1" + } + } + ], + "quantity": { + "value": 5, + "unit": "Ampoule", + "system": "http://snomed.info/sct", + "code": "413516001" + }, + "performer": { + "identifier": { + "system": "https://fhir.nhs.uk/Id/ods-organization-code", + "value": "FH542" + } + } + }, + "substitution": { + "allowedBoolean": false + } + } + }, + { + "fullUrl": "urn:uuid:78d3c2eb-009e-4ec8-a358-b042954aa9b2", + "resource": { + "resourceType": "Patient", + "id": "78d3c2eb-009e-4ec8-a358-b042954aa9b2", + "identifier": [ + { + "system": "https://fhir.nhs.uk/Id/nhs-number", + "value": "9449305552" + } + ], + "name": [ + { + "use": "usual", + "family": "DAVIS", + "given": ["JANE"], + "prefix": ["MRS"] + } + ], + "gender": "female", + "birthDate": "1999-11-25", + "address": [ + { + "use": "home", + "line": ["53 Harrogate Road", "Chapel Allerton", "Leeds"], + "postalCode": "LS7 3PY" + } + ], + "generalPractitioner": [ + { + "identifier": { + "system": "https://fhir.nhs.uk/Id/ods-organization-code", + "value": "B81001" + } + } + ] + } + }, + { + "fullUrl": "urn:uuid:a8c85454-f8cb-498d-9629-78e2cb5fa47a", + "resource": { + "resourceType": "Practitioner", + "id": "a8c85454-f8cb-498d-9629-78e2cb5fa47a", + "identifier": [ + { + "system": "https://fhir.nhs.uk/Id/sds-user-id", + "value": "5555086689106" + }, + { + "system": "https://fhir.hl7.org.uk/Id/gphc-number", + "value": "2083469" + } + ], + "name": [ + { + "family": "USERM", + "given": ["RANDOM"], + "prefix": ["MR"] + } + ] + } + }, + { + "fullUrl": "urn:uuid:56166769-c1c4-4d07-afa8-132b5dfca666", + "resource": { + "resourceType": "PractitionerRole", + "id": "56166769-c1c4-4d07-afa8-132b5dfca666", + "identifier": [ + { + "system": "https://fhir.nhs.uk/Id/sds-role-profile-id", + "value": "201715352555" + }, + { + "system": "https://fhir.hl7.org.uk/Id/nhsbsa-spurious-code", + "value": "2083469" + } + ], + "practitioner": { + "reference": "urn:uuid:a8c85454-f8cb-498d-9629-78e2cb5fa47a" + }, + "organization": { + "reference": "urn:uuid:3b4b03a5-52ba-4ba6-9b82-70350aa109d8" + }, + "code": [ + { + "coding": [ + { + "system": "https://fhir.nhs.uk/CodeSystem/NHSDigital-SDS-JobRoleCode", + "code": "S8003:G8003:R8003", + "display": "Healthcare Access Role" + } + ] + } + ], + "telecom": [ + { + "system": "phone", + "value": "01234567890", + "use": "work" + } + ] + } + }, + { + "fullUrl": "urn:uuid:3b4b03a5-52ba-4ba6-9b82-70350aa109d8", + "resource": { + "resourceType": "Organization", + "id": "3b4b03a5-52ba-4ba6-9b82-70350aa109d8", + "identifier": [ + { + "system": "https://fhir.nhs.uk/Id/ods-organization-code", + "value": "A99968" + } + ], + "name": "SOMERSET BOWEL CANCER SCREENING CENTRE", + "address": [ + { + "use": "work", + "line": ["MUSGROVE PARK HOSPITAL"], + "city": "TAUNTON", + "postalCode": "TA1 5DA" + } + ], + "telecom": [ + { + "system": "phone", + "value": "01823 333444", + "use": "work" + } + ], + "partOf": { + "identifier": { + "system": "https://fhir.nhs.uk/Id/ods-organization-code", + "value": "RBA" + }, + "display": "TAUNTON AND SOMERSET NHS FOUNDATION TRUST" + } + } + }, + { + "fullUrl": "urn:uuid:28828c55-8fa7-42d7-916f-fcf076e0c10e", + "resource": { + "resourceType": "Provenance", + "id": "28828c55-8fa7-42d7-916f-fcf076e0c10e", + "target": [ + { + "reference": "urn:uuid:a54219b8-f741-4c47-b662-e4f8dfa49ab6" + } + ], + "recorded": "2008-02-27T11:38:00+00:00", + "agent": [ + { + "who": { + "reference": "urn:uuid:56166769-c1c4-4d07-afa8-132b5dfca666" + } + } + ], + "signature": [ + { + "type": [ + { + "system": "urn:iso-astm:E1762-95:2013", + "code": "1.2.840.10065.1.12.1.1" + } + ], + "when": "2021-05-07T14:47:52+00:00", + "who": { + "reference": "urn:uuid:56166769-c1c4-4d07-afa8-132b5dfca666" + }, + "data": "DQo8U2lnbmF0dXJlIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwLzA5L3htbGRzaWcjIj4NCiAgICA8U2lnbmVkSW5mbz48Q2Fub25pY2FsaXphdGlvbk1ldGhvZCBBbGdvcml0aG09Imh0dHA6Ly93d3cudzMub3JnLzIwMDEvMTAveG1sLWV4Yy1jMTRuIyI+PC9DYW5vbmljYWxpemF0aW9uTWV0aG9kPjxTaWduYXR1cmVNZXRob2QgQWxnb3JpdGhtPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwLzA5L3htbGRzaWcjcnNhLXNoYTEiPjwvU2lnbmF0dXJlTWV0aG9kPjxSZWZlcmVuY2U+PFRyYW5zZm9ybXM+PFRyYW5zZm9ybSBBbGdvcml0aG09Imh0dHA6Ly93d3cudzMub3JnLzIwMDEvMTAveG1sLWV4Yy1jMTRuIyI+PC9UcmFuc2Zvcm0+PC9UcmFuc2Zvcm1zPjxEaWdlc3RNZXRob2QgQWxnb3JpdGhtPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwLzA5L3htbGRzaWcjc2hhMSI+PC9EaWdlc3RNZXRob2Q+PERpZ2VzdFZhbHVlPkowYjNWMUhHc0YvRjZsMGxIZXh5ZVZWdHFGND08L0RpZ2VzdFZhbHVlPjwvUmVmZXJlbmNlPjwvU2lnbmVkSW5mbz4NCiAgICA8U2lnbmF0dXJlVmFsdWU+Wm9id0FnSVU5UXZma1p5UGJWUVlIell5SFQ3bFNJRStVOEtkd2FKaW9KWHFiQ3h5SzVzMkk1aHp5bzY2a0RXUGtVdmJTNzRpa24ySUR2K3Awem1QWFNsSVYycjFWUFVCNmhzb09ldjhLeE83TzVEdnRTMnJaVW1udXhyUHJrSXdGNlY3eSs1dWJYVUJMb3RqWFc0M2hOR2JNTk5NY2k5eDFZeTVmWUZnQ2lVPTwvU2lnbmF0dXJlVmFsdWU+DQogICAgPEtleUluZm8+DQogICAgICAgIDxYNTA5RGF0YT4NCiAgICAgICAgICAgIDxYNTA5Q2VydGlmaWNhdGU+TUlJRHVEQ0NBcUNnQXdJQkFnSUVYY210SHpBTkJna3Foa2lHOXcwQkFRc0ZBREEyTVF3d0NnWURWUVFLRXdOdWFITXhDekFKQmdOVkJBc1RBa05CTVJrd0Z3WURWUVFERXhCT1NGTWdTVTVVSUV4bGRtVnNJREZFTUI0WERUSXdNVEF5TWpFd01qRTFOVm9YRFRJeU1UQXlNakV3TlRFMU5Wb3dRekVNTUFvR0ExVUVDaE1EYm1oek1ROHdEUVlEVlFRTEV3WlFaVzl3YkdVeElqQWdCZ05WQkFNTUdUVTFOVEkxTXpVeU1URXdPRjlTUVU1RVQwMWZWVk5GVWxFd2daOHdEUVlKS29aSWh2Y05BUUVCQlFBRGdZMEFNSUdKQW9HQkFLdDRzek53N09BSDdBUVJyRGUveEJJbXNNbU1pUzlFc3JUM2EzcC9MaDNicmR6STlhYWpUVVoyYi9jdmJPYTdQZVlkN3UrSzRhMlpkMFhrKzBHRm1ZR3pTVlg2aVlqYmx3cjB2YWkzMXpWN0crbEd2SHhINnBTb0xDd0lDYVpBRndhYmVENU96OTQreUEzYVdOV3RHVjBEZmg5cXdIM1pGQ0lNUnN2ZXJOMXBBZ01CQUFHamdnRkRNSUlCUHpBT0JnTlZIUThCQWY4RUJBTUNCa0F3WlFZRFZSMGdBUUgvQkZzd1dUQlhCZ3NxaGpvQWlYdG1BQU1DQURCSU1FWUdDQ3NHQVFVRkJ3SUJGanBvZEhSd2N6b3ZMM0JyYVM1dWFITXVkV3N2WTJWeWRHbG1hV05oZEdWZmNHOXNhV05wWlhNdlkyOXVkR1Z1ZEY5amIyMXRhWFJ0Wlc1ME1ETUdBMVVkSHdRc01Db3dLS0Ftb0NTR0ltaDBkSEE2THk5amNtd3VibWh6TG5WckwybHVkQzh4WkM5amNteGpNeTVqY213d0t3WURWUjBRQkNRd0lvQVBNakF5TURFd01qSXhNREl4TlRWYWdROHlNREl5TURNeE56RXdOVEUxTlZvd0h3WURWUjBqQkJnd0ZvQVVvSllmZ1lUTlBkNkVVS0w2UUxJekh4WTVQRkl3SFFZRFZSME9CQllFRkx0eXZZU3lhcWc2MEFFVVpneGswd3JqUkpjK01Ba0dBMVVkRXdRQ01BQXdHUVlKS29aSWh2WjlCMEVBQkF3d0Noc0VWamd1TXdNQ0JMQXdEUVlKS29aSWh2Y05BUUVMQlFBRGdnRUJBQmN6eThCOGp1UHBJZmFUTkZjeHJDMjJhQ1gveFlabWhyTC9OdklCQWFYMUc1aGppd21rR0tFMmhSVElyNjdQeFp4bVhzSnhpZ1JCTUhQbEkrbFkvK29rekgwR2k3YjVicWx3N3B4R0lnSk8wMDB3OHBGc3ZvOXc0MklZaEhvZHN2bkRWU3hoTVQwSjQ2UWhrOXNvRTBMam9FVUxLUVBQbFlHa2UvR2wzbTE3SXRGWXdPYlFIMGZNRXdtaXFCeWVJZno3Z1NjY096TDVjSXA2UGNaVE9qbzJJcVFwZ0VtaGpPY1JJbkVxQU5pdFNkam9pSkFKenBhYVpqWVRSZEhVWDdpN2FqRWlING05MW5GVys0QXFrTnR0bGI0V2NHS3NTbVdnZktLaGVGNElvWktNRTgweGVyU2dNeTh2dGpMT0JKQ0dYejB3TEdtUXVSbXhNVHE4OHE0PTwvWDUwOUNlcnRpZmljYXRlPg0KICAgICAgICA8L1g1MDlEYXRhPg0KICAgIDwvS2V5SW5mbz4NCjwvU2lnbmF0dXJlPg0K" + } + ] + } + } + ] +} diff --git a/src/test/resources/examples/full_examples/secondary-care/community/acute/nominated-pharmacy/nurse/prescribing-and-professional-codes/1-Prepare-Request-200_OK.json b/src/test/resources/examples/full_examples/secondary-care/community/acute/nominated-pharmacy/nurse/prescribing-and-professional-codes/1-Prepare-Request-200_OK.json new file mode 100644 index 00000000..110117de --- /dev/null +++ b/src/test/resources/examples/full_examples/secondary-care/community/acute/nominated-pharmacy/nurse/prescribing-and-professional-codes/1-Prepare-Request-200_OK.json @@ -0,0 +1,337 @@ +{ + "resourceType": "Bundle", + "id": "aef77afb-7e3c-427a-8657-2c427f71a271", + "identifier": { + "system": "https://tools.ietf.org/html/rfc4122", + "value": "f442b1a3-efe2-4434-b9cf-888e2f12d0a5" + }, + "type": "message", + "entry": [ + { + "fullUrl": "urn:uuid:aef77afb-7e3c-427a-8657-2c427f71a271", + "resource": { + "resourceType": "MessageHeader", + "id": "3599c0e9-9292-413e-9270-9a1ef1ead99c", + "eventCoding": { + "system": "https://fhir.nhs.uk/CodeSystem/message-event", + "code": "prescription-order", + "display": "Prescription Order" + }, + "sender": { + "identifier": { + "system": "https://fhir.nhs.uk/Id/ods-organization-code", + "value": "RBA" + }, + "reference": "urn:uuid:56166769-c1c4-4d07-afa8-132b5dfca666", + "display": "RAZIA|ALI" + }, + "source": { + "endpoint": "https://directory.spineservices.nhs.uk/STU3/Organization/RBA" + }, + "destination": [ + { + "endpoint": "https://directory.spineservices.nhs.uk/STU3/Organization/FH542", + "receiver": { + "identifier": { + "system": "https://fhir.nhs.uk/Id/ods-organization-code", + "value": "FH542" + } + } + } + ], + "focus": [ + { + "reference": "urn:uuid:56166769-c1c4-4d07-afa8-132b5dfca666" + }, + { + "reference": "urn:uuid:a54219b8-f741-4c47-b662-e4f8dfa49ab6" + } + ] + } + }, + { + "fullUrl": "urn:uuid:a54219b8-f741-4c47-b662-e4f8dfa49ab6", + "resource": { + "resourceType": "MedicationRequest", + "id": "a54219b8-f741-4c47-b662-e4f8dfa49ab6", + "extension": [ + { + "url": "https://fhir.nhs.uk/StructureDefinition/Extension-DM-PrescriptionType", + "valueCoding": { + "system": "https://fhir.nhs.uk/CodeSystem/prescription-type", + "code": "1001", + "display": "Outpatient Community Prescriber - Medical Prescriber" + } + } + ], + "identifier": [ + { + "system": "https://fhir.nhs.uk/Id/prescription-order-item-number", + "value": "a54219b8-f741-4c47-b662-e4f8dfa49ab6" + } + ], + "status": "active", + "intent": "order", + "category": [ + { + "coding": [ + { + "system": "http://terminology.hl7.org/CodeSystem/medicationrequest-category", + "code": "outpatient", + "display": "Outpatient" + } + ] + } + ], + "medicationCodeableConcept": { + "coding": [ + { + "system": "http://snomed.info/sct", + "code": "15517911000001104", + "display": "Methotrexate 10mg/0.2ml solution for injection pre-filled syringes" + } + ] + }, + "subject": { + "reference": "urn:uuid:78d3c2eb-009e-4ec8-a358-b042954aa9b2" + }, + "requester": { + "reference": "urn:uuid:56166769-c1c4-4d07-afa8-132b5dfca666" + }, + "groupIdentifier": { + "extension": [ + { + "url": "https://fhir.nhs.uk/StructureDefinition/Extension-DM-PrescriptionId", + "valueIdentifier": { + "system": "https://fhir.nhs.uk/Id/prescription", + "value": "1dfb1898-70dd-42df-ace4-aa0fd83a501a" + } + } + ], + "system": "https://fhir.nhs.uk/Id/prescription-order-number", + "value": "9A80DD-A99968-4CCC8W" + }, + "courseOfTherapyType": { + "coding": [ + { + "system": "http://terminology.hl7.org/CodeSystem/medicationrequest-course-of-therapy", + "code": "acute", + "display": "Short course (acute) therapy" + } + ] + }, + "dosageInstruction": [ + { + "text": "Inject 10 milligram - 5 times a day - Subcutaneous route - for 10 days", + "timing": { + "repeat": { + "frequency": 5, + "period": 1, + "periodUnit": "d", + "boundsDuration": { + "value": 10, + "unit": "day", + "system": "http://unitsofmeasure.org", + "code": "d" + } + } + }, + "method": { + "coding": [ + { + "system": "http://snomed.info/sct", + "code": "422145002", + "display": "Inject" + } + ] + }, + "route": { + "coding": [ + { + "system": "http://snomed.info/sct", + "code": "34206005", + "display": "Subcutaneous route" + } + ] + }, + "doseAndRate": [ + { + "doseQuantity": { + "value": 10, + "unit": "milligram", + "system": "http://unitsofmeasure.org", + "code": "mg" + } + } + ] + } + ], + "dispenseRequest": { + "extension": [ + { + "url": "https://fhir.nhs.uk/StructureDefinition/Extension-DM-PerformerSiteType", + "valueCoding": { + "system": "https://fhir.nhs.uk/CodeSystem/dispensing-site-preference", + "code": "P1" + } + } + ], + "quantity": { + "value": 1, + "unit": "pre-filled disposable injection", + "system": "http://snomed.info/sct", + "code": "3318611000001103" + }, + "performer": { + "identifier": { + "system": "https://fhir.nhs.uk/Id/ods-organization-code", + "value": "FH542" + } + } + }, + "substitution": { + "allowedBoolean": false + } + } + }, + { + "fullUrl": "urn:uuid:78d3c2eb-009e-4ec8-a358-b042954aa9b2", + "resource": { + "resourceType": "Patient", + "id": "78d3c2eb-009e-4ec8-a358-b042954aa9b2", + "identifier": [ + { + "system": "https://fhir.nhs.uk/Id/nhs-number", + "value": "9449305552" + } + ], + "name": [ + { + "use": "usual", + "family": "CORY", + "given": ["ETTA"], + "prefix": ["MISS"] + } + ], + "gender": "female", + "birthDate": "1999-01-04", + "address": [ + { + "use": "home", + "line": ["123 Dale Avenue", "Long Eaton", "Nottingham"], + "postalCode": "NG10 1NP" + } + ], + "generalPractitioner": [ + { + "identifier": { + "system": "https://fhir.nhs.uk/Id/ods-organization-code", + "value": "B81001" + } + } + ] + } + }, + { + "fullUrl": "urn:uuid:a8c85454-f8cb-498d-9629-78e2cb5fa47a", + "resource": { + "resourceType": "Practitioner", + "id": "a8c85454-f8cb-498d-9629-78e2cb5fa47a", + "identifier": [ + { + "system": "https://fhir.nhs.uk/Id/sds-user-id", + "value": "555086690109" + }, + { + "system": "https://fhir.hl7.org.uk/Id/nmc-number", + "value": "12A3456B" + } + ], + "name": [ + { + "family": "Userq", + "given": ["Random"], + "prefix": ["MR"] + } + ] + } + }, + { + "fullUrl": "urn:uuid:56166769-c1c4-4d07-afa8-132b5dfca666", + "resource": { + "resourceType": "PractitionerRole", + "id": "56166769-c1c4-4d07-afa8-132b5dfca666", + "identifier": [ + { + "system": "https://fhir.nhs.uk/Id/sds-role-profile-id", + "value": "100102238986" + }, + { + "system": "https://fhir.hl7.org.uk/Id/nhsbsa-spurious-code", + "value": "12A3456B" + } + ], + "practitioner": { + "reference": "urn:uuid:a8c85454-f8cb-498d-9629-78e2cb5fa47a" + }, + "organization": { + "reference": "urn:uuid:3b4b03a5-52ba-4ba6-9b82-70350aa109d8" + }, + "code": [ + { + "coding": [ + { + "system": "https://fhir.nhs.uk/CodeSystem/NHSDigital-SDS-JobRoleCode", + "code": "S8001:G8001:R8001", + "display": "Nurse Access Role" + } + ] + } + ], + "telecom": [ + { + "system": "phone", + "value": "01234567890", + "use": "work" + } + ] + } + }, + { + "fullUrl": "urn:uuid:3b4b03a5-52ba-4ba6-9b82-70350aa109d8", + "resource": { + "resourceType": "Organization", + "id": "3b4b03a5-52ba-4ba6-9b82-70350aa109d8", + "identifier": [ + { + "system": "https://fhir.nhs.uk/Id/ods-organization-code", + "value": "A99968" + } + ], + "name": "SOMERSET BOWEL CANCER SCREENING CENTRE", + "address": [ + { + "use": "work", + "line": ["MUSGROVE PARK HOSPITAL"], + "city": "TAUNTON", + "postalCode": "TA1 5DA" + } + ], + "telecom": [ + { + "system": "phone", + "value": "01823 333444", + "use": "work" + } + ], + "partOf": { + "identifier": { + "system": "https://fhir.nhs.uk/Id/ods-organization-code", + "value": "RBA" + }, + "display": "TAUNTON AND SOMERSET NHS FOUNDATION TRUST" + } + } + } + ] +} diff --git a/src/test/resources/examples/full_examples/secondary-care/community/acute/nominated-pharmacy/nurse/prescribing-and-professional-codes/1-Prepare-Response-200_OK.json b/src/test/resources/examples/full_examples/secondary-care/community/acute/nominated-pharmacy/nurse/prescribing-and-professional-codes/1-Prepare-Response-200_OK.json new file mode 100644 index 00000000..179fadf2 --- /dev/null +++ b/src/test/resources/examples/full_examples/secondary-care/community/acute/nominated-pharmacy/nurse/prescribing-and-professional-codes/1-Prepare-Response-200_OK.json @@ -0,0 +1,17 @@ +{ + "resourceType": "Parameters", + "parameter": [ + { + "name": "digest", + "valueString": "PFNpZ25lZEluZm8geG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvMDkveG1sZHNpZyMiPjxDYW5vbmljYWxpemF0aW9uTWV0aG9kIEFsZ29yaXRobT0iaHR0cDovL3d3dy53My5vcmcvMjAwMS8xMC94bWwtZXhjLWMxNG4jIj48L0Nhbm9uaWNhbGl6YXRpb25NZXRob2Q+PFNpZ25hdHVyZU1ldGhvZCBBbGdvcml0aG09Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvMDkveG1sZHNpZyNyc2Etc2hhMSI+PC9TaWduYXR1cmVNZXRob2Q+PFJlZmVyZW5jZT48VHJhbnNmb3Jtcz48VHJhbnNmb3JtIEFsZ29yaXRobT0iaHR0cDovL3d3dy53My5vcmcvMjAwMS8xMC94bWwtZXhjLWMxNG4jIj48L1RyYW5zZm9ybT48L1RyYW5zZm9ybXM+PERpZ2VzdE1ldGhvZCBBbGdvcml0aG09Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvMDkveG1sZHNpZyNzaGExIj48L0RpZ2VzdE1ldGhvZD48RGlnZXN0VmFsdWU+QVlDYXJZeUo3TXluWXlxUWNLeWl0clgrZUpVPTwvRGlnZXN0VmFsdWU+PC9SZWZlcmVuY2U+PC9TaWduZWRJbmZvPg==" + }, + { + "name": "timestamp", + "valueString": "2022-10-25T10:24:34+00:00" + }, + { + "name": "algorithm", + "valueString": "RS1" + } + ] +} diff --git a/src/test/resources/examples/full_examples/secondary-care/community/acute/nominated-pharmacy/nurse/prescribing-and-professional-codes/1-Process-Request-Cancel-200_OK.json b/src/test/resources/examples/full_examples/secondary-care/community/acute/nominated-pharmacy/nurse/prescribing-and-professional-codes/1-Process-Request-Cancel-200_OK.json new file mode 100644 index 00000000..858da027 --- /dev/null +++ b/src/test/resources/examples/full_examples/secondary-care/community/acute/nominated-pharmacy/nurse/prescribing-and-professional-codes/1-Process-Request-Cancel-200_OK.json @@ -0,0 +1,346 @@ +{ + "resourceType": "Bundle", + "id": "0a1fd9ef-a3d5-4e95-84cd-552070a03083", + "identifier": { + "system": "https://tools.ietf.org/html/rfc4122", + "value": "393ab857-ee77-4749-9000-2cd62fe62bfe" + }, + "type": "message", + "entry": [ + { + "fullUrl": "urn:uuid:0a1fd9ef-a3d5-4e95-84cd-552070a03083", + "resource": { + "resourceType": "MessageHeader", + "id": "0a1fd9ef-a3d5-4e95-84cd-552070a03086", + "eventCoding": { + "system": "https://fhir.nhs.uk/CodeSystem/message-event", + "code": "prescription-order-update", + "display": "Prescription Order Update" + }, + "sender": { + "identifier": { + "system": "https://fhir.nhs.uk/Id/ods-organization-code", + "value": "RBA" + }, + "reference": "urn:uuid:56166769-c1c4-4d07-afa8-132b5dfca666", + "display": "RAZIA|ALI" + }, + "source": { + "endpoint": "https://directory.spineservices.nhs.uk/STU3/Organization/RBA" + }, + "destination": [ + { + "endpoint": "https://directory.spineservices.nhs.uk/STU3/Organization/FH542", + "receiver": { + "identifier": { + "system": "https://fhir.nhs.uk/Id/ods-organization-code", + "value": "FH542" + } + } + } + ], + "focus": [ + { + "reference": "urn:uuid:78d3c2eb-009e-4ec8-a358-b042954aa9b2" + }, + { + "reference": "urn:uuid:a54219b8-f741-4c47-b662-e4f8dfa49ab6" + } + ] + } + }, + { + "fullUrl": "urn:uuid:a54219b8-f741-4c47-b662-e4f8dfa49ab6", + "resource": { + "resourceType": "MedicationRequest", + "id": "a54219b8-f741-4c47-b662-e4f8dfa49ab6", + "extension": [ + { + "url": "https://fhir.nhs.uk/StructureDefinition/Extension-DM-PrescriptionType", + "valueCoding": { + "system": "https://fhir.nhs.uk/CodeSystem/prescription-type", + "code": "1004", + "display": "Outpatient Community Prescriber - Nurse Independent/Supplementary prescriber" + } + } + ], + "identifier": [ + { + "system": "https://fhir.nhs.uk/Id/prescription-order-item-number", + "value": "a54219b8-f741-4c47-b662-e4f8dfa49ab6" + } + ], + "status": "cancelled", + "statusReason": { + "coding": [ + { + "system": "https://fhir.nhs.uk/CodeSystem/medicationrequest-status-reason", + "code": "0001", + "display": "Prescribing Error" + } + ] + }, + "intent": "order", + "category": [ + { + "coding": [ + { + "system": "http://terminology.hl7.org/CodeSystem/medicationrequest-category", + "code": "outpatient", + "display": "Outpatient" + } + ] + } + ], + "medicationCodeableConcept": { + "coding": [ + { + "system": "http://snomed.info/sct", + "code": "15517911000001104", + "display": "Methotrexate 10mg/0.2ml solution for injection pre-filled syringes" + } + ] + }, + "subject": { + "reference": "urn:uuid:78d3c2eb-009e-4ec8-a358-b042954aa9b2" + }, + "requester": { + "reference": "urn:uuid:56166769-c1c4-4d07-afa8-132b5dfca666" + }, + "groupIdentifier": { + "extension": [ + { + "url": "https://fhir.nhs.uk/StructureDefinition/Extension-DM-PrescriptionId", + "valueIdentifier": { + "system": "https://fhir.nhs.uk/Id/prescription", + "value": "1dfb1898-70dd-42df-ace4-aa0fd83a501a" + } + } + ], + "system": "https://fhir.nhs.uk/Id/prescription-order-number", + "value": "9A80DD-A99968-4CCC8W" + }, + "courseOfTherapyType": { + "coding": [ + { + "system": "http://terminology.hl7.org/CodeSystem/medicationrequest-course-of-therapy", + "code": "acute", + "display": "Short course (acute) therapy" + } + ] + }, + "dosageInstruction": [ + { + "text": "Inject 10 milligram - 5 times a day - Subcutaneous route - for 10 days", + "timing": { + "repeat": { + "frequency": 5, + "period": 1, + "periodUnit": "d", + "boundsDuration": { + "value": 10, + "unit": "day", + "system": "http://unitsofmeasure.org", + "code": "d" + } + } + }, + "method": { + "coding": [ + { + "system": "http://snomed.info/sct", + "code": "422145002", + "display": "Inject" + } + ] + }, + "route": { + "coding": [ + { + "system": "http://snomed.info/sct", + "code": "34206005", + "display": "Subcutaneous route" + } + ] + }, + "doseAndRate": [ + { + "doseQuantity": { + "value": 10, + "unit": "milligram", + "system": "http://unitsofmeasure.org", + "code": "mg" + } + } + ] + } + ], + "dispenseRequest": { + "extension": [ + { + "url": "https://fhir.nhs.uk/StructureDefinition/Extension-DM-PerformerSiteType", + "valueCoding": { + "system": "https://fhir.nhs.uk/CodeSystem/dispensing-site-preference", + "code": "P1" + } + } + ], + "quantity": { + "value": 1, + "unit": "pre-filled disposable injection", + "system": "http://snomed.info/sct", + "code": "3318611000001103" + }, + "performer": { + "identifier": { + "system": "https://fhir.nhs.uk/Id/ods-organization-code", + "value": "FH542" + } + } + }, + "substitution": { + "allowedBoolean": false + } + } + }, + { + "fullUrl": "urn:uuid:78d3c2eb-009e-4ec8-a358-b042954aa9b2", + "resource": { + "resourceType": "Patient", + "id": "78d3c2eb-009e-4ec8-a358-b042954aa9b2", + "identifier": [ + { + "system": "https://fhir.nhs.uk/Id/nhs-number", + "value": "9449305552" + } + ], + "name": [ + { + "use": "usual", + "family": "CORY", + "given": ["ETTA"], + "prefix": ["MISS"] + } + ], + "gender": "female", + "birthDate": "1999-01-04", + "address": [ + { + "use": "home", + "line": ["123 Dale Avenue", "Long Eaton", "Nottingham"], + "postalCode": "NG10 1NP" + } + ], + "generalPractitioner": [ + { + "identifier": { + "system": "https://fhir.nhs.uk/Id/ods-organization-code", + "value": "B81001" + } + } + ] + } + }, + { + "fullUrl": "urn:uuid:a8c85454-f8cb-498d-9629-78e2cb5fa47a", + "resource": { + "resourceType": "Practitioner", + "id": "a8c85454-f8cb-498d-9629-78e2cb5fa47a", + "identifier": [ + { + "system": "https://fhir.nhs.uk/Id/sds-user-id", + "value": "555086690109" + }, + { + "system": "https://fhir.hl7.org.uk/Id/nmc-number", + "value": "12A3456B" + } + ], + "name": [ + { + "family": "Userq", + "given": ["Random"], + "prefix": ["MR"] + } + ] + } + }, + { + "fullUrl": "urn:uuid:56166769-c1c4-4d07-afa8-132b5dfca666", + "resource": { + "resourceType": "PractitionerRole", + "id": "56166769-c1c4-4d07-afa8-132b5dfca666", + "identifier": [ + { + "system": "https://fhir.nhs.uk/Id/sds-role-profile-id", + "value": "100102238986" + }, + { + "system": "https://fhir.hl7.org.uk/Id/nhsbsa-spurious-code", + "value": "12A3456B" + } + ], + "practitioner": { + "reference": "urn:uuid:a8c85454-f8cb-498d-9629-78e2cb5fa47a" + }, + "organization": { + "reference": "urn:uuid:3b4b03a5-52ba-4ba6-9b82-70350aa109d8" + }, + "code": [ + { + "coding": [ + { + "system": "https://fhir.nhs.uk/CodeSystem/NHSDigital-SDS-JobRoleCode", + "code": "S8001:G8001:R8001", + "display": "Nurse Access Role" + } + ] + } + ], + "telecom": [ + { + "system": "phone", + "value": "01234567890", + "use": "work" + } + ] + } + }, + { + "fullUrl": "urn:uuid:3b4b03a5-52ba-4ba6-9b82-70350aa109d8", + "resource": { + "resourceType": "Organization", + "id": "3b4b03a5-52ba-4ba6-9b82-70350aa109d8", + "identifier": [ + { + "system": "https://fhir.nhs.uk/Id/ods-organization-code", + "value": "A99968" + } + ], + "name": "SOMERSET BOWEL CANCER SCREENING CENTRE", + "address": [ + { + "use": "work", + "line": ["MUSGROVE PARK HOSPITAL"], + "city": "TAUNTON", + "postalCode": "TA1 5DA" + } + ], + "telecom": [ + { + "system": "phone", + "value": "01823 333444", + "use": "work" + } + ], + "partOf": { + "identifier": { + "system": "https://fhir.nhs.uk/Id/ods-organization-code", + "value": "RBA" + }, + "display": "TAUNTON AND SOMERSET NHS FOUNDATION TRUST" + } + } + } + ] +} diff --git a/src/test/resources/examples/full_examples/secondary-care/community/acute/nominated-pharmacy/nurse/prescribing-and-professional-codes/1-Process-Request-Send-200_OK.json b/src/test/resources/examples/full_examples/secondary-care/community/acute/nominated-pharmacy/nurse/prescribing-and-professional-codes/1-Process-Request-Send-200_OK.json new file mode 100644 index 00000000..4f93f4c7 --- /dev/null +++ b/src/test/resources/examples/full_examples/secondary-care/community/acute/nominated-pharmacy/nurse/prescribing-and-professional-codes/1-Process-Request-Send-200_OK.json @@ -0,0 +1,372 @@ +{ + "resourceType": "Bundle", + "id": "aef77afb-7e3c-427a-8657-2c427f71a271", + "identifier": { + "system": "https://tools.ietf.org/html/rfc4122", + "value": "30d65c8e-98e8-4806-b6a6-51e94733f0e9" + }, + "type": "message", + "entry": [ + { + "fullUrl": "urn:uuid:aef77afb-7e3c-427a-8657-2c427f71a271", + "resource": { + "resourceType": "MessageHeader", + "id": "3599c0e9-9292-413e-9270-9a1ef1ead99c", + "eventCoding": { + "system": "https://fhir.nhs.uk/CodeSystem/message-event", + "code": "prescription-order", + "display": "Prescription Order" + }, + "sender": { + "identifier": { + "system": "https://fhir.nhs.uk/Id/ods-organization-code", + "value": "RBA" + }, + "reference": "urn:uuid:56166769-c1c4-4d07-afa8-132b5dfca666", + "display": "RAZIA|ALI" + }, + "source": { + "endpoint": "https://directory.spineservices.nhs.uk/STU3/Organization/RBA" + }, + "destination": [ + { + "endpoint": "https://directory.spineservices.nhs.uk/STU3/Organization/FH542", + "receiver": { + "identifier": { + "system": "https://fhir.nhs.uk/Id/ods-organization-code", + "value": "FH542" + } + } + } + ], + "focus": [ + { + "reference": "urn:uuid:78d3c2eb-009e-4ec8-a358-b042954aa9b2" + }, + { + "reference": "urn:uuid:a54219b8-f741-4c47-b662-e4f8dfa49ab6" + } + ] + } + }, + { + "fullUrl": "urn:uuid:a54219b8-f741-4c47-b662-e4f8dfa49ab6", + "resource": { + "resourceType": "MedicationRequest", + "id": "a54219b8-f741-4c47-b662-e4f8dfa49ab6", + "extension": [ + { + "url": "https://fhir.nhs.uk/StructureDefinition/Extension-DM-PrescriptionType", + "valueCoding": { + "system": "https://fhir.nhs.uk/CodeSystem/prescription-type", + "code": "1004", + "display": "Outpatient Community Prescriber - Nurse Independent/Supplementary prescriber" + } + } + ], + "identifier": [ + { + "system": "https://fhir.nhs.uk/Id/prescription-order-item-number", + "value": "a54219b8-f741-4c47-b662-e4f8dfa49ab6" + } + ], + "status": "active", + "intent": "order", + "category": [ + { + "coding": [ + { + "system": "http://terminology.hl7.org/CodeSystem/medicationrequest-category", + "code": "outpatient", + "display": "Outpatient" + } + ] + } + ], + "medicationCodeableConcept": { + "coding": [ + { + "system": "http://snomed.info/sct", + "code": "15517911000001104", + "display": "Methotrexate 10mg/0.2ml solution for injection pre-filled syringes" + } + ] + }, + "subject": { + "reference": "urn:uuid:78d3c2eb-009e-4ec8-a358-b042954aa9b2" + }, + "requester": { + "reference": "urn:uuid:56166769-c1c4-4d07-afa8-132b5dfca666" + }, + "groupIdentifier": { + "extension": [ + { + "url": "https://fhir.nhs.uk/StructureDefinition/Extension-DM-PrescriptionId", + "valueIdentifier": { + "system": "https://fhir.nhs.uk/Id/prescription", + "value": "1dfb1898-70dd-42df-ace4-aa0fd83a501a" + } + } + ], + "system": "https://fhir.nhs.uk/Id/prescription-order-number", + "value": "9A80DD-A99968-4CCC8W" + }, + "courseOfTherapyType": { + "coding": [ + { + "system": "http://terminology.hl7.org/CodeSystem/medicationrequest-course-of-therapy", + "code": "acute", + "display": "Short course (acute) therapy" + } + ] + }, + "dosageInstruction": [ + { + "text": "Inject 10 milligram - 5 times a day - Subcutaneous route - for 10 days", + "timing": { + "repeat": { + "frequency": 5, + "period": 1, + "periodUnit": "d", + "boundsDuration": { + "value": 10, + "unit": "day", + "system": "http://unitsofmeasure.org", + "code": "d" + } + } + }, + "method": { + "coding": [ + { + "system": "http://snomed.info/sct", + "code": "422145002", + "display": "Inject" + } + ] + }, + "route": { + "coding": [ + { + "system": "http://snomed.info/sct", + "code": "34206005", + "display": "Subcutaneous route" + } + ] + }, + "doseAndRate": [ + { + "doseQuantity": { + "value": 10, + "unit": "milligram", + "system": "http://unitsofmeasure.org", + "code": "mg" + } + } + ] + } + ], + "dispenseRequest": { + "extension": [ + { + "url": "https://fhir.nhs.uk/StructureDefinition/Extension-DM-PerformerSiteType", + "valueCoding": { + "system": "https://fhir.nhs.uk/CodeSystem/dispensing-site-preference", + "code": "P1" + } + } + ], + "quantity": { + "value": 1, + "unit": "pre-filled disposable injection", + "system": "http://snomed.info/sct", + "code": "3318611000001103" + }, + "performer": { + "identifier": { + "system": "https://fhir.nhs.uk/Id/ods-organization-code", + "value": "FH542" + } + } + }, + "substitution": { + "allowedBoolean": false + } + } + }, + { + "fullUrl": "urn:uuid:78d3c2eb-009e-4ec8-a358-b042954aa9b2", + "resource": { + "resourceType": "Patient", + "id": "78d3c2eb-009e-4ec8-a358-b042954aa9b2", + "identifier": [ + { + "system": "https://fhir.nhs.uk/Id/nhs-number", + "value": "9449305552" + } + ], + "name": [ + { + "use": "usual", + "family": "CORY", + "given": ["ETTA"], + "prefix": ["MISS"] + } + ], + "gender": "female", + "birthDate": "1999-01-04", + "address": [ + { + "use": "home", + "line": ["123 Dale Avenue", "Long Eaton", "Nottingham"], + "postalCode": "NG10 1NP" + } + ], + "generalPractitioner": [ + { + "identifier": { + "system": "https://fhir.nhs.uk/Id/ods-organization-code", + "value": "B81001" + } + } + ] + } + }, + { + "fullUrl": "urn:uuid:a8c85454-f8cb-498d-9629-78e2cb5fa47a", + "resource": { + "resourceType": "Practitioner", + "id": "a8c85454-f8cb-498d-9629-78e2cb5fa47a", + "identifier": [ + { + "system": "https://fhir.nhs.uk/Id/sds-user-id", + "value": "555086690109" + }, + { + "system": "https://fhir.hl7.org.uk/Id/nmc-number", + "value": "12A3456B" + } + ], + "name": [ + { + "family": "Userq", + "given": ["Random"], + "prefix": ["MR"] + } + ] + } + }, + { + "fullUrl": "urn:uuid:56166769-c1c4-4d07-afa8-132b5dfca666", + "resource": { + "resourceType": "PractitionerRole", + "id": "56166769-c1c4-4d07-afa8-132b5dfca666", + "identifier": [ + { + "system": "https://fhir.nhs.uk/Id/sds-role-profile-id", + "value": "100102238986" + }, + { + "system": "https://fhir.hl7.org.uk/Id/nhsbsa-spurious-code", + "value": "12A3456B" + } + ], + "practitioner": { + "reference": "urn:uuid:a8c85454-f8cb-498d-9629-78e2cb5fa47a" + }, + "organization": { + "reference": "urn:uuid:3b4b03a5-52ba-4ba6-9b82-70350aa109d8" + }, + "code": [ + { + "coding": [ + { + "system": "https://fhir.nhs.uk/CodeSystem/NHSDigital-SDS-JobRoleCode", + "code": "S8001:G8001:R8001", + "display": "Nurse Access Role" + } + ] + } + ], + "telecom": [ + { + "system": "phone", + "value": "01234567890", + "use": "work" + } + ] + } + }, + { + "fullUrl": "urn:uuid:3b4b03a5-52ba-4ba6-9b82-70350aa109d8", + "resource": { + "resourceType": "Organization", + "id": "3b4b03a5-52ba-4ba6-9b82-70350aa109d8", + "identifier": [ + { + "system": "https://fhir.nhs.uk/Id/ods-organization-code", + "value": "A99968" + } + ], + "name": "SOMERSET BOWEL CANCER SCREENING CENTRE", + "address": [ + { + "use": "work", + "line": ["MUSGROVE PARK HOSPITAL"], + "city": "TAUNTON", + "postalCode": "TA1 5DA" + } + ], + "telecom": [ + { + "system": "phone", + "value": "01823 333444", + "use": "work" + } + ], + "partOf": { + "identifier": { + "system": "https://fhir.nhs.uk/Id/ods-organization-code", + "value": "RBA" + }, + "display": "TAUNTON AND SOMERSET NHS FOUNDATION TRUST" + } + } + }, + { + "fullUrl": "urn:uuid:28828c55-8fa7-42d7-916f-fcf076e0c10e", + "resource": { + "resourceType": "Provenance", + "id": "28828c55-8fa7-42d7-916f-fcf076e0c10e", + "target": [ + { + "reference": "urn:uuid:a54219b8-f741-4c47-b662-e4f8dfa49ab6" + } + ], + "recorded": "2008-02-27T11:38:00+00:00", + "agent": [ + { + "who": { + "reference": "urn:uuid:56166769-c1c4-4d07-afa8-132b5dfca666" + } + } + ], + "signature": [ + { + "type": [ + { + "system": "urn:iso-astm:E1762-95:2013", + "code": "1.2.840.10065.1.12.1.1" + } + ], + "when": "2021-05-07T14:47:47+00:00", + "who": { + "reference": "urn:uuid:56166769-c1c4-4d07-afa8-132b5dfca666" + }, + "data": "DQo8U2lnbmF0dXJlIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwLzA5L3htbGRzaWcjIj4NCiAgICA8U2lnbmVkSW5mbz48Q2Fub25pY2FsaXphdGlvbk1ldGhvZCBBbGdvcml0aG09Imh0dHA6Ly93d3cudzMub3JnLzIwMDEvMTAveG1sLWV4Yy1jMTRuIyI+PC9DYW5vbmljYWxpemF0aW9uTWV0aG9kPjxTaWduYXR1cmVNZXRob2QgQWxnb3JpdGhtPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwLzA5L3htbGRzaWcjcnNhLXNoYTEiPjwvU2lnbmF0dXJlTWV0aG9kPjxSZWZlcmVuY2U+PFRyYW5zZm9ybXM+PFRyYW5zZm9ybSBBbGdvcml0aG09Imh0dHA6Ly93d3cudzMub3JnLzIwMDEvMTAveG1sLWV4Yy1jMTRuIyI+PC9UcmFuc2Zvcm0+PC9UcmFuc2Zvcm1zPjxEaWdlc3RNZXRob2QgQWxnb3JpdGhtPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwLzA5L3htbGRzaWcjc2hhMSI+PC9EaWdlc3RNZXRob2Q+PERpZ2VzdFZhbHVlPjJ5cUJISDVLK05ibVA1WWY3bVE3WmVFYWN0Yz08L0RpZ2VzdFZhbHVlPjwvUmVmZXJlbmNlPjwvU2lnbmVkSW5mbz4NCiAgICA8U2lnbmF0dXJlVmFsdWU+aE9DaXVJOGIyTEFaRXoxUDdXcGFlRDBQUWQ2bVJKdzVSV2JNV2ZMcU1OUWtRMzIzbnpWTDk3a01XZUJycnJzNU5vTHhGb28vKzFPUjYxcmNXNTJEamlHdjRRcE53QmJOQkYvMi9hUWxqd3pUdm9tQm9tUlpnbUtRQWpyZU1iOTZNM0hjajVvVFNBZG9tUEc2TGw3RVRCS25wRTVJdW5EamducUIxelhEWllVPTwvU2lnbmF0dXJlVmFsdWU+DQogICAgPEtleUluZm8+DQogICAgICAgIDxYNTA5RGF0YT4NCiAgICAgICAgICAgIDxYNTA5Q2VydGlmaWNhdGU+TUlJRHVEQ0NBcUNnQXdJQkFnSUVYY210SHpBTkJna3Foa2lHOXcwQkFRc0ZBREEyTVF3d0NnWURWUVFLRXdOdWFITXhDekFKQmdOVkJBc1RBa05CTVJrd0Z3WURWUVFERXhCT1NGTWdTVTVVSUV4bGRtVnNJREZFTUI0WERUSXdNVEF5TWpFd01qRTFOVm9YRFRJeU1UQXlNakV3TlRFMU5Wb3dRekVNTUFvR0ExVUVDaE1EYm1oek1ROHdEUVlEVlFRTEV3WlFaVzl3YkdVeElqQWdCZ05WQkFNTUdUVTFOVEkxTXpVeU1URXdPRjlTUVU1RVQwMWZWVk5GVWxFd2daOHdEUVlKS29aSWh2Y05BUUVCQlFBRGdZMEFNSUdKQW9HQkFLdDRzek53N09BSDdBUVJyRGUveEJJbXNNbU1pUzlFc3JUM2EzcC9MaDNicmR6STlhYWpUVVoyYi9jdmJPYTdQZVlkN3UrSzRhMlpkMFhrKzBHRm1ZR3pTVlg2aVlqYmx3cjB2YWkzMXpWN0crbEd2SHhINnBTb0xDd0lDYVpBRndhYmVENU96OTQreUEzYVdOV3RHVjBEZmg5cXdIM1pGQ0lNUnN2ZXJOMXBBZ01CQUFHamdnRkRNSUlCUHpBT0JnTlZIUThCQWY4RUJBTUNCa0F3WlFZRFZSMGdBUUgvQkZzd1dUQlhCZ3NxaGpvQWlYdG1BQU1DQURCSU1FWUdDQ3NHQVFVRkJ3SUJGanBvZEhSd2N6b3ZMM0JyYVM1dWFITXVkV3N2WTJWeWRHbG1hV05oZEdWZmNHOXNhV05wWlhNdlkyOXVkR1Z1ZEY5amIyMXRhWFJ0Wlc1ME1ETUdBMVVkSHdRc01Db3dLS0Ftb0NTR0ltaDBkSEE2THk5amNtd3VibWh6TG5WckwybHVkQzh4WkM5amNteGpNeTVqY213d0t3WURWUjBRQkNRd0lvQVBNakF5TURFd01qSXhNREl4TlRWYWdROHlNREl5TURNeE56RXdOVEUxTlZvd0h3WURWUjBqQkJnd0ZvQVVvSllmZ1lUTlBkNkVVS0w2UUxJekh4WTVQRkl3SFFZRFZSME9CQllFRkx0eXZZU3lhcWc2MEFFVVpneGswd3JqUkpjK01Ba0dBMVVkRXdRQ01BQXdHUVlKS29aSWh2WjlCMEVBQkF3d0Noc0VWamd1TXdNQ0JMQXdEUVlKS29aSWh2Y05BUUVMQlFBRGdnRUJBQmN6eThCOGp1UHBJZmFUTkZjeHJDMjJhQ1gveFlabWhyTC9OdklCQWFYMUc1aGppd21rR0tFMmhSVElyNjdQeFp4bVhzSnhpZ1JCTUhQbEkrbFkvK29rekgwR2k3YjVicWx3N3B4R0lnSk8wMDB3OHBGc3ZvOXc0MklZaEhvZHN2bkRWU3hoTVQwSjQ2UWhrOXNvRTBMam9FVUxLUVBQbFlHa2UvR2wzbTE3SXRGWXdPYlFIMGZNRXdtaXFCeWVJZno3Z1NjY096TDVjSXA2UGNaVE9qbzJJcVFwZ0VtaGpPY1JJbkVxQU5pdFNkam9pSkFKenBhYVpqWVRSZEhVWDdpN2FqRWlING05MW5GVys0QXFrTnR0bGI0V2NHS3NTbVdnZktLaGVGNElvWktNRTgweGVyU2dNeTh2dGpMT0JKQ0dYejB3TEdtUXVSbXhNVHE4OHE0PTwvWDUwOUNlcnRpZmljYXRlPg0KICAgICAgICA8L1g1MDlEYXRhPg0KICAgIDwvS2V5SW5mbz4NCjwvU2lnbmF0dXJlPg0K" + } + ] + } + } + ] +} diff --git a/src/test/resources/examples/full_examples/secondary-care/community/acute/nominated-pharmacy/nurse/prescribing-and-professional-codes/1-Process-Response-Send-200_OK.json b/src/test/resources/examples/full_examples/secondary-care/community/acute/nominated-pharmacy/nurse/prescribing-and-professional-codes/1-Process-Response-Send-200_OK.json new file mode 100644 index 00000000..4f61b645 --- /dev/null +++ b/src/test/resources/examples/full_examples/secondary-care/community/acute/nominated-pharmacy/nurse/prescribing-and-professional-codes/1-Process-Response-Send-200_OK.json @@ -0,0 +1,12 @@ +{ + "resourceType": "OperationOutcome", + "meta": { + "lastUpdated": "2022-10-21T13:47:00+00:00" + }, + "issue": [ + { + "code": "informational", + "severity": "information" + } + ] +} diff --git a/src/test/resources/examples/full_examples/secondary-care/community/acute/nominated-pharmacy/nurse/prescribing-and-professional-codes/controlled-drugs/1-Prepare-Request-200_OK.json b/src/test/resources/examples/full_examples/secondary-care/community/acute/nominated-pharmacy/nurse/prescribing-and-professional-codes/controlled-drugs/1-Prepare-Request-200_OK.json new file mode 100644 index 00000000..4e3e002f --- /dev/null +++ b/src/test/resources/examples/full_examples/secondary-care/community/acute/nominated-pharmacy/nurse/prescribing-and-professional-codes/controlled-drugs/1-Prepare-Request-200_OK.json @@ -0,0 +1,434 @@ +{ + "resourceType": "Bundle", + "id": "2c251ced-dc17-47ff-bd2f-36f4b8c27dda", + "identifier": { + "system": "https://tools.ietf.org/html/rfc4122", + "value": "e7c0a2db-abac-4ed7-8757-106fd8c36274" + }, + "type": "message", + "entry": [ + { + "fullUrl": "urn:uuid:2c251ced-dc17-47ff-bd2f-36f4b8c27dda", + "resource": { + "resourceType": "MessageHeader", + "id": "A8F71A7D-B426-4B55-80A5-05436DE80486", + "eventCoding": { + "system": "https://fhir.nhs.uk/CodeSystem/message-event", + "code": "prescription-order", + "display": "Prescription Order" + }, + "sender": { + "identifier": { + "system": "https://fhir.nhs.uk/Id/ods-organization-code", + "value": "RBA" + }, + "reference": "urn:uuid:56166769-c1c4-4d07-afa8-132b5dfca666", + "display": "Nurse|UserP" + }, + "source": { + "endpoint": "https://directory.spineservices.nhs.uk/STU3/Organization/RBA" + }, + "destination": [ + { + "endpoint": "https://int.api.service.nhs.uk/electronic-prescriptions/$prepare", + "receiver": { + "identifier": { + "system": "https://fhir.nhs.uk/Id/ods-organization-code", + "value": "FY210" + } + } + } + ], + "focus": [ + { + "reference": "urn:uuid:00d3dd04-d162-49ce-a808-6f220906f1c8" + }, + { + "reference": "urn:uuid:1de954ac-a1ea-49ab-bd4e-88e99f191186" + }, + { + "reference": "urn:uuid:78d3c2eb-009e-4ec8-a358-b042954aa9b2" + }, + { + "reference": "urn:uuid:a8c85454-f8cb-498d-9629-78e2cb5fa47a" + }, + { + "reference": "urn:uuid:56166769-c1c4-4d07-afa8-132b5dfca666" + }, + { + "reference": "urn:uuid:3b4b03a5-52ba-4ba6-9b82-70350aa109d8" + } + ] + } + }, + { + "fullUrl": "urn:uuid:00d3dd04-d162-49ce-a808-6f220906f1c8", + "resource": { + "resourceType": "MedicationRequest", + "id": "00d3dd04-d162-49ce-a808-6f220906f1c8", + "extension": [ + { + "url": "https://fhir.nhs.uk/StructureDefinition/Extension-DM-PrescriptionType", + "valueCoding": { + "system": "https://fhir.nhs.uk/CodeSystem/prescription-type", + "code": "1004", + "display": "Outpatient Community Prescriber - Nurse Independent/Supplementary prescriber" + } + }, + { + "url": "https://fhir.nhs.uk/StructureDefinition/Extension-DM-ControlledDrug", + "extension": [ + { + "url": "quantityWords", + "valueString": "twenty eight" + }, + { + "url": "schedule", + "valueCoding": { + "system": "https://fhir.nhs.uk/CodeSystem/medicationrequest-controlled-drug", + "code": "CD2", + "display": "Schedule 2" + } + } + ] + } + ], + "identifier": [ + { + "system": "https://fhir.nhs.uk/Id/prescription-order-item-number", + "value": "00d3dd04-d162-49ce-a808-6f220906f1c8" + } + ], + "status": "active", + "intent": "order", + "category": [ + { + "coding": [ + { + "system": "http://terminology.hl7.org/CodeSystem/medicationrequest-category", + "code": "outpatient", + "display": "Outpatient" + } + ] + } + ], + "medicationCodeableConcept": { + "coding": [ + { + "system": "http://snomed.info/sct", + "code": "36126511000001106", + "display": "Morphine 10mg modified-release tablets" + } + ] + }, + "subject": { + "reference": "urn:uuid:78d3c2eb-009e-4ec8-a358-b042954aa9b2" + }, + "requester": { + "reference": "urn:uuid:56166769-c1c4-4d07-afa8-132b5dfca666" + }, + "groupIdentifier": { + "extension": [ + { + "url": "https://fhir.nhs.uk/StructureDefinition/Extension-DM-PrescriptionId", + "valueIdentifier": { + "system": "https://fhir.nhs.uk/Id/prescription", + "value": "d59ec3f9-9a75-4a0f-90ac-b6853dbd82d7" + } + } + ], + "system": "https://fhir.nhs.uk/Id/prescription-order-number", + "value": "BA850E-A99968-41D69K" + }, + "courseOfTherapyType": { + "coding": [ + { + "system": "http://terminology.hl7.org/CodeSystem/medicationrequest-course-of-therapy", + "code": "acute", + "display": "Short course (acute) therapy" + } + ] + }, + "dosageInstruction": [ + { + "text": "1 tablet, daily" + } + ], + "dispenseRequest": { + "extension": [ + { + "url": "https://fhir.nhs.uk/StructureDefinition/Extension-DM-PerformerSiteType", + "valueCoding": { + "system": "https://fhir.nhs.uk/CodeSystem/dispensing-site-preference", + "code": "P1" + } + } + ], + "quantity": { + "value": 28, + "unit": "tablet", + "system": "http://snomed.info/sct", + "code": "428673006" + }, + "performer": { + "identifier": { + "system": "https://fhir.nhs.uk/Id/ods-organization-code", + "value": "FY210" + } + } + }, + "substitution": { + "allowedBoolean": false + } + } + }, + { + "fullUrl": "urn:uuid:1de954ac-a1ea-49ab-bd4e-88e99f191186", + "resource": { + "resourceType": "MedicationRequest", + "id": "1de954ac-a1ea-49ab-bd4e-88e99f191186", + "extension": [ + { + "url": "https://fhir.nhs.uk/StructureDefinition/Extension-DM-PrescriptionType", + "valueCoding": { + "system": "https://fhir.nhs.uk/CodeSystem/prescription-type", + "code": "1004", + "display": "Outpatient Community Prescriber - Nurse Independent/Supplementary prescriber" + } + } + ], + "identifier": [ + { + "system": "https://fhir.nhs.uk/Id/prescription-order-item-number", + "value": "1de954ac-a1ea-49ab-bd4e-88e99f191186" + } + ], + "status": "active", + "intent": "order", + "category": [ + { + "coding": [ + { + "system": "http://terminology.hl7.org/CodeSystem/medicationrequest-category", + "code": "outpatient", + "display": "Outpatient" + } + ] + } + ], + "medicationCodeableConcept": { + "coding": [ + { + "system": "http://snomed.info/sct", + "code": "321196004", + "display": "Diazepam 2mg tablets" + } + ] + }, + "subject": { + "reference": "urn:uuid:78d3c2eb-009e-4ec8-a358-b042954aa9b2" + }, + "requester": { + "reference": "urn:uuid:56166769-c1c4-4d07-afa8-132b5dfca666" + }, + "groupIdentifier": { + "extension": [ + { + "url": "https://fhir.nhs.uk/StructureDefinition/Extension-DM-PrescriptionId", + "valueIdentifier": { + "system": "https://fhir.nhs.uk/Id/prescription", + "value": "d59ec3f9-9a75-4a0f-90ac-b6853dbd82d7" + } + } + ], + "system": "https://fhir.nhs.uk/Id/prescription-order-number", + "value": "BA850E-A99968-41D69K" + }, + "courseOfTherapyType": { + "coding": [ + { + "system": "http://terminology.hl7.org/CodeSystem/medicationrequest-course-of-therapy", + "code": "acute", + "display": "Short course (acute) therapy" + } + ] + }, + "note": [ + { + "text": "Dosage has been decreased on advice from the hospital." + } + ], + "dosageInstruction": [ + { + "text": "1 tablet, at NIGHT" + } + ], + "dispenseRequest": { + "extension": [ + { + "url": "https://fhir.nhs.uk/StructureDefinition/Extension-DM-PerformerSiteType", + "valueCoding": { + "system": "https://fhir.nhs.uk/CodeSystem/dispensing-site-preference", + "code": "P1" + } + } + ], + "quantity": { + "value": 28, + "unit": "tablet", + "system": "http://snomed.info/sct", + "code": "428673006" + }, + "performer": { + "identifier": { + "system": "https://fhir.nhs.uk/Id/ods-organization-code", + "value": "FY210" + } + } + }, + "substitution": { + "allowedBoolean": false + } + } + }, + { + "fullUrl": "urn:uuid:78d3c2eb-009e-4ec8-a358-b042954aa9b2", + "resource": { + "resourceType": "Patient", + "id": "78d3c2eb-009e-4ec8-a358-b042954aa9b2", + "identifier": [ + { + "system": "https://fhir.nhs.uk/Id/nhs-number", + "value": "9449306087" + } + ], + "name": [ + { + "use": "usual", + "family": "LAURENCE", + "given": ["NEVILLE"], + "prefix": ["MR"] + } + ], + "gender": "male", + "birthDate": "1917-07-06", + "address": [ + { + "use": "home", + "line": ["1 PETERSMEAD CLOSE", "TADWORTH", "SURREY"], + "postalCode": "KT20 5AR" + } + ], + "generalPractitioner": [ + { + "identifier": { + "system": "https://fhir.nhs.uk/Id/ods-organization-code", + "value": "H81109" + } + } + ] + } + }, + { + "fullUrl": "urn:uuid:a8c85454-f8cb-498d-9629-78e2cb5fa47a", + "resource": { + "resourceType": "Practitioner", + "id": "a8c85454-f8cb-498d-9629-78e2cb5fa47a", + "identifier": [ + { + "system": "https://fhir.nhs.uk/Id/sds-user-id", + "value": "555253520107" + }, + { + "system": "https://fhir.hl7.org.uk/Id/nmc-number", + "value": "12A3456B" + } + ], + "name": [ + { + "family": "UserP", + "given": ["Random"], + "prefix": ["MR"] + } + ] + } + }, + { + "fullUrl": "urn:uuid:56166769-c1c4-4d07-afa8-132b5dfca666", + "resource": { + "resourceType": "PractitionerRole", + "id": "56166769-c1c4-4d07-afa8-132b5dfca666", + "identifier": [ + { + "system": "https://fhir.nhs.uk/Id/sds-role-profile-id", + "value": "701025352555" + }, + { + "system": "https://fhir.hl7.org.uk/Id/nhsbsa-spurious-code", + "value": "12A3456B" + } + ], + "practitioner": { + "reference": "urn:uuid:a8c85454-f8cb-498d-9629-78e2cb5fa47a" + }, + "organization": { + "reference": "urn:uuid:3b4b03a5-52ba-4ba6-9b82-70350aa109d8" + }, + "code": [ + { + "coding": [ + { + "system": "https://fhir.nhs.uk/CodeSystem/NHSDigital-SDS-JobRoleCode", + "code": "S8001:G8001:R8001", + "display": "Nurse Access Role" + } + ] + } + ], + "telecom": [ + { + "system": "phone", + "value": "01234567890", + "use": "work" + } + ] + } + }, + { + "fullUrl": "urn:uuid:3b4b03a5-52ba-4ba6-9b82-70350aa109d8", + "resource": { + "resourceType": "Organization", + "id": "3b4b03a5-52ba-4ba6-9b82-70350aa109d8", + "identifier": [ + { + "system": "https://fhir.nhs.uk/Id/ods-organization-code", + "value": "A99968" + } + ], + "name": "SOMERSET BOWEL CANCER SCREENING CENTRE", + "address": [ + { + "use": "work", + "line": ["MUSGROVE PARK HOSPITAL"], + "city": "TAUNTON", + "postalCode": "TA1 5DA" + } + ], + "telecom": [ + { + "system": "phone", + "value": "01823 333444", + "use": "work" + } + ], + "partOf": { + "identifier": { + "system": "https://fhir.nhs.uk/Id/ods-organization-code", + "value": "RBA" + }, + "display": "TAUNTON AND SOMERSET NHS FOUNDATION TRUST" + } + } + } + ] +} diff --git a/src/test/resources/examples/full_examples/secondary-care/community/acute/nominated-pharmacy/nurse/prescribing-and-professional-codes/controlled-drugs/1-Prepare-Response-200_OK.json b/src/test/resources/examples/full_examples/secondary-care/community/acute/nominated-pharmacy/nurse/prescribing-and-professional-codes/controlled-drugs/1-Prepare-Response-200_OK.json new file mode 100644 index 00000000..16c1ac3b --- /dev/null +++ b/src/test/resources/examples/full_examples/secondary-care/community/acute/nominated-pharmacy/nurse/prescribing-and-professional-codes/controlled-drugs/1-Prepare-Response-200_OK.json @@ -0,0 +1,17 @@ +{ + "resourceType": "Parameters", + "parameter": [ + { + "name": "digest", + "valueString": "PFNpZ25lZEluZm8geG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvMDkveG1sZHNpZyMiPjxDYW5vbmljYWxpemF0aW9uTWV0aG9kIEFsZ29yaXRobT0iaHR0cDovL3d3dy53My5vcmcvMjAwMS8xMC94bWwtZXhjLWMxNG4jIj48L0Nhbm9uaWNhbGl6YXRpb25NZXRob2Q+PFNpZ25hdHVyZU1ldGhvZCBBbGdvcml0aG09Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvMDkveG1sZHNpZyNyc2Etc2hhMSI+PC9TaWduYXR1cmVNZXRob2Q+PFJlZmVyZW5jZT48VHJhbnNmb3Jtcz48VHJhbnNmb3JtIEFsZ29yaXRobT0iaHR0cDovL3d3dy53My5vcmcvMjAwMS8xMC94bWwtZXhjLWMxNG4jIj48L1RyYW5zZm9ybT48L1RyYW5zZm9ybXM+PERpZ2VzdE1ldGhvZCBBbGdvcml0aG09Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvMDkveG1sZHNpZyNzaGExIj48L0RpZ2VzdE1ldGhvZD48RGlnZXN0VmFsdWU+eHhuTUdqUHZ4dTlwbndyRE5ob0tIVGJCYkZVPTwvRGlnZXN0VmFsdWU+PC9SZWZlcmVuY2U+PC9TaWduZWRJbmZvPg==" + }, + { + "name": "timestamp", + "valueString": "2022-10-25T10:24:34+00:00" + }, + { + "name": "algorithm", + "valueString": "RS1" + } + ] +} diff --git a/src/test/resources/examples/full_examples/secondary-care/community/acute/nominated-pharmacy/nurse/prescribing-and-professional-codes/controlled-drugs/1-Process-Request-Send-200_OK.json b/src/test/resources/examples/full_examples/secondary-care/community/acute/nominated-pharmacy/nurse/prescribing-and-professional-codes/controlled-drugs/1-Process-Request-Send-200_OK.json new file mode 100644 index 00000000..6972fc81 --- /dev/null +++ b/src/test/resources/examples/full_examples/secondary-care/community/acute/nominated-pharmacy/nurse/prescribing-and-professional-codes/controlled-drugs/1-Process-Request-Send-200_OK.json @@ -0,0 +1,490 @@ +{ + "resourceType": "Bundle", + "id": "2c251ced-dc17-47ff-bd2f-36f4b8c27dda", + "identifier": { + "system": "https://tools.ietf.org/html/rfc4122", + "value": "6370f676-8c2a-45bd-b2a7-868547e355ff" + }, + "type": "message", + "entry": [ + { + "fullUrl": "urn:uuid:2c251ced-dc17-47ff-bd2f-36f4b8c27dda", + "resource": { + "resourceType": "MessageHeader", + "id": "A8F71A7D-B426-4B55-80A5-05436DE80486", + "eventCoding": { + "system": "https://fhir.nhs.uk/CodeSystem/message-event", + "code": "prescription-order", + "display": "Prescription Order" + }, + "sender": { + "identifier": { + "system": "https://fhir.nhs.uk/Id/ods-organization-code", + "value": "RBA" + }, + "reference": "urn:uuid:56166769-c1c4-4d07-afa8-132b5dfca666", + "display": "Nurse|UserP" + }, + "source": { + "endpoint": "https://directory.spineservices.nhs.uk/STU3/Organization/RBA" + }, + "destination": [ + { + "endpoint": "https://int.api.service.nhs.uk/electronic-prescriptions/$process-message", + "receiver": { + "identifier": { + "system": "https://fhir.nhs.uk/Id/ods-organization-code", + "value": "FY210" + } + } + } + ], + "focus": [ + { + "reference": "urn:uuid:00d3dd04-d162-49ce-a808-6f220906f1c8" + }, + { + "reference": "urn:uuid:1de954ac-a1ea-49ab-bd4e-88e99f191186" + }, + { + "reference": "urn:uuid:78d3c2eb-009e-4ec8-a358-b042954aa9b2" + }, + { + "reference": "urn:uuid:a8c85454-f8cb-498d-9629-78e2cb5fa47a" + }, + { + "reference": "urn:uuid:56166769-c1c4-4d07-afa8-132b5dfca666" + }, + { + "reference": "urn:uuid:3b4b03a5-52ba-4ba6-9b82-70350aa109d8" + }, + { + "reference": "urn:uuid:b2a46b68-9e1e-49e6-a132-88b3308ed561" + } + ] + } + }, + { + "fullUrl": "urn:uuid:00d3dd04-d162-49ce-a808-6f220906f1c8", + "resource": { + "resourceType": "MedicationRequest", + "id": "00d3dd04-d162-49ce-a808-6f220906f1c8", + "extension": [ + { + "url": "https://fhir.nhs.uk/StructureDefinition/Extension-DM-PrescriptionType", + "valueCoding": { + "system": "https://fhir.nhs.uk/CodeSystem/prescription-type", + "code": "1004", + "display": "Outpatient Community Prescriber - Nurse Independent/Supplementary prescriber" + } + }, + { + "url": "https://fhir.nhs.uk/StructureDefinition/Extension-DM-ControlledDrug", + "extension": [ + { + "url": "quantityWords", + "valueString": "twenty eight" + }, + { + "url": "schedule", + "valueCoding": { + "system": "https://fhir.nhs.uk/CodeSystem/medicationrequest-controlled-drug", + "code": "CD2", + "display": "Schedule 2" + } + } + ] + } + ], + "identifier": [ + { + "system": "https://fhir.nhs.uk/Id/prescription-order-item-number", + "value": "00d3dd04-d162-49ce-a808-6f220906f1c8" + } + ], + "status": "active", + "intent": "order", + "category": [ + { + "coding": [ + { + "system": "http://terminology.hl7.org/CodeSystem/medicationrequest-category", + "code": "outpatient", + "display": "Outpatient" + } + ] + } + ], + "medicationCodeableConcept": { + "coding": [ + { + "system": "http://snomed.info/sct", + "code": "36126511000001106", + "display": "Morphine 10mg modified-release tablets" + } + ] + }, + "subject": { + "reference": "urn:uuid:78d3c2eb-009e-4ec8-a358-b042954aa9b2" + }, + "requester": { + "reference": "urn:uuid:56166769-c1c4-4d07-afa8-132b5dfca666" + }, + "groupIdentifier": { + "extension": [ + { + "url": "https://fhir.nhs.uk/StructureDefinition/Extension-DM-PrescriptionId", + "valueIdentifier": { + "system": "https://fhir.nhs.uk/Id/prescription", + "value": "d59ec3f9-9a75-4a0f-90ac-b6853dbd82d7" + } + } + ], + "system": "https://fhir.nhs.uk/Id/prescription-order-number", + "value": "BA850E-A99968-41D69K" + }, + "courseOfTherapyType": { + "coding": [ + { + "system": "http://terminology.hl7.org/CodeSystem/medicationrequest-course-of-therapy", + "code": "acute", + "display": "Short course (acute) therapy" + } + ] + }, + "dosageInstruction": [ + { + "text": "1 tablet, daily" + } + ], + "dispenseRequest": { + "extension": [ + { + "url": "https://fhir.nhs.uk/StructureDefinition/Extension-DM-PerformerSiteType", + "valueCoding": { + "system": "https://fhir.nhs.uk/CodeSystem/dispensing-site-preference", + "code": "P1" + } + } + ], + "quantity": { + "value": 28, + "unit": "tablet", + "system": "http://snomed.info/sct", + "code": "428673006" + }, + "performer": { + "identifier": { + "system": "https://fhir.nhs.uk/Id/ods-organization-code", + "value": "FY210" + } + } + }, + "substitution": { + "allowedBoolean": false + } + } + }, + { + "fullUrl": "urn:uuid:1de954ac-a1ea-49ab-bd4e-88e99f191186", + "resource": { + "resourceType": "MedicationRequest", + "id": "1de954ac-a1ea-49ab-bd4e-88e99f191186", + "extension": [ + { + "url": "https://fhir.nhs.uk/StructureDefinition/Extension-DM-PrescriptionType", + "valueCoding": { + "system": "https://fhir.nhs.uk/CodeSystem/prescription-type", + "code": "1004", + "display": "Outpatient Community Prescriber - Nurse Independent/Supplementary prescriber" + } + } + ], + "identifier": [ + { + "system": "https://fhir.nhs.uk/Id/prescription-order-item-number", + "value": "1de954ac-a1ea-49ab-bd4e-88e99f191186" + } + ], + "status": "active", + "intent": "order", + "category": [ + { + "coding": [ + { + "system": "http://terminology.hl7.org/CodeSystem/medicationrequest-category", + "code": "outpatient", + "display": "Outpatient" + } + ] + } + ], + "medicationCodeableConcept": { + "coding": [ + { + "system": "http://snomed.info/sct", + "code": "321196004", + "display": "Diazepam 2mg tablets" + } + ] + }, + "subject": { + "reference": "urn:uuid:78d3c2eb-009e-4ec8-a358-b042954aa9b2" + }, + "requester": { + "reference": "urn:uuid:56166769-c1c4-4d07-afa8-132b5dfca666" + }, + "groupIdentifier": { + "extension": [ + { + "url": "https://fhir.nhs.uk/StructureDefinition/Extension-DM-PrescriptionId", + "valueIdentifier": { + "system": "https://fhir.nhs.uk/Id/prescription", + "value": "d59ec3f9-9a75-4a0f-90ac-b6853dbd82d7" + } + } + ], + "system": "https://fhir.nhs.uk/Id/prescription-order-number", + "value": "BA850E-A99968-41D69K" + }, + "courseOfTherapyType": { + "coding": [ + { + "system": "http://terminology.hl7.org/CodeSystem/medicationrequest-course-of-therapy", + "code": "acute", + "display": "Short course (acute) therapy" + } + ] + }, + "note": [ + { + "text": "Dosage has been decreased on advice from the hospital." + } + ], + "dosageInstruction": [ + { + "text": "1 tablet, at NIGHT" + } + ], + "dispenseRequest": { + "extension": [ + { + "url": "https://fhir.nhs.uk/StructureDefinition/Extension-DM-PerformerSiteType", + "valueCoding": { + "system": "https://fhir.nhs.uk/CodeSystem/dispensing-site-preference", + "code": "P1" + } + } + ], + "quantity": { + "value": 28, + "unit": "tablet", + "system": "http://snomed.info/sct", + "code": "428673006" + }, + "performer": { + "identifier": { + "system": "https://fhir.nhs.uk/Id/ods-organization-code", + "value": "FY210" + } + } + }, + "substitution": { + "allowedBoolean": false + } + } + }, + { + "fullUrl": "urn:uuid:78d3c2eb-009e-4ec8-a358-b042954aa9b2", + "resource": { + "resourceType": "Patient", + "id": "78d3c2eb-009e-4ec8-a358-b042954aa9b2", + "identifier": [ + { + "system": "https://fhir.nhs.uk/Id/nhs-number", + "value": "9449306087" + } + ], + "name": [ + { + "use": "usual", + "family": "LAURENCE", + "given": ["NEVILLE"], + "prefix": ["MR"] + } + ], + "gender": "male", + "birthDate": "1917-07-06", + "address": [ + { + "use": "home", + "line": ["1 PETERSMEAD CLOSE", "TADWORTH", "SURREY"], + "postalCode": "KT20 5AR" + } + ], + "generalPractitioner": [ + { + "identifier": { + "system": "https://fhir.nhs.uk/Id/ods-organization-code", + "value": "H81109" + } + } + ] + } + }, + { + "fullUrl": "urn:uuid:a8c85454-f8cb-498d-9629-78e2cb5fa47a", + "resource": { + "resourceType": "Practitioner", + "id": "a8c85454-f8cb-498d-9629-78e2cb5fa47a", + "identifier": [ + { + "system": "https://fhir.nhs.uk/Id/sds-user-id", + "value": "555253520107" + }, + { + "system": "https://fhir.hl7.org.uk/Id/nmc-number", + "value": "12A3456B" + } + ], + "name": [ + { + "family": "UserP", + "given": ["Random"], + "prefix": ["MR"] + } + ] + } + }, + { + "fullUrl": "urn:uuid:56166769-c1c4-4d07-afa8-132b5dfca666", + "resource": { + "resourceType": "PractitionerRole", + "id": "56166769-c1c4-4d07-afa8-132b5dfca666", + "identifier": [ + { + "system": "https://fhir.nhs.uk/Id/sds-role-profile-id", + "value": "701025352555" + }, + { + "system": "https://fhir.hl7.org.uk/Id/nhsbsa-spurious-code", + "value": "12A3456B" + } + ], + "practitioner": { + "reference": "urn:uuid:a8c85454-f8cb-498d-9629-78e2cb5fa47a" + }, + "organization": { + "reference": "urn:uuid:3b4b03a5-52ba-4ba6-9b82-70350aa109d8" + }, + "code": [ + { + "coding": [ + { + "system": "https://fhir.nhs.uk/CodeSystem/NHSDigital-SDS-JobRoleCode", + "code": "S8001:G8001:R8001", + "display": "Nurse Access Role" + } + ] + } + ], + "telecom": [ + { + "system": "phone", + "value": "01234567890", + "use": "work" + } + ] + } + }, + { + "fullUrl": "urn:uuid:3b4b03a5-52ba-4ba6-9b82-70350aa109d8", + "resource": { + "resourceType": "Organization", + "id": "3b4b03a5-52ba-4ba6-9b82-70350aa109d8", + "identifier": [ + { + "system": "https://fhir.nhs.uk/Id/ods-organization-code", + "value": "A99968" + } + ], + "name": "SOMERSET BOWEL CANCER SCREENING CENTRE", + "address": [ + { + "use": "work", + "line": ["MUSGROVE PARK HOSPITAL"], + "city": "TAUNTON", + "postalCode": "TA1 5DA" + } + ], + "telecom": [ + { + "system": "phone", + "value": "01823 333444", + "use": "work" + } + ], + "partOf": { + "identifier": { + "system": "https://fhir.nhs.uk/Id/ods-organization-code", + "value": "RBA" + }, + "display": "TAUNTON AND SOMERSET NHS FOUNDATION TRUST" + } + } + }, + { + "fullUrl": "urn:uuid:b2a46b68-9e1e-49e6-a132-88b3308ed561", + "resource": { + "resourceType": "Provenance", + "id": "b2a46b68-9e1e-49e6-a132-88b3308ed561", + "target": [ + { + "reference": "urn:uuid:a54219b8-f741-4c47-b662-e4f8dfa49ab6" + }, + { + "reference": "urn:uuid:00d3dd04-d162-49ce-a808-6f220906f1c8" + }, + { + "reference": "urn:uuid:1de954ac-a1ea-49ab-bd4e-88e99f191186" + }, + { + "reference": "urn:uuid:78d3c2eb-009e-4ec8-a358-b042954aa9b2" + }, + { + "reference": "urn:uuid:a8c85454-f8cb-498d-9629-78e2cb5fa47a" + }, + { + "reference": "urn:uuid:56166769-c1c4-4d07-afa8-132b5dfca666" + }, + { + "reference": "urn:uuid:3b4b03a5-52ba-4ba6-9b82-70350aa109d8" + } + ], + "recorded": "2008-02-27T11:38:00+00:00", + "agent": [ + { + "who": { + "reference": "urn:uuid:56166769-c1c4-4d07-afa8-132b5dfca666" + } + } + ], + "signature": [ + { + "type": [ + { + "system": "urn:iso-astm:E1762-95:2013", + "code": "1.2.840.10065.1.12.1.1" + } + ], + "when": "2021-05-07T14:47:48+00:00", + "who": { + "reference": "urn:uuid:56166769-c1c4-4d07-afa8-132b5dfca666" + }, + "data": "DQo8U2lnbmF0dXJlIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwLzA5L3htbGRzaWcjIj4NCiAgICA8U2lnbmVkSW5mbz48Q2Fub25pY2FsaXphdGlvbk1ldGhvZCBBbGdvcml0aG09Imh0dHA6Ly93d3cudzMub3JnLzIwMDEvMTAveG1sLWV4Yy1jMTRuIyI+PC9DYW5vbmljYWxpemF0aW9uTWV0aG9kPjxTaWduYXR1cmVNZXRob2QgQWxnb3JpdGhtPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwLzA5L3htbGRzaWcjcnNhLXNoYTEiPjwvU2lnbmF0dXJlTWV0aG9kPjxSZWZlcmVuY2U+PFRyYW5zZm9ybXM+PFRyYW5zZm9ybSBBbGdvcml0aG09Imh0dHA6Ly93d3cudzMub3JnLzIwMDEvMTAveG1sLWV4Yy1jMTRuIyI+PC9UcmFuc2Zvcm0+PC9UcmFuc2Zvcm1zPjxEaWdlc3RNZXRob2QgQWxnb3JpdGhtPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwLzA5L3htbGRzaWcjc2hhMSI+PC9EaWdlc3RNZXRob2Q+PERpZ2VzdFZhbHVlPnM0d1JQdnIwenJwNk9iR0hKRlh5UHBId3dSYz08L0RpZ2VzdFZhbHVlPjwvUmVmZXJlbmNlPjwvU2lnbmVkSW5mbz4NCiAgICA8U2lnbmF0dXJlVmFsdWU+UUVObDhYd2t1cGg3MHVGYU02NWdCSkZSOTFkSENLUHZHTFV6L2Y5ZXNWNWhzQmM5UXcwS2pxQjBnMFpzWUFUay9TT0hDZ2VGb2tMbU5VVFZ6NElLcG9pNVBVK0xTUDBPSzZwL2Z3TThPb0lTVTlzNVZoSHUvZ3RPcmg3bHIwc0JQVktZMVZQNGVaVlNuMFM5bHp5Yzd6b0FvNnJwbk9JNUtKdnlwMDRNdlJnPTwvU2lnbmF0dXJlVmFsdWU+DQogICAgPEtleUluZm8+DQogICAgICAgIDxYNTA5RGF0YT4NCiAgICAgICAgICAgIDxYNTA5Q2VydGlmaWNhdGU+TUlJRHVEQ0NBcUNnQXdJQkFnSUVYY210SHpBTkJna3Foa2lHOXcwQkFRc0ZBREEyTVF3d0NnWURWUVFLRXdOdWFITXhDekFKQmdOVkJBc1RBa05CTVJrd0Z3WURWUVFERXhCT1NGTWdTVTVVSUV4bGRtVnNJREZFTUI0WERUSXdNVEF5TWpFd01qRTFOVm9YRFRJeU1UQXlNakV3TlRFMU5Wb3dRekVNTUFvR0ExVUVDaE1EYm1oek1ROHdEUVlEVlFRTEV3WlFaVzl3YkdVeElqQWdCZ05WQkFNTUdUVTFOVEkxTXpVeU1URXdPRjlTUVU1RVQwMWZWVk5GVWxFd2daOHdEUVlKS29aSWh2Y05BUUVCQlFBRGdZMEFNSUdKQW9HQkFLdDRzek53N09BSDdBUVJyRGUveEJJbXNNbU1pUzlFc3JUM2EzcC9MaDNicmR6STlhYWpUVVoyYi9jdmJPYTdQZVlkN3UrSzRhMlpkMFhrKzBHRm1ZR3pTVlg2aVlqYmx3cjB2YWkzMXpWN0crbEd2SHhINnBTb0xDd0lDYVpBRndhYmVENU96OTQreUEzYVdOV3RHVjBEZmg5cXdIM1pGQ0lNUnN2ZXJOMXBBZ01CQUFHamdnRkRNSUlCUHpBT0JnTlZIUThCQWY4RUJBTUNCa0F3WlFZRFZSMGdBUUgvQkZzd1dUQlhCZ3NxaGpvQWlYdG1BQU1DQURCSU1FWUdDQ3NHQVFVRkJ3SUJGanBvZEhSd2N6b3ZMM0JyYVM1dWFITXVkV3N2WTJWeWRHbG1hV05oZEdWZmNHOXNhV05wWlhNdlkyOXVkR1Z1ZEY5amIyMXRhWFJ0Wlc1ME1ETUdBMVVkSHdRc01Db3dLS0Ftb0NTR0ltaDBkSEE2THk5amNtd3VibWh6TG5WckwybHVkQzh4WkM5amNteGpNeTVqY213d0t3WURWUjBRQkNRd0lvQVBNakF5TURFd01qSXhNREl4TlRWYWdROHlNREl5TURNeE56RXdOVEUxTlZvd0h3WURWUjBqQkJnd0ZvQVVvSllmZ1lUTlBkNkVVS0w2UUxJekh4WTVQRkl3SFFZRFZSME9CQllFRkx0eXZZU3lhcWc2MEFFVVpneGswd3JqUkpjK01Ba0dBMVVkRXdRQ01BQXdHUVlKS29aSWh2WjlCMEVBQkF3d0Noc0VWamd1TXdNQ0JMQXdEUVlKS29aSWh2Y05BUUVMQlFBRGdnRUJBQmN6eThCOGp1UHBJZmFUTkZjeHJDMjJhQ1gveFlabWhyTC9OdklCQWFYMUc1aGppd21rR0tFMmhSVElyNjdQeFp4bVhzSnhpZ1JCTUhQbEkrbFkvK29rekgwR2k3YjVicWx3N3B4R0lnSk8wMDB3OHBGc3ZvOXc0MklZaEhvZHN2bkRWU3hoTVQwSjQ2UWhrOXNvRTBMam9FVUxLUVBQbFlHa2UvR2wzbTE3SXRGWXdPYlFIMGZNRXdtaXFCeWVJZno3Z1NjY096TDVjSXA2UGNaVE9qbzJJcVFwZ0VtaGpPY1JJbkVxQU5pdFNkam9pSkFKenBhYVpqWVRSZEhVWDdpN2FqRWlING05MW5GVys0QXFrTnR0bGI0V2NHS3NTbVdnZktLaGVGNElvWktNRTgweGVyU2dNeTh2dGpMT0JKQ0dYejB3TEdtUXVSbXhNVHE4OHE0PTwvWDUwOUNlcnRpZmljYXRlPg0KICAgICAgICA8L1g1MDlEYXRhPg0KICAgIDwvS2V5SW5mbz4NCjwvU2lnbmF0dXJlPg0K" + } + ] + } + } + ] +} diff --git a/src/test/resources/examples/full_examples/secondary-care/community/acute/nominated-pharmacy/nurse/prescribing-and-professional-codes/controlled-drugs/additional-instructions/1-Prepare-Request-200_OK.json b/src/test/resources/examples/full_examples/secondary-care/community/acute/nominated-pharmacy/nurse/prescribing-and-professional-codes/controlled-drugs/additional-instructions/1-Prepare-Request-200_OK.json new file mode 100644 index 00000000..4aad80e1 --- /dev/null +++ b/src/test/resources/examples/full_examples/secondary-care/community/acute/nominated-pharmacy/nurse/prescribing-and-professional-codes/controlled-drugs/additional-instructions/1-Prepare-Request-200_OK.json @@ -0,0 +1,615 @@ +{ + "resourceType": "Bundle", + "id": "aef77afb-7e3c-427a-8657-2c427f71a271", + "identifier": { + "system": "https://tools.ietf.org/html/rfc4122", + "value": "74441a9e-bafb-4a86-a389-b4c7d1d98645" + }, + "type": "message", + "entry": [ + { + "fullUrl": "urn:uuid:3599c0e9-9292-413e-9270-9a1ef1ead99c", + "resource": { + "resourceType": "MessageHeader", + "id": "3599c0e9-9292-413e-9270-9a1ef1ead99c", + "eventCoding": { + "system": "https://fhir.nhs.uk/CodeSystem/message-event", + "code": "prescription-order", + "display": "Prescription Order" + }, + "sender": { + "identifier": { + "system": "https://fhir.nhs.uk/Id/ods-organization-code", + "value": "RBA" + }, + "reference": "urn:uuid:56166769-c1c4-4d07-afa8-132b5dfca666", + "display": "RAZIA|ALI" + }, + "source": { + "endpoint": "https://directory.spineservices.nhs.uk/STU3/Organization/RBA" + }, + "destination": [ + { + "endpoint": "https://directory.spineservices.nhs.uk/STU3/Organization/FH542", + "receiver": { + "identifier": { + "system": "https://fhir.nhs.uk/Id/ods-organization-code", + "value": "FH542" + } + } + } + ], + "focus": [ + { + "reference": "urn:uuid:a54219b8-f741-4c47-b662-e4f8dfa49ab6" + }, + { + "reference": "urn:uuid:00d3dd04-d162-49ce-a808-6f220906f1c8" + }, + { + "reference": "urn:uuid:1de954ac-a1ea-49ab-bd4e-88e99f191186" + }, + { + "reference": "urn:uuid:78d3c2eb-009e-4ec8-a358-b042954aa9b2" + }, + { + "reference": "urn:uuid:a8c85454-f8cb-498d-9629-78e2cb5fa47a" + }, + { + "reference": "urn:uuid:56166769-c1c4-4d07-afa8-132b5dfca666" + }, + { + "reference": "urn:uuid:3b4b03a5-52ba-4ba6-9b82-70350aa109d8" + }, + { + "reference": "urn:uuid:302ec192-3766-4964-a9f7-561a4a1bdada" + } + ] + } + }, + { + "fullUrl": "urn:uuid:a54219b8-f741-4c47-b662-e4f8dfa49ab6", + "resource": { + "resourceType": "MedicationRequest", + "id": "a54219b8-f741-4c47-b662-e4f8dfa49ab6", + "extension": [ + { + "url": "https://fhir.nhs.uk/StructureDefinition/Extension-DM-PrescriptionType", + "valueCoding": { + "system": "https://fhir.nhs.uk/CodeSystem/prescription-type", + "code": "1001", + "display": "Outpatient Community Prescriber - Medical Prescriber" + } + }, + { + "url": "https://fhir.nhs.uk/StructureDefinition/Extension-DM-ControlledDrug", + "extension": [ + { + "url": "quantityWords", + "valueString": "twenty eight" + }, + { + "url": "schedule", + "valueCoding": { + "system": "https://fhir.nhs.uk/CodeSystem/medicationrequest-controlled-drug", + "code": "CD2", + "display": "Schedule 2" + } + } + ] + } + ], + "identifier": [ + { + "system": "https://fhir.nhs.uk/Id/prescription-order-item-number", + "value": "a54219b8-f741-4c47-b662-e4f8dfa49ab6" + } + ], + "status": "active", + "intent": "order", + "category": [ + { + "coding": [ + { + "system": "http://terminology.hl7.org/CodeSystem/medicationrequest-category", + "code": "outpatient", + "display": "Outpatient" + } + ] + } + ], + "medicationCodeableConcept": { + "coding": [ + { + "system": "http://snomed.info/sct", + "code": "15517911000001104", + "display": "Methotrexate 10mg/0.2ml solution for injection pre-filled syringes" + } + ] + }, + "subject": { + "reference": "urn:uuid:78d3c2eb-009e-4ec8-a358-b042954aa9b2" + }, + "requester": { + "reference": "urn:uuid:56166769-c1c4-4d07-afa8-132b5dfca666" + }, + "groupIdentifier": { + "extension": [ + { + "url": "https://fhir.nhs.uk/StructureDefinition/Extension-DM-PrescriptionId", + "valueIdentifier": { + "system": "https://fhir.nhs.uk/Id/prescription", + "value": "4d529658-2be3-402d-b04e-6dd0392fcdea" + } + } + ], + "system": "https://fhir.nhs.uk/Id/prescription-order-number", + "value": "2C07EF-A99968-46DCBI" + }, + "courseOfTherapyType": { + "coding": [ + { + "system": "http://terminology.hl7.org/CodeSystem/medicationrequest-course-of-therapy", + "code": "acute", + "display": "Short course (acute) therapy" + } + ] + }, + "dosageInstruction": [ + { + "text": "Inject 10 milligram - 5 times a day - Subcutaneous route - for 10 days", + "timing": { + "repeat": { + "frequency": 5, + "period": 1, + "periodUnit": "d", + "boundsDuration": { + "value": 10, + "unit": "day", + "system": "http://unitsofmeasure.org", + "code": "d" + } + } + }, + "method": { + "coding": [ + { + "system": "http://snomed.info/sct", + "code": "422145002", + "display": "Inject" + } + ] + }, + "route": { + "coding": [ + { + "system": "http://snomed.info/sct", + "code": "34206005", + "display": "Subcutaneous route" + } + ] + }, + "doseAndRate": [ + { + "doseQuantity": { + "value": 10, + "unit": "milligram", + "system": "http://unitsofmeasure.org", + "code": "mg" + } + } + ] + } + ], + "dispenseRequest": { + "extension": [ + { + "url": "https://fhir.nhs.uk/StructureDefinition/Extension-DM-PerformerSiteType", + "valueCoding": { + "system": "https://fhir.nhs.uk/CodeSystem/dispensing-site-preference", + "code": "P1" + } + } + ], + "quantity": { + "value": 1, + "unit": "pre-filled disposable injection", + "system": "http://snomed.info/sct", + "code": "3318611000001103" + }, + "performer": { + "identifier": { + "system": "https://fhir.nhs.uk/Id/ods-organization-code", + "value": "FH542" + } + } + }, + "substitution": { + "allowedBoolean": false + } + } + }, + { + "fullUrl": "urn:uuid:00d3dd04-d162-49ce-a808-6f220906f1c8", + "resource": { + "resourceType": "MedicationRequest", + "id": "00d3dd04-d162-49ce-a808-6f220906f1c8", + "extension": [ + { + "url": "https://fhir.nhs.uk/StructureDefinition/Extension-DM-PrescriptionType", + "valueCoding": { + "system": "https://fhir.nhs.uk/CodeSystem/prescription-type", + "code": "1001", + "display": "Outpatient Community Prescriber - Medical Prescriber" + } + } + ], + "identifier": [ + { + "system": "https://fhir.nhs.uk/Id/prescription-order-item-number", + "value": "a54219b8-f741-4c47-b662-e4f8dfa49ab5" + } + ], + "status": "active", + "intent": "order", + "category": [ + { + "coding": [ + { + "system": "http://terminology.hl7.org/CodeSystem/medicationrequest-category", + "code": "outpatient", + "display": "Outpatient" + } + ] + } + ], + "medicationCodeableConcept": { + "coding": [ + { + "system": "http://snomed.info/sct", + "code": "36126511000001106", + "display": "Morphine 10mg modified-release tablets" + } + ] + }, + "subject": { + "reference": "urn:uuid:78d3c2eb-009e-4ec8-a358-b042954aa9b2" + }, + "requester": { + "reference": "urn:uuid:56166769-c1c4-4d07-afa8-132b5dfca666" + }, + "groupIdentifier": { + "extension": [ + { + "url": "https://fhir.nhs.uk/StructureDefinition/Extension-DM-PrescriptionId", + "valueIdentifier": { + "system": "https://fhir.nhs.uk/Id/prescription", + "value": "4d529658-2be3-402d-b04e-6dd0392fcdea" + } + } + ], + "system": "https://fhir.nhs.uk/Id/prescription-order-number", + "value": "2C07EF-A99968-46DCBI" + }, + "courseOfTherapyType": { + "coding": [ + { + "system": "http://terminology.hl7.org/CodeSystem/medicationrequest-course-of-therapy", + "code": "acute", + "display": "Short course (acute) therapy" + } + ] + }, + "dosageInstruction": [ + { + "text": "1 tablet, daily" + } + ], + "dispenseRequest": { + "extension": [ + { + "url": "https://fhir.nhs.uk/StructureDefinition/Extension-DM-PerformerSiteType", + "valueCoding": { + "system": "https://fhir.nhs.uk/CodeSystem/dispensing-site-preference", + "code": "P1" + } + } + ], + "quantity": { + "value": 28, + "unit": "tablet", + "system": "http://snomed.info/sct", + "code": "428673006" + }, + "performer": { + "identifier": { + "system": "https://fhir.nhs.uk/Id/ods-organization-code", + "value": "FH542" + } + } + }, + "substitution": { + "allowedBoolean": false + } + } + }, + { + "fullUrl": "urn:uuid:1de954ac-a1ea-49ab-bd4e-88e99f191186", + "resource": { + "resourceType": "MedicationRequest", + "id": "1de954ac-a1ea-49ab-bd4e-88e99f191186", + "extension": [ + { + "url": "https://fhir.nhs.uk/StructureDefinition/Extension-DM-PrescriptionType", + "valueCoding": { + "system": "https://fhir.nhs.uk/CodeSystem/prescription-type", + "code": "1001", + "display": "Outpatient Community Prescriber - Medical Prescriber" + } + } + ], + "identifier": [ + { + "system": "https://fhir.nhs.uk/Id/prescription-order-item-number", + "value": "a54219b8-f741-4c47-b662-e4f8dfa49ab4" + } + ], + "status": "active", + "intent": "order", + "category": [ + { + "coding": [ + { + "system": "http://terminology.hl7.org/CodeSystem/medicationrequest-category", + "code": "outpatient", + "display": "Outpatient" + } + ] + } + ], + "medicationCodeableConcept": { + "coding": [ + { + "system": "http://snomed.info/sct", + "code": "321196004", + "display": "Diazepam 2mg tablets" + } + ] + }, + "subject": { + "reference": "urn:uuid:78d3c2eb-009e-4ec8-a358-b042954aa9b2" + }, + "requester": { + "reference": "urn:uuid:56166769-c1c4-4d07-afa8-132b5dfca666" + }, + "groupIdentifier": { + "extension": [ + { + "url": "https://fhir.nhs.uk/StructureDefinition/Extension-DM-PrescriptionId", + "valueIdentifier": { + "system": "https://fhir.nhs.uk/Id/prescription", + "value": "4d529658-2be3-402d-b04e-6dd0392fcdea" + } + } + ], + "system": "https://fhir.nhs.uk/Id/prescription-order-number", + "value": "2C07EF-A99968-46DCBI" + }, + "courseOfTherapyType": { + "coding": [ + { + "system": "http://terminology.hl7.org/CodeSystem/medicationrequest-course-of-therapy", + "code": "acute", + "display": "Short course (acute) therapy" + } + ] + }, + "note": [ + { + "text": "Dosage has been decreased on advice from the hospital." + } + ], + "dosageInstruction": [ + { + "text": "1 tablet, at NIGHT" + } + ], + "dispenseRequest": { + "extension": [ + { + "url": "https://fhir.nhs.uk/StructureDefinition/Extension-DM-PerformerSiteType", + "valueCoding": { + "system": "https://fhir.nhs.uk/CodeSystem/dispensing-site-preference", + "code": "P1" + } + } + ], + "quantity": { + "value": 28, + "unit": "tablet", + "system": "http://snomed.info/sct", + "code": "428673006" + }, + "performer": { + "identifier": { + "system": "https://fhir.nhs.uk/Id/ods-organization-code", + "value": "FH542" + } + } + }, + "substitution": { + "allowedBoolean": false + } + } + }, + { + "fullUrl": "urn:uuid:78d3c2eb-009e-4ec8-a358-b042954aa9b2", + "resource": { + "resourceType": "Patient", + "id": "78d3c2eb-009e-4ec8-a358-b042954aa9b2", + "identifier": [ + { + "system": "https://fhir.nhs.uk/Id/nhs-number", + "value": "9449305552" + } + ], + "name": [ + { + "use": "usual", + "family": "CORY", + "given": ["ETTA"], + "prefix": ["MISS"] + } + ], + "gender": "female", + "birthDate": "1999-01-04", + "address": [ + { + "use": "home", + "line": ["123 Dale Avenue", "Long Eaton", "Nottingham"], + "postalCode": "NG10 1NP" + } + ], + "generalPractitioner": [ + { + "identifier": { + "system": "https://fhir.nhs.uk/Id/ods-organization-code", + "value": "B81001" + } + } + ] + } + }, + { + "fullUrl": "urn:uuid:a8c85454-f8cb-498d-9629-78e2cb5fa47a", + "resource": { + "resourceType": "Practitioner", + "id": "a8c85454-f8cb-498d-9629-78e2cb5fa47a", + "identifier": [ + { + "system": "https://fhir.nhs.uk/Id/sds-user-id", + "value": "555086690109" + }, + { + "system": "https://fhir.hl7.org.uk/Id/nmc-number", + "value": "12A3456B" + } + ], + "name": [ + { + "family": "Userq", + "given": ["Random"], + "prefix": ["MR"] + } + ] + } + }, + { + "fullUrl": "urn:uuid:56166769-c1c4-4d07-afa8-132b5dfca666", + "resource": { + "resourceType": "PractitionerRole", + "id": "56166769-c1c4-4d07-afa8-132b5dfca666", + "identifier": [ + { + "system": "https://fhir.nhs.uk/Id/sds-role-profile-id", + "value": "100102238986" + }, + { + "system": "https://fhir.hl7.org.uk/Id/nhsbsa-spurious-code", + "value": "612345" + } + ], + "practitioner": { + "reference": "urn:uuid:a8c85454-f8cb-498d-9629-78e2cb5fa47a" + }, + "organization": { + "reference": "urn:uuid:3b4b03a5-52ba-4ba6-9b82-70350aa109d8" + }, + "code": [ + { + "coding": [ + { + "system": "https://fhir.nhs.uk/CodeSystem/NHSDigital-SDS-JobRoleCode", + "code": "S8001:G8001:R8001", + "display": "Nurse Access Role" + } + ] + } + ], + "telecom": [ + { + "system": "phone", + "value": "01234567890", + "use": "work" + } + ] + } + }, + { + "fullUrl": "urn:uuid:3b4b03a5-52ba-4ba6-9b82-70350aa109d8", + "resource": { + "resourceType": "Organization", + "id": "3b4b03a5-52ba-4ba6-9b82-70350aa109d8", + "identifier": [ + { + "system": "https://fhir.nhs.uk/Id/ods-organization-code", + "value": "A99968" + } + ], + "name": "SOMERSET BOWEL CANCER SCREENING CENTRE", + "address": [ + { + "use": "work", + "line": ["MUSGROVE PARK HOSPITAL"], + "city": "TAUNTON", + "postalCode": "TA1 5DA" + } + ], + "telecom": [ + { + "system": "phone", + "value": "01823 333444", + "use": "work" + } + ], + "partOf": { + "identifier": { + "system": "https://fhir.nhs.uk/Id/ods-organization-code", + "value": "RBA" + }, + "display": "TAUNTON AND SOMERSET NHS FOUNDATION TRUST" + } + } + }, + { + "fullUrl": "urn:uuid:302ec192-3766-4964-a9f7-561a4a1bdada", + "resource": { + "resourceType": "CommunicationRequest", + "id": "302ec192-3766-4964-a9f7-561a4a1bdada", + "status": "active", + "payload": [ + { + "contentString": "Your medication review is due. Please make an appointment to see your GP." + } + ], + "requester": { + "type": "Organization", + "identifier": { + "system": "https://fhir.nhs.uk/Id/ods-organization-code", + "value": "RBA" + }, + "display": "TAUNTON AND SOMERSET NHS FOUNDATION TRUST" + }, + "recipient": [ + { + "type": "Patient", + "identifier": { + "system": "https://fhir.nhs.uk/Id/nhs-number", + "value": "9453740519" + } + } + ] + } + } + ] +} diff --git a/src/test/resources/examples/full_examples/secondary-care/community/acute/nominated-pharmacy/nurse/prescribing-and-professional-codes/controlled-drugs/additional-instructions/1-Prepare-Response-200_OK.json b/src/test/resources/examples/full_examples/secondary-care/community/acute/nominated-pharmacy/nurse/prescribing-and-professional-codes/controlled-drugs/additional-instructions/1-Prepare-Response-200_OK.json new file mode 100644 index 00000000..a6a6e978 --- /dev/null +++ b/src/test/resources/examples/full_examples/secondary-care/community/acute/nominated-pharmacy/nurse/prescribing-and-professional-codes/controlled-drugs/additional-instructions/1-Prepare-Response-200_OK.json @@ -0,0 +1,17 @@ +{ + "resourceType": "Parameters", + "parameter": [ + { + "name": "digest", + "valueString": "PFNpZ25lZEluZm8geG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvMDkveG1sZHNpZyMiPjxDYW5vbmljYWxpemF0aW9uTWV0aG9kIEFsZ29yaXRobT0iaHR0cDovL3d3dy53My5vcmcvMjAwMS8xMC94bWwtZXhjLWMxNG4jIj48L0Nhbm9uaWNhbGl6YXRpb25NZXRob2Q+PFNpZ25hdHVyZU1ldGhvZCBBbGdvcml0aG09Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvMDkveG1sZHNpZyNyc2Etc2hhMSI+PC9TaWduYXR1cmVNZXRob2Q+PFJlZmVyZW5jZT48VHJhbnNmb3Jtcz48VHJhbnNmb3JtIEFsZ29yaXRobT0iaHR0cDovL3d3dy53My5vcmcvMjAwMS8xMC94bWwtZXhjLWMxNG4jIj48L1RyYW5zZm9ybT48L1RyYW5zZm9ybXM+PERpZ2VzdE1ldGhvZCBBbGdvcml0aG09Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvMDkveG1sZHNpZyNzaGExIj48L0RpZ2VzdE1ldGhvZD48RGlnZXN0VmFsdWU+RGt4MVdTcG5uMGRMYURuQlhERWpmSVBuM3ZRPTwvRGlnZXN0VmFsdWU+PC9SZWZlcmVuY2U+PC9TaWduZWRJbmZvPg==" + }, + { + "name": "timestamp", + "valueString": "2022-10-25T10:24:34+00:00" + }, + { + "name": "algorithm", + "valueString": "RS1" + } + ] +} diff --git a/src/test/resources/examples/full_examples/secondary-care/community/acute/nominated-pharmacy/nurse/prescribing-and-professional-codes/controlled-drugs/additional-instructions/1-Process-Request-Send-200_OK.json b/src/test/resources/examples/full_examples/secondary-care/community/acute/nominated-pharmacy/nurse/prescribing-and-professional-codes/controlled-drugs/additional-instructions/1-Process-Request-Send-200_OK.json new file mode 100644 index 00000000..38149d42 --- /dev/null +++ b/src/test/resources/examples/full_examples/secondary-care/community/acute/nominated-pharmacy/nurse/prescribing-and-professional-codes/controlled-drugs/additional-instructions/1-Process-Request-Send-200_OK.json @@ -0,0 +1,674 @@ +{ + "resourceType": "Bundle", + "id": "aef77afb-7e3c-427a-8657-2c427f71a271", + "identifier": { + "system": "https://tools.ietf.org/html/rfc4122", + "value": "51601e5d-2c7b-4b7f-a3d0-0b076d55cfae" + }, + "type": "message", + "entry": [ + { + "fullUrl": "urn:uuid:3599c0e9-9292-413e-9270-9a1ef1ead99c", + "resource": { + "resourceType": "MessageHeader", + "id": "3599c0e9-9292-413e-9270-9a1ef1ead99c", + "eventCoding": { + "system": "https://fhir.nhs.uk/CodeSystem/message-event", + "code": "prescription-order", + "display": "Prescription Order" + }, + "sender": { + "identifier": { + "system": "https://fhir.nhs.uk/Id/ods-organization-code", + "value": "RBA" + }, + "reference": "urn:uuid:56166769-c1c4-4d07-afa8-132b5dfca666", + "display": "RAZIA|ALI" + }, + "source": { + "endpoint": "https://directory.spineservices.nhs.uk/STU3/Organization/RBA" + }, + "destination": [ + { + "endpoint": "https://directory.spineservices.nhs.uk/STU3/Organization/FH542", + "receiver": { + "identifier": { + "system": "https://fhir.nhs.uk/Id/ods-organization-code", + "value": "FH542" + } + } + } + ], + "focus": [ + { + "reference": "urn:uuid:a54219b8-f741-4c47-b662-e4f8dfa49ab6" + }, + { + "reference": "urn:uuid:00d3dd04-d162-49ce-a808-6f220906f1c8" + }, + { + "reference": "urn:uuid:1de954ac-a1ea-49ab-bd4e-88e99f191186" + }, + { + "reference": "urn:uuid:78d3c2eb-009e-4ec8-a358-b042954aa9b2" + }, + { + "reference": "urn:uuid:a8c85454-f8cb-498d-9629-78e2cb5fa47a" + }, + { + "reference": "urn:uuid:56166769-c1c4-4d07-afa8-132b5dfca666" + }, + { + "reference": "urn:uuid:3b4b03a5-52ba-4ba6-9b82-70350aa109d8" + }, + { + "reference": "urn:uuid:302ec192-3766-4964-a9f7-561a4a1bdada" + }, + { + "reference": "urn:uuid:b2a46b68-9e1e-49e6-a132-88b3308ed561" + } + ] + } + }, + { + "fullUrl": "urn:uuid:a54219b8-f741-4c47-b662-e4f8dfa49ab6", + "resource": { + "resourceType": "MedicationRequest", + "id": "a54219b8-f741-4c47-b662-e4f8dfa49ab6", + "extension": [ + { + "url": "https://fhir.nhs.uk/StructureDefinition/Extension-DM-PrescriptionType", + "valueCoding": { + "system": "https://fhir.nhs.uk/CodeSystem/prescription-type", + "code": "1001", + "display": "Outpatient Community Prescriber - Medical Prescriber" + } + }, + { + "url": "https://fhir.nhs.uk/StructureDefinition/Extension-DM-ControlledDrug", + "extension": [ + { + "url": "quantityWords", + "valueString": "twenty eight" + }, + { + "url": "schedule", + "valueCoding": { + "system": "https://fhir.nhs.uk/CodeSystem/medicationrequest-controlled-drug", + "code": "CD2", + "display": "Schedule 2" + } + } + ] + } + ], + "identifier": [ + { + "system": "https://fhir.nhs.uk/Id/prescription-order-item-number", + "value": "a54219b8-f741-4c47-b662-e4f8dfa49ab6" + } + ], + "status": "active", + "intent": "order", + "category": [ + { + "coding": [ + { + "system": "http://terminology.hl7.org/CodeSystem/medicationrequest-category", + "code": "outpatient", + "display": "Outpatient" + } + ] + } + ], + "medicationCodeableConcept": { + "coding": [ + { + "system": "http://snomed.info/sct", + "code": "15517911000001104", + "display": "Methotrexate 10mg/0.2ml solution for injection pre-filled syringes" + } + ] + }, + "subject": { + "reference": "urn:uuid:78d3c2eb-009e-4ec8-a358-b042954aa9b2" + }, + "requester": { + "reference": "urn:uuid:56166769-c1c4-4d07-afa8-132b5dfca666" + }, + "groupIdentifier": { + "extension": [ + { + "url": "https://fhir.nhs.uk/StructureDefinition/Extension-DM-PrescriptionId", + "valueIdentifier": { + "system": "https://fhir.nhs.uk/Id/prescription", + "value": "4d529658-2be3-402d-b04e-6dd0392fcdea" + } + } + ], + "system": "https://fhir.nhs.uk/Id/prescription-order-number", + "value": "2C07EF-A99968-46DCBI" + }, + "courseOfTherapyType": { + "coding": [ + { + "system": "http://terminology.hl7.org/CodeSystem/medicationrequest-course-of-therapy", + "code": "acute", + "display": "Short course (acute) therapy" + } + ] + }, + "dosageInstruction": [ + { + "text": "Inject 10 milligram - 5 times a day - Subcutaneous route - for 10 days", + "timing": { + "repeat": { + "frequency": 5, + "period": 1, + "periodUnit": "d", + "boundsDuration": { + "value": 10, + "unit": "day", + "system": "http://unitsofmeasure.org", + "code": "d" + } + } + }, + "method": { + "coding": [ + { + "system": "http://snomed.info/sct", + "code": "422145002", + "display": "Inject" + } + ] + }, + "route": { + "coding": [ + { + "system": "http://snomed.info/sct", + "code": "34206005", + "display": "Subcutaneous route" + } + ] + }, + "doseAndRate": [ + { + "doseQuantity": { + "value": 10, + "unit": "milligram", + "system": "http://unitsofmeasure.org", + "code": "mg" + } + } + ] + } + ], + "dispenseRequest": { + "extension": [ + { + "url": "https://fhir.nhs.uk/StructureDefinition/Extension-DM-PerformerSiteType", + "valueCoding": { + "system": "https://fhir.nhs.uk/CodeSystem/dispensing-site-preference", + "code": "P1" + } + } + ], + "quantity": { + "value": 1, + "unit": "pre-filled disposable injection", + "system": "http://snomed.info/sct", + "code": "3318611000001103" + }, + "performer": { + "identifier": { + "system": "https://fhir.nhs.uk/Id/ods-organization-code", + "value": "FH542" + } + } + }, + "substitution": { + "allowedBoolean": false + } + } + }, + { + "fullUrl": "urn:uuid:00d3dd04-d162-49ce-a808-6f220906f1c8", + "resource": { + "resourceType": "MedicationRequest", + "id": "00d3dd04-d162-49ce-a808-6f220906f1c8", + "extension": [ + { + "url": "https://fhir.nhs.uk/StructureDefinition/Extension-DM-PrescriptionType", + "valueCoding": { + "system": "https://fhir.nhs.uk/CodeSystem/prescription-type", + "code": "1001", + "display": "Outpatient Community Prescriber - Medical Prescriber" + } + } + ], + "identifier": [ + { + "system": "https://fhir.nhs.uk/Id/prescription-order-item-number", + "value": "a54219b8-f741-4c47-b662-e4f8dfa49ab5" + } + ], + "status": "active", + "intent": "order", + "category": [ + { + "coding": [ + { + "system": "http://terminology.hl7.org/CodeSystem/medicationrequest-category", + "code": "outpatient", + "display": "Outpatient" + } + ] + } + ], + "medicationCodeableConcept": { + "coding": [ + { + "system": "http://snomed.info/sct", + "code": "36126511000001106", + "display": "Morphine 10mg modified-release tablets" + } + ] + }, + "subject": { + "reference": "urn:uuid:78d3c2eb-009e-4ec8-a358-b042954aa9b2" + }, + "requester": { + "reference": "urn:uuid:56166769-c1c4-4d07-afa8-132b5dfca666" + }, + "groupIdentifier": { + "extension": [ + { + "url": "https://fhir.nhs.uk/StructureDefinition/Extension-DM-PrescriptionId", + "valueIdentifier": { + "system": "https://fhir.nhs.uk/Id/prescription", + "value": "4d529658-2be3-402d-b04e-6dd0392fcdea" + } + } + ], + "system": "https://fhir.nhs.uk/Id/prescription-order-number", + "value": "2C07EF-A99968-46DCBI" + }, + "courseOfTherapyType": { + "coding": [ + { + "system": "http://terminology.hl7.org/CodeSystem/medicationrequest-course-of-therapy", + "code": "acute", + "display": "Short course (acute) therapy" + } + ] + }, + "dosageInstruction": [ + { + "text": "1 tablet, daily" + } + ], + "dispenseRequest": { + "extension": [ + { + "url": "https://fhir.nhs.uk/StructureDefinition/Extension-DM-PerformerSiteType", + "valueCoding": { + "system": "https://fhir.nhs.uk/CodeSystem/dispensing-site-preference", + "code": "P1" + } + } + ], + "quantity": { + "value": 28, + "unit": "tablet", + "system": "http://snomed.info/sct", + "code": "428673006" + }, + "performer": { + "identifier": { + "system": "https://fhir.nhs.uk/Id/ods-organization-code", + "value": "FH542" + } + } + }, + "substitution": { + "allowedBoolean": false + } + } + }, + { + "fullUrl": "urn:uuid:1de954ac-a1ea-49ab-bd4e-88e99f191186", + "resource": { + "resourceType": "MedicationRequest", + "id": "1de954ac-a1ea-49ab-bd4e-88e99f191186", + "extension": [ + { + "url": "https://fhir.nhs.uk/StructureDefinition/Extension-DM-PrescriptionType", + "valueCoding": { + "system": "https://fhir.nhs.uk/CodeSystem/prescription-type", + "code": "1001", + "display": "Outpatient Community Prescriber - Medical Prescriber" + } + } + ], + "identifier": [ + { + "system": "https://fhir.nhs.uk/Id/prescription-order-item-number", + "value": "a54219b8-f741-4c47-b662-e4f8dfa49ab4" + } + ], + "status": "active", + "intent": "order", + "category": [ + { + "coding": [ + { + "system": "http://terminology.hl7.org/CodeSystem/medicationrequest-category", + "code": "outpatient", + "display": "Outpatient" + } + ] + } + ], + "medicationCodeableConcept": { + "coding": [ + { + "system": "http://snomed.info/sct", + "code": "321196004", + "display": "Diazepam 2mg tablets" + } + ] + }, + "subject": { + "reference": "urn:uuid:78d3c2eb-009e-4ec8-a358-b042954aa9b2" + }, + "requester": { + "reference": "urn:uuid:56166769-c1c4-4d07-afa8-132b5dfca666" + }, + "groupIdentifier": { + "extension": [ + { + "url": "https://fhir.nhs.uk/StructureDefinition/Extension-DM-PrescriptionId", + "valueIdentifier": { + "system": "https://fhir.nhs.uk/Id/prescription", + "value": "4d529658-2be3-402d-b04e-6dd0392fcdea" + } + } + ], + "system": "https://fhir.nhs.uk/Id/prescription-order-number", + "value": "2C07EF-A99968-46DCBI" + }, + "courseOfTherapyType": { + "coding": [ + { + "system": "http://terminology.hl7.org/CodeSystem/medicationrequest-course-of-therapy", + "code": "acute", + "display": "Short course (acute) therapy" + } + ] + }, + "note": [ + { + "text": "Dosage has been decreased on advice from the hospital." + } + ], + "dosageInstruction": [ + { + "text": "1 tablet, at NIGHT" + } + ], + "dispenseRequest": { + "extension": [ + { + "url": "https://fhir.nhs.uk/StructureDefinition/Extension-DM-PerformerSiteType", + "valueCoding": { + "system": "https://fhir.nhs.uk/CodeSystem/dispensing-site-preference", + "code": "P1" + } + } + ], + "quantity": { + "value": 28, + "unit": "tablet", + "system": "http://snomed.info/sct", + "code": "428673006" + }, + "performer": { + "identifier": { + "system": "https://fhir.nhs.uk/Id/ods-organization-code", + "value": "FH542" + } + } + }, + "substitution": { + "allowedBoolean": false + } + } + }, + { + "fullUrl": "urn:uuid:78d3c2eb-009e-4ec8-a358-b042954aa9b2", + "resource": { + "resourceType": "Patient", + "id": "78d3c2eb-009e-4ec8-a358-b042954aa9b2", + "identifier": [ + { + "system": "https://fhir.nhs.uk/Id/nhs-number", + "value": "9449305552" + } + ], + "name": [ + { + "use": "usual", + "family": "CORY", + "given": ["ETTA"], + "prefix": ["MISS"] + } + ], + "gender": "female", + "birthDate": "1999-01-04", + "address": [ + { + "use": "home", + "line": ["123 Dale Avenue", "Long Eaton", "Nottingham"], + "postalCode": "NG10 1NP" + } + ], + "generalPractitioner": [ + { + "identifier": { + "system": "https://fhir.nhs.uk/Id/ods-organization-code", + "value": "B81001" + } + } + ] + } + }, + { + "fullUrl": "urn:uuid:a8c85454-f8cb-498d-9629-78e2cb5fa47a", + "resource": { + "resourceType": "Practitioner", + "id": "a8c85454-f8cb-498d-9629-78e2cb5fa47a", + "identifier": [ + { + "system": "https://fhir.nhs.uk/Id/sds-user-id", + "value": "555086690109" + }, + { + "system": "https://fhir.hl7.org.uk/Id/nmc-number", + "value": "12A3456B" + } + ], + "name": [ + { + "family": "Userq", + "given": ["Random"], + "prefix": ["MR"] + } + ] + } + }, + { + "fullUrl": "urn:uuid:56166769-c1c4-4d07-afa8-132b5dfca666", + "resource": { + "resourceType": "PractitionerRole", + "id": "56166769-c1c4-4d07-afa8-132b5dfca666", + "identifier": [ + { + "system": "https://fhir.nhs.uk/Id/sds-role-profile-id", + "value": "100102238986" + }, + { + "system": "https://fhir.hl7.org.uk/Id/nhsbsa-spurious-code", + "value": "612345" + } + ], + "practitioner": { + "reference": "urn:uuid:a8c85454-f8cb-498d-9629-78e2cb5fa47a" + }, + "organization": { + "reference": "urn:uuid:3b4b03a5-52ba-4ba6-9b82-70350aa109d8" + }, + "code": [ + { + "coding": [ + { + "system": "https://fhir.nhs.uk/CodeSystem/NHSDigital-SDS-JobRoleCode", + "code": "S8001:G8001:R8001", + "display": "Nurse Access Role" + } + ] + } + ], + "telecom": [ + { + "system": "phone", + "value": "01234567890", + "use": "work" + } + ] + } + }, + { + "fullUrl": "urn:uuid:3b4b03a5-52ba-4ba6-9b82-70350aa109d8", + "resource": { + "resourceType": "Organization", + "id": "3b4b03a5-52ba-4ba6-9b82-70350aa109d8", + "identifier": [ + { + "system": "https://fhir.nhs.uk/Id/ods-organization-code", + "value": "A99968" + } + ], + "name": "SOMERSET BOWEL CANCER SCREENING CENTRE", + "address": [ + { + "use": "work", + "line": ["MUSGROVE PARK HOSPITAL"], + "city": "TAUNTON", + "postalCode": "TA1 5DA" + } + ], + "telecom": [ + { + "system": "phone", + "value": "01823 333444", + "use": "work" + } + ], + "partOf": { + "identifier": { + "system": "https://fhir.nhs.uk/Id/ods-organization-code", + "value": "RBA" + }, + "display": "TAUNTON AND SOMERSET NHS FOUNDATION TRUST" + } + } + }, + { + "fullUrl": "urn:uuid:302ec192-3766-4964-a9f7-561a4a1bdada", + "resource": { + "resourceType": "CommunicationRequest", + "id": "302ec192-3766-4964-a9f7-561a4a1bdada", + "status": "active", + "payload": [ + { + "contentString": "Your medication review is due. Please make an appointment to see your GP." + } + ], + "requester": { + "type": "Organization", + "identifier": { + "system": "https://fhir.nhs.uk/Id/ods-organization-code", + "value": "RBA" + }, + "display": "TAUNTON AND SOMERSET NHS FOUNDATION TRUST" + }, + "recipient": [ + { + "type": "Patient", + "identifier": { + "system": "https://fhir.nhs.uk/Id/nhs-number", + "value": "9453740519" + } + } + ] + } + }, + { + "fullUrl": "urn:uuid:b2a46b68-9e1e-49e6-a132-88b3308ed561", + "resource": { + "resourceType": "Provenance", + "id": "b2a46b68-9e1e-49e6-a132-88b3308ed561", + "target": [ + { + "reference": "urn:uuid:a54219b8-f741-4c47-b662-e4f8dfa49ab6" + }, + { + "reference": "urn:uuid:00d3dd04-d162-49ce-a808-6f220906f1c8" + }, + { + "reference": "urn:uuid:1de954ac-a1ea-49ab-bd4e-88e99f191186" + }, + { + "reference": "urn:uuid:78d3c2eb-009e-4ec8-a358-b042954aa9b2" + }, + { + "reference": "urn:uuid:a8c85454-f8cb-498d-9629-78e2cb5fa47a" + }, + { + "reference": "urn:uuid:56166769-c1c4-4d07-afa8-132b5dfca666" + }, + { + "reference": "urn:uuid:3b4b03a5-52ba-4ba6-9b82-70350aa109d8" + }, + { + "reference": "urn:uuid:302ec192-3766-4964-a9f7-561a4a1bdada" + } + ], + "recorded": "2008-02-27T11:38:00+00:00", + "agent": [ + { + "who": { + "reference": "urn:uuid:56166769-c1c4-4d07-afa8-132b5dfca666" + } + } + ], + "signature": [ + { + "type": [ + { + "system": "urn:iso-astm:E1762-95:2013", + "code": "1.2.840.10065.1.12.1.1" + } + ], + "when": "2021-05-07T14:47:49+00:00", + "who": { + "reference": "urn:uuid:56166769-c1c4-4d07-afa8-132b5dfca666" + }, + "data": "DQo8U2lnbmF0dXJlIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwLzA5L3htbGRzaWcjIj4NCiAgICA8U2lnbmVkSW5mbz48Q2Fub25pY2FsaXphdGlvbk1ldGhvZCBBbGdvcml0aG09Imh0dHA6Ly93d3cudzMub3JnLzIwMDEvMTAveG1sLWV4Yy1jMTRuIyI+PC9DYW5vbmljYWxpemF0aW9uTWV0aG9kPjxTaWduYXR1cmVNZXRob2QgQWxnb3JpdGhtPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwLzA5L3htbGRzaWcjcnNhLXNoYTEiPjwvU2lnbmF0dXJlTWV0aG9kPjxSZWZlcmVuY2U+PFRyYW5zZm9ybXM+PFRyYW5zZm9ybSBBbGdvcml0aG09Imh0dHA6Ly93d3cudzMub3JnLzIwMDEvMTAveG1sLWV4Yy1jMTRuIyI+PC9UcmFuc2Zvcm0+PC9UcmFuc2Zvcm1zPjxEaWdlc3RNZXRob2QgQWxnb3JpdGhtPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwLzA5L3htbGRzaWcjc2hhMSI+PC9EaWdlc3RNZXRob2Q+PERpZ2VzdFZhbHVlPmNBMC9GUzlnMEk5REdxdFpvR0JOSitjc3Bpbz08L0RpZ2VzdFZhbHVlPjwvUmVmZXJlbmNlPjwvU2lnbmVkSW5mbz4NCiAgICA8U2lnbmF0dXJlVmFsdWU+R1ZwOTkyUVdMZ21vQ2theFo5a043OElVUXprSlQ4bWR3RjV1Q0FlMXBudnlwNnpPVEY0OFBzeTh3aGFJeGQ3NmdUK1BidkllcnJvVnlPeDVuUi9taDcvTittTDliZkNCRHhQcXEvNUhJVWl3WkhBN0s2MFdJbnNpU0VlRlFGWEtQTnh1aXNrR2RpcnBuSUhyVnRBUGhLYVdvN1hQZ2lRcWVSaTRMMW1mVDRjPTwvU2lnbmF0dXJlVmFsdWU+DQogICAgPEtleUluZm8+DQogICAgICAgIDxYNTA5RGF0YT4NCiAgICAgICAgICAgIDxYNTA5Q2VydGlmaWNhdGU+TUlJRHVEQ0NBcUNnQXdJQkFnSUVYY210SHpBTkJna3Foa2lHOXcwQkFRc0ZBREEyTVF3d0NnWURWUVFLRXdOdWFITXhDekFKQmdOVkJBc1RBa05CTVJrd0Z3WURWUVFERXhCT1NGTWdTVTVVSUV4bGRtVnNJREZFTUI0WERUSXdNVEF5TWpFd01qRTFOVm9YRFRJeU1UQXlNakV3TlRFMU5Wb3dRekVNTUFvR0ExVUVDaE1EYm1oek1ROHdEUVlEVlFRTEV3WlFaVzl3YkdVeElqQWdCZ05WQkFNTUdUVTFOVEkxTXpVeU1URXdPRjlTUVU1RVQwMWZWVk5GVWxFd2daOHdEUVlKS29aSWh2Y05BUUVCQlFBRGdZMEFNSUdKQW9HQkFLdDRzek53N09BSDdBUVJyRGUveEJJbXNNbU1pUzlFc3JUM2EzcC9MaDNicmR6STlhYWpUVVoyYi9jdmJPYTdQZVlkN3UrSzRhMlpkMFhrKzBHRm1ZR3pTVlg2aVlqYmx3cjB2YWkzMXpWN0crbEd2SHhINnBTb0xDd0lDYVpBRndhYmVENU96OTQreUEzYVdOV3RHVjBEZmg5cXdIM1pGQ0lNUnN2ZXJOMXBBZ01CQUFHamdnRkRNSUlCUHpBT0JnTlZIUThCQWY4RUJBTUNCa0F3WlFZRFZSMGdBUUgvQkZzd1dUQlhCZ3NxaGpvQWlYdG1BQU1DQURCSU1FWUdDQ3NHQVFVRkJ3SUJGanBvZEhSd2N6b3ZMM0JyYVM1dWFITXVkV3N2WTJWeWRHbG1hV05oZEdWZmNHOXNhV05wWlhNdlkyOXVkR1Z1ZEY5amIyMXRhWFJ0Wlc1ME1ETUdBMVVkSHdRc01Db3dLS0Ftb0NTR0ltaDBkSEE2THk5amNtd3VibWh6TG5WckwybHVkQzh4WkM5amNteGpNeTVqY213d0t3WURWUjBRQkNRd0lvQVBNakF5TURFd01qSXhNREl4TlRWYWdROHlNREl5TURNeE56RXdOVEUxTlZvd0h3WURWUjBqQkJnd0ZvQVVvSllmZ1lUTlBkNkVVS0w2UUxJekh4WTVQRkl3SFFZRFZSME9CQllFRkx0eXZZU3lhcWc2MEFFVVpneGswd3JqUkpjK01Ba0dBMVVkRXdRQ01BQXdHUVlKS29aSWh2WjlCMEVBQkF3d0Noc0VWamd1TXdNQ0JMQXdEUVlKS29aSWh2Y05BUUVMQlFBRGdnRUJBQmN6eThCOGp1UHBJZmFUTkZjeHJDMjJhQ1gveFlabWhyTC9OdklCQWFYMUc1aGppd21rR0tFMmhSVElyNjdQeFp4bVhzSnhpZ1JCTUhQbEkrbFkvK29rekgwR2k3YjVicWx3N3B4R0lnSk8wMDB3OHBGc3ZvOXc0MklZaEhvZHN2bkRWU3hoTVQwSjQ2UWhrOXNvRTBMam9FVUxLUVBQbFlHa2UvR2wzbTE3SXRGWXdPYlFIMGZNRXdtaXFCeWVJZno3Z1NjY096TDVjSXA2UGNaVE9qbzJJcVFwZ0VtaGpPY1JJbkVxQU5pdFNkam9pSkFKenBhYVpqWVRSZEhVWDdpN2FqRWlING05MW5GVys0QXFrTnR0bGI0V2NHS3NTbVdnZktLaGVGNElvWktNRTgweGVyU2dNeTh2dGpMT0JKQ0dYejB3TEdtUXVSbXhNVHE4OHE0PTwvWDUwOUNlcnRpZmljYXRlPg0KICAgICAgICA8L1g1MDlEYXRhPg0KICAgIDwvS2V5SW5mbz4NCjwvU2lnbmF0dXJlPg0K" + } + ] + } + } + ] +} diff --git a/src/test/resources/examples/full_examples/secondary-care/community/acute/nominated-pharmacy/nurse/prescribing-and-professional-codes/controlled-drugs/additional-instructions/2-Prepare-Request-200_OK.json b/src/test/resources/examples/full_examples/secondary-care/community/acute/nominated-pharmacy/nurse/prescribing-and-professional-codes/controlled-drugs/additional-instructions/2-Prepare-Request-200_OK.json new file mode 100644 index 00000000..8e37e47c --- /dev/null +++ b/src/test/resources/examples/full_examples/secondary-care/community/acute/nominated-pharmacy/nurse/prescribing-and-professional-codes/controlled-drugs/additional-instructions/2-Prepare-Request-200_OK.json @@ -0,0 +1,360 @@ +{ + "resourceType": "Bundle", + "id": "aef77afb-7e3c-427a-8657-2c427f71a271", + "identifier": { + "system": "https://tools.ietf.org/html/rfc4122", + "value": "ff9a1638-f33c-4075-b62b-2cb39f53835e" + }, + "type": "message", + "entry": [ + { + "fullUrl": "urn:uuid:3599c0e9-9292-413e-9270-9a1ef1ead99c", + "resource": { + "resourceType": "MessageHeader", + "id": "3599c0e9-9292-413e-9270-9a1ef1ead99c", + "eventCoding": { + "system": "https://fhir.nhs.uk/CodeSystem/message-event", + "code": "prescription-order", + "display": "Prescription Order" + }, + "sender": { + "identifier": { + "system": "https://fhir.nhs.uk/Id/ods-organization-code", + "value": "RBA" + }, + "reference": "urn:uuid:56166769-c1c4-4d07-afa8-132b5dfca666", + "display": "RAZIA|ALI" + }, + "source": { + "endpoint": "https://directory.spineservices.nhs.uk/STU3/Organization/RBA" + }, + "destination": [ + { + "endpoint": "https://directory.spineservices.nhs.uk/STU3/Organization/FH542", + "receiver": { + "identifier": { + "system": "https://fhir.nhs.uk/Id/ods-organization-code", + "value": "FH542" + } + } + } + ], + "focus": [ + { + "reference": "urn:uuid:00d3dd04-d162-49ce-a808-6f220906f1c8" + }, + { + "reference": "urn:uuid:78d3c2eb-009e-4ec8-a358-b042954aa9b2" + }, + { + "reference": "urn:uuid:a8c85454-f8cb-498d-9629-78e2cb5fa47a" + }, + { + "reference": "urn:uuid:56166769-c1c4-4d07-afa8-132b5dfca666" + }, + { + "reference": "urn:uuid:3b4b03a5-52ba-4ba6-9b82-70350aa109d8" + }, + { + "reference": "urn:uuid:302ec192-3766-4964-a9f7-561a4a1bdada" + } + ] + } + }, + { + "fullUrl": "urn:uuid:00d3dd04-d162-49ce-a808-6f220906f1c8", + "resource": { + "resourceType": "MedicationRequest", + "id": "00d3dd04-d162-49ce-a808-6f220906f1c8", + "extension": [ + { + "url": "https://fhir.nhs.uk/StructureDefinition/Extension-DM-PrescriptionType", + "valueCoding": { + "system": "https://fhir.nhs.uk/CodeSystem/prescription-type", + "code": "1001", + "display": "Outpatient Community Prescriber - Medical Prescriber" + } + }, + { + "url": "https://fhir.nhs.uk/StructureDefinition/Extension-DM-ControlledDrug", + "extension": [ + { + "url": "quantityWords", + "valueString": "twenty eight" + }, + { + "url": "schedule", + "valueCoding": { + "system": "https://fhir.nhs.uk/CodeSystem/medicationrequest-controlled-drug", + "code": "CD2", + "display": "Schedule 2" + } + } + ] + } + ], + "identifier": [ + { + "system": "https://fhir.nhs.uk/Id/prescription-order-item-number", + "value": "a54219b8-f741-4c47-b662-e4f8dfa49ab6" + } + ], + "status": "active", + "intent": "order", + "category": [ + { + "coding": [ + { + "system": "http://terminology.hl7.org/CodeSystem/medicationrequest-category", + "code": "outpatient", + "display": "Outpatient" + } + ] + } + ], + "medicationCodeableConcept": { + "coding": [ + { + "system": "http://snomed.info/sct", + "code": "36126511000001106", + "display": "Morphine 10mg modified-release tablets" + } + ] + }, + "subject": { + "reference": "urn:uuid:78d3c2eb-009e-4ec8-a358-b042954aa9b2" + }, + "requester": { + "reference": "urn:uuid:56166769-c1c4-4d07-afa8-132b5dfca666" + }, + "groupIdentifier": { + "extension": [ + { + "url": "https://fhir.nhs.uk/StructureDefinition/Extension-DM-PrescriptionId", + "valueIdentifier": { + "system": "https://fhir.nhs.uk/Id/prescription", + "value": "d0e593e6-a39e-4b14-8961-f93dad795779" + } + } + ], + "system": "https://fhir.nhs.uk/Id/prescription-order-number", + "value": "CD1BC3-A99968-4A788Y" + }, + "courseOfTherapyType": { + "coding": [ + { + "system": "http://terminology.hl7.org/CodeSystem/medicationrequest-course-of-therapy", + "code": "acute", + "display": "Short course (acute) therapy" + } + ] + }, + "note": [ + { + "text": "Dosage has been decreased on advice from the hospital." + } + ], + "dosageInstruction": [ + { + "text": "1 tablet, daily" + } + ], + "dispenseRequest": { + "extension": [ + { + "url": "https://fhir.nhs.uk/StructureDefinition/Extension-DM-PerformerSiteType", + "valueCoding": { + "system": "https://fhir.nhs.uk/CodeSystem/dispensing-site-preference", + "code": "P1" + } + } + ], + "quantity": { + "value": 28, + "unit": "tablet", + "system": "http://snomed.info/sct", + "code": "428673006" + }, + "performer": { + "identifier": { + "system": "https://fhir.nhs.uk/Id/ods-organization-code", + "value": "FH542" + } + } + }, + "substitution": { + "allowedBoolean": false + } + } + }, + { + "fullUrl": "urn:uuid:78d3c2eb-009e-4ec8-a358-b042954aa9b2", + "resource": { + "resourceType": "Patient", + "id": "78d3c2eb-009e-4ec8-a358-b042954aa9b2", + "identifier": [ + { + "system": "https://fhir.nhs.uk/Id/nhs-number", + "value": "9449305552" + } + ], + "name": [ + { + "use": "usual", + "family": "CORY", + "given": ["ETTA"], + "prefix": ["MISS"] + } + ], + "gender": "female", + "birthDate": "1999-01-04", + "address": [ + { + "use": "home", + "line": ["123 Dale Avenue", "Long Eaton", "Nottingham"], + "postalCode": "NG10 1NP" + } + ], + "generalPractitioner": [ + { + "identifier": { + "system": "https://fhir.nhs.uk/Id/ods-organization-code", + "value": "B81001" + } + } + ] + } + }, + { + "fullUrl": "urn:uuid:a8c85454-f8cb-498d-9629-78e2cb5fa47a", + "resource": { + "resourceType": "Practitioner", + "id": "a8c85454-f8cb-498d-9629-78e2cb5fa47a", + "identifier": [ + { + "system": "https://fhir.nhs.uk/Id/sds-user-id", + "value": "555086690109" + }, + { + "system": "https://fhir.hl7.org.uk/Id/nmc-number", + "value": "12A3456B" + } + ], + "name": [ + { + "family": "Userq", + "given": ["Random"], + "prefix": ["MR"] + } + ] + } + }, + { + "fullUrl": "urn:uuid:56166769-c1c4-4d07-afa8-132b5dfca666", + "resource": { + "resourceType": "PractitionerRole", + "id": "56166769-c1c4-4d07-afa8-132b5dfca666", + "identifier": [ + { + "system": "https://fhir.nhs.uk/Id/sds-role-profile-id", + "value": "100102238986" + }, + { + "system": "https://fhir.hl7.org.uk/Id/nhsbsa-spurious-code", + "value": "612345" + } + ], + "practitioner": { + "reference": "urn:uuid:a8c85454-f8cb-498d-9629-78e2cb5fa47a" + }, + "organization": { + "reference": "urn:uuid:3b4b03a5-52ba-4ba6-9b82-70350aa109d8" + }, + "code": [ + { + "coding": [ + { + "system": "https://fhir.nhs.uk/CodeSystem/NHSDigital-SDS-JobRoleCode", + "code": "S8001:G8001:R8001", + "display": "Nurse Access Role" + } + ] + } + ], + "telecom": [ + { + "system": "phone", + "value": "01234567890", + "use": "work" + } + ] + } + }, + { + "fullUrl": "urn:uuid:3b4b03a5-52ba-4ba6-9b82-70350aa109d8", + "resource": { + "resourceType": "Organization", + "id": "3b4b03a5-52ba-4ba6-9b82-70350aa109d8", + "identifier": [ + { + "system": "https://fhir.nhs.uk/Id/ods-organization-code", + "value": "A99968" + } + ], + "name": "SOMERSET BOWEL CANCER SCREENING CENTRE", + "address": [ + { + "use": "work", + "line": ["MUSGROVE PARK HOSPITAL"], + "city": "TAUNTON", + "postalCode": "TA1 5DA" + } + ], + "telecom": [ + { + "system": "phone", + "value": "01823 333444", + "use": "work" + } + ], + "partOf": { + "identifier": { + "system": "https://fhir.nhs.uk/Id/ods-organization-code", + "value": "RBA" + }, + "display": "TAUNTON AND SOMERSET NHS FOUNDATION TRUST" + } + } + }, + { + "fullUrl": "urn:uuid:302ec192-3766-4964-a9f7-561a4a1bdada", + "resource": { + "resourceType": "CommunicationRequest", + "id": "302ec192-3766-4964-a9f7-561a4a1bdada", + "status": "active", + "payload": [ + { + "contentString": "Your medication review is due. Please make an appointment to see your GP." + } + ], + "requester": { + "type": "Organization", + "identifier": { + "system": "https://fhir.nhs.uk/Id/ods-organization-code", + "value": "RBA" + }, + "display": "TAUNTON AND SOMERSET NHS FOUNDATION TRUST" + }, + "recipient": [ + { + "type": "Patient", + "identifier": { + "system": "https://fhir.nhs.uk/Id/nhs-number", + "value": "9453740519" + } + } + ] + } + } + ] +} diff --git a/src/test/resources/examples/full_examples/secondary-care/community/acute/nominated-pharmacy/nurse/prescribing-and-professional-codes/controlled-drugs/additional-instructions/2-Prepare-Response-200_OK.json b/src/test/resources/examples/full_examples/secondary-care/community/acute/nominated-pharmacy/nurse/prescribing-and-professional-codes/controlled-drugs/additional-instructions/2-Prepare-Response-200_OK.json new file mode 100644 index 00000000..29621b38 --- /dev/null +++ b/src/test/resources/examples/full_examples/secondary-care/community/acute/nominated-pharmacy/nurse/prescribing-and-professional-codes/controlled-drugs/additional-instructions/2-Prepare-Response-200_OK.json @@ -0,0 +1,17 @@ +{ + "resourceType": "Parameters", + "parameter": [ + { + "name": "digest", + "valueString": "PFNpZ25lZEluZm8geG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvMDkveG1sZHNpZyMiPjxDYW5vbmljYWxpemF0aW9uTWV0aG9kIEFsZ29yaXRobT0iaHR0cDovL3d3dy53My5vcmcvMjAwMS8xMC94bWwtZXhjLWMxNG4jIj48L0Nhbm9uaWNhbGl6YXRpb25NZXRob2Q+PFNpZ25hdHVyZU1ldGhvZCBBbGdvcml0aG09Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvMDkveG1sZHNpZyNyc2Etc2hhMSI+PC9TaWduYXR1cmVNZXRob2Q+PFJlZmVyZW5jZT48VHJhbnNmb3Jtcz48VHJhbnNmb3JtIEFsZ29yaXRobT0iaHR0cDovL3d3dy53My5vcmcvMjAwMS8xMC94bWwtZXhjLWMxNG4jIj48L1RyYW5zZm9ybT48L1RyYW5zZm9ybXM+PERpZ2VzdE1ldGhvZCBBbGdvcml0aG09Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvMDkveG1sZHNpZyNzaGExIj48L0RpZ2VzdE1ldGhvZD48RGlnZXN0VmFsdWU+L0VGd2haZnZWL05QTVdpM2UrN0VGcTA1QWJzPTwvRGlnZXN0VmFsdWU+PC9SZWZlcmVuY2U+PC9TaWduZWRJbmZvPg==" + }, + { + "name": "timestamp", + "valueString": "2022-10-25T10:24:34+00:00" + }, + { + "name": "algorithm", + "valueString": "RS1" + } + ] +} diff --git a/src/test/resources/examples/full_examples/secondary-care/community/acute/nominated-pharmacy/nurse/prescribing-and-professional-codes/controlled-drugs/additional-instructions/2-Process-Request-Send-200_OK.json b/src/test/resources/examples/full_examples/secondary-care/community/acute/nominated-pharmacy/nurse/prescribing-and-professional-codes/controlled-drugs/additional-instructions/2-Process-Request-Send-200_OK.json new file mode 100644 index 00000000..6de3dcdc --- /dev/null +++ b/src/test/resources/examples/full_examples/secondary-care/community/acute/nominated-pharmacy/nurse/prescribing-and-professional-codes/controlled-drugs/additional-instructions/2-Process-Request-Send-200_OK.json @@ -0,0 +1,413 @@ +{ + "resourceType": "Bundle", + "id": "aef77afb-7e3c-427a-8657-2c427f71a271", + "identifier": { + "system": "https://tools.ietf.org/html/rfc4122", + "value": "6e2a1b05-21c9-4b0f-bdb0-7daeef739689" + }, + "type": "message", + "entry": [ + { + "fullUrl": "urn:uuid:3599c0e9-9292-413e-9270-9a1ef1ead99c", + "resource": { + "resourceType": "MessageHeader", + "id": "3599c0e9-9292-413e-9270-9a1ef1ead99c", + "eventCoding": { + "system": "https://fhir.nhs.uk/CodeSystem/message-event", + "code": "prescription-order", + "display": "Prescription Order" + }, + "sender": { + "identifier": { + "system": "https://fhir.nhs.uk/Id/ods-organization-code", + "value": "RBA" + }, + "reference": "urn:uuid:56166769-c1c4-4d07-afa8-132b5dfca666", + "display": "RAZIA|ALI" + }, + "source": { + "endpoint": "https://directory.spineservices.nhs.uk/STU3/Organization/RBA" + }, + "destination": [ + { + "endpoint": "https://directory.spineservices.nhs.uk/STU3/Organization/FH542", + "receiver": { + "identifier": { + "system": "https://fhir.nhs.uk/Id/ods-organization-code", + "value": "FH542" + } + } + } + ], + "focus": [ + { + "reference": "urn:uuid:00d3dd04-d162-49ce-a808-6f220906f1c8" + }, + { + "reference": "urn:uuid:78d3c2eb-009e-4ec8-a358-b042954aa9b2" + }, + { + "reference": "urn:uuid:a8c85454-f8cb-498d-9629-78e2cb5fa47a" + }, + { + "reference": "urn:uuid:56166769-c1c4-4d07-afa8-132b5dfca666" + }, + { + "reference": "urn:uuid:3b4b03a5-52ba-4ba6-9b82-70350aa109d8" + }, + { + "reference": "urn:uuid:302ec192-3766-4964-a9f7-561a4a1bdada" + }, + { + "reference": "urn:uuid:b2a46b68-9e1e-49e6-a132-88b3308ed561" + } + ] + } + }, + { + "fullUrl": "urn:uuid:00d3dd04-d162-49ce-a808-6f220906f1c8", + "resource": { + "resourceType": "MedicationRequest", + "id": "00d3dd04-d162-49ce-a808-6f220906f1c8", + "extension": [ + { + "url": "https://fhir.nhs.uk/StructureDefinition/Extension-DM-PrescriptionType", + "valueCoding": { + "system": "https://fhir.nhs.uk/CodeSystem/prescription-type", + "code": "1001", + "display": "Outpatient Community Prescriber - Medical Prescriber" + } + }, + { + "url": "https://fhir.nhs.uk/StructureDefinition/Extension-DM-ControlledDrug", + "extension": [ + { + "url": "quantityWords", + "valueString": "twenty eight" + }, + { + "url": "schedule", + "valueCoding": { + "system": "https://fhir.nhs.uk/CodeSystem/medicationrequest-controlled-drug", + "code": "CD2", + "display": "Schedule 2" + } + } + ] + } + ], + "identifier": [ + { + "system": "https://fhir.nhs.uk/Id/prescription-order-item-number", + "value": "a54219b8-f741-4c47-b662-e4f8dfa49ab6" + } + ], + "status": "active", + "intent": "order", + "category": [ + { + "coding": [ + { + "system": "http://terminology.hl7.org/CodeSystem/medicationrequest-category", + "code": "outpatient", + "display": "Outpatient" + } + ] + } + ], + "medicationCodeableConcept": { + "coding": [ + { + "system": "http://snomed.info/sct", + "code": "36126511000001106", + "display": "Morphine 10mg modified-release tablets" + } + ] + }, + "subject": { + "reference": "urn:uuid:78d3c2eb-009e-4ec8-a358-b042954aa9b2" + }, + "requester": { + "reference": "urn:uuid:56166769-c1c4-4d07-afa8-132b5dfca666" + }, + "groupIdentifier": { + "extension": [ + { + "url": "https://fhir.nhs.uk/StructureDefinition/Extension-DM-PrescriptionId", + "valueIdentifier": { + "system": "https://fhir.nhs.uk/Id/prescription", + "value": "d0e593e6-a39e-4b14-8961-f93dad795779" + } + } + ], + "system": "https://fhir.nhs.uk/Id/prescription-order-number", + "value": "CD1BC3-A99968-4A788Y" + }, + "courseOfTherapyType": { + "coding": [ + { + "system": "http://terminology.hl7.org/CodeSystem/medicationrequest-course-of-therapy", + "code": "acute", + "display": "Short course (acute) therapy" + } + ] + }, + "note": [ + { + "text": "Dosage has been decreased on advice from the hospital." + } + ], + "dosageInstruction": [ + { + "text": "1 tablet, daily" + } + ], + "dispenseRequest": { + "extension": [ + { + "url": "https://fhir.nhs.uk/StructureDefinition/Extension-DM-PerformerSiteType", + "valueCoding": { + "system": "https://fhir.nhs.uk/CodeSystem/dispensing-site-preference", + "code": "P1" + } + } + ], + "quantity": { + "value": 28, + "unit": "tablet", + "system": "http://snomed.info/sct", + "code": "428673006" + }, + "performer": { + "identifier": { + "system": "https://fhir.nhs.uk/Id/ods-organization-code", + "value": "FH542" + } + } + }, + "substitution": { + "allowedBoolean": false + } + } + }, + { + "fullUrl": "urn:uuid:78d3c2eb-009e-4ec8-a358-b042954aa9b2", + "resource": { + "resourceType": "Patient", + "id": "78d3c2eb-009e-4ec8-a358-b042954aa9b2", + "identifier": [ + { + "system": "https://fhir.nhs.uk/Id/nhs-number", + "value": "9449305552" + } + ], + "name": [ + { + "use": "usual", + "family": "CORY", + "given": ["ETTA"], + "prefix": ["MISS"] + } + ], + "gender": "female", + "birthDate": "1999-01-04", + "address": [ + { + "use": "home", + "line": ["123 Dale Avenue", "Long Eaton", "Nottingham"], + "postalCode": "NG10 1NP" + } + ], + "generalPractitioner": [ + { + "identifier": { + "system": "https://fhir.nhs.uk/Id/ods-organization-code", + "value": "B81001" + } + } + ] + } + }, + { + "fullUrl": "urn:uuid:a8c85454-f8cb-498d-9629-78e2cb5fa47a", + "resource": { + "resourceType": "Practitioner", + "id": "a8c85454-f8cb-498d-9629-78e2cb5fa47a", + "identifier": [ + { + "system": "https://fhir.nhs.uk/Id/sds-user-id", + "value": "555086690109" + }, + { + "system": "https://fhir.hl7.org.uk/Id/nmc-number", + "value": "12A3456B" + } + ], + "name": [ + { + "family": "Userq", + "given": ["Random"], + "prefix": ["MR"] + } + ] + } + }, + { + "fullUrl": "urn:uuid:56166769-c1c4-4d07-afa8-132b5dfca666", + "resource": { + "resourceType": "PractitionerRole", + "id": "56166769-c1c4-4d07-afa8-132b5dfca666", + "identifier": [ + { + "system": "https://fhir.nhs.uk/Id/sds-role-profile-id", + "value": "100102238986" + }, + { + "system": "https://fhir.hl7.org.uk/Id/nhsbsa-spurious-code", + "value": "612345" + } + ], + "practitioner": { + "reference": "urn:uuid:a8c85454-f8cb-498d-9629-78e2cb5fa47a" + }, + "organization": { + "reference": "urn:uuid:3b4b03a5-52ba-4ba6-9b82-70350aa109d8" + }, + "code": [ + { + "coding": [ + { + "system": "https://fhir.nhs.uk/CodeSystem/NHSDigital-SDS-JobRoleCode", + "code": "S8001:G8001:R8001", + "display": "Nurse Access Role" + } + ] + } + ], + "telecom": [ + { + "system": "phone", + "value": "01234567890", + "use": "work" + } + ] + } + }, + { + "fullUrl": "urn:uuid:3b4b03a5-52ba-4ba6-9b82-70350aa109d8", + "resource": { + "resourceType": "Organization", + "id": "3b4b03a5-52ba-4ba6-9b82-70350aa109d8", + "identifier": [ + { + "system": "https://fhir.nhs.uk/Id/ods-organization-code", + "value": "A99968" + } + ], + "name": "SOMERSET BOWEL CANCER SCREENING CENTRE", + "address": [ + { + "use": "work", + "line": ["MUSGROVE PARK HOSPITAL"], + "city": "TAUNTON", + "postalCode": "TA1 5DA" + } + ], + "telecom": [ + { + "system": "phone", + "value": "01823 333444", + "use": "work" + } + ], + "partOf": { + "identifier": { + "system": "https://fhir.nhs.uk/Id/ods-organization-code", + "value": "RBA" + }, + "display": "TAUNTON AND SOMERSET NHS FOUNDATION TRUST" + } + } + }, + { + "fullUrl": "urn:uuid:302ec192-3766-4964-a9f7-561a4a1bdada", + "resource": { + "resourceType": "CommunicationRequest", + "id": "302ec192-3766-4964-a9f7-561a4a1bdada", + "status": "active", + "payload": [ + { + "contentString": "Your medication review is due. Please make an appointment to see your GP." + } + ], + "requester": { + "type": "Organization", + "identifier": { + "system": "https://fhir.nhs.uk/Id/ods-organization-code", + "value": "RBA" + }, + "display": "TAUNTON AND SOMERSET NHS FOUNDATION TRUST" + }, + "recipient": [ + { + "type": "Patient", + "identifier": { + "system": "https://fhir.nhs.uk/Id/nhs-number", + "value": "9453740519" + } + } + ] + } + }, + { + "fullUrl": "urn:uuid:b2a46b68-9e1e-49e6-a132-88b3308ed561", + "resource": { + "resourceType": "Provenance", + "id": "b2a46b68-9e1e-49e6-a132-88b3308ed561", + "target": [ + { + "reference": "urn:uuid:00d3dd04-d162-49ce-a808-6f220906f1c8" + }, + { + "reference": "urn:uuid:78d3c2eb-009e-4ec8-a358-b042954aa9b2" + }, + { + "reference": "urn:uuid:a8c85454-f8cb-498d-9629-78e2cb5fa47a" + }, + { + "reference": "urn:uuid:56166769-c1c4-4d07-afa8-132b5dfca666" + }, + { + "reference": "urn:uuid:3b4b03a5-52ba-4ba6-9b82-70350aa109d8" + }, + { + "reference": "urn:uuid:302ec192-3766-4964-a9f7-561a4a1bdada" + } + ], + "recorded": "2008-02-27T11:38:00+00:00", + "agent": [ + { + "who": { + "reference": "urn:uuid:56166769-c1c4-4d07-afa8-132b5dfca666" + } + } + ], + "signature": [ + { + "type": [ + { + "system": "urn:iso-astm:E1762-95:2013", + "code": "1.2.840.10065.1.12.1.1" + } + ], + "when": "2021-05-07T14:47:49+00:00", + "who": { + "reference": "urn:uuid:56166769-c1c4-4d07-afa8-132b5dfca666" + }, + "data": "DQo8U2lnbmF0dXJlIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwLzA5L3htbGRzaWcjIj4NCiAgICA8U2lnbmVkSW5mbz48Q2Fub25pY2FsaXphdGlvbk1ldGhvZCBBbGdvcml0aG09Imh0dHA6Ly93d3cudzMub3JnLzIwMDEvMTAveG1sLWV4Yy1jMTRuIyI+PC9DYW5vbmljYWxpemF0aW9uTWV0aG9kPjxTaWduYXR1cmVNZXRob2QgQWxnb3JpdGhtPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwLzA5L3htbGRzaWcjcnNhLXNoYTEiPjwvU2lnbmF0dXJlTWV0aG9kPjxSZWZlcmVuY2U+PFRyYW5zZm9ybXM+PFRyYW5zZm9ybSBBbGdvcml0aG09Imh0dHA6Ly93d3cudzMub3JnLzIwMDEvMTAveG1sLWV4Yy1jMTRuIyI+PC9UcmFuc2Zvcm0+PC9UcmFuc2Zvcm1zPjxEaWdlc3RNZXRob2QgQWxnb3JpdGhtPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwLzA5L3htbGRzaWcjc2hhMSI+PC9EaWdlc3RNZXRob2Q+PERpZ2VzdFZhbHVlPlp0WXFvV3loemo3M0JYdE5qWWR0Z0w5R2xlcz08L0RpZ2VzdFZhbHVlPjwvUmVmZXJlbmNlPjwvU2lnbmVkSW5mbz4NCiAgICA8U2lnbmF0dXJlVmFsdWU+UFdER01EYjNPZnpkOWM1bkprN0ZOQ1gwc29LVmxkV1dyOTUwTWxQNVQ3c1JPYTBrWkJBbFkwRFZlYTlJSUxQRk5XS2srL2pnUGp2RGc3RkFNazZoNUhwRGV3clFUUVV6NUovd0N3eUQxN3JyVXBoR01OVWM1V2g4NjVzVTBKeFNHblFmVk1LaHZSTW83Wnd6WnREOCtxNWxFa01nbnZ1SzJ0MDE1UHNaRTEwPTwvU2lnbmF0dXJlVmFsdWU+DQogICAgPEtleUluZm8+DQogICAgICAgIDxYNTA5RGF0YT4NCiAgICAgICAgICAgIDxYNTA5Q2VydGlmaWNhdGU+TUlJRHVEQ0NBcUNnQXdJQkFnSUVYY210SHpBTkJna3Foa2lHOXcwQkFRc0ZBREEyTVF3d0NnWURWUVFLRXdOdWFITXhDekFKQmdOVkJBc1RBa05CTVJrd0Z3WURWUVFERXhCT1NGTWdTVTVVSUV4bGRtVnNJREZFTUI0WERUSXdNVEF5TWpFd01qRTFOVm9YRFRJeU1UQXlNakV3TlRFMU5Wb3dRekVNTUFvR0ExVUVDaE1EYm1oek1ROHdEUVlEVlFRTEV3WlFaVzl3YkdVeElqQWdCZ05WQkFNTUdUVTFOVEkxTXpVeU1URXdPRjlTUVU1RVQwMWZWVk5GVWxFd2daOHdEUVlKS29aSWh2Y05BUUVCQlFBRGdZMEFNSUdKQW9HQkFLdDRzek53N09BSDdBUVJyRGUveEJJbXNNbU1pUzlFc3JUM2EzcC9MaDNicmR6STlhYWpUVVoyYi9jdmJPYTdQZVlkN3UrSzRhMlpkMFhrKzBHRm1ZR3pTVlg2aVlqYmx3cjB2YWkzMXpWN0crbEd2SHhINnBTb0xDd0lDYVpBRndhYmVENU96OTQreUEzYVdOV3RHVjBEZmg5cXdIM1pGQ0lNUnN2ZXJOMXBBZ01CQUFHamdnRkRNSUlCUHpBT0JnTlZIUThCQWY4RUJBTUNCa0F3WlFZRFZSMGdBUUgvQkZzd1dUQlhCZ3NxaGpvQWlYdG1BQU1DQURCSU1FWUdDQ3NHQVFVRkJ3SUJGanBvZEhSd2N6b3ZMM0JyYVM1dWFITXVkV3N2WTJWeWRHbG1hV05oZEdWZmNHOXNhV05wWlhNdlkyOXVkR1Z1ZEY5amIyMXRhWFJ0Wlc1ME1ETUdBMVVkSHdRc01Db3dLS0Ftb0NTR0ltaDBkSEE2THk5amNtd3VibWh6TG5WckwybHVkQzh4WkM5amNteGpNeTVqY213d0t3WURWUjBRQkNRd0lvQVBNakF5TURFd01qSXhNREl4TlRWYWdROHlNREl5TURNeE56RXdOVEUxTlZvd0h3WURWUjBqQkJnd0ZvQVVvSllmZ1lUTlBkNkVVS0w2UUxJekh4WTVQRkl3SFFZRFZSME9CQllFRkx0eXZZU3lhcWc2MEFFVVpneGswd3JqUkpjK01Ba0dBMVVkRXdRQ01BQXdHUVlKS29aSWh2WjlCMEVBQkF3d0Noc0VWamd1TXdNQ0JMQXdEUVlKS29aSWh2Y05BUUVMQlFBRGdnRUJBQmN6eThCOGp1UHBJZmFUTkZjeHJDMjJhQ1gveFlabWhyTC9OdklCQWFYMUc1aGppd21rR0tFMmhSVElyNjdQeFp4bVhzSnhpZ1JCTUhQbEkrbFkvK29rekgwR2k3YjVicWx3N3B4R0lnSk8wMDB3OHBGc3ZvOXc0MklZaEhvZHN2bkRWU3hoTVQwSjQ2UWhrOXNvRTBMam9FVUxLUVBQbFlHa2UvR2wzbTE3SXRGWXdPYlFIMGZNRXdtaXFCeWVJZno3Z1NjY096TDVjSXA2UGNaVE9qbzJJcVFwZ0VtaGpPY1JJbkVxQU5pdFNkam9pSkFKenBhYVpqWVRSZEhVWDdpN2FqRWlING05MW5GVys0QXFrTnR0bGI0V2NHS3NTbVdnZktLaGVGNElvWktNRTgweGVyU2dNeTh2dGpMT0JKQ0dYejB3TEdtUXVSbXhNVHE4OHE0PTwvWDUwOUNlcnRpZmljYXRlPg0KICAgICAgICA8L1g1MDlEYXRhPg0KICAgIDwvS2V5SW5mbz4NCjwvU2lnbmF0dXJlPg0K" + } + ] + } + } + ] +} diff --git a/src/test/resources/examples/full_examples/secondary-care/community/acute/nominated-pharmacy/nurse/professional-code/1-Prepare-Request-200_OK.json b/src/test/resources/examples/full_examples/secondary-care/community/acute/nominated-pharmacy/nurse/professional-code/1-Prepare-Request-200_OK.json new file mode 100644 index 00000000..25121a54 --- /dev/null +++ b/src/test/resources/examples/full_examples/secondary-care/community/acute/nominated-pharmacy/nurse/professional-code/1-Prepare-Request-200_OK.json @@ -0,0 +1,333 @@ +{ + "resourceType": "Bundle", + "id": "aef77afb-7e3c-427a-8657-2c427f71a271", + "identifier": { + "system": "https://tools.ietf.org/html/rfc4122", + "value": "d91dbd11-43ba-442e-a239-0ac0dd1b423c" + }, + "type": "message", + "entry": [ + { + "fullUrl": "urn:uuid:aef77afb-7e3c-427a-8657-2c427f71a271", + "resource": { + "resourceType": "MessageHeader", + "id": "3599c0e9-9292-413e-9270-9a1ef1ead99c", + "eventCoding": { + "system": "https://fhir.nhs.uk/CodeSystem/message-event", + "code": "prescription-order", + "display": "Prescription Order" + }, + "sender": { + "identifier": { + "system": "https://fhir.nhs.uk/Id/ods-organization-code", + "value": "RBA" + }, + "reference": "urn:uuid:56166769-c1c4-4d07-afa8-132b5dfca666", + "display": "RAZIA|ALI" + }, + "source": { + "endpoint": "https://directory.spineservices.nhs.uk/STU3/Organization/RBA" + }, + "destination": [ + { + "endpoint": "https://directory.spineservices.nhs.uk/STU3/Organization/FH542", + "receiver": { + "identifier": { + "system": "https://fhir.nhs.uk/Id/ods-organization-code", + "value": "FH542" + } + } + } + ], + "focus": [ + { + "reference": "urn:uuid:56166769-c1c4-4d07-afa8-132b5dfca666" + }, + { + "reference": "urn:uuid:a54219b8-f741-4c47-b662-e4f8dfa49ab6" + } + ] + } + }, + { + "fullUrl": "urn:uuid:a54219b8-f741-4c47-b662-e4f8dfa49ab6", + "resource": { + "resourceType": "MedicationRequest", + "id": "a54219b8-f741-4c47-b662-e4f8dfa49ab6", + "extension": [ + { + "url": "https://fhir.nhs.uk/StructureDefinition/Extension-DM-PrescriptionType", + "valueCoding": { + "system": "https://fhir.nhs.uk/CodeSystem/prescription-type", + "code": "1001", + "display": "Outpatient Community Prescriber - Medical Prescriber" + } + } + ], + "identifier": [ + { + "system": "https://fhir.nhs.uk/Id/prescription-order-item-number", + "value": "a54219b8-f741-4c47-b662-e4f8dfa49ab6" + } + ], + "status": "active", + "intent": "order", + "category": [ + { + "coding": [ + { + "system": "http://terminology.hl7.org/CodeSystem/medicationrequest-category", + "code": "outpatient", + "display": "Outpatient" + } + ] + } + ], + "medicationCodeableConcept": { + "coding": [ + { + "system": "http://snomed.info/sct", + "code": "15517911000001104", + "display": "Methotrexate 10mg/0.2ml solution for injection pre-filled syringes" + } + ] + }, + "subject": { + "reference": "urn:uuid:78d3c2eb-009e-4ec8-a358-b042954aa9b2" + }, + "requester": { + "reference": "urn:uuid:56166769-c1c4-4d07-afa8-132b5dfca666" + }, + "groupIdentifier": { + "extension": [ + { + "url": "https://fhir.nhs.uk/StructureDefinition/Extension-DM-PrescriptionId", + "valueIdentifier": { + "system": "https://fhir.nhs.uk/Id/prescription", + "value": "c3f8dfb0-eed2-428d-bccc-a7df482d2d03" + } + } + ], + "system": "https://fhir.nhs.uk/Id/prescription-order-number", + "value": "B28780-A99968-4DD892" + }, + "courseOfTherapyType": { + "coding": [ + { + "system": "http://terminology.hl7.org/CodeSystem/medicationrequest-course-of-therapy", + "code": "acute", + "display": "Short course (acute) therapy" + } + ] + }, + "dosageInstruction": [ + { + "text": "Inject 10 milligram - 5 times a day - Subcutaneous route - for 10 days", + "timing": { + "repeat": { + "frequency": 5, + "period": 1, + "periodUnit": "d", + "boundsDuration": { + "value": 10, + "unit": "day", + "system": "http://unitsofmeasure.org", + "code": "d" + } + } + }, + "method": { + "coding": [ + { + "system": "http://snomed.info/sct", + "code": "422145002", + "display": "Inject" + } + ] + }, + "route": { + "coding": [ + { + "system": "http://snomed.info/sct", + "code": "34206005", + "display": "Subcutaneous route" + } + ] + }, + "doseAndRate": [ + { + "doseQuantity": { + "value": 10, + "unit": "milligram", + "system": "http://unitsofmeasure.org", + "code": "mg" + } + } + ] + } + ], + "dispenseRequest": { + "extension": [ + { + "url": "https://fhir.nhs.uk/StructureDefinition/Extension-DM-PerformerSiteType", + "valueCoding": { + "system": "https://fhir.nhs.uk/CodeSystem/dispensing-site-preference", + "code": "P1" + } + } + ], + "quantity": { + "value": 1, + "unit": "pre-filled disposable injection", + "system": "http://snomed.info/sct", + "code": "3318611000001103" + }, + "performer": { + "identifier": { + "system": "https://fhir.nhs.uk/Id/ods-organization-code", + "value": "FH542" + } + } + }, + "substitution": { + "allowedBoolean": false + } + } + }, + { + "fullUrl": "urn:uuid:78d3c2eb-009e-4ec8-a358-b042954aa9b2", + "resource": { + "resourceType": "Patient", + "id": "78d3c2eb-009e-4ec8-a358-b042954aa9b2", + "identifier": [ + { + "system": "https://fhir.nhs.uk/Id/nhs-number", + "value": "9449305552" + } + ], + "name": [ + { + "use": "usual", + "family": "CORY", + "given": ["ETTA"], + "prefix": ["MISS"] + } + ], + "gender": "female", + "birthDate": "1999-01-04", + "address": [ + { + "use": "home", + "line": ["123 Dale Avenue", "Long Eaton", "Nottingham"], + "postalCode": "NG10 1NP" + } + ], + "generalPractitioner": [ + { + "identifier": { + "system": "https://fhir.nhs.uk/Id/ods-organization-code", + "value": "B81001" + } + } + ] + } + }, + { + "fullUrl": "urn:uuid:a8c85454-f8cb-498d-9629-78e2cb5fa47a", + "resource": { + "resourceType": "Practitioner", + "id": "a8c85454-f8cb-498d-9629-78e2cb5fa47a", + "identifier": [ + { + "system": "https://fhir.nhs.uk/Id/sds-user-id", + "value": "555086690109" + }, + { + "system": "https://fhir.hl7.org.uk/Id/nmc-number", + "value": "12A3456B" + } + ], + "name": [ + { + "family": "Userq", + "given": ["Random"], + "prefix": ["MR"] + } + ] + } + }, + { + "fullUrl": "urn:uuid:56166769-c1c4-4d07-afa8-132b5dfca666", + "resource": { + "resourceType": "PractitionerRole", + "id": "56166769-c1c4-4d07-afa8-132b5dfca666", + "identifier": [ + { + "system": "https://fhir.nhs.uk/Id/sds-role-profile-id", + "value": "100102238986" + } + ], + "practitioner": { + "reference": "urn:uuid:a8c85454-f8cb-498d-9629-78e2cb5fa47a" + }, + "organization": { + "reference": "urn:uuid:3b4b03a5-52ba-4ba6-9b82-70350aa109d8" + }, + "code": [ + { + "coding": [ + { + "system": "https://fhir.nhs.uk/CodeSystem/NHSDigital-SDS-JobRoleCode", + "code": "S8001:G8001:R8001", + "display": "Nurse Access Role" + } + ] + } + ], + "telecom": [ + { + "system": "phone", + "value": "01234567890", + "use": "work" + } + ] + } + }, + { + "fullUrl": "urn:uuid:3b4b03a5-52ba-4ba6-9b82-70350aa109d8", + "resource": { + "resourceType": "Organization", + "id": "3b4b03a5-52ba-4ba6-9b82-70350aa109d8", + "identifier": [ + { + "system": "https://fhir.nhs.uk/Id/ods-organization-code", + "value": "A99968" + } + ], + "name": "SOMERSET BOWEL CANCER SCREENING CENTRE", + "address": [ + { + "use": "work", + "line": ["MUSGROVE PARK HOSPITAL"], + "city": "TAUNTON", + "postalCode": "TA1 5DA" + } + ], + "telecom": [ + { + "system": "phone", + "value": "01823 333444", + "use": "work" + } + ], + "partOf": { + "identifier": { + "system": "https://fhir.nhs.uk/Id/ods-organization-code", + "value": "RBA" + }, + "display": "TAUNTON AND SOMERSET NHS FOUNDATION TRUST" + } + } + } + ] +} diff --git a/src/test/resources/examples/full_examples/secondary-care/community/acute/nominated-pharmacy/nurse/professional-code/1-Prepare-Response-200_OK.json b/src/test/resources/examples/full_examples/secondary-care/community/acute/nominated-pharmacy/nurse/professional-code/1-Prepare-Response-200_OK.json new file mode 100644 index 00000000..b74eac30 --- /dev/null +++ b/src/test/resources/examples/full_examples/secondary-care/community/acute/nominated-pharmacy/nurse/professional-code/1-Prepare-Response-200_OK.json @@ -0,0 +1,17 @@ +{ + "resourceType": "Parameters", + "parameter": [ + { + "name": "digest", + "valueString": "PFNpZ25lZEluZm8geG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvMDkveG1sZHNpZyMiPjxDYW5vbmljYWxpemF0aW9uTWV0aG9kIEFsZ29yaXRobT0iaHR0cDovL3d3dy53My5vcmcvMjAwMS8xMC94bWwtZXhjLWMxNG4jIj48L0Nhbm9uaWNhbGl6YXRpb25NZXRob2Q+PFNpZ25hdHVyZU1ldGhvZCBBbGdvcml0aG09Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvMDkveG1sZHNpZyNyc2Etc2hhMSI+PC9TaWduYXR1cmVNZXRob2Q+PFJlZmVyZW5jZT48VHJhbnNmb3Jtcz48VHJhbnNmb3JtIEFsZ29yaXRobT0iaHR0cDovL3d3dy53My5vcmcvMjAwMS8xMC94bWwtZXhjLWMxNG4jIj48L1RyYW5zZm9ybT48L1RyYW5zZm9ybXM+PERpZ2VzdE1ldGhvZCBBbGdvcml0aG09Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvMDkveG1sZHNpZyNzaGExIj48L0RpZ2VzdE1ldGhvZD48RGlnZXN0VmFsdWU+dDBqUDRkTVRnY0JLQXpENUtHVnJuNm5GSHMwPTwvRGlnZXN0VmFsdWU+PC9SZWZlcmVuY2U+PC9TaWduZWRJbmZvPg==" + }, + { + "name": "timestamp", + "valueString": "2022-10-25T10:24:34+00:00" + }, + { + "name": "algorithm", + "valueString": "RS1" + } + ] +} diff --git a/src/test/resources/examples/full_examples/secondary-care/community/acute/nominated-pharmacy/nurse/professional-code/1-Process-Request-Send-200_OK.json b/src/test/resources/examples/full_examples/secondary-care/community/acute/nominated-pharmacy/nurse/professional-code/1-Process-Request-Send-200_OK.json new file mode 100644 index 00000000..a18569e0 --- /dev/null +++ b/src/test/resources/examples/full_examples/secondary-care/community/acute/nominated-pharmacy/nurse/professional-code/1-Process-Request-Send-200_OK.json @@ -0,0 +1,368 @@ +{ + "resourceType": "Bundle", + "id": "aef77afb-7e3c-427a-8657-2c427f71a271", + "identifier": { + "system": "https://tools.ietf.org/html/rfc4122", + "value": "163f7c81-1561-419e-8333-5ef39a4158dd" + }, + "type": "message", + "entry": [ + { + "fullUrl": "urn:uuid:aef77afb-7e3c-427a-8657-2c427f71a271", + "resource": { + "resourceType": "MessageHeader", + "id": "3599c0e9-9292-413e-9270-9a1ef1ead99c", + "eventCoding": { + "system": "https://fhir.nhs.uk/CodeSystem/message-event", + "code": "prescription-order", + "display": "Prescription Order" + }, + "sender": { + "identifier": { + "system": "https://fhir.nhs.uk/Id/ods-organization-code", + "value": "RBA" + }, + "reference": "urn:uuid:56166769-c1c4-4d07-afa8-132b5dfca666", + "display": "RAZIA|ALI" + }, + "source": { + "endpoint": "https://directory.spineservices.nhs.uk/STU3/Organization/RBA" + }, + "destination": [ + { + "endpoint": "https://directory.spineservices.nhs.uk/STU3/Organization/FH542", + "receiver": { + "identifier": { + "system": "https://fhir.nhs.uk/Id/ods-organization-code", + "value": "FH542" + } + } + } + ], + "focus": [ + { + "reference": "urn:uuid:78d3c2eb-009e-4ec8-a358-b042954aa9b2" + }, + { + "reference": "urn:uuid:a54219b8-f741-4c47-b662-e4f8dfa49ab6" + } + ] + } + }, + { + "fullUrl": "urn:uuid:a54219b8-f741-4c47-b662-e4f8dfa49ab6", + "resource": { + "resourceType": "MedicationRequest", + "id": "a54219b8-f741-4c47-b662-e4f8dfa49ab6", + "extension": [ + { + "url": "https://fhir.nhs.uk/StructureDefinition/Extension-DM-PrescriptionType", + "valueCoding": { + "system": "https://fhir.nhs.uk/CodeSystem/prescription-type", + "code": "1001", + "display": "Outpatient Community Prescriber - Medical Prescriber" + } + } + ], + "identifier": [ + { + "system": "https://fhir.nhs.uk/Id/prescription-order-item-number", + "value": "a54219b8-f741-4c47-b662-e4f8dfa49ab6" + } + ], + "status": "active", + "intent": "order", + "category": [ + { + "coding": [ + { + "system": "http://terminology.hl7.org/CodeSystem/medicationrequest-category", + "code": "outpatient", + "display": "Outpatient" + } + ] + } + ], + "medicationCodeableConcept": { + "coding": [ + { + "system": "http://snomed.info/sct", + "code": "15517911000001104", + "display": "Methotrexate 10mg/0.2ml solution for injection pre-filled syringes" + } + ] + }, + "subject": { + "reference": "urn:uuid:78d3c2eb-009e-4ec8-a358-b042954aa9b2" + }, + "requester": { + "reference": "urn:uuid:56166769-c1c4-4d07-afa8-132b5dfca666" + }, + "groupIdentifier": { + "extension": [ + { + "url": "https://fhir.nhs.uk/StructureDefinition/Extension-DM-PrescriptionId", + "valueIdentifier": { + "system": "https://fhir.nhs.uk/Id/prescription", + "value": "c3f8dfb0-eed2-428d-bccc-a7df482d2d03" + } + } + ], + "system": "https://fhir.nhs.uk/Id/prescription-order-number", + "value": "B28780-A99968-4DD892" + }, + "courseOfTherapyType": { + "coding": [ + { + "system": "http://terminology.hl7.org/CodeSystem/medicationrequest-course-of-therapy", + "code": "acute", + "display": "Short course (acute) therapy" + } + ] + }, + "dosageInstruction": [ + { + "text": "Inject 10 milligram - 5 times a day - Subcutaneous route - for 10 days", + "timing": { + "repeat": { + "frequency": 5, + "period": 1, + "periodUnit": "d", + "boundsDuration": { + "value": 10, + "unit": "day", + "system": "http://unitsofmeasure.org", + "code": "d" + } + } + }, + "method": { + "coding": [ + { + "system": "http://snomed.info/sct", + "code": "422145002", + "display": "Inject" + } + ] + }, + "route": { + "coding": [ + { + "system": "http://snomed.info/sct", + "code": "34206005", + "display": "Subcutaneous route" + } + ] + }, + "doseAndRate": [ + { + "doseQuantity": { + "value": 10, + "unit": "milligram", + "system": "http://unitsofmeasure.org", + "code": "mg" + } + } + ] + } + ], + "dispenseRequest": { + "extension": [ + { + "url": "https://fhir.nhs.uk/StructureDefinition/Extension-DM-PerformerSiteType", + "valueCoding": { + "system": "https://fhir.nhs.uk/CodeSystem/dispensing-site-preference", + "code": "P1" + } + } + ], + "quantity": { + "value": 1, + "unit": "pre-filled disposable injection", + "system": "http://snomed.info/sct", + "code": "3318611000001103" + }, + "performer": { + "identifier": { + "system": "https://fhir.nhs.uk/Id/ods-organization-code", + "value": "FH542" + } + } + }, + "substitution": { + "allowedBoolean": false + } + } + }, + { + "fullUrl": "urn:uuid:78d3c2eb-009e-4ec8-a358-b042954aa9b2", + "resource": { + "resourceType": "Patient", + "id": "78d3c2eb-009e-4ec8-a358-b042954aa9b2", + "identifier": [ + { + "system": "https://fhir.nhs.uk/Id/nhs-number", + "value": "9449305552" + } + ], + "name": [ + { + "use": "usual", + "family": "CORY", + "given": ["ETTA"], + "prefix": ["MISS"] + } + ], + "gender": "female", + "birthDate": "1999-01-04", + "address": [ + { + "use": "home", + "line": ["123 Dale Avenue", "Long Eaton", "Nottingham"], + "postalCode": "NG10 1NP" + } + ], + "generalPractitioner": [ + { + "identifier": { + "system": "https://fhir.nhs.uk/Id/ods-organization-code", + "value": "B81001" + } + } + ] + } + }, + { + "fullUrl": "urn:uuid:a8c85454-f8cb-498d-9629-78e2cb5fa47a", + "resource": { + "resourceType": "Practitioner", + "id": "a8c85454-f8cb-498d-9629-78e2cb5fa47a", + "identifier": [ + { + "system": "https://fhir.nhs.uk/Id/sds-user-id", + "value": "555086690109" + }, + { + "system": "https://fhir.hl7.org.uk/Id/nmc-number", + "value": "12A3456B" + } + ], + "name": [ + { + "family": "Userq", + "given": ["Random"], + "prefix": ["MR"] + } + ] + } + }, + { + "fullUrl": "urn:uuid:56166769-c1c4-4d07-afa8-132b5dfca666", + "resource": { + "resourceType": "PractitionerRole", + "id": "56166769-c1c4-4d07-afa8-132b5dfca666", + "identifier": [ + { + "system": "https://fhir.nhs.uk/Id/sds-role-profile-id", + "value": "100102238986" + } + ], + "practitioner": { + "reference": "urn:uuid:a8c85454-f8cb-498d-9629-78e2cb5fa47a" + }, + "organization": { + "reference": "urn:uuid:3b4b03a5-52ba-4ba6-9b82-70350aa109d8" + }, + "code": [ + { + "coding": [ + { + "system": "https://fhir.nhs.uk/CodeSystem/NHSDigital-SDS-JobRoleCode", + "code": "S8001:G8001:R8001", + "display": "Nurse Access Role" + } + ] + } + ], + "telecom": [ + { + "system": "phone", + "value": "01234567890", + "use": "work" + } + ] + } + }, + { + "fullUrl": "urn:uuid:3b4b03a5-52ba-4ba6-9b82-70350aa109d8", + "resource": { + "resourceType": "Organization", + "id": "3b4b03a5-52ba-4ba6-9b82-70350aa109d8", + "identifier": [ + { + "system": "https://fhir.nhs.uk/Id/ods-organization-code", + "value": "A99968" + } + ], + "name": "SOMERSET BOWEL CANCER SCREENING CENTRE", + "address": [ + { + "use": "work", + "line": ["MUSGROVE PARK HOSPITAL"], + "city": "TAUNTON", + "postalCode": "TA1 5DA" + } + ], + "telecom": [ + { + "system": "phone", + "value": "01823 333444", + "use": "work" + } + ], + "partOf": { + "identifier": { + "system": "https://fhir.nhs.uk/Id/ods-organization-code", + "value": "RBA" + }, + "display": "TAUNTON AND SOMERSET NHS FOUNDATION TRUST" + } + } + }, + { + "fullUrl": "urn:uuid:28828c55-8fa7-42d7-916f-fcf076e0c10e", + "resource": { + "resourceType": "Provenance", + "id": "28828c55-8fa7-42d7-916f-fcf076e0c10e", + "target": [ + { + "reference": "urn:uuid:a54219b8-f741-4c47-b662-e4f8dfa49ab6" + } + ], + "recorded": "2008-02-27T11:38:00+00:00", + "agent": [ + { + "who": { + "reference": "urn:uuid:DBAA616B-E23C-4D53-0F82-B2D178DB79CA" + } + } + ], + "signature": [ + { + "type": [ + { + "system": "urn:iso-astm:E1762-95:2013", + "code": "1.2.840.10065.1.12.1.1" + } + ], + "when": "2021-05-07T14:47:51+00:00", + "who": { + "reference": "urn:uuid:56166769-c1c4-4d07-afa8-132b5dfca666" + }, + "data": "DQo8U2lnbmF0dXJlIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwLzA5L3htbGRzaWcjIj4NCiAgICA8U2lnbmVkSW5mbz48Q2Fub25pY2FsaXphdGlvbk1ldGhvZCBBbGdvcml0aG09Imh0dHA6Ly93d3cudzMub3JnLzIwMDEvMTAveG1sLWV4Yy1jMTRuIyI+PC9DYW5vbmljYWxpemF0aW9uTWV0aG9kPjxTaWduYXR1cmVNZXRob2QgQWxnb3JpdGhtPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwLzA5L3htbGRzaWcjcnNhLXNoYTEiPjwvU2lnbmF0dXJlTWV0aG9kPjxSZWZlcmVuY2U+PFRyYW5zZm9ybXM+PFRyYW5zZm9ybSBBbGdvcml0aG09Imh0dHA6Ly93d3cudzMub3JnLzIwMDEvMTAveG1sLWV4Yy1jMTRuIyI+PC9UcmFuc2Zvcm0+PC9UcmFuc2Zvcm1zPjxEaWdlc3RNZXRob2QgQWxnb3JpdGhtPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwLzA5L3htbGRzaWcjc2hhMSI+PC9EaWdlc3RNZXRob2Q+PERpZ2VzdFZhbHVlPjhZdVd6aG9jdE9qa1JvdWk4NTR6QXFydy9NQT08L0RpZ2VzdFZhbHVlPjwvUmVmZXJlbmNlPjwvU2lnbmVkSW5mbz4NCiAgICA8U2lnbmF0dXJlVmFsdWU+TkIwdU5rRS9QUjNJNmZ6dnVualQ0dVlrQ0ErM0wwYW55c2ViWUU4S3BOTGQ4enFMY0RnYytrWFhuMW5US3VjZXdQa2V0QnA2MjQybUlJMDZBRFN2TkNTa3k0UDVJbERNS3BvUTI2U09yK2xGUXRLTTlpWWcvMUloV3lCOFYwNGExRUZualRzYlFqZzd3QnlVSk04amxFQkVQSkdTU2owNG5lL3liYndldG40PTwvU2lnbmF0dXJlVmFsdWU+DQogICAgPEtleUluZm8+DQogICAgICAgIDxYNTA5RGF0YT4NCiAgICAgICAgICAgIDxYNTA5Q2VydGlmaWNhdGU+TUlJRHVEQ0NBcUNnQXdJQkFnSUVYY210SHpBTkJna3Foa2lHOXcwQkFRc0ZBREEyTVF3d0NnWURWUVFLRXdOdWFITXhDekFKQmdOVkJBc1RBa05CTVJrd0Z3WURWUVFERXhCT1NGTWdTVTVVSUV4bGRtVnNJREZFTUI0WERUSXdNVEF5TWpFd01qRTFOVm9YRFRJeU1UQXlNakV3TlRFMU5Wb3dRekVNTUFvR0ExVUVDaE1EYm1oek1ROHdEUVlEVlFRTEV3WlFaVzl3YkdVeElqQWdCZ05WQkFNTUdUVTFOVEkxTXpVeU1URXdPRjlTUVU1RVQwMWZWVk5GVWxFd2daOHdEUVlKS29aSWh2Y05BUUVCQlFBRGdZMEFNSUdKQW9HQkFLdDRzek53N09BSDdBUVJyRGUveEJJbXNNbU1pUzlFc3JUM2EzcC9MaDNicmR6STlhYWpUVVoyYi9jdmJPYTdQZVlkN3UrSzRhMlpkMFhrKzBHRm1ZR3pTVlg2aVlqYmx3cjB2YWkzMXpWN0crbEd2SHhINnBTb0xDd0lDYVpBRndhYmVENU96OTQreUEzYVdOV3RHVjBEZmg5cXdIM1pGQ0lNUnN2ZXJOMXBBZ01CQUFHamdnRkRNSUlCUHpBT0JnTlZIUThCQWY4RUJBTUNCa0F3WlFZRFZSMGdBUUgvQkZzd1dUQlhCZ3NxaGpvQWlYdG1BQU1DQURCSU1FWUdDQ3NHQVFVRkJ3SUJGanBvZEhSd2N6b3ZMM0JyYVM1dWFITXVkV3N2WTJWeWRHbG1hV05oZEdWZmNHOXNhV05wWlhNdlkyOXVkR1Z1ZEY5amIyMXRhWFJ0Wlc1ME1ETUdBMVVkSHdRc01Db3dLS0Ftb0NTR0ltaDBkSEE2THk5amNtd3VibWh6TG5WckwybHVkQzh4WkM5amNteGpNeTVqY213d0t3WURWUjBRQkNRd0lvQVBNakF5TURFd01qSXhNREl4TlRWYWdROHlNREl5TURNeE56RXdOVEUxTlZvd0h3WURWUjBqQkJnd0ZvQVVvSllmZ1lUTlBkNkVVS0w2UUxJekh4WTVQRkl3SFFZRFZSME9CQllFRkx0eXZZU3lhcWc2MEFFVVpneGswd3JqUkpjK01Ba0dBMVVkRXdRQ01BQXdHUVlKS29aSWh2WjlCMEVBQkF3d0Noc0VWamd1TXdNQ0JMQXdEUVlKS29aSWh2Y05BUUVMQlFBRGdnRUJBQmN6eThCOGp1UHBJZmFUTkZjeHJDMjJhQ1gveFlabWhyTC9OdklCQWFYMUc1aGppd21rR0tFMmhSVElyNjdQeFp4bVhzSnhpZ1JCTUhQbEkrbFkvK29rekgwR2k3YjVicWx3N3B4R0lnSk8wMDB3OHBGc3ZvOXc0MklZaEhvZHN2bkRWU3hoTVQwSjQ2UWhrOXNvRTBMam9FVUxLUVBQbFlHa2UvR2wzbTE3SXRGWXdPYlFIMGZNRXdtaXFCeWVJZno3Z1NjY096TDVjSXA2UGNaVE9qbzJJcVFwZ0VtaGpPY1JJbkVxQU5pdFNkam9pSkFKenBhYVpqWVRSZEhVWDdpN2FqRWlING05MW5GVys0QXFrTnR0bGI0V2NHS3NTbVdnZktLaGVGNElvWktNRTgweGVyU2dNeTh2dGpMT0JKQ0dYejB3TEdtUXVSbXhNVHE4OHE0PTwvWDUwOUNlcnRpZmljYXRlPg0KICAgICAgICA8L1g1MDlEYXRhPg0KICAgIDwvS2V5SW5mbz4NCjwvU2lnbmF0dXJlPg0K" + } + ] + } + } + ] +} diff --git a/src/test/resources/examples/full_examples/secondary-care/community/acute/nominated-pharmacy/paramedic/1-Prepare-Request-200_OK.json b/src/test/resources/examples/full_examples/secondary-care/community/acute/nominated-pharmacy/paramedic/1-Prepare-Request-200_OK.json new file mode 100644 index 00000000..a6c97474 --- /dev/null +++ b/src/test/resources/examples/full_examples/secondary-care/community/acute/nominated-pharmacy/paramedic/1-Prepare-Request-200_OK.json @@ -0,0 +1,652 @@ +{ + "resourceType": "Bundle", + "id": "0A1FD9EF-A3D5-4E95-84CD-552070A03089", + "identifier": { + "system": "https://tools.ietf.org/html/rfc4122", + "value": "0dfed66b-568f-449e-a24b-2a2f325e4d7e" + }, + "type": "message", + "entry": [ + { + "fullUrl": "urn:uuid:0a1fd9ef-a3d5-4e95-84cd-552070a03086", + "resource": { + "resourceType": "MessageHeader", + "id": "0A1FD9EF-A3D5-4E95-84CD-552070A03089", + "eventCoding": { + "system": "https://fhir.nhs.uk/CodeSystem/message-event", + "code": "prescription-order", + "display": "Prescription Order" + }, + "sender": { + "identifier": { + "system": "https://fhir.nhs.uk/Id/ods-organization-code", + "value": "RBA" + }, + "reference": "urn:uuid:56166769-c1c4-4d07-afa8-132b5dfca666", + "display": "USERM|PHARMACIST" + }, + "source": { + "endpoint": "https://directory.spineservices.nhs.uk/STU3/Organization/RBA" + }, + "destination": [ + { + "endpoint": "https://directory.spineservices.nhs.uk/STU3/Organization/FH542", + "receiver": { + "identifier": { + "system": "https://fhir.nhs.uk/Id/ods-organization-code", + "value": "FH542" + } + } + } + ], + "focus": [ + { + "reference": "urn:uuid:78d3c2eb-009e-4ec8-a358-b042954aa9b2" + }, + { + "reference": "urn:uuid:a54219b8-f741-4c47-b662-e4f8dfa49ab6" + } + ] + } + }, + { + "fullUrl": "urn:uuid:a54219b8-f741-4c47-b662-e4f8dfa49ab6", + "resource": { + "resourceType": "MedicationRequest", + "id": "a54219b8-f741-4c47-b662-e4f8dfa49ab6", + "extension": [ + { + "url": "https://fhir.nhs.uk/StructureDefinition/Extension-DM-PrescriptionType", + "valueCoding": { + "system": "https://fhir.nhs.uk/CodeSystem/prescription-type", + "code": "1025", + "display": "Outpatient Community Prescriber - Paramedic Independent Supplementary prescriber" + } + } + ], + "identifier": [ + { + "system": "https://fhir.nhs.uk/Id/prescription-order-item-number", + "value": "a54219b8-f741-4c47-b662-e4f8dfa49ab6" + } + ], + "status": "active", + "intent": "order", + "category": [ + { + "coding": [ + { + "system": "http://terminology.hl7.org/CodeSystem/medicationrequest-category", + "code": "outpatient", + "display": "Outpatient" + } + ] + } + ], + "medicationCodeableConcept": { + "coding": [ + { + "system": "http://snomed.info/sct", + "code": "321249002", + "display": "Chlordiazepoxide 5mg capsules" + } + ] + }, + "subject": { + "reference": "urn:uuid:78d3c2eb-009e-4ec8-a358-b042954aa9b2" + }, + "requester": { + "reference": "urn:uuid:56166769-c1c4-4d07-afa8-132b5dfca666" + }, + "groupIdentifier": { + "extension": [ + { + "url": "https://fhir.nhs.uk/StructureDefinition/Extension-DM-PrescriptionId", + "valueIdentifier": { + "system": "https://fhir.nhs.uk/Id/prescription", + "value": "1b143870-aa42-4c67-95a0-ee0a400b7578" + } + } + ], + "system": "https://fhir.nhs.uk/Id/prescription-order-number", + "value": "BC2927-A99968-478E9A" + }, + "courseOfTherapyType": { + "coding": [ + { + "system": "http://terminology.hl7.org/CodeSystem/medicationrequest-course-of-therapy", + "code": "acute", + "display": "Short course (acute) therapy" + } + ] + }, + "dosageInstruction": [ + { + "text": "Follow directions", + "additionalInstruction": [ + { + "coding": [ + { + "system": "http://snomed.info/sct", + "code": "421769005", + "display": "Follow directions" + } + ] + } + ] + } + ], + "dispenseRequest": { + "extension": [ + { + "url": "https://fhir.nhs.uk/StructureDefinition/Extension-DM-PerformerSiteType", + "valueCoding": { + "system": "https://fhir.nhs.uk/CodeSystem/dispensing-site-preference", + "code": "P1" + } + } + ], + "quantity": { + "value": 3, + "unit": "Capsule", + "system": "http://snomed.info/sct", + "code": "428641000" + }, + "performer": { + "identifier": { + "system": "https://fhir.nhs.uk/Id/ods-organization-code", + "value": "FH542" + } + } + }, + "substitution": { + "allowedBoolean": false + } + } + }, + { + "fullUrl": "urn:uuid:dd994697-df0e-4202-bd5a-a8e3080bf0bc", + "resource": { + "resourceType": "MedicationRequest", + "id": "dd994697-df0e-4202-bd5a-a8e3080bf0bc", + "extension": [ + { + "url": "https://fhir.nhs.uk/StructureDefinition/Extension-DM-PrescriptionType", + "valueCoding": { + "system": "https://fhir.nhs.uk/CodeSystem/prescription-type", + "code": "1025", + "display": "Outpatient Community Prescriber - Paramedic Independent Supplementary prescriber" + } + } + ], + "identifier": [ + { + "system": "https://fhir.nhs.uk/Id/prescription-order-item-number", + "value": "dd994697-df0e-4202-bd5a-a8e3080bf0bc" + } + ], + "status": "active", + "intent": "order", + "category": [ + { + "coding": [ + { + "system": "http://terminology.hl7.org/CodeSystem/medicationrequest-category", + "code": "outpatient", + "display": "Outpatient" + } + ] + } + ], + "medicationCodeableConcept": { + "coding": [ + { + "system": "http://snomed.info/sct", + "code": "421341000", + "display": "Doxycycline 100mg tablets" + } + ] + }, + "subject": { + "reference": "urn:uuid:78d3c2eb-009e-4ec8-a358-b042954aa9b2" + }, + "requester": { + "reference": "urn:uuid:56166769-c1c4-4d07-afa8-132b5dfca666" + }, + "groupIdentifier": { + "extension": [ + { + "url": "https://fhir.nhs.uk/StructureDefinition/Extension-DM-PrescriptionId", + "valueIdentifier": { + "system": "https://fhir.nhs.uk/Id/prescription", + "value": "1b143870-aa42-4c67-95a0-ee0a400b7578" + } + } + ], + "system": "https://fhir.nhs.uk/Id/prescription-order-number", + "value": "BC2927-A99968-478E9A" + }, + "courseOfTherapyType": { + "coding": [ + { + "system": "http://terminology.hl7.org/CodeSystem/medicationrequest-course-of-therapy", + "code": "acute", + "display": "Short course (acute) therapy" + } + ] + }, + "dosageInstruction": [ + { + "text": "Follow directions", + "additionalInstruction": [ + { + "coding": [ + { + "system": "http://snomed.info/sct", + "code": "421769005", + "display": "Follow directions" + } + ] + } + ] + } + ], + "dispenseRequest": { + "extension": [ + { + "url": "https://fhir.nhs.uk/StructureDefinition/Extension-DM-PerformerSiteType", + "valueCoding": { + "system": "https://fhir.nhs.uk/CodeSystem/dispensing-site-preference", + "code": "P1" + } + } + ], + "quantity": { + "value": 7, + "unit": "Tablet", + "system": "http://snomed.info/sct", + "code": "385055001" + }, + "performer": { + "identifier": { + "system": "https://fhir.nhs.uk/Id/ods-organization-code", + "value": "FH542" + } + } + }, + "substitution": { + "allowedBoolean": false + } + } + }, + { + "fullUrl": "urn:uuid:1e35d3a9-a256-4985-8476-0294bb12d37e", + "resource": { + "resourceType": "MedicationRequest", + "id": "1e35d3a9-a256-4985-8476-0294bb12d37e", + "extension": [ + { + "url": "https://fhir.nhs.uk/StructureDefinition/Extension-DM-PrescriptionType", + "valueCoding": { + "system": "https://fhir.nhs.uk/CodeSystem/prescription-type", + "code": "1025", + "display": "Outpatient Community Prescriber - Paramedic Independent Supplementary prescriber" + } + } + ], + "identifier": [ + { + "system": "https://fhir.nhs.uk/Id/prescription-order-item-number", + "value": "1e35d3a9-a256-4985-8476-0294bb12d37e" + } + ], + "status": "active", + "intent": "order", + "category": [ + { + "coding": [ + { + "system": "http://terminology.hl7.org/CodeSystem/medicationrequest-category", + "code": "outpatient", + "display": "Outpatient" + } + ] + } + ], + "medicationCodeableConcept": { + "coding": [ + { + "system": "http://snomed.info/sct", + "code": "376689003", + "display": "Trazodone 50mg capsules" + } + ] + }, + "subject": { + "reference": "urn:uuid:78d3c2eb-009e-4ec8-a358-b042954aa9b2" + }, + "requester": { + "reference": "urn:uuid:56166769-c1c4-4d07-afa8-132b5dfca666" + }, + "groupIdentifier": { + "extension": [ + { + "url": "https://fhir.nhs.uk/StructureDefinition/Extension-DM-PrescriptionId", + "valueIdentifier": { + "system": "https://fhir.nhs.uk/Id/prescription", + "value": "1b143870-aa42-4c67-95a0-ee0a400b7578" + } + } + ], + "system": "https://fhir.nhs.uk/Id/prescription-order-number", + "value": "BC2927-A99968-478E9A" + }, + "courseOfTherapyType": { + "coding": [ + { + "system": "http://terminology.hl7.org/CodeSystem/medicationrequest-course-of-therapy", + "code": "acute", + "display": "Short course (acute) therapy" + } + ] + }, + "dosageInstruction": [ + { + "text": "Follow directions", + "additionalInstruction": [ + { + "coding": [ + { + "system": "http://snomed.info/sct", + "code": "421769005", + "display": "Follow directions" + } + ] + } + ] + } + ], + "dispenseRequest": { + "extension": [ + { + "url": "https://fhir.nhs.uk/StructureDefinition/Extension-DM-PerformerSiteType", + "valueCoding": { + "system": "https://fhir.nhs.uk/CodeSystem/dispensing-site-preference", + "code": "P1" + } + } + ], + "quantity": { + "value": 14, + "unit": "Capsule", + "system": "http://snomed.info/sct", + "code": "428641000" + }, + "performer": { + "identifier": { + "system": "https://fhir.nhs.uk/Id/ods-organization-code", + "value": "FH542" + } + } + }, + "substitution": { + "allowedBoolean": false + } + } + }, + { + "fullUrl": "urn:uuid:a51041ce-9a43-4bc4-a277-cffa434bdd63", + "resource": { + "resourceType": "MedicationRequest", + "id": "a51041ce-9a43-4bc4-a277-cffa434bdd63", + "extension": [ + { + "url": "https://fhir.nhs.uk/StructureDefinition/Extension-DM-PrescriptionType", + "valueCoding": { + "system": "https://fhir.nhs.uk/CodeSystem/prescription-type", + "code": "1025", + "display": "Outpatient Community Prescriber - Paramedic Independent Supplementary prescriber" + } + } + ], + "identifier": [ + { + "system": "https://fhir.nhs.uk/Id/prescription-order-item-number", + "value": "a51041ce-9a43-4bc4-a277-cffa434bdd63" + } + ], + "status": "active", + "intent": "order", + "category": [ + { + "coding": [ + { + "system": "http://terminology.hl7.org/CodeSystem/medicationrequest-category", + "code": "outpatient", + "display": "Outpatient" + } + ] + } + ], + "medicationCodeableConcept": { + "coding": [ + { + "system": "http://snomed.info/sct", + "code": "415165003", + "display": "Pregabalin 300mg tablets" + } + ] + }, + "subject": { + "reference": "urn:uuid:78d3c2eb-009e-4ec8-a358-b042954aa9b2" + }, + "requester": { + "reference": "urn:uuid:56166769-c1c4-4d07-afa8-132b5dfca666" + }, + "groupIdentifier": { + "extension": [ + { + "url": "https://fhir.nhs.uk/StructureDefinition/Extension-DM-PrescriptionId", + "valueIdentifier": { + "system": "https://fhir.nhs.uk/Id/prescription", + "value": "1b143870-aa42-4c67-95a0-ee0a400b7578" + } + } + ], + "system": "https://fhir.nhs.uk/Id/prescription-order-number", + "value": "BC2927-A99968-478E9A" + }, + "courseOfTherapyType": { + "coding": [ + { + "system": "http://terminology.hl7.org/CodeSystem/medicationrequest-course-of-therapy", + "code": "acute", + "display": "Short course (acute) therapy" + } + ] + }, + "dosageInstruction": [ + { + "text": "Follow directions", + "additionalInstruction": [ + { + "coding": [ + { + "system": "http://snomed.info/sct", + "code": "421769005", + "display": "Follow directions" + } + ] + } + ] + } + ], + "dispenseRequest": { + "extension": [ + { + "url": "https://fhir.nhs.uk/StructureDefinition/Extension-DM-PerformerSiteType", + "valueCoding": { + "system": "https://fhir.nhs.uk/CodeSystem/dispensing-site-preference", + "code": "P1" + } + } + ], + "quantity": { + "value": 10, + "unit": "Tablet", + "system": "http://snomed.info/sct", + "code": "385055001" + }, + "performer": { + "identifier": { + "system": "https://fhir.nhs.uk/Id/ods-organization-code", + "value": "FH542" + } + } + }, + "substitution": { + "allowedBoolean": false + } + } + }, + { + "fullUrl": "urn:uuid:78d3c2eb-009e-4ec8-a358-b042954aa9b2", + "resource": { + "resourceType": "Patient", + "id": "78d3c2eb-009e-4ec8-a358-b042954aa9b2", + "identifier": [ + { + "system": "https://fhir.nhs.uk/Id/nhs-number", + "value": "9449305552" + } + ], + "name": [ + { + "use": "usual", + "family": "DAVIS", + "given": ["JANE"], + "prefix": ["MRS"] + } + ], + "gender": "female", + "birthDate": "1999-11-25", + "address": [ + { + "use": "home", + "line": ["53 Harrogate Road", "Chapel Allerton", "Leeds"], + "postalCode": "LS7 3PY" + } + ], + "generalPractitioner": [ + { + "identifier": { + "system": "https://fhir.nhs.uk/Id/ods-organization-code", + "value": "B81001" + } + } + ] + } + }, + { + "fullUrl": "urn:uuid:a8c85454-f8cb-498d-9629-78e2cb5fa47a", + "resource": { + "resourceType": "Practitioner", + "id": "a8c85454-f8cb-498d-9629-78e2cb5fa47a", + "identifier": [ + { + "system": "https://fhir.nhs.uk/Id/sds-user-id", + "value": "5555086689106" + }, + { + "system": "https://fhir.hl7.org.uk/Id/gphc-number", + "value": "2083469" + } + ], + "name": [ + { + "family": "USERM", + "given": ["RANDOM"], + "prefix": ["MR"] + } + ] + } + }, + { + "fullUrl": "urn:uuid:56166769-c1c4-4d07-afa8-132b5dfca666", + "resource": { + "resourceType": "PractitionerRole", + "id": "56166769-c1c4-4d07-afa8-132b5dfca666", + "identifier": [ + { + "system": "https://fhir.nhs.uk/Id/sds-role-profile-id", + "value": "201715352555" + }, + { + "system": "https://fhir.hl7.org.uk/Id/nhsbsa-spurious-code", + "value": "2083469" + } + ], + "practitioner": { + "reference": "urn:uuid:a8c85454-f8cb-498d-9629-78e2cb5fa47a" + }, + "organization": { + "reference": "urn:uuid:3b4b03a5-52ba-4ba6-9b82-70350aa109d8" + }, + "code": [ + { + "coding": [ + { + "system": "https://fhir.nhs.uk/CodeSystem/NHSDigital-SDS-JobRoleCode", + "code": "S8003:G8003:R8003", + "display": "Healthcare Access Role" + } + ] + } + ], + "telecom": [ + { + "system": "phone", + "value": "01234567890", + "use": "work" + } + ] + } + }, + { + "fullUrl": "urn:uuid:3b4b03a5-52ba-4ba6-9b82-70350aa109d8", + "resource": { + "resourceType": "Organization", + "id": "3b4b03a5-52ba-4ba6-9b82-70350aa109d8", + "identifier": [ + { + "system": "https://fhir.nhs.uk/Id/ods-organization-code", + "value": "A99968" + } + ], + "name": "SOMERSET BOWEL CANCER SCREENING CENTRE", + "address": [ + { + "use": "work", + "line": ["MUSGROVE PARK HOSPITAL"], + "city": "TAUNTON", + "postalCode": "TA1 5DA" + } + ], + "telecom": [ + { + "system": "phone", + "value": "01823 333444", + "use": "work" + } + ], + "partOf": { + "identifier": { + "system": "https://fhir.nhs.uk/Id/ods-organization-code", + "value": "RBA" + }, + "display": "TAUNTON AND SOMERSET NHS FOUNDATION TRUST" + } + } + } + ] +} diff --git a/src/test/resources/examples/full_examples/secondary-care/community/acute/nominated-pharmacy/paramedic/1-Prepare-Response-200_OK.json b/src/test/resources/examples/full_examples/secondary-care/community/acute/nominated-pharmacy/paramedic/1-Prepare-Response-200_OK.json new file mode 100644 index 00000000..f1e0cb58 --- /dev/null +++ b/src/test/resources/examples/full_examples/secondary-care/community/acute/nominated-pharmacy/paramedic/1-Prepare-Response-200_OK.json @@ -0,0 +1,17 @@ +{ + "resourceType": "Parameters", + "parameter": [ + { + "name": "digest", + "valueString": "PFNpZ25lZEluZm8geG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvMDkveG1sZHNpZyMiPjxDYW5vbmljYWxpemF0aW9uTWV0aG9kIEFsZ29yaXRobT0iaHR0cDovL3d3dy53My5vcmcvMjAwMS8xMC94bWwtZXhjLWMxNG4jIj48L0Nhbm9uaWNhbGl6YXRpb25NZXRob2Q+PFNpZ25hdHVyZU1ldGhvZCBBbGdvcml0aG09Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvMDkveG1sZHNpZyNyc2Etc2hhMSI+PC9TaWduYXR1cmVNZXRob2Q+PFJlZmVyZW5jZT48VHJhbnNmb3Jtcz48VHJhbnNmb3JtIEFsZ29yaXRobT0iaHR0cDovL3d3dy53My5vcmcvMjAwMS8xMC94bWwtZXhjLWMxNG4jIj48L1RyYW5zZm9ybT48L1RyYW5zZm9ybXM+PERpZ2VzdE1ldGhvZCBBbGdvcml0aG09Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvMDkveG1sZHNpZyNzaGExIj48L0RpZ2VzdE1ldGhvZD48RGlnZXN0VmFsdWU+QndUb3dMNjd3b3IvUnVlTnZWcTZCL1BhV080PTwvRGlnZXN0VmFsdWU+PC9SZWZlcmVuY2U+PC9TaWduZWRJbmZvPg==" + }, + { + "name": "timestamp", + "valueString": "2022-10-25T10:24:34+00:00" + }, + { + "name": "algorithm", + "valueString": "RS1" + } + ] +} diff --git a/src/test/resources/examples/full_examples/secondary-care/community/acute/nominated-pharmacy/paramedic/1-Process-Request-Send-200_OK.json b/src/test/resources/examples/full_examples/secondary-care/community/acute/nominated-pharmacy/paramedic/1-Process-Request-Send-200_OK.json new file mode 100644 index 00000000..2bd959f9 --- /dev/null +++ b/src/test/resources/examples/full_examples/secondary-care/community/acute/nominated-pharmacy/paramedic/1-Process-Request-Send-200_OK.json @@ -0,0 +1,687 @@ +{ + "resourceType": "Bundle", + "id": "0A1FD9EF-A3D5-4E95-84CD-552070A03089", + "identifier": { + "system": "https://tools.ietf.org/html/rfc4122", + "value": "a8156c34-9c4e-42fc-b2fe-b224c686247b" + }, + "type": "message", + "entry": [ + { + "fullUrl": "urn:uuid:0a1fd9ef-a3d5-4e95-84cd-552070a03086", + "resource": { + "resourceType": "MessageHeader", + "id": "0A1FD9EF-A3D5-4E95-84CD-552070A03089", + "eventCoding": { + "system": "https://fhir.nhs.uk/CodeSystem/message-event", + "code": "prescription-order", + "display": "Prescription Order" + }, + "sender": { + "identifier": { + "system": "https://fhir.nhs.uk/Id/ods-organization-code", + "value": "RBA" + }, + "reference": "urn:uuid:56166769-c1c4-4d07-afa8-132b5dfca666", + "display": "USERM|PHARMACIST" + }, + "source": { + "endpoint": "https://directory.spineservices.nhs.uk/STU3/Organization/RBA" + }, + "destination": [ + { + "endpoint": "https://directory.spineservices.nhs.uk/STU3/Organization/FH542", + "receiver": { + "identifier": { + "system": "https://fhir.nhs.uk/Id/ods-organization-code", + "value": "FH542" + } + } + } + ], + "focus": [ + { + "reference": "urn:uuid:78d3c2eb-009e-4ec8-a358-b042954aa9b2" + }, + { + "reference": "urn:uuid:a54219b8-f741-4c47-b662-e4f8dfa49ab6" + } + ] + } + }, + { + "fullUrl": "urn:uuid:a54219b8-f741-4c47-b662-e4f8dfa49ab6", + "resource": { + "resourceType": "MedicationRequest", + "id": "a54219b8-f741-4c47-b662-e4f8dfa49ab6", + "extension": [ + { + "url": "https://fhir.nhs.uk/StructureDefinition/Extension-DM-PrescriptionType", + "valueCoding": { + "system": "https://fhir.nhs.uk/CodeSystem/prescription-type", + "code": "1025", + "display": "Outpatient Community Prescriber - Paramedic Independent Supplementary prescriber" + } + } + ], + "identifier": [ + { + "system": "https://fhir.nhs.uk/Id/prescription-order-item-number", + "value": "a54219b8-f741-4c47-b662-e4f8dfa49ab6" + } + ], + "status": "active", + "intent": "order", + "category": [ + { + "coding": [ + { + "system": "http://terminology.hl7.org/CodeSystem/medicationrequest-category", + "code": "outpatient", + "display": "Outpatient" + } + ] + } + ], + "medicationCodeableConcept": { + "coding": [ + { + "system": "http://snomed.info/sct", + "code": "321249002", + "display": "Chlordiazepoxide 5mg capsules" + } + ] + }, + "subject": { + "reference": "urn:uuid:78d3c2eb-009e-4ec8-a358-b042954aa9b2" + }, + "requester": { + "reference": "urn:uuid:56166769-c1c4-4d07-afa8-132b5dfca666" + }, + "groupIdentifier": { + "extension": [ + { + "url": "https://fhir.nhs.uk/StructureDefinition/Extension-DM-PrescriptionId", + "valueIdentifier": { + "system": "https://fhir.nhs.uk/Id/prescription", + "value": "1b143870-aa42-4c67-95a0-ee0a400b7578" + } + } + ], + "system": "https://fhir.nhs.uk/Id/prescription-order-number", + "value": "BC2927-A99968-478E9A" + }, + "courseOfTherapyType": { + "coding": [ + { + "system": "http://terminology.hl7.org/CodeSystem/medicationrequest-course-of-therapy", + "code": "acute", + "display": "Short course (acute) therapy" + } + ] + }, + "dosageInstruction": [ + { + "text": "Follow directions", + "additionalInstruction": [ + { + "coding": [ + { + "system": "http://snomed.info/sct", + "code": "421769005", + "display": "Follow directions" + } + ] + } + ] + } + ], + "dispenseRequest": { + "extension": [ + { + "url": "https://fhir.nhs.uk/StructureDefinition/Extension-DM-PerformerSiteType", + "valueCoding": { + "system": "https://fhir.nhs.uk/CodeSystem/dispensing-site-preference", + "code": "P1" + } + } + ], + "quantity": { + "value": 3, + "unit": "Capsule", + "system": "http://snomed.info/sct", + "code": "428641000" + }, + "performer": { + "identifier": { + "system": "https://fhir.nhs.uk/Id/ods-organization-code", + "value": "FH542" + } + } + }, + "substitution": { + "allowedBoolean": false + } + } + }, + { + "fullUrl": "urn:uuid:dd994697-df0e-4202-bd5a-a8e3080bf0bc", + "resource": { + "resourceType": "MedicationRequest", + "id": "dd994697-df0e-4202-bd5a-a8e3080bf0bc", + "extension": [ + { + "url": "https://fhir.nhs.uk/StructureDefinition/Extension-DM-PrescriptionType", + "valueCoding": { + "system": "https://fhir.nhs.uk/CodeSystem/prescription-type", + "code": "1025", + "display": "Outpatient Community Prescriber - Paramedic Independent Supplementary prescriber" + } + } + ], + "identifier": [ + { + "system": "https://fhir.nhs.uk/Id/prescription-order-item-number", + "value": "dd994697-df0e-4202-bd5a-a8e3080bf0bc" + } + ], + "status": "active", + "intent": "order", + "category": [ + { + "coding": [ + { + "system": "http://terminology.hl7.org/CodeSystem/medicationrequest-category", + "code": "outpatient", + "display": "Outpatient" + } + ] + } + ], + "medicationCodeableConcept": { + "coding": [ + { + "system": "http://snomed.info/sct", + "code": "421341000", + "display": "Doxycycline 100mg tablets" + } + ] + }, + "subject": { + "reference": "urn:uuid:78d3c2eb-009e-4ec8-a358-b042954aa9b2" + }, + "requester": { + "reference": "urn:uuid:56166769-c1c4-4d07-afa8-132b5dfca666" + }, + "groupIdentifier": { + "extension": [ + { + "url": "https://fhir.nhs.uk/StructureDefinition/Extension-DM-PrescriptionId", + "valueIdentifier": { + "system": "https://fhir.nhs.uk/Id/prescription", + "value": "1b143870-aa42-4c67-95a0-ee0a400b7578" + } + } + ], + "system": "https://fhir.nhs.uk/Id/prescription-order-number", + "value": "BC2927-A99968-478E9A" + }, + "courseOfTherapyType": { + "coding": [ + { + "system": "http://terminology.hl7.org/CodeSystem/medicationrequest-course-of-therapy", + "code": "acute", + "display": "Short course (acute) therapy" + } + ] + }, + "dosageInstruction": [ + { + "text": "Follow directions", + "additionalInstruction": [ + { + "coding": [ + { + "system": "http://snomed.info/sct", + "code": "421769005", + "display": "Follow directions" + } + ] + } + ] + } + ], + "dispenseRequest": { + "extension": [ + { + "url": "https://fhir.nhs.uk/StructureDefinition/Extension-DM-PerformerSiteType", + "valueCoding": { + "system": "https://fhir.nhs.uk/CodeSystem/dispensing-site-preference", + "code": "P1" + } + } + ], + "quantity": { + "value": 7, + "unit": "Tablet", + "system": "http://snomed.info/sct", + "code": "385055001" + }, + "performer": { + "identifier": { + "system": "https://fhir.nhs.uk/Id/ods-organization-code", + "value": "FH542" + } + } + }, + "substitution": { + "allowedBoolean": false + } + } + }, + { + "fullUrl": "urn:uuid:1e35d3a9-a256-4985-8476-0294bb12d37e", + "resource": { + "resourceType": "MedicationRequest", + "id": "1e35d3a9-a256-4985-8476-0294bb12d37e", + "extension": [ + { + "url": "https://fhir.nhs.uk/StructureDefinition/Extension-DM-PrescriptionType", + "valueCoding": { + "system": "https://fhir.nhs.uk/CodeSystem/prescription-type", + "code": "1025", + "display": "Outpatient Community Prescriber - Paramedic Independent Supplementary prescriber" + } + } + ], + "identifier": [ + { + "system": "https://fhir.nhs.uk/Id/prescription-order-item-number", + "value": "1e35d3a9-a256-4985-8476-0294bb12d37e" + } + ], + "status": "active", + "intent": "order", + "category": [ + { + "coding": [ + { + "system": "http://terminology.hl7.org/CodeSystem/medicationrequest-category", + "code": "outpatient", + "display": "Outpatient" + } + ] + } + ], + "medicationCodeableConcept": { + "coding": [ + { + "system": "http://snomed.info/sct", + "code": "376689003", + "display": "Trazodone 50mg capsules" + } + ] + }, + "subject": { + "reference": "urn:uuid:78d3c2eb-009e-4ec8-a358-b042954aa9b2" + }, + "requester": { + "reference": "urn:uuid:56166769-c1c4-4d07-afa8-132b5dfca666" + }, + "groupIdentifier": { + "extension": [ + { + "url": "https://fhir.nhs.uk/StructureDefinition/Extension-DM-PrescriptionId", + "valueIdentifier": { + "system": "https://fhir.nhs.uk/Id/prescription", + "value": "1b143870-aa42-4c67-95a0-ee0a400b7578" + } + } + ], + "system": "https://fhir.nhs.uk/Id/prescription-order-number", + "value": "BC2927-A99968-478E9A" + }, + "courseOfTherapyType": { + "coding": [ + { + "system": "http://terminology.hl7.org/CodeSystem/medicationrequest-course-of-therapy", + "code": "acute", + "display": "Short course (acute) therapy" + } + ] + }, + "dosageInstruction": [ + { + "text": "Follow directions", + "additionalInstruction": [ + { + "coding": [ + { + "system": "http://snomed.info/sct", + "code": "421769005", + "display": "Follow directions" + } + ] + } + ] + } + ], + "dispenseRequest": { + "extension": [ + { + "url": "https://fhir.nhs.uk/StructureDefinition/Extension-DM-PerformerSiteType", + "valueCoding": { + "system": "https://fhir.nhs.uk/CodeSystem/dispensing-site-preference", + "code": "P1" + } + } + ], + "quantity": { + "value": 14, + "unit": "Capsule", + "system": "http://snomed.info/sct", + "code": "428641000" + }, + "performer": { + "identifier": { + "system": "https://fhir.nhs.uk/Id/ods-organization-code", + "value": "FH542" + } + } + }, + "substitution": { + "allowedBoolean": false + } + } + }, + { + "fullUrl": "urn:uuid:a51041ce-9a43-4bc4-a277-cffa434bdd63", + "resource": { + "resourceType": "MedicationRequest", + "id": "a51041ce-9a43-4bc4-a277-cffa434bdd63", + "extension": [ + { + "url": "https://fhir.nhs.uk/StructureDefinition/Extension-DM-PrescriptionType", + "valueCoding": { + "system": "https://fhir.nhs.uk/CodeSystem/prescription-type", + "code": "1025", + "display": "Outpatient Community Prescriber - Paramedic Independent Supplementary prescriber" + } + } + ], + "identifier": [ + { + "system": "https://fhir.nhs.uk/Id/prescription-order-item-number", + "value": "a51041ce-9a43-4bc4-a277-cffa434bdd63" + } + ], + "status": "active", + "intent": "order", + "category": [ + { + "coding": [ + { + "system": "http://terminology.hl7.org/CodeSystem/medicationrequest-category", + "code": "outpatient", + "display": "Outpatient" + } + ] + } + ], + "medicationCodeableConcept": { + "coding": [ + { + "system": "http://snomed.info/sct", + "code": "415165003", + "display": "Pregabalin 300mg tablets" + } + ] + }, + "subject": { + "reference": "urn:uuid:78d3c2eb-009e-4ec8-a358-b042954aa9b2" + }, + "requester": { + "reference": "urn:uuid:56166769-c1c4-4d07-afa8-132b5dfca666" + }, + "groupIdentifier": { + "extension": [ + { + "url": "https://fhir.nhs.uk/StructureDefinition/Extension-DM-PrescriptionId", + "valueIdentifier": { + "system": "https://fhir.nhs.uk/Id/prescription", + "value": "1b143870-aa42-4c67-95a0-ee0a400b7578" + } + } + ], + "system": "https://fhir.nhs.uk/Id/prescription-order-number", + "value": "BC2927-A99968-478E9A" + }, + "courseOfTherapyType": { + "coding": [ + { + "system": "http://terminology.hl7.org/CodeSystem/medicationrequest-course-of-therapy", + "code": "acute", + "display": "Short course (acute) therapy" + } + ] + }, + "dosageInstruction": [ + { + "text": "Follow directions", + "additionalInstruction": [ + { + "coding": [ + { + "system": "http://snomed.info/sct", + "code": "421769005", + "display": "Follow directions" + } + ] + } + ] + } + ], + "dispenseRequest": { + "extension": [ + { + "url": "https://fhir.nhs.uk/StructureDefinition/Extension-DM-PerformerSiteType", + "valueCoding": { + "system": "https://fhir.nhs.uk/CodeSystem/dispensing-site-preference", + "code": "P1" + } + } + ], + "quantity": { + "value": 10, + "unit": "Tablet", + "system": "http://snomed.info/sct", + "code": "385055001" + }, + "performer": { + "identifier": { + "system": "https://fhir.nhs.uk/Id/ods-organization-code", + "value": "FH542" + } + } + }, + "substitution": { + "allowedBoolean": false + } + } + }, + { + "fullUrl": "urn:uuid:78d3c2eb-009e-4ec8-a358-b042954aa9b2", + "resource": { + "resourceType": "Patient", + "id": "78d3c2eb-009e-4ec8-a358-b042954aa9b2", + "identifier": [ + { + "system": "https://fhir.nhs.uk/Id/nhs-number", + "value": "9449305552" + } + ], + "name": [ + { + "use": "usual", + "family": "DAVIS", + "given": ["JANE"], + "prefix": ["MRS"] + } + ], + "gender": "female", + "birthDate": "1999-11-25", + "address": [ + { + "use": "home", + "line": ["53 Harrogate Road", "Chapel Allerton", "Leeds"], + "postalCode": "LS7 3PY" + } + ], + "generalPractitioner": [ + { + "identifier": { + "system": "https://fhir.nhs.uk/Id/ods-organization-code", + "value": "B81001" + } + } + ] + } + }, + { + "fullUrl": "urn:uuid:a8c85454-f8cb-498d-9629-78e2cb5fa47a", + "resource": { + "resourceType": "Practitioner", + "id": "a8c85454-f8cb-498d-9629-78e2cb5fa47a", + "identifier": [ + { + "system": "https://fhir.nhs.uk/Id/sds-user-id", + "value": "5555086689106" + }, + { + "system": "https://fhir.hl7.org.uk/Id/gphc-number", + "value": "2083469" + } + ], + "name": [ + { + "family": "USERM", + "given": ["RANDOM"], + "prefix": ["MR"] + } + ] + } + }, + { + "fullUrl": "urn:uuid:56166769-c1c4-4d07-afa8-132b5dfca666", + "resource": { + "resourceType": "PractitionerRole", + "id": "56166769-c1c4-4d07-afa8-132b5dfca666", + "identifier": [ + { + "system": "https://fhir.nhs.uk/Id/sds-role-profile-id", + "value": "201715352555" + }, + { + "system": "https://fhir.hl7.org.uk/Id/nhsbsa-spurious-code", + "value": "2083469" + } + ], + "practitioner": { + "reference": "urn:uuid:a8c85454-f8cb-498d-9629-78e2cb5fa47a" + }, + "organization": { + "reference": "urn:uuid:3b4b03a5-52ba-4ba6-9b82-70350aa109d8" + }, + "code": [ + { + "coding": [ + { + "system": "https://fhir.nhs.uk/CodeSystem/NHSDigital-SDS-JobRoleCode", + "code": "S8003:G8003:R8003", + "display": "Healthcare Access Role" + } + ] + } + ], + "telecom": [ + { + "system": "phone", + "value": "01234567890", + "use": "work" + } + ] + } + }, + { + "fullUrl": "urn:uuid:3b4b03a5-52ba-4ba6-9b82-70350aa109d8", + "resource": { + "resourceType": "Organization", + "id": "3b4b03a5-52ba-4ba6-9b82-70350aa109d8", + "identifier": [ + { + "system": "https://fhir.nhs.uk/Id/ods-organization-code", + "value": "A99968" + } + ], + "name": "SOMERSET BOWEL CANCER SCREENING CENTRE", + "address": [ + { + "use": "work", + "line": ["MUSGROVE PARK HOSPITAL"], + "city": "TAUNTON", + "postalCode": "TA1 5DA" + } + ], + "telecom": [ + { + "system": "phone", + "value": "01823 333444", + "use": "work" + } + ], + "partOf": { + "identifier": { + "system": "https://fhir.nhs.uk/Id/ods-organization-code", + "value": "RBA" + }, + "display": "TAUNTON AND SOMERSET NHS FOUNDATION TRUST" + } + } + }, + { + "fullUrl": "urn:uuid:28828c55-8fa7-42d7-916f-fcf076e0c10e", + "resource": { + "resourceType": "Provenance", + "id": "28828c55-8fa7-42d7-916f-fcf076e0c10e", + "target": [ + { + "reference": "urn:uuid:a54219b8-f741-4c47-b662-e4f8dfa49ab6" + } + ], + "recorded": "2008-02-27T11:38:00+00:00", + "agent": [ + { + "who": { + "reference": "urn:uuid:56166769-c1c4-4d07-afa8-132b5dfca666" + } + } + ], + "signature": [ + { + "type": [ + { + "system": "urn:iso-astm:E1762-95:2013", + "code": "1.2.840.10065.1.12.1.1" + } + ], + "when": "2021-05-07T14:47:36+00:00", + "who": { + "reference": "urn:uuid:56166769-c1c4-4d07-afa8-132b5dfca666" + }, + "data": "DQo8U2lnbmF0dXJlIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwLzA5L3htbGRzaWcjIj4NCiAgICA8U2lnbmVkSW5mbz48Q2Fub25pY2FsaXphdGlvbk1ldGhvZCBBbGdvcml0aG09Imh0dHA6Ly93d3cudzMub3JnLzIwMDEvMTAveG1sLWV4Yy1jMTRuIyI+PC9DYW5vbmljYWxpemF0aW9uTWV0aG9kPjxTaWduYXR1cmVNZXRob2QgQWxnb3JpdGhtPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwLzA5L3htbGRzaWcjcnNhLXNoYTEiPjwvU2lnbmF0dXJlTWV0aG9kPjxSZWZlcmVuY2U+PFRyYW5zZm9ybXM+PFRyYW5zZm9ybSBBbGdvcml0aG09Imh0dHA6Ly93d3cudzMub3JnLzIwMDEvMTAveG1sLWV4Yy1jMTRuIyI+PC9UcmFuc2Zvcm0+PC9UcmFuc2Zvcm1zPjxEaWdlc3RNZXRob2QgQWxnb3JpdGhtPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwLzA5L3htbGRzaWcjc2hhMSI+PC9EaWdlc3RNZXRob2Q+PERpZ2VzdFZhbHVlPk1TMUViLzUwQ09JbkVJam01UGNIZ2tiYWUxND08L0RpZ2VzdFZhbHVlPjwvUmVmZXJlbmNlPjwvU2lnbmVkSW5mbz4NCiAgICA8U2lnbmF0dXJlVmFsdWU+TkQ4M0hDSGs5Z0NXRU8rQVRCV0lGOS82SDhQTTd6OFJYNVYyenhSZVRpbnlLUlRWQk1HYnBTYlk2TDhBRVBKdm54U1FhS1NGUWFnbXE0YjVXcGpxSFg0YmprL3ZlZU55aTBEM0w3QktTYXg1TVNiRzI1MWUzeTJPNlRXK0poMGhhMW5KU3ZEWXRnbGZOWGZnUWErVWx0WUFDUSt1cnljL0FJLzZFMmg3MDRrPTwvU2lnbmF0dXJlVmFsdWU+DQogICAgPEtleUluZm8+DQogICAgICAgIDxYNTA5RGF0YT4NCiAgICAgICAgICAgIDxYNTA5Q2VydGlmaWNhdGU+TUlJRHVEQ0NBcUNnQXdJQkFnSUVYY210SHpBTkJna3Foa2lHOXcwQkFRc0ZBREEyTVF3d0NnWURWUVFLRXdOdWFITXhDekFKQmdOVkJBc1RBa05CTVJrd0Z3WURWUVFERXhCT1NGTWdTVTVVSUV4bGRtVnNJREZFTUI0WERUSXdNVEF5TWpFd01qRTFOVm9YRFRJeU1UQXlNakV3TlRFMU5Wb3dRekVNTUFvR0ExVUVDaE1EYm1oek1ROHdEUVlEVlFRTEV3WlFaVzl3YkdVeElqQWdCZ05WQkFNTUdUVTFOVEkxTXpVeU1URXdPRjlTUVU1RVQwMWZWVk5GVWxFd2daOHdEUVlKS29aSWh2Y05BUUVCQlFBRGdZMEFNSUdKQW9HQkFLdDRzek53N09BSDdBUVJyRGUveEJJbXNNbU1pUzlFc3JUM2EzcC9MaDNicmR6STlhYWpUVVoyYi9jdmJPYTdQZVlkN3UrSzRhMlpkMFhrKzBHRm1ZR3pTVlg2aVlqYmx3cjB2YWkzMXpWN0crbEd2SHhINnBTb0xDd0lDYVpBRndhYmVENU96OTQreUEzYVdOV3RHVjBEZmg5cXdIM1pGQ0lNUnN2ZXJOMXBBZ01CQUFHamdnRkRNSUlCUHpBT0JnTlZIUThCQWY4RUJBTUNCa0F3WlFZRFZSMGdBUUgvQkZzd1dUQlhCZ3NxaGpvQWlYdG1BQU1DQURCSU1FWUdDQ3NHQVFVRkJ3SUJGanBvZEhSd2N6b3ZMM0JyYVM1dWFITXVkV3N2WTJWeWRHbG1hV05oZEdWZmNHOXNhV05wWlhNdlkyOXVkR1Z1ZEY5amIyMXRhWFJ0Wlc1ME1ETUdBMVVkSHdRc01Db3dLS0Ftb0NTR0ltaDBkSEE2THk5amNtd3VibWh6TG5WckwybHVkQzh4WkM5amNteGpNeTVqY213d0t3WURWUjBRQkNRd0lvQVBNakF5TURFd01qSXhNREl4TlRWYWdROHlNREl5TURNeE56RXdOVEUxTlZvd0h3WURWUjBqQkJnd0ZvQVVvSllmZ1lUTlBkNkVVS0w2UUxJekh4WTVQRkl3SFFZRFZSME9CQllFRkx0eXZZU3lhcWc2MEFFVVpneGswd3JqUkpjK01Ba0dBMVVkRXdRQ01BQXdHUVlKS29aSWh2WjlCMEVBQkF3d0Noc0VWamd1TXdNQ0JMQXdEUVlKS29aSWh2Y05BUUVMQlFBRGdnRUJBQmN6eThCOGp1UHBJZmFUTkZjeHJDMjJhQ1gveFlabWhyTC9OdklCQWFYMUc1aGppd21rR0tFMmhSVElyNjdQeFp4bVhzSnhpZ1JCTUhQbEkrbFkvK29rekgwR2k3YjVicWx3N3B4R0lnSk8wMDB3OHBGc3ZvOXc0MklZaEhvZHN2bkRWU3hoTVQwSjQ2UWhrOXNvRTBMam9FVUxLUVBQbFlHa2UvR2wzbTE3SXRGWXdPYlFIMGZNRXdtaXFCeWVJZno3Z1NjY096TDVjSXA2UGNaVE9qbzJJcVFwZ0VtaGpPY1JJbkVxQU5pdFNkam9pSkFKenBhYVpqWVRSZEhVWDdpN2FqRWlING05MW5GVys0QXFrTnR0bGI0V2NHS3NTbVdnZktLaGVGNElvWktNRTgweGVyU2dNeTh2dGpMT0JKQ0dYejB3TEdtUXVSbXhNVHE4OHE0PTwvWDUwOUNlcnRpZmljYXRlPg0KICAgICAgICA8L1g1MDlEYXRhPg0KICAgIDwvS2V5SW5mbz4NCjwvU2lnbmF0dXJlPg0K" + } + ] + } + } + ] +} diff --git a/src/test/resources/examples/full_examples/secondary-care/community/acute/nominated-pharmacy/pharmacist/prescriber-endorsed/1-Prepare-Request-200_OK.json b/src/test/resources/examples/full_examples/secondary-care/community/acute/nominated-pharmacy/pharmacist/prescriber-endorsed/1-Prepare-Request-200_OK.json new file mode 100644 index 00000000..bfe33277 --- /dev/null +++ b/src/test/resources/examples/full_examples/secondary-care/community/acute/nominated-pharmacy/pharmacist/prescriber-endorsed/1-Prepare-Request-200_OK.json @@ -0,0 +1,349 @@ +{ + "resourceType": "Bundle", + "id": "2df4d4d2-fa89-4fc3-acd1-53f8296b7b60", + "identifier": { + "system": "https://tools.ietf.org/html/rfc4122", + "value": "25f35aa4-1e27-4fa2-9213-ca0ac8bc18c4" + }, + "type": "message", + "entry": [ + { + "fullUrl": "urn:uuid:2df4d4d2-fa89-4fc3-acd1-53f8296b7b60", + "resource": { + "resourceType": "MessageHeader", + "id": "2df4d4d2-fa89-4fc3-acd1-53f8296b7b60", + "eventCoding": { + "system": "https://fhir.nhs.uk/CodeSystem/message-event", + "code": "prescription-order", + "display": "Prescription Order" + }, + "sender": { + "identifier": { + "system": "https://fhir.nhs.uk/Id/ods-organization-code", + "value": "RBA" + }, + "reference": "urn:uuid:56166769-c1c4-4d07-afa8-132b5dfca666", + "display": "BOOTH|PHIL" + }, + "source": { + "endpoint": "https://directory.spineservices.nhs.uk/STU3/Organization/RBA" + }, + "destination": [ + { + "endpoint": "https://directory.spineservices.nhs.uk/STU3/Organization/FH542", + "receiver": { + "identifier": { + "system": "https://fhir.nhs.uk/Id/ods-organization-code", + "value": "FH542" + } + } + } + ], + "focus": [ + { + "reference": "urn:uuid:78d3c2eb-009e-4ec8-a358-b042954aa9b2" + }, + { + "reference": "urn:uuid:a54219b8-f741-4c47-b662-e4f8dfa49ab6" + } + ] + } + }, + { + "fullUrl": "urn:uuid:a54219b8-f741-4c47-b662-e4f8dfa49ab6", + "resource": { + "resourceType": "MedicationRequest", + "id": "a54219b8-f741-4c47-b662-e4f8dfa49ab6", + "extension": [ + { + "url": "https://fhir.nhs.uk/StructureDefinition/Extension-DM-PrescriptionType", + "valueCoding": { + "system": "https://fhir.nhs.uk/CodeSystem/prescription-type", + "code": "1008", + "display": "Outpatient Community Prescriber - Pharmacist Independent Supplementary prescriber" + } + }, + { + "url": "https://fhir.nhs.uk/StructureDefinition/Extension-DM-PrescriptionEndorsement", + "valueCodeableConcept": { + "coding": [ + { + "system": "https://fhir.nhs.uk/CodeSystem/medicationrequest-endorsement", + "code": "FS", + "display": "Sexual Health" + } + ] + } + } + ], + "identifier": [ + { + "system": "https://fhir.nhs.uk/Id/prescription-order-item-number", + "value": "a54219b8-f741-4c47-b662-e4f8dfa49ab6" + } + ], + "status": "active", + "intent": "order", + "category": [ + { + "coding": [ + { + "system": "http://terminology.hl7.org/CodeSystem/medicationrequest-category", + "code": "outpatient", + "display": "Outpatient" + } + ] + } + ], + "medicationCodeableConcept": { + "coding": [ + { + "system": "http://snomed.info/sct", + "code": "408015000", + "display": "Moxifloxacin 400mg tablets" + } + ] + }, + "subject": { + "reference": "urn:uuid:78d3c2eb-009e-4ec8-a358-b042954aa9b2" + }, + "requester": { + "reference": "urn:uuid:56166769-c1c4-4d07-afa8-132b5dfca666" + }, + "groupIdentifier": { + "extension": [ + { + "url": "https://fhir.nhs.uk/StructureDefinition/Extension-DM-PrescriptionId", + "valueIdentifier": { + "system": "https://fhir.nhs.uk/Id/prescription", + "value": "ea100330-67d3-4783-9d9c-87950b94a186" + } + } + ], + "system": "https://fhir.nhs.uk/Id/prescription-order-number", + "value": "863F80-A99968-4DA7AW" + }, + "courseOfTherapyType": { + "coding": [ + { + "system": "http://terminology.hl7.org/CodeSystem/medicationrequest-course-of-therapy", + "code": "acute", + "display": "Short course (acute) therapy" + } + ] + }, + "dosageInstruction": [ + { + "text": "Swallow 400 milligram - 5 times a day - Oral route - for 5 days", + "timing": { + "repeat": { + "frequency": 5, + "period": 1, + "periodUnit": "d", + "boundsDuration": { + "value": 5, + "unit": "day", + "system": "http://unitsofmeasure.org", + "code": "d" + } + } + }, + "method": { + "coding": [ + { + "system": "http://snomed.info/sct", + "code": "421521009", + "display": "Swallow" + } + ] + }, + "route": { + "coding": [ + { + "system": "http://snomed.info/sct", + "code": "26643006", + "display": "Oral route" + } + ] + }, + "doseAndRate": [ + { + "doseQuantity": { + "value": 400, + "unit": "milligram", + "system": "http://unitsofmeasure.org", + "code": "mg" + } + } + ] + } + ], + "dispenseRequest": { + "extension": [ + { + "url": "https://fhir.nhs.uk/StructureDefinition/Extension-DM-PerformerSiteType", + "valueCoding": { + "system": "https://fhir.nhs.uk/CodeSystem/dispensing-site-preference", + "code": "P1" + } + } + ], + "validityPeriod": { + "start": "2021-05-07", + "end": "2021-06-04" + }, + "quantity": { + "value": 1, + "unit": "tablet", + "system": "http://snomed.info/sct", + "code": "428673006" + }, + "performer": { + "identifier": { + "system": "https://fhir.nhs.uk/Id/ods-organization-code", + "value": "FH542" + } + } + }, + "substitution": { + "allowedBoolean": false + } + } + }, + { + "fullUrl": "urn:uuid:78d3c2eb-009e-4ec8-a358-b042954aa9b2", + "resource": { + "resourceType": "Patient", + "id": "78d3c2eb-009e-4ec8-a358-b042954aa9b2", + "identifier": [ + { + "system": "https://fhir.nhs.uk/Id/nhs-number", + "value": "9449305552" + } + ], + "name": [ + { + "use": "usual", + "family": "DAVIS", + "given": ["JANE"], + "prefix": ["MRS"] + } + ], + "gender": "female", + "birthDate": "1999-11-25", + "address": [ + { + "use": "home", + "line": ["53 Harrogate Road", "Chapel Allerton", "Leeds"], + "postalCode": "LS7 3PY" + } + ], + "generalPractitioner": [ + { + "identifier": { + "system": "https://fhir.nhs.uk/Id/ods-organization-code", + "value": "B81001" + } + } + ] + } + }, + { + "fullUrl": "urn:uuid:a8c85454-f8cb-498d-9629-78e2cb5fa47a", + "resource": { + "resourceType": "Practitioner", + "id": "a8c85454-f8cb-498d-9629-78e2cb5fa47a", + "identifier": [ + { + "system": "https://fhir.nhs.uk/Id/sds-user-id", + "value": "555086689106" + }, + { + "system": "https://fhir.hl7.org.uk/Id/gphc-number", + "value": "2083469" + } + ], + "name": [ + { + "family": "FIFTYSEVEN", + "given": ["RANDOM"], + "prefix": ["MR"] + } + ] + } + }, + { + "fullUrl": "urn:uuid:56166769-c1c4-4d07-afa8-132b5dfca666", + "resource": { + "resourceType": "PractitionerRole", + "id": "56166769-c1c4-4d07-afa8-132b5dfca666", + "identifier": [ + { + "system": "https://fhir.nhs.uk/Id/sds-role-profile-id", + "value": "601986680555" + } + ], + "practitioner": { + "reference": "urn:uuid:a8c85454-f8cb-498d-9629-78e2cb5fa47a" + }, + "organization": { + "reference": "urn:uuid:3b4b03a5-52ba-4ba6-9b82-70350aa109d8" + }, + "code": [ + { + "coding": [ + { + "system": "https://fhir.nhs.uk/CodeSystem/NHSDigital-SDS-JobRoleCode", + "code": "S8000:G8000:R8000", + "display": "Clinical Practitioner Access Role " + } + ] + } + ], + "telecom": [ + { + "system": "phone", + "value": "01234567890", + "use": "work" + } + ] + } + }, + { + "fullUrl": "urn:uuid:3b4b03a5-52ba-4ba6-9b82-70350aa109d8", + "resource": { + "resourceType": "Organization", + "id": "3b4b03a5-52ba-4ba6-9b82-70350aa109d8", + "identifier": [ + { + "system": "https://fhir.nhs.uk/Id/ods-organization-code", + "value": "A99968" + } + ], + "name": "SOMERSET BOWEL CANCER SCREENING CENTRE", + "address": [ + { + "use": "work", + "line": ["MUSGROVE PARK HOSPITAL"], + "city": "TAUNTON", + "postalCode": "TA1 5DA" + } + ], + "telecom": [ + { + "system": "phone", + "value": "01823 333444", + "use": "work" + } + ], + "partOf": { + "identifier": { + "system": "https://fhir.nhs.uk/Id/ods-organization-code", + "value": "RBA" + }, + "display": "TAUNTON AND SOMERSET NHS FOUNDATION TRUST" + } + } + } + ] +} diff --git a/src/test/resources/examples/full_examples/secondary-care/community/acute/nominated-pharmacy/pharmacist/prescriber-endorsed/1-Prepare-Response-200_OK.json b/src/test/resources/examples/full_examples/secondary-care/community/acute/nominated-pharmacy/pharmacist/prescriber-endorsed/1-Prepare-Response-200_OK.json new file mode 100644 index 00000000..8e4e7e2b --- /dev/null +++ b/src/test/resources/examples/full_examples/secondary-care/community/acute/nominated-pharmacy/pharmacist/prescriber-endorsed/1-Prepare-Response-200_OK.json @@ -0,0 +1,17 @@ +{ + "resourceType": "Parameters", + "parameter": [ + { + "name": "digest", + "valueString": "PFNpZ25lZEluZm8geG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvMDkveG1sZHNpZyMiPjxDYW5vbmljYWxpemF0aW9uTWV0aG9kIEFsZ29yaXRobT0iaHR0cDovL3d3dy53My5vcmcvMjAwMS8xMC94bWwtZXhjLWMxNG4jIj48L0Nhbm9uaWNhbGl6YXRpb25NZXRob2Q+PFNpZ25hdHVyZU1ldGhvZCBBbGdvcml0aG09Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvMDkveG1sZHNpZyNyc2Etc2hhMSI+PC9TaWduYXR1cmVNZXRob2Q+PFJlZmVyZW5jZT48VHJhbnNmb3Jtcz48VHJhbnNmb3JtIEFsZ29yaXRobT0iaHR0cDovL3d3dy53My5vcmcvMjAwMS8xMC94bWwtZXhjLWMxNG4jIj48L1RyYW5zZm9ybT48L1RyYW5zZm9ybXM+PERpZ2VzdE1ldGhvZCBBbGdvcml0aG09Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvMDkveG1sZHNpZyNzaGExIj48L0RpZ2VzdE1ldGhvZD48RGlnZXN0VmFsdWU+akd0Vm1FcW13aCtNSWF4elJLYXhsc0ZyYVNBPTwvRGlnZXN0VmFsdWU+PC9SZWZlcmVuY2U+PC9TaWduZWRJbmZvPg==" + }, + { + "name": "timestamp", + "valueString": "2022-10-25T10:24:34+00:00" + }, + { + "name": "algorithm", + "valueString": "RS1" + } + ] +} diff --git a/src/test/resources/examples/full_examples/secondary-care/community/acute/nominated-pharmacy/pharmacist/prescriber-endorsed/1-Process-Request-Send-200_OK.json b/src/test/resources/examples/full_examples/secondary-care/community/acute/nominated-pharmacy/pharmacist/prescriber-endorsed/1-Process-Request-Send-200_OK.json new file mode 100644 index 00000000..ddfc9e83 --- /dev/null +++ b/src/test/resources/examples/full_examples/secondary-care/community/acute/nominated-pharmacy/pharmacist/prescriber-endorsed/1-Process-Request-Send-200_OK.json @@ -0,0 +1,384 @@ +{ + "resourceType": "Bundle", + "id": "2df4d4d2-fa89-4fc3-acd1-53f8296b7b60", + "identifier": { + "system": "https://tools.ietf.org/html/rfc4122", + "value": "1d2b3b95-9e5c-41b2-a6f4-83b9c112fc39" + }, + "type": "message", + "entry": [ + { + "fullUrl": "urn:uuid:2df4d4d2-fa89-4fc3-acd1-53f8296b7b60", + "resource": { + "resourceType": "MessageHeader", + "id": "2df4d4d2-fa89-4fc3-acd1-53f8296b7b60", + "eventCoding": { + "system": "https://fhir.nhs.uk/CodeSystem/message-event", + "code": "prescription-order", + "display": "Prescription Order" + }, + "sender": { + "identifier": { + "system": "https://fhir.nhs.uk/Id/ods-organization-code", + "value": "RBA" + }, + "reference": "urn:uuid:56166769-c1c4-4d07-afa8-132b5dfca666", + "display": "BOOTH|PHIL" + }, + "source": { + "endpoint": "https://directory.spineservices.nhs.uk/STU3/Organization/RBA" + }, + "destination": [ + { + "endpoint": "https://directory.spineservices.nhs.uk/STU3/Organization/FH542", + "receiver": { + "identifier": { + "system": "https://fhir.nhs.uk/Id/ods-organization-code", + "value": "FH542" + } + } + } + ], + "focus": [ + { + "reference": "urn:uuid:78d3c2eb-009e-4ec8-a358-b042954aa9b2" + }, + { + "reference": "urn:uuid:a54219b8-f741-4c47-b662-e4f8dfa49ab6" + } + ] + } + }, + { + "fullUrl": "urn:uuid:a54219b8-f741-4c47-b662-e4f8dfa49ab6", + "resource": { + "resourceType": "MedicationRequest", + "id": "a54219b8-f741-4c47-b662-e4f8dfa49ab6", + "extension": [ + { + "url": "https://fhir.nhs.uk/StructureDefinition/Extension-DM-PrescriptionType", + "valueCoding": { + "system": "https://fhir.nhs.uk/CodeSystem/prescription-type", + "code": "1008", + "display": "Outpatient Community Prescriber - Pharmacist Independent Supplementary prescriber" + } + }, + { + "url": "https://fhir.nhs.uk/StructureDefinition/Extension-DM-PrescriptionEndorsement", + "valueCodeableConcept": { + "coding": [ + { + "system": "https://fhir.nhs.uk/CodeSystem/medicationrequest-endorsement", + "code": "FS", + "display": "Sexual Health" + } + ] + } + } + ], + "identifier": [ + { + "system": "https://fhir.nhs.uk/Id/prescription-order-item-number", + "value": "a54219b8-f741-4c47-b662-e4f8dfa49ab6" + } + ], + "status": "active", + "intent": "order", + "category": [ + { + "coding": [ + { + "system": "http://terminology.hl7.org/CodeSystem/medicationrequest-category", + "code": "outpatient", + "display": "Outpatient" + } + ] + } + ], + "medicationCodeableConcept": { + "coding": [ + { + "system": "http://snomed.info/sct", + "code": "408015000", + "display": "Moxifloxacin 400mg tablets" + } + ] + }, + "subject": { + "reference": "urn:uuid:78d3c2eb-009e-4ec8-a358-b042954aa9b2" + }, + "requester": { + "reference": "urn:uuid:56166769-c1c4-4d07-afa8-132b5dfca666" + }, + "groupIdentifier": { + "extension": [ + { + "url": "https://fhir.nhs.uk/StructureDefinition/Extension-DM-PrescriptionId", + "valueIdentifier": { + "system": "https://fhir.nhs.uk/Id/prescription", + "value": "ea100330-67d3-4783-9d9c-87950b94a186" + } + } + ], + "system": "https://fhir.nhs.uk/Id/prescription-order-number", + "value": "863F80-A99968-4DA7AW" + }, + "courseOfTherapyType": { + "coding": [ + { + "system": "http://terminology.hl7.org/CodeSystem/medicationrequest-course-of-therapy", + "code": "acute", + "display": "Short course (acute) therapy" + } + ] + }, + "dosageInstruction": [ + { + "text": "Swallow 400 milligram - 5 times a day - Oral route - for 5 days", + "timing": { + "repeat": { + "frequency": 5, + "period": 1, + "periodUnit": "d", + "boundsDuration": { + "value": 5, + "unit": "day", + "system": "http://unitsofmeasure.org", + "code": "d" + } + } + }, + "method": { + "coding": [ + { + "system": "http://snomed.info/sct", + "code": "421521009", + "display": "Swallow" + } + ] + }, + "route": { + "coding": [ + { + "system": "http://snomed.info/sct", + "code": "26643006", + "display": "Oral route" + } + ] + }, + "doseAndRate": [ + { + "doseQuantity": { + "value": 400, + "unit": "milligram", + "system": "http://unitsofmeasure.org", + "code": "mg" + } + } + ] + } + ], + "dispenseRequest": { + "extension": [ + { + "url": "https://fhir.nhs.uk/StructureDefinition/Extension-DM-PerformerSiteType", + "valueCoding": { + "system": "https://fhir.nhs.uk/CodeSystem/dispensing-site-preference", + "code": "P1" + } + } + ], + "validityPeriod": { + "start": "2021-05-07", + "end": "2021-06-04" + }, + "quantity": { + "value": 1, + "unit": "tablet", + "system": "http://snomed.info/sct", + "code": "428673006" + }, + "performer": { + "identifier": { + "system": "https://fhir.nhs.uk/Id/ods-organization-code", + "value": "FH542" + } + } + }, + "substitution": { + "allowedBoolean": false + } + } + }, + { + "fullUrl": "urn:uuid:78d3c2eb-009e-4ec8-a358-b042954aa9b2", + "resource": { + "resourceType": "Patient", + "id": "78d3c2eb-009e-4ec8-a358-b042954aa9b2", + "identifier": [ + { + "system": "https://fhir.nhs.uk/Id/nhs-number", + "value": "9449305552" + } + ], + "name": [ + { + "use": "usual", + "family": "DAVIS", + "given": ["JANE"], + "prefix": ["MRS"] + } + ], + "gender": "female", + "birthDate": "1999-11-25", + "address": [ + { + "use": "home", + "line": ["53 Harrogate Road", "Chapel Allerton", "Leeds"], + "postalCode": "LS7 3PY" + } + ], + "generalPractitioner": [ + { + "identifier": { + "system": "https://fhir.nhs.uk/Id/ods-organization-code", + "value": "B81001" + } + } + ] + } + }, + { + "fullUrl": "urn:uuid:a8c85454-f8cb-498d-9629-78e2cb5fa47a", + "resource": { + "resourceType": "Practitioner", + "id": "a8c85454-f8cb-498d-9629-78e2cb5fa47a", + "identifier": [ + { + "system": "https://fhir.nhs.uk/Id/sds-user-id", + "value": "555086689106" + }, + { + "system": "https://fhir.hl7.org.uk/Id/gphc-number", + "value": "2083469" + } + ], + "name": [ + { + "family": "FIFTYSEVEN", + "given": ["RANDOM"], + "prefix": ["MR"] + } + ] + } + }, + { + "fullUrl": "urn:uuid:56166769-c1c4-4d07-afa8-132b5dfca666", + "resource": { + "resourceType": "PractitionerRole", + "id": "56166769-c1c4-4d07-afa8-132b5dfca666", + "identifier": [ + { + "system": "https://fhir.nhs.uk/Id/sds-role-profile-id", + "value": "601986680555" + } + ], + "practitioner": { + "reference": "urn:uuid:a8c85454-f8cb-498d-9629-78e2cb5fa47a" + }, + "organization": { + "reference": "urn:uuid:3b4b03a5-52ba-4ba6-9b82-70350aa109d8" + }, + "code": [ + { + "coding": [ + { + "system": "https://fhir.nhs.uk/CodeSystem/NHSDigital-SDS-JobRoleCode", + "code": "S8000:G8000:R8000", + "display": "Clinical Practitioner Access Role " + } + ] + } + ], + "telecom": [ + { + "system": "phone", + "value": "01234567890", + "use": "work" + } + ] + } + }, + { + "fullUrl": "urn:uuid:3b4b03a5-52ba-4ba6-9b82-70350aa109d8", + "resource": { + "resourceType": "Organization", + "id": "3b4b03a5-52ba-4ba6-9b82-70350aa109d8", + "identifier": [ + { + "system": "https://fhir.nhs.uk/Id/ods-organization-code", + "value": "A99968" + } + ], + "name": "SOMERSET BOWEL CANCER SCREENING CENTRE", + "address": [ + { + "use": "work", + "line": ["MUSGROVE PARK HOSPITAL"], + "city": "TAUNTON", + "postalCode": "TA1 5DA" + } + ], + "telecom": [ + { + "system": "phone", + "value": "01823 333444", + "use": "work" + } + ], + "partOf": { + "identifier": { + "system": "https://fhir.nhs.uk/Id/ods-organization-code", + "value": "RBA" + }, + "display": "TAUNTON AND SOMERSET NHS FOUNDATION TRUST" + } + } + }, + { + "fullUrl": "urn:uuid:28828c55-8fa7-42d7-916f-fcf076e0c10e", + "resource": { + "resourceType": "Provenance", + "id": "28828c55-8fa7-42d7-916f-fcf076e0c10e", + "target": [ + { + "reference": "urn:uuid:a54219b8-f741-4c47-b662-e4f8dfa49ab6" + } + ], + "recorded": "2008-02-27T11:38:00+00:00", + "agent": [ + { + "who": { + "reference": "urn:uuid:56166769-c1c4-4d07-afa8-132b5dfca666" + } + } + ], + "signature": [ + { + "type": [ + { + "system": "urn:iso-astm:E1762-95:2013", + "code": "1.2.840.10065.1.12.1.1" + } + ], + "when": "2021-05-07T14:47:41+00:00", + "who": { + "reference": "urn:uuid:56166769-c1c4-4d07-afa8-132b5dfca666" + }, + "data": "DQo8U2lnbmF0dXJlIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwLzA5L3htbGRzaWcjIj4NCiAgICA8U2lnbmVkSW5mbz48Q2Fub25pY2FsaXphdGlvbk1ldGhvZCBBbGdvcml0aG09Imh0dHA6Ly93d3cudzMub3JnLzIwMDEvMTAveG1sLWV4Yy1jMTRuIyI+PC9DYW5vbmljYWxpemF0aW9uTWV0aG9kPjxTaWduYXR1cmVNZXRob2QgQWxnb3JpdGhtPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwLzA5L3htbGRzaWcjcnNhLXNoYTEiPjwvU2lnbmF0dXJlTWV0aG9kPjxSZWZlcmVuY2U+PFRyYW5zZm9ybXM+PFRyYW5zZm9ybSBBbGdvcml0aG09Imh0dHA6Ly93d3cudzMub3JnLzIwMDEvMTAveG1sLWV4Yy1jMTRuIyI+PC9UcmFuc2Zvcm0+PC9UcmFuc2Zvcm1zPjxEaWdlc3RNZXRob2QgQWxnb3JpdGhtPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwLzA5L3htbGRzaWcjc2hhMSI+PC9EaWdlc3RNZXRob2Q+PERpZ2VzdFZhbHVlPkFOU1RjejV4TDAyRWlhUlNXY0M5a0oxTU9waz08L0RpZ2VzdFZhbHVlPjwvUmVmZXJlbmNlPjwvU2lnbmVkSW5mbz4NCiAgICA8U2lnbmF0dXJlVmFsdWU+TUFhRjkyYy94K3FwY0htUUQwN2V6WDY2cm1rZE1uRkxMUUJIcGlqcll0OGNmcFE0WVh0VlZ5VkpHNkZJbDRwcVhySjFzeXBVVWdDUnJ3bE9aZEpDSkNEUHNTL1RWcEVaQlZ2TC83YkdxcTBaUU5lclVvblBKV2ZGWjE3MkVxSGpmWXU1UkQ3WmptUzE2Sy9YY0tPd2h4UVQyc0Z2TEtHd2FwbUZIVUFZWmdRPTwvU2lnbmF0dXJlVmFsdWU+DQogICAgPEtleUluZm8+DQogICAgICAgIDxYNTA5RGF0YT4NCiAgICAgICAgICAgIDxYNTA5Q2VydGlmaWNhdGU+TUlJRHVEQ0NBcUNnQXdJQkFnSUVYY210SHpBTkJna3Foa2lHOXcwQkFRc0ZBREEyTVF3d0NnWURWUVFLRXdOdWFITXhDekFKQmdOVkJBc1RBa05CTVJrd0Z3WURWUVFERXhCT1NGTWdTVTVVSUV4bGRtVnNJREZFTUI0WERUSXdNVEF5TWpFd01qRTFOVm9YRFRJeU1UQXlNakV3TlRFMU5Wb3dRekVNTUFvR0ExVUVDaE1EYm1oek1ROHdEUVlEVlFRTEV3WlFaVzl3YkdVeElqQWdCZ05WQkFNTUdUVTFOVEkxTXpVeU1URXdPRjlTUVU1RVQwMWZWVk5GVWxFd2daOHdEUVlKS29aSWh2Y05BUUVCQlFBRGdZMEFNSUdKQW9HQkFLdDRzek53N09BSDdBUVJyRGUveEJJbXNNbU1pUzlFc3JUM2EzcC9MaDNicmR6STlhYWpUVVoyYi9jdmJPYTdQZVlkN3UrSzRhMlpkMFhrKzBHRm1ZR3pTVlg2aVlqYmx3cjB2YWkzMXpWN0crbEd2SHhINnBTb0xDd0lDYVpBRndhYmVENU96OTQreUEzYVdOV3RHVjBEZmg5cXdIM1pGQ0lNUnN2ZXJOMXBBZ01CQUFHamdnRkRNSUlCUHpBT0JnTlZIUThCQWY4RUJBTUNCa0F3WlFZRFZSMGdBUUgvQkZzd1dUQlhCZ3NxaGpvQWlYdG1BQU1DQURCSU1FWUdDQ3NHQVFVRkJ3SUJGanBvZEhSd2N6b3ZMM0JyYVM1dWFITXVkV3N2WTJWeWRHbG1hV05oZEdWZmNHOXNhV05wWlhNdlkyOXVkR1Z1ZEY5amIyMXRhWFJ0Wlc1ME1ETUdBMVVkSHdRc01Db3dLS0Ftb0NTR0ltaDBkSEE2THk5amNtd3VibWh6TG5WckwybHVkQzh4WkM5amNteGpNeTVqY213d0t3WURWUjBRQkNRd0lvQVBNakF5TURFd01qSXhNREl4TlRWYWdROHlNREl5TURNeE56RXdOVEUxTlZvd0h3WURWUjBqQkJnd0ZvQVVvSllmZ1lUTlBkNkVVS0w2UUxJekh4WTVQRkl3SFFZRFZSME9CQllFRkx0eXZZU3lhcWc2MEFFVVpneGswd3JqUkpjK01Ba0dBMVVkRXdRQ01BQXdHUVlKS29aSWh2WjlCMEVBQkF3d0Noc0VWamd1TXdNQ0JMQXdEUVlKS29aSWh2Y05BUUVMQlFBRGdnRUJBQmN6eThCOGp1UHBJZmFUTkZjeHJDMjJhQ1gveFlabWhyTC9OdklCQWFYMUc1aGppd21rR0tFMmhSVElyNjdQeFp4bVhzSnhpZ1JCTUhQbEkrbFkvK29rekgwR2k3YjVicWx3N3B4R0lnSk8wMDB3OHBGc3ZvOXc0MklZaEhvZHN2bkRWU3hoTVQwSjQ2UWhrOXNvRTBMam9FVUxLUVBQbFlHa2UvR2wzbTE3SXRGWXdPYlFIMGZNRXdtaXFCeWVJZno3Z1NjY096TDVjSXA2UGNaVE9qbzJJcVFwZ0VtaGpPY1JJbkVxQU5pdFNkam9pSkFKenBhYVpqWVRSZEhVWDdpN2FqRWlING05MW5GVys0QXFrTnR0bGI0V2NHS3NTbVdnZktLaGVGNElvWktNRTgweGVyU2dNeTh2dGpMT0JKQ0dYejB3TEdtUXVSbXhNVHE4OHE0PTwvWDUwOUNlcnRpZmljYXRlPg0KICAgICAgICA8L1g1MDlEYXRhPg0KICAgIDwvS2V5SW5mbz4NCjwvU2lnbmF0dXJlPg0K" + } + ] + } + } + ] +} diff --git a/src/test/resources/examples/full_examples/secondary-care/community/acute/nominated-pharmacy/pharmacist/prescriber-endorsed/2-Prepare-Request-200_OK.json b/src/test/resources/examples/full_examples/secondary-care/community/acute/nominated-pharmacy/pharmacist/prescriber-endorsed/2-Prepare-Request-200_OK.json new file mode 100644 index 00000000..4b690faa --- /dev/null +++ b/src/test/resources/examples/full_examples/secondary-care/community/acute/nominated-pharmacy/pharmacist/prescriber-endorsed/2-Prepare-Request-200_OK.json @@ -0,0 +1,361 @@ +{ + "resourceType": "Bundle", + "id": "2df4d4d2-fa89-4fc3-acd1-53f8296b7b60", + "identifier": { + "system": "https://tools.ietf.org/html/rfc4122", + "value": "cb398d94-035b-4ddd-ab69-d3dfa0ec16da" + }, + "type": "message", + "entry": [ + { + "fullUrl": "urn:uuid:2df4d4d2-fa89-4fc3-acd1-53f8296b7b60", + "resource": { + "resourceType": "MessageHeader", + "id": "2df4d4d2-fa89-4fc3-acd1-53f8296b7b60", + "eventCoding": { + "system": "https://fhir.nhs.uk/CodeSystem/message-event", + "code": "prescription-order", + "display": "Prescription Order" + }, + "sender": { + "identifier": { + "system": "https://fhir.nhs.uk/Id/ods-organization-code", + "value": "RBA" + }, + "reference": "urn:uuid:56166769-c1c4-4d07-afa8-132b5dfca666", + "display": "BOOTH|PHIL" + }, + "source": { + "endpoint": "https://directory.spineservices.nhs.uk/STU3/Organization/RBA" + }, + "destination": [ + { + "endpoint": "https://directory.spineservices.nhs.uk/STU3/Organization/FH542", + "receiver": { + "identifier": { + "system": "https://fhir.nhs.uk/Id/ods-organization-code", + "value": "FH542" + } + } + } + ], + "focus": [ + { + "reference": "urn:uuid:78d3c2eb-009e-4ec8-a358-b042954aa9b2" + }, + { + "reference": "urn:uuid:a54219b8-f741-4c47-b662-e4f8dfa49ab6" + } + ] + } + }, + { + "fullUrl": "urn:uuid:a54219b8-f741-4c47-b662-e4f8dfa49ab6", + "resource": { + "resourceType": "MedicationRequest", + "id": "a54219b8-f741-4c47-b662-e4f8dfa49ab6", + "extension": [ + { + "url": "https://fhir.nhs.uk/StructureDefinition/Extension-DM-PrescriptionType", + "valueCoding": { + "system": "https://fhir.nhs.uk/CodeSystem/prescription-type", + "code": "1008", + "display": "Outpatient Community Prescriber - Pharmacist Independent Supplementary prescriber" + } + }, + { + "url": "https://fhir.nhs.uk/StructureDefinition/Extension-DM-PrescriptionEndorsement", + "valueCodeableConcept": { + "coding": [ + { + "system": "https://fhir.nhs.uk/CodeSystem/medicationrequest-endorsement", + "code": "SLS", + "display": "Selected List Scheme" + } + ] + } + }, + { + "url": "https://fhir.nhs.uk/StructureDefinition/Extension-DM-PrescriptionEndorsement", + "valueCodeableConcept": { + "coding": [ + { + "system": "https://fhir.nhs.uk/CodeSystem/medicationrequest-endorsement", + "code": "FS", + "display": "Sexual Health" + } + ] + } + } + ], + "identifier": [ + { + "system": "https://fhir.nhs.uk/Id/prescription-order-item-number", + "value": "a54219b8-f741-4c47-b662-e4f8dfa49ab6" + } + ], + "status": "active", + "intent": "order", + "category": [ + { + "coding": [ + { + "system": "http://terminology.hl7.org/CodeSystem/medicationrequest-category", + "code": "outpatient", + "display": "Outpatient" + } + ] + } + ], + "medicationCodeableConcept": { + "coding": [ + { + "system": "http://snomed.info/sct", + "code": "37740611000001101", + "display": "Nizoral 2% cream" + } + ] + }, + "subject": { + "reference": "urn:uuid:78d3c2eb-009e-4ec8-a358-b042954aa9b2" + }, + "requester": { + "reference": "urn:uuid:56166769-c1c4-4d07-afa8-132b5dfca666" + }, + "groupIdentifier": { + "extension": [ + { + "url": "https://fhir.nhs.uk/StructureDefinition/Extension-DM-PrescriptionId", + "valueIdentifier": { + "system": "https://fhir.nhs.uk/Id/prescription", + "value": "94f0201a-f656-4a8b-b646-5561f74d16f0" + } + } + ], + "system": "https://fhir.nhs.uk/Id/prescription-order-number", + "value": "C2529A-A99968-464891" + }, + "courseOfTherapyType": { + "coding": [ + { + "system": "http://terminology.hl7.org/CodeSystem/medicationrequest-course-of-therapy", + "code": "acute", + "display": "Short course (acute) therapy" + } + ] + }, + "dosageInstruction": [ + { + "text": "Apply 30 gram - 5 times a day - Cutaneous route - for 5 days", + "timing": { + "repeat": { + "frequency": 5, + "period": 1, + "periodUnit": "d", + "boundsDuration": { + "value": 5, + "unit": "day", + "system": "http://unitsofmeasure.org", + "code": "d" + } + } + }, + "method": { + "coding": [ + { + "system": "http://snomed.info/sct", + "code": "417924000", + "display": "Apply" + } + ] + }, + "route": { + "coding": [ + { + "system": "http://snomed.info/sct", + "code": "448598008", + "display": "Cutaneous route" + } + ] + }, + "doseAndRate": [ + { + "doseQuantity": { + "value": 30, + "unit": "gram", + "system": "http://unitsofmeasure.org", + "code": "g" + } + } + ] + } + ], + "dispenseRequest": { + "extension": [ + { + "url": "https://fhir.nhs.uk/StructureDefinition/Extension-DM-PerformerSiteType", + "valueCoding": { + "system": "https://fhir.nhs.uk/CodeSystem/dispensing-site-preference", + "code": "P1" + } + } + ], + "validityPeriod": { + "start": "2021-05-07", + "end": "2021-06-04" + }, + "quantity": { + "value": 1, + "unit": "Bottle", + "system": "http://snomed.info/sct", + "code": "419672006" + }, + "performer": { + "identifier": { + "system": "https://fhir.nhs.uk/Id/ods-organization-code", + "value": "FH542" + } + } + }, + "substitution": { + "allowedBoolean": false + } + } + }, + { + "fullUrl": "urn:uuid:78d3c2eb-009e-4ec8-a358-b042954aa9b2", + "resource": { + "resourceType": "Patient", + "id": "78d3c2eb-009e-4ec8-a358-b042954aa9b2", + "identifier": [ + { + "system": "https://fhir.nhs.uk/Id/nhs-number", + "value": "9449305552" + } + ], + "name": [ + { + "use": "usual", + "family": "DAVIS", + "given": ["JANE"], + "prefix": ["MRS"] + } + ], + "gender": "female", + "birthDate": "1999-11-25", + "address": [ + { + "use": "home", + "line": ["53 Harrogate Road", "Chapel Allerton", "Leeds"], + "postalCode": "LS7 3PY" + } + ], + "generalPractitioner": [ + { + "identifier": { + "system": "https://fhir.nhs.uk/Id/ods-organization-code", + "value": "B81001" + } + } + ] + } + }, + { + "fullUrl": "urn:uuid:a8c85454-f8cb-498d-9629-78e2cb5fa47a", + "resource": { + "resourceType": "Practitioner", + "id": "a8c85454-f8cb-498d-9629-78e2cb5fa47a", + "identifier": [ + { + "system": "https://fhir.nhs.uk/Id/sds-user-id", + "value": "555086689106" + }, + { + "system": "https://fhir.hl7.org.uk/Id/gphc-number", + "value": "2083469" + } + ], + "name": [ + { + "family": "FIFTYSEVEN", + "given": ["RANDOM"], + "prefix": ["MR"] + } + ] + } + }, + { + "fullUrl": "urn:uuid:56166769-c1c4-4d07-afa8-132b5dfca666", + "resource": { + "resourceType": "PractitionerRole", + "id": "56166769-c1c4-4d07-afa8-132b5dfca666", + "identifier": [ + { + "system": "https://fhir.nhs.uk/Id/sds-role-profile-id", + "value": "601986680555" + } + ], + "practitioner": { + "reference": "urn:uuid:a8c85454-f8cb-498d-9629-78e2cb5fa47a" + }, + "organization": { + "reference": "urn:uuid:3b4b03a5-52ba-4ba6-9b82-70350aa109d8" + }, + "code": [ + { + "coding": [ + { + "system": "https://fhir.nhs.uk/CodeSystem/NHSDigital-SDS-JobRoleCode", + "code": "S8000:G8000:R8000", + "display": "Clinical Practitioner Access Role " + } + ] + } + ], + "telecom": [ + { + "system": "phone", + "value": "01234567890", + "use": "work" + } + ] + } + }, + { + "fullUrl": "urn:uuid:3b4b03a5-52ba-4ba6-9b82-70350aa109d8", + "resource": { + "resourceType": "Organization", + "id": "3b4b03a5-52ba-4ba6-9b82-70350aa109d8", + "identifier": [ + { + "system": "https://fhir.nhs.uk/Id/ods-organization-code", + "value": "A99968" + } + ], + "name": "SOMERSET BOWEL CANCER SCREENING CENTRE", + "address": [ + { + "use": "work", + "line": ["MUSGROVE PARK HOSPITAL"], + "city": "TAUNTON", + "postalCode": "TA1 5DA" + } + ], + "telecom": [ + { + "system": "phone", + "value": "01823 333444", + "use": "work" + } + ], + "partOf": { + "identifier": { + "system": "https://fhir.nhs.uk/Id/ods-organization-code", + "value": "RBA" + }, + "display": "TAUNTON AND SOMERSET NHS FOUNDATION TRUST" + } + } + } + ] +} diff --git a/src/test/resources/examples/full_examples/secondary-care/community/acute/nominated-pharmacy/pharmacist/prescriber-endorsed/2-Prepare-Response-200_OK.json b/src/test/resources/examples/full_examples/secondary-care/community/acute/nominated-pharmacy/pharmacist/prescriber-endorsed/2-Prepare-Response-200_OK.json new file mode 100644 index 00000000..d1ee9622 --- /dev/null +++ b/src/test/resources/examples/full_examples/secondary-care/community/acute/nominated-pharmacy/pharmacist/prescriber-endorsed/2-Prepare-Response-200_OK.json @@ -0,0 +1,17 @@ +{ + "resourceType": "Parameters", + "parameter": [ + { + "name": "digest", + "valueString": "PFNpZ25lZEluZm8geG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvMDkveG1sZHNpZyMiPjxDYW5vbmljYWxpemF0aW9uTWV0aG9kIEFsZ29yaXRobT0iaHR0cDovL3d3dy53My5vcmcvMjAwMS8xMC94bWwtZXhjLWMxNG4jIj48L0Nhbm9uaWNhbGl6YXRpb25NZXRob2Q+PFNpZ25hdHVyZU1ldGhvZCBBbGdvcml0aG09Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvMDkveG1sZHNpZyNyc2Etc2hhMSI+PC9TaWduYXR1cmVNZXRob2Q+PFJlZmVyZW5jZT48VHJhbnNmb3Jtcz48VHJhbnNmb3JtIEFsZ29yaXRobT0iaHR0cDovL3d3dy53My5vcmcvMjAwMS8xMC94bWwtZXhjLWMxNG4jIj48L1RyYW5zZm9ybT48L1RyYW5zZm9ybXM+PERpZ2VzdE1ldGhvZCBBbGdvcml0aG09Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvMDkveG1sZHNpZyNzaGExIj48L0RpZ2VzdE1ldGhvZD48RGlnZXN0VmFsdWU+aEtGMjVHa3lmTENrajlMb1ppZGptZHdPZzJNPTwvRGlnZXN0VmFsdWU+PC9SZWZlcmVuY2U+PC9TaWduZWRJbmZvPg==" + }, + { + "name": "timestamp", + "valueString": "2022-10-25T10:24:34+00:00" + }, + { + "name": "algorithm", + "valueString": "RS1" + } + ] +} diff --git a/src/test/resources/examples/full_examples/secondary-care/community/acute/nominated-pharmacy/pharmacist/prescriber-endorsed/2-Process-Request-Send-200_OK.json b/src/test/resources/examples/full_examples/secondary-care/community/acute/nominated-pharmacy/pharmacist/prescriber-endorsed/2-Process-Request-Send-200_OK.json new file mode 100644 index 00000000..1ad2552d --- /dev/null +++ b/src/test/resources/examples/full_examples/secondary-care/community/acute/nominated-pharmacy/pharmacist/prescriber-endorsed/2-Process-Request-Send-200_OK.json @@ -0,0 +1,396 @@ +{ + "resourceType": "Bundle", + "id": "2df4d4d2-fa89-4fc3-acd1-53f8296b7b60", + "identifier": { + "system": "https://tools.ietf.org/html/rfc4122", + "value": "bef2d32d-0ecb-46a3-b259-02f12b6cdfaa" + }, + "type": "message", + "entry": [ + { + "fullUrl": "urn:uuid:2df4d4d2-fa89-4fc3-acd1-53f8296b7b60", + "resource": { + "resourceType": "MessageHeader", + "id": "2df4d4d2-fa89-4fc3-acd1-53f8296b7b60", + "eventCoding": { + "system": "https://fhir.nhs.uk/CodeSystem/message-event", + "code": "prescription-order", + "display": "Prescription Order" + }, + "sender": { + "identifier": { + "system": "https://fhir.nhs.uk/Id/ods-organization-code", + "value": "RBA" + }, + "reference": "urn:uuid:56166769-c1c4-4d07-afa8-132b5dfca666", + "display": "BOOTH|PHIL" + }, + "source": { + "endpoint": "https://directory.spineservices.nhs.uk/STU3/Organization/RBA" + }, + "destination": [ + { + "endpoint": "https://directory.spineservices.nhs.uk/STU3/Organization/FH542", + "receiver": { + "identifier": { + "system": "https://fhir.nhs.uk/Id/ods-organization-code", + "value": "FH542" + } + } + } + ], + "focus": [ + { + "reference": "urn:uuid:78d3c2eb-009e-4ec8-a358-b042954aa9b2" + }, + { + "reference": "urn:uuid:a54219b8-f741-4c47-b662-e4f8dfa49ab6" + } + ] + } + }, + { + "fullUrl": "urn:uuid:a54219b8-f741-4c47-b662-e4f8dfa49ab6", + "resource": { + "resourceType": "MedicationRequest", + "id": "a54219b8-f741-4c47-b662-e4f8dfa49ab6", + "extension": [ + { + "url": "https://fhir.nhs.uk/StructureDefinition/Extension-DM-PrescriptionType", + "valueCoding": { + "system": "https://fhir.nhs.uk/CodeSystem/prescription-type", + "code": "1008", + "display": "Outpatient Community Prescriber - Pharmacist Independent Supplementary prescriber" + } + }, + { + "url": "https://fhir.nhs.uk/StructureDefinition/Extension-DM-PrescriptionEndorsement", + "valueCodeableConcept": { + "coding": [ + { + "system": "https://fhir.nhs.uk/CodeSystem/medicationrequest-endorsement", + "code": "SLS", + "display": "Selected List Scheme" + } + ] + } + }, + { + "url": "https://fhir.nhs.uk/StructureDefinition/Extension-DM-PrescriptionEndorsement", + "valueCodeableConcept": { + "coding": [ + { + "system": "https://fhir.nhs.uk/CodeSystem/medicationrequest-endorsement", + "code": "FS", + "display": "Sexual Health" + } + ] + } + } + ], + "identifier": [ + { + "system": "https://fhir.nhs.uk/Id/prescription-order-item-number", + "value": "a54219b8-f741-4c47-b662-e4f8dfa49ab6" + } + ], + "status": "active", + "intent": "order", + "category": [ + { + "coding": [ + { + "system": "http://terminology.hl7.org/CodeSystem/medicationrequest-category", + "code": "outpatient", + "display": "Outpatient" + } + ] + } + ], + "medicationCodeableConcept": { + "coding": [ + { + "system": "http://snomed.info/sct", + "code": "37740611000001101", + "display": "Nizoral 2% cream" + } + ] + }, + "subject": { + "reference": "urn:uuid:78d3c2eb-009e-4ec8-a358-b042954aa9b2" + }, + "requester": { + "reference": "urn:uuid:56166769-c1c4-4d07-afa8-132b5dfca666" + }, + "groupIdentifier": { + "extension": [ + { + "url": "https://fhir.nhs.uk/StructureDefinition/Extension-DM-PrescriptionId", + "valueIdentifier": { + "system": "https://fhir.nhs.uk/Id/prescription", + "value": "94f0201a-f656-4a8b-b646-5561f74d16f0" + } + } + ], + "system": "https://fhir.nhs.uk/Id/prescription-order-number", + "value": "C2529A-A99968-464891" + }, + "courseOfTherapyType": { + "coding": [ + { + "system": "http://terminology.hl7.org/CodeSystem/medicationrequest-course-of-therapy", + "code": "acute", + "display": "Short course (acute) therapy" + } + ] + }, + "dosageInstruction": [ + { + "text": "Apply 30 gram - 5 times a day - Cutaneous route - for 5 days", + "timing": { + "repeat": { + "frequency": 5, + "period": 1, + "periodUnit": "d", + "boundsDuration": { + "value": 5, + "unit": "day", + "system": "http://unitsofmeasure.org", + "code": "d" + } + } + }, + "method": { + "coding": [ + { + "system": "http://snomed.info/sct", + "code": "417924000", + "display": "Apply" + } + ] + }, + "route": { + "coding": [ + { + "system": "http://snomed.info/sct", + "code": "448598008", + "display": "Cutaneous route" + } + ] + }, + "doseAndRate": [ + { + "doseQuantity": { + "value": 30, + "unit": "gram", + "system": "http://unitsofmeasure.org", + "code": "g" + } + } + ] + } + ], + "dispenseRequest": { + "extension": [ + { + "url": "https://fhir.nhs.uk/StructureDefinition/Extension-DM-PerformerSiteType", + "valueCoding": { + "system": "https://fhir.nhs.uk/CodeSystem/dispensing-site-preference", + "code": "P1" + } + } + ], + "validityPeriod": { + "start": "2021-05-07", + "end": "2021-06-04" + }, + "quantity": { + "value": 1, + "unit": "Bottle", + "system": "http://snomed.info/sct", + "code": "419672006" + }, + "performer": { + "identifier": { + "system": "https://fhir.nhs.uk/Id/ods-organization-code", + "value": "FH542" + } + } + }, + "substitution": { + "allowedBoolean": false + } + } + }, + { + "fullUrl": "urn:uuid:78d3c2eb-009e-4ec8-a358-b042954aa9b2", + "resource": { + "resourceType": "Patient", + "id": "78d3c2eb-009e-4ec8-a358-b042954aa9b2", + "identifier": [ + { + "system": "https://fhir.nhs.uk/Id/nhs-number", + "value": "9449305552" + } + ], + "name": [ + { + "use": "usual", + "family": "DAVIS", + "given": ["JANE"], + "prefix": ["MRS"] + } + ], + "gender": "female", + "birthDate": "1999-11-25", + "address": [ + { + "use": "home", + "line": ["53 Harrogate Road", "Chapel Allerton", "Leeds"], + "postalCode": "LS7 3PY" + } + ], + "generalPractitioner": [ + { + "identifier": { + "system": "https://fhir.nhs.uk/Id/ods-organization-code", + "value": "B81001" + } + } + ] + } + }, + { + "fullUrl": "urn:uuid:a8c85454-f8cb-498d-9629-78e2cb5fa47a", + "resource": { + "resourceType": "Practitioner", + "id": "a8c85454-f8cb-498d-9629-78e2cb5fa47a", + "identifier": [ + { + "system": "https://fhir.nhs.uk/Id/sds-user-id", + "value": "555086689106" + }, + { + "system": "https://fhir.hl7.org.uk/Id/gphc-number", + "value": "2083469" + } + ], + "name": [ + { + "family": "FIFTYSEVEN", + "given": ["RANDOM"], + "prefix": ["MR"] + } + ] + } + }, + { + "fullUrl": "urn:uuid:56166769-c1c4-4d07-afa8-132b5dfca666", + "resource": { + "resourceType": "PractitionerRole", + "id": "56166769-c1c4-4d07-afa8-132b5dfca666", + "identifier": [ + { + "system": "https://fhir.nhs.uk/Id/sds-role-profile-id", + "value": "601986680555" + } + ], + "practitioner": { + "reference": "urn:uuid:a8c85454-f8cb-498d-9629-78e2cb5fa47a" + }, + "organization": { + "reference": "urn:uuid:3b4b03a5-52ba-4ba6-9b82-70350aa109d8" + }, + "code": [ + { + "coding": [ + { + "system": "https://fhir.nhs.uk/CodeSystem/NHSDigital-SDS-JobRoleCode", + "code": "S8000:G8000:R8000", + "display": "Clinical Practitioner Access Role " + } + ] + } + ], + "telecom": [ + { + "system": "phone", + "value": "01234567890", + "use": "work" + } + ] + } + }, + { + "fullUrl": "urn:uuid:3b4b03a5-52ba-4ba6-9b82-70350aa109d8", + "resource": { + "resourceType": "Organization", + "id": "3b4b03a5-52ba-4ba6-9b82-70350aa109d8", + "identifier": [ + { + "system": "https://fhir.nhs.uk/Id/ods-organization-code", + "value": "A99968" + } + ], + "name": "SOMERSET BOWEL CANCER SCREENING CENTRE", + "address": [ + { + "use": "work", + "line": ["MUSGROVE PARK HOSPITAL"], + "city": "TAUNTON", + "postalCode": "TA1 5DA" + } + ], + "telecom": [ + { + "system": "phone", + "value": "01823 333444", + "use": "work" + } + ], + "partOf": { + "identifier": { + "system": "https://fhir.nhs.uk/Id/ods-organization-code", + "value": "RBA" + }, + "display": "TAUNTON AND SOMERSET NHS FOUNDATION TRUST" + } + } + }, + { + "fullUrl": "urn:uuid:28828c55-8fa7-42d7-916f-fcf076e0c10e", + "resource": { + "resourceType": "Provenance", + "id": "28828c55-8fa7-42d7-916f-fcf076e0c10e", + "target": [ + { + "reference": "urn:uuid:a54219b8-f741-4c47-b662-e4f8dfa49ab6" + } + ], + "recorded": "2008-02-27T11:38:00+00:00", + "agent": [ + { + "who": { + "reference": "urn:uuid:56166769-c1c4-4d07-afa8-132b5dfca666" + } + } + ], + "signature": [ + { + "type": [ + { + "system": "urn:iso-astm:E1762-95:2013", + "code": "1.2.840.10065.1.12.1.1" + } + ], + "when": "2021-05-07T14:47:40+00:00", + "who": { + "reference": "urn:uuid:56166769-c1c4-4d07-afa8-132b5dfca666" + }, + "data": "DQo8U2lnbmF0dXJlIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwLzA5L3htbGRzaWcjIj4NCiAgICA8U2lnbmVkSW5mbz48Q2Fub25pY2FsaXphdGlvbk1ldGhvZCBBbGdvcml0aG09Imh0dHA6Ly93d3cudzMub3JnLzIwMDEvMTAveG1sLWV4Yy1jMTRuIyI+PC9DYW5vbmljYWxpemF0aW9uTWV0aG9kPjxTaWduYXR1cmVNZXRob2QgQWxnb3JpdGhtPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwLzA5L3htbGRzaWcjcnNhLXNoYTEiPjwvU2lnbmF0dXJlTWV0aG9kPjxSZWZlcmVuY2U+PFRyYW5zZm9ybXM+PFRyYW5zZm9ybSBBbGdvcml0aG09Imh0dHA6Ly93d3cudzMub3JnLzIwMDEvMTAveG1sLWV4Yy1jMTRuIyI+PC9UcmFuc2Zvcm0+PC9UcmFuc2Zvcm1zPjxEaWdlc3RNZXRob2QgQWxnb3JpdGhtPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwLzA5L3htbGRzaWcjc2hhMSI+PC9EaWdlc3RNZXRob2Q+PERpZ2VzdFZhbHVlPnJJN0FFYmZ2c3BMTk5iajFQNnh2RkIzeUUyZz08L0RpZ2VzdFZhbHVlPjwvUmVmZXJlbmNlPjwvU2lnbmVkSW5mbz4NCiAgICA8U2lnbmF0dXJlVmFsdWU+QzhZNUtocTFhNlhpeE5WU2tZMzI3TVREdGxqSmx6WU9GQkRyQ3IxS3U1M05wV0tFR0k0WWt5SWMycVVrWFk5STd2NU82MFpKMFhwaUxNTUdocFlXdUdXVXlSYlpKZjJwSm5aUWcrT1RUQXpZZHAvbHEwMDd2bFQvcmcxM3NrUXlTTVVQS3lVTG5NY0YvU2ZWWEdRUzRFSFNPNEhpTURVeVBPNG5kdWNvemh3PTwvU2lnbmF0dXJlVmFsdWU+DQogICAgPEtleUluZm8+DQogICAgICAgIDxYNTA5RGF0YT4NCiAgICAgICAgICAgIDxYNTA5Q2VydGlmaWNhdGU+TUlJRHVEQ0NBcUNnQXdJQkFnSUVYY210SHpBTkJna3Foa2lHOXcwQkFRc0ZBREEyTVF3d0NnWURWUVFLRXdOdWFITXhDekFKQmdOVkJBc1RBa05CTVJrd0Z3WURWUVFERXhCT1NGTWdTVTVVSUV4bGRtVnNJREZFTUI0WERUSXdNVEF5TWpFd01qRTFOVm9YRFRJeU1UQXlNakV3TlRFMU5Wb3dRekVNTUFvR0ExVUVDaE1EYm1oek1ROHdEUVlEVlFRTEV3WlFaVzl3YkdVeElqQWdCZ05WQkFNTUdUVTFOVEkxTXpVeU1URXdPRjlTUVU1RVQwMWZWVk5GVWxFd2daOHdEUVlKS29aSWh2Y05BUUVCQlFBRGdZMEFNSUdKQW9HQkFLdDRzek53N09BSDdBUVJyRGUveEJJbXNNbU1pUzlFc3JUM2EzcC9MaDNicmR6STlhYWpUVVoyYi9jdmJPYTdQZVlkN3UrSzRhMlpkMFhrKzBHRm1ZR3pTVlg2aVlqYmx3cjB2YWkzMXpWN0crbEd2SHhINnBTb0xDd0lDYVpBRndhYmVENU96OTQreUEzYVdOV3RHVjBEZmg5cXdIM1pGQ0lNUnN2ZXJOMXBBZ01CQUFHamdnRkRNSUlCUHpBT0JnTlZIUThCQWY4RUJBTUNCa0F3WlFZRFZSMGdBUUgvQkZzd1dUQlhCZ3NxaGpvQWlYdG1BQU1DQURCSU1FWUdDQ3NHQVFVRkJ3SUJGanBvZEhSd2N6b3ZMM0JyYVM1dWFITXVkV3N2WTJWeWRHbG1hV05oZEdWZmNHOXNhV05wWlhNdlkyOXVkR1Z1ZEY5amIyMXRhWFJ0Wlc1ME1ETUdBMVVkSHdRc01Db3dLS0Ftb0NTR0ltaDBkSEE2THk5amNtd3VibWh6TG5WckwybHVkQzh4WkM5amNteGpNeTVqY213d0t3WURWUjBRQkNRd0lvQVBNakF5TURFd01qSXhNREl4TlRWYWdROHlNREl5TURNeE56RXdOVEUxTlZvd0h3WURWUjBqQkJnd0ZvQVVvSllmZ1lUTlBkNkVVS0w2UUxJekh4WTVQRkl3SFFZRFZSME9CQllFRkx0eXZZU3lhcWc2MEFFVVpneGswd3JqUkpjK01Ba0dBMVVkRXdRQ01BQXdHUVlKS29aSWh2WjlCMEVBQkF3d0Noc0VWamd1TXdNQ0JMQXdEUVlKS29aSWh2Y05BUUVMQlFBRGdnRUJBQmN6eThCOGp1UHBJZmFUTkZjeHJDMjJhQ1gveFlabWhyTC9OdklCQWFYMUc1aGppd21rR0tFMmhSVElyNjdQeFp4bVhzSnhpZ1JCTUhQbEkrbFkvK29rekgwR2k3YjVicWx3N3B4R0lnSk8wMDB3OHBGc3ZvOXc0MklZaEhvZHN2bkRWU3hoTVQwSjQ2UWhrOXNvRTBMam9FVUxLUVBQbFlHa2UvR2wzbTE3SXRGWXdPYlFIMGZNRXdtaXFCeWVJZno3Z1NjY096TDVjSXA2UGNaVE9qbzJJcVFwZ0VtaGpPY1JJbkVxQU5pdFNkam9pSkFKenBhYVpqWVRSZEhVWDdpN2FqRWlING05MW5GVys0QXFrTnR0bGI0V2NHS3NTbVdnZktLaGVGNElvWktNRTgweGVyU2dNeTh2dGpMT0JKQ0dYejB3TEdtUXVSbXhNVHE4OHE0PTwvWDUwOUNlcnRpZmljYXRlPg0KICAgICAgICA8L1g1MDlEYXRhPg0KICAgIDwvS2V5SW5mbz4NCjwvU2lnbmF0dXJlPg0K" + } + ] + } + } + ] +} diff --git a/src/test/resources/examples/full_examples/secondary-care/community/repeat-dispensing/nominated-pharmacy/clinical-practitioner/multiple-medication-requests/non-prescriber-endorsed/1-Prepare-Request-200_OK.json b/src/test/resources/examples/full_examples/secondary-care/community/repeat-dispensing/nominated-pharmacy/clinical-practitioner/multiple-medication-requests/non-prescriber-endorsed/1-Prepare-Request-200_OK.json new file mode 100644 index 00000000..291789ff --- /dev/null +++ b/src/test/resources/examples/full_examples/secondary-care/community/repeat-dispensing/nominated-pharmacy/clinical-practitioner/multiple-medication-requests/non-prescriber-endorsed/1-Prepare-Request-200_OK.json @@ -0,0 +1,852 @@ +{ + "resourceType": "Bundle", + "id": "aef77afb-7e3c-427a-8657-2c427f71a271", + "identifier": { + "system": "https://tools.ietf.org/html/rfc4122", + "value": "6072bbce-754a-48ec-90c0-38f861e1412a" + }, + "type": "message", + "entry": [ + { + "fullUrl": "urn:uuid:aef77afb-7e3c-427a-8657-2c427f71a271", + "resource": { + "resourceType": "MessageHeader", + "id": "3599c0e9-9292-413e-9270-9a1ef1ead99c", + "eventCoding": { + "system": "https://fhir.nhs.uk/CodeSystem/message-event", + "code": "prescription-order", + "display": "Prescription Order" + }, + "sender": { + "identifier": { + "system": "https://fhir.nhs.uk/Id/ods-organization-code", + "value": "RBA" + }, + "reference": "urn:uuid:56166769-c1c4-4d07-afa8-132b5dfca666", + "display": "RAZIA|ALI" + }, + "source": { + "endpoint": "https://directory.spineservices.nhs.uk/STU3/Organization/RBA" + }, + "destination": [ + { + "endpoint": "https://directory.spineservices.nhs.uk/STU3/Organization/FH542", + "receiver": { + "identifier": { + "system": "https://fhir.nhs.uk/Id/ods-organization-code", + "value": "FH542" + } + } + } + ], + "focus": [ + { + "reference": "urn:uuid:56166769-c1c4-4d07-afa8-132b5dfca666" + }, + { + "reference": "urn:uuid:a54219b8-f741-4c47-b662-e4f8dfa49ab6" + } + ] + } + }, + { + "fullUrl": "urn:uuid:a54219b8-f741-4c47-b662-e4f8dfa49ab7", + "resource": { + "resourceType": "MedicationRequest", + "id": "a54219b8-f741-4c47-b662-e4f8dfa49ab7", + "extension": [ + { + "url": "https://fhir.nhs.uk/StructureDefinition/Extension-DM-PrescriptionType", + "valueCoding": { + "system": "https://fhir.nhs.uk/CodeSystem/prescription-type", + "code": "1001", + "display": "Outpatient Community Prescriber - Medical Prescriber" + } + }, + { + "url": "https://fhir.hl7.org.uk/StructureDefinition/Extension-UKCore-MedicationRepeatInformation", + "extension": [ + { + "url": "authorisationExpiryDate", + "valueDateTime": "2024-11-30" + } + ] + } + ], + "identifier": [ + { + "system": "https://fhir.nhs.uk/Id/prescription-order-item-number", + "value": "a54219b8-f741-4c47-b662-e4f8dfa49ab7" + } + ], + "status": "active", + "intent": "original-order", + "category": [ + { + "coding": [ + { + "system": "http://terminology.hl7.org/CodeSystem/medicationrequest-category", + "code": "outpatient", + "display": "Outpatient" + } + ] + } + ], + "medicationCodeableConcept": { + "coding": [ + { + "system": "http://snomed.info/sct", + "code": "15517911000001104", + "display": "Methotrexate 10mg/0.2ml solution for injection pre-filled syringes" + } + ] + }, + "subject": { + "reference": "urn:uuid:78d3c2eb-009e-4ec8-a358-b042954aa9b2" + }, + "requester": { + "reference": "urn:uuid:56166769-c1c4-4d07-afa8-132b5dfca666" + }, + "groupIdentifier": { + "extension": [ + { + "url": "https://fhir.nhs.uk/StructureDefinition/Extension-DM-PrescriptionId", + "valueIdentifier": { + "system": "https://fhir.nhs.uk/Id/prescription", + "value": "66679858-aa86-46a1-8de7-a2c878867693" + } + } + ], + "system": "https://fhir.nhs.uk/Id/prescription-order-number", + "value": "31AE14-A99968-48FB9Q" + }, + "courseOfTherapyType": { + "coding": [ + { + "system": "https://fhir.nhs.uk/CodeSystem/medicationrequest-course-of-therapy", + "code": "continuous-repeat-dispensing", + "display": "Continuous long term (repeat dispensing)" + } + ] + }, + "dosageInstruction": [ + { + "text": "Inject 10 milligram - 5 times a day - Subcutaneous route - for 10 days", + "timing": { + "repeat": { + "frequency": 5, + "period": 1, + "periodUnit": "d", + "boundsDuration": { + "value": 10, + "unit": "day", + "system": "http://unitsofmeasure.org", + "code": "d" + } + } + }, + "method": { + "coding": [ + { + "system": "http://snomed.info/sct", + "code": "422145002", + "display": "Inject" + } + ] + }, + "route": { + "coding": [ + { + "system": "http://snomed.info/sct", + "code": "34206005", + "display": "Subcutaneous route" + } + ] + }, + "doseAndRate": [ + { + "doseQuantity": { + "value": 10, + "unit": "milligram", + "system": "http://unitsofmeasure.org", + "code": "mg" + } + } + ] + } + ], + "dispenseRequest": { + "extension": [ + { + "url": "https://fhir.nhs.uk/StructureDefinition/Extension-DM-PerformerSiteType", + "valueCoding": { + "system": "https://fhir.nhs.uk/CodeSystem/dispensing-site-preference", + "code": "P1" + } + } + ], + "validityPeriod": { + "start": "2021-05-07", + "end": "2021-06-04" + }, + "quantity": { + "value": 63, + "unit": "tablet", + "system": "http://snomed.info/sct", + "code": "428673006" + }, + "expectedSupplyDuration": { + "value": 28, + "unit": "days", + "system": "http://unitsofmeasure.org", + "code": "d" + }, + "performer": { + "identifier": { + "system": "https://fhir.nhs.uk/Id/ods-organization-code", + "value": "FH542" + } + }, + "numberOfRepeatsAllowed": 5 + }, + "substitution": { + "allowedBoolean": false + } + } + }, + { + "fullUrl": "urn:uuid:a54219b8-f741-4c47-b662-e4f8dfa49ab6", + "resource": { + "resourceType": "MedicationRequest", + "id": "a54219b8-f741-4c47-b662-e4f8dfa49ab6", + "extension": [ + { + "url": "https://fhir.nhs.uk/StructureDefinition/Extension-DM-PrescriptionType", + "valueCoding": { + "system": "https://fhir.nhs.uk/CodeSystem/prescription-type", + "code": "1001", + "display": "Outpatient Community Prescriber - Medical Prescriber" + } + }, + { + "url": "https://fhir.hl7.org.uk/StructureDefinition/Extension-UKCore-MedicationRepeatInformation", + "extension": [ + { + "url": "authorisationExpiryDate", + "valueDateTime": "2024-11-30" + } + ] + } + ], + "identifier": [ + { + "system": "https://fhir.nhs.uk/Id/prescription-order-item-number", + "value": "a54219b8-f741-4c47-b662-e4f8dfa49ab6" + } + ], + "status": "active", + "intent": "original-order", + "category": [ + { + "coding": [ + { + "system": "http://terminology.hl7.org/CodeSystem/medicationrequest-category", + "code": "outpatient", + "display": "Outpatient" + } + ] + } + ], + "medicationCodeableConcept": { + "coding": [ + { + "system": "http://snomed.info/sct", + "code": "15517911000001104", + "display": "Methotrexate 10mg/0.2ml solution for injection pre-filled syringes" + } + ] + }, + "subject": { + "reference": "urn:uuid:78d3c2eb-009e-4ec8-a358-b042954aa9b2" + }, + "requester": { + "reference": "urn:uuid:56166769-c1c4-4d07-afa8-132b5dfca666" + }, + "groupIdentifier": { + "extension": [ + { + "url": "https://fhir.nhs.uk/StructureDefinition/Extension-DM-PrescriptionId", + "valueIdentifier": { + "system": "https://fhir.nhs.uk/Id/prescription", + "value": "66679858-aa86-46a1-8de7-a2c878867693" + } + } + ], + "system": "https://fhir.nhs.uk/Id/prescription-order-number", + "value": "31AE14-A99968-48FB9Q" + }, + "courseOfTherapyType": { + "coding": [ + { + "system": "https://fhir.nhs.uk/CodeSystem/medicationrequest-course-of-therapy", + "code": "continuous-repeat-dispensing", + "display": "Continuous long term (repeat dispensing)" + } + ] + }, + "dosageInstruction": [ + { + "text": "Inject 10 milligram - 5 times a day - Subcutaneous route - for 10 days", + "timing": { + "repeat": { + "frequency": 5, + "period": 1, + "periodUnit": "d", + "boundsDuration": { + "value": 10, + "unit": "day", + "system": "http://unitsofmeasure.org", + "code": "d" + } + } + }, + "method": { + "coding": [ + { + "system": "http://snomed.info/sct", + "code": "422145002", + "display": "Inject" + } + ] + }, + "route": { + "coding": [ + { + "system": "http://snomed.info/sct", + "code": "34206005", + "display": "Subcutaneous route" + } + ] + }, + "doseAndRate": [ + { + "doseQuantity": { + "value": 10, + "unit": "milligram", + "system": "http://unitsofmeasure.org", + "code": "mg" + } + } + ] + } + ], + "dispenseRequest": { + "extension": [ + { + "url": "https://fhir.nhs.uk/StructureDefinition/Extension-DM-PerformerSiteType", + "valueCoding": { + "system": "https://fhir.nhs.uk/CodeSystem/dispensing-site-preference", + "code": "P1" + } + } + ], + "validityPeriod": { + "start": "2021-05-07", + "end": "2021-06-04" + }, + "quantity": { + "value": 63, + "unit": "tablet", + "system": "http://snomed.info/sct", + "code": "428673006" + }, + "expectedSupplyDuration": { + "value": 28, + "unit": "days", + "system": "http://unitsofmeasure.org", + "code": "d" + }, + "performer": { + "identifier": { + "system": "https://fhir.nhs.uk/Id/ods-organization-code", + "value": "FH542" + } + }, + "numberOfRepeatsAllowed": 5 + }, + "substitution": { + "allowedBoolean": false + } + } + }, + { + "fullUrl": "urn:uuid:a54219b8-f741-4c47-b662-e4f8dfa49ab5", + "resource": { + "resourceType": "MedicationRequest", + "id": "a54219b8-f741-4c47-b662-e4f8dfa49ab5", + "extension": [ + { + "url": "https://fhir.nhs.uk/StructureDefinition/Extension-DM-PrescriptionType", + "valueCoding": { + "system": "https://fhir.nhs.uk/CodeSystem/prescription-type", + "code": "1001", + "display": "Outpatient Community Prescriber - Medical Prescriber" + } + }, + { + "url": "https://fhir.hl7.org.uk/StructureDefinition/Extension-UKCore-MedicationRepeatInformation", + "extension": [ + { + "url": "authorisationExpiryDate", + "valueDateTime": "2024-11-30" + } + ] + } + ], + "identifier": [ + { + "system": "https://fhir.nhs.uk/Id/prescription-order-item-number", + "value": "a54219b8-f741-4c47-b662-e4f8dfa49ab5" + } + ], + "status": "active", + "intent": "original-order", + "category": [ + { + "coding": [ + { + "system": "http://terminology.hl7.org/CodeSystem/medicationrequest-category", + "code": "outpatient", + "display": "Outpatient" + } + ] + } + ], + "medicationCodeableConcept": { + "coding": [ + { + "system": "http://snomed.info/sct", + "code": "15517911000001104", + "display": "Methotrexate 10mg/0.2ml solution for injection pre-filled syringes" + } + ] + }, + "subject": { + "reference": "urn:uuid:78d3c2eb-009e-4ec8-a358-b042954aa9b2" + }, + "requester": { + "reference": "urn:uuid:56166769-c1c4-4d07-afa8-132b5dfca666" + }, + "groupIdentifier": { + "extension": [ + { + "url": "https://fhir.nhs.uk/StructureDefinition/Extension-DM-PrescriptionId", + "valueIdentifier": { + "system": "https://fhir.nhs.uk/Id/prescription", + "value": "66679858-aa86-46a1-8de7-a2c878867693" + } + } + ], + "system": "https://fhir.nhs.uk/Id/prescription-order-number", + "value": "31AE14-A99968-48FB9Q" + }, + "courseOfTherapyType": { + "coding": [ + { + "system": "https://fhir.nhs.uk/CodeSystem/medicationrequest-course-of-therapy", + "code": "continuous-repeat-dispensing", + "display": "Continuous long term (repeat dispensing)" + } + ] + }, + "dosageInstruction": [ + { + "text": "Inject 10 milligram - 5 times a day - Subcutaneous route - for 10 days", + "timing": { + "repeat": { + "frequency": 5, + "period": 1, + "periodUnit": "d", + "boundsDuration": { + "value": 10, + "unit": "day", + "system": "http://unitsofmeasure.org", + "code": "d" + } + } + }, + "method": { + "coding": [ + { + "system": "http://snomed.info/sct", + "code": "422145002", + "display": "Inject" + } + ] + }, + "route": { + "coding": [ + { + "system": "http://snomed.info/sct", + "code": "34206005", + "display": "Subcutaneous route" + } + ] + }, + "doseAndRate": [ + { + "doseQuantity": { + "value": 10, + "unit": "milligram", + "system": "http://unitsofmeasure.org", + "code": "mg" + } + } + ] + } + ], + "dispenseRequest": { + "extension": [ + { + "url": "https://fhir.nhs.uk/StructureDefinition/Extension-DM-PerformerSiteType", + "valueCoding": { + "system": "https://fhir.nhs.uk/CodeSystem/dispensing-site-preference", + "code": "P1" + } + } + ], + "validityPeriod": { + "start": "2021-05-07", + "end": "2021-06-04" + }, + "quantity": { + "value": 63, + "unit": "tablet", + "system": "http://snomed.info/sct", + "code": "428673006" + }, + "expectedSupplyDuration": { + "value": 28, + "unit": "days", + "system": "http://unitsofmeasure.org", + "code": "d" + }, + "performer": { + "identifier": { + "system": "https://fhir.nhs.uk/Id/ods-organization-code", + "value": "FH542" + } + }, + "numberOfRepeatsAllowed": 5 + }, + "substitution": { + "allowedBoolean": false + } + } + }, + { + "fullUrl": "urn:uuid:a54219b8-f741-4c47-b662-e4f8dfa49ab4", + "resource": { + "resourceType": "MedicationRequest", + "id": "a54219b8-f741-4c47-b662-e4f8dfa49ab4", + "extension": [ + { + "url": "https://fhir.nhs.uk/StructureDefinition/Extension-DM-PrescriptionType", + "valueCoding": { + "system": "https://fhir.nhs.uk/CodeSystem/prescription-type", + "code": "1001", + "display": "Outpatient Community Prescriber - Medical Prescriber" + } + }, + { + "url": "https://fhir.hl7.org.uk/StructureDefinition/Extension-UKCore-MedicationRepeatInformation", + "extension": [ + { + "url": "authorisationExpiryDate", + "valueDateTime": "2024-11-30" + } + ] + } + ], + "identifier": [ + { + "system": "https://fhir.nhs.uk/Id/prescription-order-item-number", + "value": "a54219b8-f741-4c47-b662-e4f8dfa49ab4" + } + ], + "status": "active", + "intent": "original-order", + "category": [ + { + "coding": [ + { + "system": "http://terminology.hl7.org/CodeSystem/medicationrequest-category", + "code": "outpatient", + "display": "Outpatient" + } + ] + } + ], + "medicationCodeableConcept": { + "coding": [ + { + "system": "http://snomed.info/sct", + "code": "15517911000001104", + "display": "Methotrexate 10mg/0.2ml solution for injection pre-filled syringes" + } + ] + }, + "subject": { + "reference": "urn:uuid:78d3c2eb-009e-4ec8-a358-b042954aa9b2" + }, + "requester": { + "reference": "urn:uuid:56166769-c1c4-4d07-afa8-132b5dfca666" + }, + "groupIdentifier": { + "extension": [ + { + "url": "https://fhir.nhs.uk/StructureDefinition/Extension-DM-PrescriptionId", + "valueIdentifier": { + "system": "https://fhir.nhs.uk/Id/prescription", + "value": "66679858-aa86-46a1-8de7-a2c878867693" + } + } + ], + "system": "https://fhir.nhs.uk/Id/prescription-order-number", + "value": "31AE14-A99968-48FB9Q" + }, + "courseOfTherapyType": { + "coding": [ + { + "system": "https://fhir.nhs.uk/CodeSystem/medicationrequest-course-of-therapy", + "code": "continuous-repeat-dispensing", + "display": "Continuous long term (repeat dispensing)" + } + ] + }, + "dosageInstruction": [ + { + "text": "Inject 10 milligram - 5 times a day - Subcutaneous route - for 10 days", + "timing": { + "repeat": { + "frequency": 5, + "period": 1, + "periodUnit": "d", + "boundsDuration": { + "value": 10, + "unit": "day", + "system": "http://unitsofmeasure.org", + "code": "d" + } + } + }, + "method": { + "coding": [ + { + "system": "http://snomed.info/sct", + "code": "422145002", + "display": "Inject" + } + ] + }, + "route": { + "coding": [ + { + "system": "http://snomed.info/sct", + "code": "34206005", + "display": "Subcutaneous route" + } + ] + }, + "doseAndRate": [ + { + "doseQuantity": { + "value": 10, + "unit": "milligram", + "system": "http://unitsofmeasure.org", + "code": "mg" + } + } + ] + } + ], + "dispenseRequest": { + "extension": [ + { + "url": "https://fhir.nhs.uk/StructureDefinition/Extension-DM-PerformerSiteType", + "valueCoding": { + "system": "https://fhir.nhs.uk/CodeSystem/dispensing-site-preference", + "code": "P1" + } + } + ], + "validityPeriod": { + "start": "2021-05-07", + "end": "2021-06-04" + }, + "quantity": { + "value": 63, + "unit": "tablet", + "system": "http://snomed.info/sct", + "code": "428673006" + }, + "expectedSupplyDuration": { + "value": 28, + "unit": "days", + "system": "http://unitsofmeasure.org", + "code": "d" + }, + "performer": { + "identifier": { + "system": "https://fhir.nhs.uk/Id/ods-organization-code", + "value": "FH542" + } + }, + "numberOfRepeatsAllowed": 5 + }, + "substitution": { + "allowedBoolean": false + } + } + }, + { + "fullUrl": "urn:uuid:78d3c2eb-009e-4ec8-a358-b042954aa9b2", + "resource": { + "resourceType": "Patient", + "id": "78d3c2eb-009e-4ec8-a358-b042954aa9b2", + "identifier": [ + { + "system": "https://fhir.nhs.uk/Id/nhs-number", + "value": "9449305552" + } + ], + "name": [ + { + "use": "usual", + "family": "CORY", + "given": ["ETTA"], + "prefix": ["MISS"] + } + ], + "gender": "female", + "birthDate": "1999-01-04", + "address": [ + { + "use": "home", + "line": ["123 Dale Avenue", "Long Eaton", "Nottingham"], + "postalCode": "NG10 1NP" + } + ], + "generalPractitioner": [ + { + "identifier": { + "system": "https://fhir.nhs.uk/Id/ods-organization-code", + "value": "B81001" + } + } + ] + } + }, + { + "fullUrl": "urn:uuid:56166769-c1c4-4d07-afa8-132b5dfca666", + "resource": { + "resourceType": "PractitionerRole", + "id": "56166769-c1c4-4d07-afa8-132b5dfca666", + "identifier": [ + { + "system": "https://fhir.nhs.uk/Id/sds-role-profile-id", + "value": "100102238986" + }, + { + "system": "https://fhir.hl7.org.uk/Id/nhsbsa-spurious-code", + "value": "612345" + } + ], + "practitioner": { + "reference": "urn:uuid:a8c85454-f8cb-498d-9629-78e2cb5fa47a" + }, + "organization": { + "reference": "urn:uuid:3b4b03a5-52ba-4ba6-9b82-70350aa109d8" + }, + "code": [ + { + "coding": [ + { + "system": "https://fhir.nhs.uk/CodeSystem/NHSDigital-SDS-JobRoleCode", + "code": "S8000:G8000:R8000", + "display": "Clinical Practitioner Access Role" + } + ] + } + ], + "telecom": [ + { + "system": "phone", + "value": "01234567890", + "use": "work" + } + ] + } + }, + { + "fullUrl": "urn:uuid:a8c85454-f8cb-498d-9629-78e2cb5fa47a", + "resource": { + "resourceType": "Practitioner", + "id": "a8c85454-f8cb-498d-9629-78e2cb5fa47a", + "identifier": [ + { + "system": "https://fhir.nhs.uk/Id/sds-user-id", + "value": "3415870201" + }, + { + "system": "https://fhir.hl7.org.uk/Id/gmc-number", + "value": "4428981" + } + ], + "name": [ + { + "family": "Edwards", + "given": ["Thomas"], + "prefix": ["DR"] + } + ] + } + }, + { + "fullUrl": "urn:uuid:3b4b03a5-52ba-4ba6-9b82-70350aa109d8", + "resource": { + "resourceType": "Organization", + "id": "3b4b03a5-52ba-4ba6-9b82-70350aa109d8", + "identifier": [ + { + "system": "https://fhir.nhs.uk/Id/ods-organization-code", + "value": "A99968" + } + ], + "name": "SOMERSET BOWEL CANCER SCREENING CENTRE", + "address": [ + { + "use": "work", + "line": ["MUSGROVE PARK HOSPITAL"], + "city": "TAUNTON", + "postalCode": "TA1 5DA" + } + ], + "telecom": [ + { + "system": "phone", + "value": "01823 333444", + "use": "work" + } + ], + "partOf": { + "identifier": { + "system": "https://fhir.nhs.uk/Id/ods-organization-code", + "value": "RBA" + }, + "display": "TAUNTON AND SOMERSET NHS FOUNDATION TRUST" + } + } + } + ] +} diff --git a/src/test/resources/examples/full_examples/secondary-care/community/repeat-dispensing/nominated-pharmacy/clinical-practitioner/multiple-medication-requests/non-prescriber-endorsed/1-Prepare-Response-200_OK.json b/src/test/resources/examples/full_examples/secondary-care/community/repeat-dispensing/nominated-pharmacy/clinical-practitioner/multiple-medication-requests/non-prescriber-endorsed/1-Prepare-Response-200_OK.json new file mode 100644 index 00000000..7c27e868 --- /dev/null +++ b/src/test/resources/examples/full_examples/secondary-care/community/repeat-dispensing/nominated-pharmacy/clinical-practitioner/multiple-medication-requests/non-prescriber-endorsed/1-Prepare-Response-200_OK.json @@ -0,0 +1,17 @@ +{ + "resourceType": "Parameters", + "parameter": [ + { + "name": "digest", + "valueString": "PFNpZ25lZEluZm8geG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvMDkveG1sZHNpZyMiPjxDYW5vbmljYWxpemF0aW9uTWV0aG9kIEFsZ29yaXRobT0iaHR0cDovL3d3dy53My5vcmcvMjAwMS8xMC94bWwtZXhjLWMxNG4jIj48L0Nhbm9uaWNhbGl6YXRpb25NZXRob2Q+PFNpZ25hdHVyZU1ldGhvZCBBbGdvcml0aG09Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvMDkveG1sZHNpZyNyc2Etc2hhMSI+PC9TaWduYXR1cmVNZXRob2Q+PFJlZmVyZW5jZT48VHJhbnNmb3Jtcz48VHJhbnNmb3JtIEFsZ29yaXRobT0iaHR0cDovL3d3dy53My5vcmcvMjAwMS8xMC94bWwtZXhjLWMxNG4jIj48L1RyYW5zZm9ybT48L1RyYW5zZm9ybXM+PERpZ2VzdE1ldGhvZCBBbGdvcml0aG09Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvMDkveG1sZHNpZyNzaGExIj48L0RpZ2VzdE1ldGhvZD48RGlnZXN0VmFsdWU+Tkt0NkwwZmoyY0R4ak1CUE9Jd1l1QTJxc29NPTwvRGlnZXN0VmFsdWU+PC9SZWZlcmVuY2U+PC9TaWduZWRJbmZvPg==" + }, + { + "name": "timestamp", + "valueString": "2022-10-25T10:24:34+00:00" + }, + { + "name": "algorithm", + "valueString": "RS1" + } + ] +} diff --git a/src/test/resources/examples/full_examples/secondary-care/community/repeat-dispensing/nominated-pharmacy/clinical-practitioner/multiple-medication-requests/non-prescriber-endorsed/1-Process-Request-Send-200_OK.json b/src/test/resources/examples/full_examples/secondary-care/community/repeat-dispensing/nominated-pharmacy/clinical-practitioner/multiple-medication-requests/non-prescriber-endorsed/1-Process-Request-Send-200_OK.json new file mode 100644 index 00000000..937c3222 --- /dev/null +++ b/src/test/resources/examples/full_examples/secondary-care/community/repeat-dispensing/nominated-pharmacy/clinical-practitioner/multiple-medication-requests/non-prescriber-endorsed/1-Process-Request-Send-200_OK.json @@ -0,0 +1,887 @@ +{ + "resourceType": "Bundle", + "id": "aef77afb-7e3c-427a-8657-2c427f71a271", + "identifier": { + "system": "https://tools.ietf.org/html/rfc4122", + "value": "81787bc4-c5e6-4c0c-9299-5421ec72a01c" + }, + "type": "message", + "entry": [ + { + "fullUrl": "urn:uuid:aef77afb-7e3c-427a-8657-2c427f71a271", + "resource": { + "resourceType": "MessageHeader", + "id": "3599c0e9-9292-413e-9270-9a1ef1ead99c", + "eventCoding": { + "system": "https://fhir.nhs.uk/CodeSystem/message-event", + "code": "prescription-order", + "display": "Prescription Order" + }, + "sender": { + "identifier": { + "system": "https://fhir.nhs.uk/Id/ods-organization-code", + "value": "RBA" + }, + "reference": "urn:uuid:56166769-c1c4-4d07-afa8-132b5dfca666", + "display": "RAZIA|ALI" + }, + "source": { + "endpoint": "https://directory.spineservices.nhs.uk/STU3/Organization/RBA" + }, + "destination": [ + { + "endpoint": "https://directory.spineservices.nhs.uk/STU3/Organization/FH542", + "receiver": { + "identifier": { + "system": "https://fhir.nhs.uk/Id/ods-organization-code", + "value": "FH542" + } + } + } + ], + "focus": [ + { + "reference": "urn:uuid:56166769-c1c4-4d07-afa8-132b5dfca666" + }, + { + "reference": "urn:uuid:a54219b8-f741-4c47-b662-e4f8dfa49ab6" + } + ] + } + }, + { + "fullUrl": "urn:uuid:a54219b8-f741-4c47-b662-e4f8dfa49ab7", + "resource": { + "resourceType": "MedicationRequest", + "id": "a54219b8-f741-4c47-b662-e4f8dfa49ab7", + "extension": [ + { + "url": "https://fhir.nhs.uk/StructureDefinition/Extension-DM-PrescriptionType", + "valueCoding": { + "system": "https://fhir.nhs.uk/CodeSystem/prescription-type", + "code": "1001", + "display": "Outpatient Community Prescriber - Medical Prescriber" + } + }, + { + "url": "https://fhir.hl7.org.uk/StructureDefinition/Extension-UKCore-MedicationRepeatInformation", + "extension": [ + { + "url": "authorisationExpiryDate", + "valueDateTime": "2024-11-30" + } + ] + } + ], + "identifier": [ + { + "system": "https://fhir.nhs.uk/Id/prescription-order-item-number", + "value": "a54219b8-f741-4c47-b662-e4f8dfa49ab7" + } + ], + "status": "active", + "intent": "original-order", + "category": [ + { + "coding": [ + { + "system": "http://terminology.hl7.org/CodeSystem/medicationrequest-category", + "code": "outpatient", + "display": "Outpatient" + } + ] + } + ], + "medicationCodeableConcept": { + "coding": [ + { + "system": "http://snomed.info/sct", + "code": "15517911000001104", + "display": "Methotrexate 10mg/0.2ml solution for injection pre-filled syringes" + } + ] + }, + "subject": { + "reference": "urn:uuid:78d3c2eb-009e-4ec8-a358-b042954aa9b2" + }, + "requester": { + "reference": "urn:uuid:56166769-c1c4-4d07-afa8-132b5dfca666" + }, + "groupIdentifier": { + "extension": [ + { + "url": "https://fhir.nhs.uk/StructureDefinition/Extension-DM-PrescriptionId", + "valueIdentifier": { + "system": "https://fhir.nhs.uk/Id/prescription", + "value": "66679858-aa86-46a1-8de7-a2c878867693" + } + } + ], + "system": "https://fhir.nhs.uk/Id/prescription-order-number", + "value": "31AE14-A99968-48FB9Q" + }, + "courseOfTherapyType": { + "coding": [ + { + "system": "https://fhir.nhs.uk/CodeSystem/medicationrequest-course-of-therapy", + "code": "continuous-repeat-dispensing", + "display": "Continuous long term (repeat dispensing)" + } + ] + }, + "dosageInstruction": [ + { + "text": "Inject 10 milligram - 5 times a day - Subcutaneous route - for 10 days", + "timing": { + "repeat": { + "frequency": 5, + "period": 1, + "periodUnit": "d", + "boundsDuration": { + "value": 10, + "unit": "day", + "system": "http://unitsofmeasure.org", + "code": "d" + } + } + }, + "method": { + "coding": [ + { + "system": "http://snomed.info/sct", + "code": "422145002", + "display": "Inject" + } + ] + }, + "route": { + "coding": [ + { + "system": "http://snomed.info/sct", + "code": "34206005", + "display": "Subcutaneous route" + } + ] + }, + "doseAndRate": [ + { + "doseQuantity": { + "value": 10, + "unit": "milligram", + "system": "http://unitsofmeasure.org", + "code": "mg" + } + } + ] + } + ], + "dispenseRequest": { + "extension": [ + { + "url": "https://fhir.nhs.uk/StructureDefinition/Extension-DM-PerformerSiteType", + "valueCoding": { + "system": "https://fhir.nhs.uk/CodeSystem/dispensing-site-preference", + "code": "P1" + } + } + ], + "validityPeriod": { + "start": "2021-05-07", + "end": "2021-06-04" + }, + "quantity": { + "value": 63, + "unit": "tablet", + "system": "http://snomed.info/sct", + "code": "428673006" + }, + "expectedSupplyDuration": { + "value": 28, + "unit": "days", + "system": "http://unitsofmeasure.org", + "code": "d" + }, + "performer": { + "identifier": { + "system": "https://fhir.nhs.uk/Id/ods-organization-code", + "value": "FH542" + } + }, + "numberOfRepeatsAllowed": 5 + }, + "substitution": { + "allowedBoolean": false + } + } + }, + { + "fullUrl": "urn:uuid:a54219b8-f741-4c47-b662-e4f8dfa49ab6", + "resource": { + "resourceType": "MedicationRequest", + "id": "a54219b8-f741-4c47-b662-e4f8dfa49ab6", + "extension": [ + { + "url": "https://fhir.nhs.uk/StructureDefinition/Extension-DM-PrescriptionType", + "valueCoding": { + "system": "https://fhir.nhs.uk/CodeSystem/prescription-type", + "code": "1001", + "display": "Outpatient Community Prescriber - Medical Prescriber" + } + }, + { + "url": "https://fhir.hl7.org.uk/StructureDefinition/Extension-UKCore-MedicationRepeatInformation", + "extension": [ + { + "url": "authorisationExpiryDate", + "valueDateTime": "2024-11-30" + } + ] + } + ], + "identifier": [ + { + "system": "https://fhir.nhs.uk/Id/prescription-order-item-number", + "value": "a54219b8-f741-4c47-b662-e4f8dfa49ab6" + } + ], + "status": "active", + "intent": "original-order", + "category": [ + { + "coding": [ + { + "system": "http://terminology.hl7.org/CodeSystem/medicationrequest-category", + "code": "outpatient", + "display": "Outpatient" + } + ] + } + ], + "medicationCodeableConcept": { + "coding": [ + { + "system": "http://snomed.info/sct", + "code": "15517911000001104", + "display": "Methotrexate 10mg/0.2ml solution for injection pre-filled syringes" + } + ] + }, + "subject": { + "reference": "urn:uuid:78d3c2eb-009e-4ec8-a358-b042954aa9b2" + }, + "requester": { + "reference": "urn:uuid:56166769-c1c4-4d07-afa8-132b5dfca666" + }, + "groupIdentifier": { + "extension": [ + { + "url": "https://fhir.nhs.uk/StructureDefinition/Extension-DM-PrescriptionId", + "valueIdentifier": { + "system": "https://fhir.nhs.uk/Id/prescription", + "value": "66679858-aa86-46a1-8de7-a2c878867693" + } + } + ], + "system": "https://fhir.nhs.uk/Id/prescription-order-number", + "value": "31AE14-A99968-48FB9Q" + }, + "courseOfTherapyType": { + "coding": [ + { + "system": "https://fhir.nhs.uk/CodeSystem/medicationrequest-course-of-therapy", + "code": "continuous-repeat-dispensing", + "display": "Continuous long term (repeat dispensing)" + } + ] + }, + "dosageInstruction": [ + { + "text": "Inject 10 milligram - 5 times a day - Subcutaneous route - for 10 days", + "timing": { + "repeat": { + "frequency": 5, + "period": 1, + "periodUnit": "d", + "boundsDuration": { + "value": 10, + "unit": "day", + "system": "http://unitsofmeasure.org", + "code": "d" + } + } + }, + "method": { + "coding": [ + { + "system": "http://snomed.info/sct", + "code": "422145002", + "display": "Inject" + } + ] + }, + "route": { + "coding": [ + { + "system": "http://snomed.info/sct", + "code": "34206005", + "display": "Subcutaneous route" + } + ] + }, + "doseAndRate": [ + { + "doseQuantity": { + "value": 10, + "unit": "milligram", + "system": "http://unitsofmeasure.org", + "code": "mg" + } + } + ] + } + ], + "dispenseRequest": { + "extension": [ + { + "url": "https://fhir.nhs.uk/StructureDefinition/Extension-DM-PerformerSiteType", + "valueCoding": { + "system": "https://fhir.nhs.uk/CodeSystem/dispensing-site-preference", + "code": "P1" + } + } + ], + "validityPeriod": { + "start": "2021-05-07", + "end": "2021-06-04" + }, + "quantity": { + "value": 63, + "unit": "tablet", + "system": "http://snomed.info/sct", + "code": "428673006" + }, + "expectedSupplyDuration": { + "value": 28, + "unit": "days", + "system": "http://unitsofmeasure.org", + "code": "d" + }, + "performer": { + "identifier": { + "system": "https://fhir.nhs.uk/Id/ods-organization-code", + "value": "FH542" + } + }, + "numberOfRepeatsAllowed": 5 + }, + "substitution": { + "allowedBoolean": false + } + } + }, + { + "fullUrl": "urn:uuid:a54219b8-f741-4c47-b662-e4f8dfa49ab5", + "resource": { + "resourceType": "MedicationRequest", + "id": "a54219b8-f741-4c47-b662-e4f8dfa49ab5", + "extension": [ + { + "url": "https://fhir.nhs.uk/StructureDefinition/Extension-DM-PrescriptionType", + "valueCoding": { + "system": "https://fhir.nhs.uk/CodeSystem/prescription-type", + "code": "1001", + "display": "Outpatient Community Prescriber - Medical Prescriber" + } + }, + { + "url": "https://fhir.hl7.org.uk/StructureDefinition/Extension-UKCore-MedicationRepeatInformation", + "extension": [ + { + "url": "authorisationExpiryDate", + "valueDateTime": "2024-11-30" + } + ] + } + ], + "identifier": [ + { + "system": "https://fhir.nhs.uk/Id/prescription-order-item-number", + "value": "a54219b8-f741-4c47-b662-e4f8dfa49ab5" + } + ], + "status": "active", + "intent": "original-order", + "category": [ + { + "coding": [ + { + "system": "http://terminology.hl7.org/CodeSystem/medicationrequest-category", + "code": "outpatient", + "display": "Outpatient" + } + ] + } + ], + "medicationCodeableConcept": { + "coding": [ + { + "system": "http://snomed.info/sct", + "code": "15517911000001104", + "display": "Methotrexate 10mg/0.2ml solution for injection pre-filled syringes" + } + ] + }, + "subject": { + "reference": "urn:uuid:78d3c2eb-009e-4ec8-a358-b042954aa9b2" + }, + "requester": { + "reference": "urn:uuid:56166769-c1c4-4d07-afa8-132b5dfca666" + }, + "groupIdentifier": { + "extension": [ + { + "url": "https://fhir.nhs.uk/StructureDefinition/Extension-DM-PrescriptionId", + "valueIdentifier": { + "system": "https://fhir.nhs.uk/Id/prescription", + "value": "66679858-aa86-46a1-8de7-a2c878867693" + } + } + ], + "system": "https://fhir.nhs.uk/Id/prescription-order-number", + "value": "31AE14-A99968-48FB9Q" + }, + "courseOfTherapyType": { + "coding": [ + { + "system": "https://fhir.nhs.uk/CodeSystem/medicationrequest-course-of-therapy", + "code": "continuous-repeat-dispensing", + "display": "Continuous long term (repeat dispensing)" + } + ] + }, + "dosageInstruction": [ + { + "text": "Inject 10 milligram - 5 times a day - Subcutaneous route - for 10 days", + "timing": { + "repeat": { + "frequency": 5, + "period": 1, + "periodUnit": "d", + "boundsDuration": { + "value": 10, + "unit": "day", + "system": "http://unitsofmeasure.org", + "code": "d" + } + } + }, + "method": { + "coding": [ + { + "system": "http://snomed.info/sct", + "code": "422145002", + "display": "Inject" + } + ] + }, + "route": { + "coding": [ + { + "system": "http://snomed.info/sct", + "code": "34206005", + "display": "Subcutaneous route" + } + ] + }, + "doseAndRate": [ + { + "doseQuantity": { + "value": 10, + "unit": "milligram", + "system": "http://unitsofmeasure.org", + "code": "mg" + } + } + ] + } + ], + "dispenseRequest": { + "extension": [ + { + "url": "https://fhir.nhs.uk/StructureDefinition/Extension-DM-PerformerSiteType", + "valueCoding": { + "system": "https://fhir.nhs.uk/CodeSystem/dispensing-site-preference", + "code": "P1" + } + } + ], + "validityPeriod": { + "start": "2021-05-07", + "end": "2021-06-04" + }, + "quantity": { + "value": 63, + "unit": "tablet", + "system": "http://snomed.info/sct", + "code": "428673006" + }, + "expectedSupplyDuration": { + "value": 28, + "unit": "days", + "system": "http://unitsofmeasure.org", + "code": "d" + }, + "performer": { + "identifier": { + "system": "https://fhir.nhs.uk/Id/ods-organization-code", + "value": "FH542" + } + }, + "numberOfRepeatsAllowed": 5 + }, + "substitution": { + "allowedBoolean": false + } + } + }, + { + "fullUrl": "urn:uuid:a54219b8-f741-4c47-b662-e4f8dfa49ab4", + "resource": { + "resourceType": "MedicationRequest", + "id": "a54219b8-f741-4c47-b662-e4f8dfa49ab4", + "extension": [ + { + "url": "https://fhir.nhs.uk/StructureDefinition/Extension-DM-PrescriptionType", + "valueCoding": { + "system": "https://fhir.nhs.uk/CodeSystem/prescription-type", + "code": "1001", + "display": "Outpatient Community Prescriber - Medical Prescriber" + } + }, + { + "url": "https://fhir.hl7.org.uk/StructureDefinition/Extension-UKCore-MedicationRepeatInformation", + "extension": [ + { + "url": "authorisationExpiryDate", + "valueDateTime": "2024-11-30" + } + ] + } + ], + "identifier": [ + { + "system": "https://fhir.nhs.uk/Id/prescription-order-item-number", + "value": "a54219b8-f741-4c47-b662-e4f8dfa49ab4" + } + ], + "status": "active", + "intent": "original-order", + "category": [ + { + "coding": [ + { + "system": "http://terminology.hl7.org/CodeSystem/medicationrequest-category", + "code": "outpatient", + "display": "Outpatient" + } + ] + } + ], + "medicationCodeableConcept": { + "coding": [ + { + "system": "http://snomed.info/sct", + "code": "15517911000001104", + "display": "Methotrexate 10mg/0.2ml solution for injection pre-filled syringes" + } + ] + }, + "subject": { + "reference": "urn:uuid:78d3c2eb-009e-4ec8-a358-b042954aa9b2" + }, + "requester": { + "reference": "urn:uuid:56166769-c1c4-4d07-afa8-132b5dfca666" + }, + "groupIdentifier": { + "extension": [ + { + "url": "https://fhir.nhs.uk/StructureDefinition/Extension-DM-PrescriptionId", + "valueIdentifier": { + "system": "https://fhir.nhs.uk/Id/prescription", + "value": "66679858-aa86-46a1-8de7-a2c878867693" + } + } + ], + "system": "https://fhir.nhs.uk/Id/prescription-order-number", + "value": "31AE14-A99968-48FB9Q" + }, + "courseOfTherapyType": { + "coding": [ + { + "system": "https://fhir.nhs.uk/CodeSystem/medicationrequest-course-of-therapy", + "code": "continuous-repeat-dispensing", + "display": "Continuous long term (repeat dispensing)" + } + ] + }, + "dosageInstruction": [ + { + "text": "Inject 10 milligram - 5 times a day - Subcutaneous route - for 10 days", + "timing": { + "repeat": { + "frequency": 5, + "period": 1, + "periodUnit": "d", + "boundsDuration": { + "value": 10, + "unit": "day", + "system": "http://unitsofmeasure.org", + "code": "d" + } + } + }, + "method": { + "coding": [ + { + "system": "http://snomed.info/sct", + "code": "422145002", + "display": "Inject" + } + ] + }, + "route": { + "coding": [ + { + "system": "http://snomed.info/sct", + "code": "34206005", + "display": "Subcutaneous route" + } + ] + }, + "doseAndRate": [ + { + "doseQuantity": { + "value": 10, + "unit": "milligram", + "system": "http://unitsofmeasure.org", + "code": "mg" + } + } + ] + } + ], + "dispenseRequest": { + "extension": [ + { + "url": "https://fhir.nhs.uk/StructureDefinition/Extension-DM-PerformerSiteType", + "valueCoding": { + "system": "https://fhir.nhs.uk/CodeSystem/dispensing-site-preference", + "code": "P1" + } + } + ], + "validityPeriod": { + "start": "2021-05-07", + "end": "2021-06-04" + }, + "quantity": { + "value": 63, + "unit": "tablet", + "system": "http://snomed.info/sct", + "code": "428673006" + }, + "expectedSupplyDuration": { + "value": 28, + "unit": "days", + "system": "http://unitsofmeasure.org", + "code": "d" + }, + "performer": { + "identifier": { + "system": "https://fhir.nhs.uk/Id/ods-organization-code", + "value": "FH542" + } + }, + "numberOfRepeatsAllowed": 5 + }, + "substitution": { + "allowedBoolean": false + } + } + }, + { + "fullUrl": "urn:uuid:78d3c2eb-009e-4ec8-a358-b042954aa9b2", + "resource": { + "resourceType": "Patient", + "id": "78d3c2eb-009e-4ec8-a358-b042954aa9b2", + "identifier": [ + { + "system": "https://fhir.nhs.uk/Id/nhs-number", + "value": "9449305552" + } + ], + "name": [ + { + "use": "usual", + "family": "CORY", + "given": ["ETTA"], + "prefix": ["MISS"] + } + ], + "gender": "female", + "birthDate": "1999-01-04", + "address": [ + { + "use": "home", + "line": ["123 Dale Avenue", "Long Eaton", "Nottingham"], + "postalCode": "NG10 1NP" + } + ], + "generalPractitioner": [ + { + "identifier": { + "system": "https://fhir.nhs.uk/Id/ods-organization-code", + "value": "B81001" + } + } + ] + } + }, + { + "fullUrl": "urn:uuid:56166769-c1c4-4d07-afa8-132b5dfca666", + "resource": { + "resourceType": "PractitionerRole", + "id": "56166769-c1c4-4d07-afa8-132b5dfca666", + "identifier": [ + { + "system": "https://fhir.nhs.uk/Id/sds-role-profile-id", + "value": "100102238986" + }, + { + "system": "https://fhir.hl7.org.uk/Id/nhsbsa-spurious-code", + "value": "612345" + } + ], + "practitioner": { + "reference": "urn:uuid:a8c85454-f8cb-498d-9629-78e2cb5fa47a" + }, + "organization": { + "reference": "urn:uuid:3b4b03a5-52ba-4ba6-9b82-70350aa109d8" + }, + "code": [ + { + "coding": [ + { + "system": "https://fhir.nhs.uk/CodeSystem/NHSDigital-SDS-JobRoleCode", + "code": "S8000:G8000:R8000", + "display": "Clinical Practitioner Access Role" + } + ] + } + ], + "telecom": [ + { + "system": "phone", + "value": "01234567890", + "use": "work" + } + ] + } + }, + { + "fullUrl": "urn:uuid:a8c85454-f8cb-498d-9629-78e2cb5fa47a", + "resource": { + "resourceType": "Practitioner", + "id": "a8c85454-f8cb-498d-9629-78e2cb5fa47a", + "identifier": [ + { + "system": "https://fhir.nhs.uk/Id/sds-user-id", + "value": "3415870201" + }, + { + "system": "https://fhir.hl7.org.uk/Id/gmc-number", + "value": "4428981" + } + ], + "name": [ + { + "family": "Edwards", + "given": ["Thomas"], + "prefix": ["DR"] + } + ] + } + }, + { + "fullUrl": "urn:uuid:3b4b03a5-52ba-4ba6-9b82-70350aa109d8", + "resource": { + "resourceType": "Organization", + "id": "3b4b03a5-52ba-4ba6-9b82-70350aa109d8", + "identifier": [ + { + "system": "https://fhir.nhs.uk/Id/ods-organization-code", + "value": "A99968" + } + ], + "name": "SOMERSET BOWEL CANCER SCREENING CENTRE", + "address": [ + { + "use": "work", + "line": ["MUSGROVE PARK HOSPITAL"], + "city": "TAUNTON", + "postalCode": "TA1 5DA" + } + ], + "telecom": [ + { + "system": "phone", + "value": "01823 333444", + "use": "work" + } + ], + "partOf": { + "identifier": { + "system": "https://fhir.nhs.uk/Id/ods-organization-code", + "value": "RBA" + }, + "display": "TAUNTON AND SOMERSET NHS FOUNDATION TRUST" + } + } + }, + { + "fullUrl": "urn:uuid:28828c55-8fa7-42d7-916f-fcf076e0c10e", + "resource": { + "resourceType": "Provenance", + "id": "28828c55-8fa7-42d7-916f-fcf076e0c10e", + "target": [ + { + "reference": "urn:uuid:a54219b8-f741-4c47-b662-e4f8dfa49ab6" + } + ], + "recorded": "2008-02-27T11:38:00+00:00", + "agent": [ + { + "who": { + "reference": "urn:uuid:56166769-c1c4-4d07-afa8-132b5dfca666" + } + } + ], + "signature": [ + { + "type": [ + { + "system": "urn:iso-astm:E1762-95:2013", + "code": "1.2.840.10065.1.12.1.1" + } + ], + "when": "2021-05-07T14:47:34+00:00", + "who": { + "reference": "urn:uuid:56166769-c1c4-4d07-afa8-132b5dfca666" + }, + "data": "DQo8U2lnbmF0dXJlIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwLzA5L3htbGRzaWcjIj4NCiAgICA8U2lnbmVkSW5mbz48Q2Fub25pY2FsaXphdGlvbk1ldGhvZCBBbGdvcml0aG09Imh0dHA6Ly93d3cudzMub3JnLzIwMDEvMTAveG1sLWV4Yy1jMTRuIyI+PC9DYW5vbmljYWxpemF0aW9uTWV0aG9kPjxTaWduYXR1cmVNZXRob2QgQWxnb3JpdGhtPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwLzA5L3htbGRzaWcjcnNhLXNoYTEiPjwvU2lnbmF0dXJlTWV0aG9kPjxSZWZlcmVuY2U+PFRyYW5zZm9ybXM+PFRyYW5zZm9ybSBBbGdvcml0aG09Imh0dHA6Ly93d3cudzMub3JnLzIwMDEvMTAveG1sLWV4Yy1jMTRuIyI+PC9UcmFuc2Zvcm0+PC9UcmFuc2Zvcm1zPjxEaWdlc3RNZXRob2QgQWxnb3JpdGhtPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwLzA5L3htbGRzaWcjc2hhMSI+PC9EaWdlc3RNZXRob2Q+PERpZ2VzdFZhbHVlPkNLdW5uZDVKNHVpUkdtbkx3MmdTMEdYSXNvUT08L0RpZ2VzdFZhbHVlPjwvUmVmZXJlbmNlPjwvU2lnbmVkSW5mbz4NCiAgICA8U2lnbmF0dXJlVmFsdWU+YXo2RDVOalA3TkxkMjhkSUNGM1ExT0JxR0RWSWo1TW0xSWIweXVuN01INHhGV2p2c3V4L0xBN3BLeGxBUnFLbTZBdXBEVEI2VGxwUU5VenRtKzVWK0U3QktoSkFiaFQ2N1RXcUpmb3Zab3RZWUZSeGt0eGc4MFZjTUpQWllMZk4rUUZqQUt6ODZzNlJTMHhINmI0bkxuRUptdndvUXVTVzF1RVNRT3Nmd0VBPTwvU2lnbmF0dXJlVmFsdWU+DQogICAgPEtleUluZm8+DQogICAgICAgIDxYNTA5RGF0YT4NCiAgICAgICAgICAgIDxYNTA5Q2VydGlmaWNhdGU+TUlJRHVEQ0NBcUNnQXdJQkFnSUVYY210SHpBTkJna3Foa2lHOXcwQkFRc0ZBREEyTVF3d0NnWURWUVFLRXdOdWFITXhDekFKQmdOVkJBc1RBa05CTVJrd0Z3WURWUVFERXhCT1NGTWdTVTVVSUV4bGRtVnNJREZFTUI0WERUSXdNVEF5TWpFd01qRTFOVm9YRFRJeU1UQXlNakV3TlRFMU5Wb3dRekVNTUFvR0ExVUVDaE1EYm1oek1ROHdEUVlEVlFRTEV3WlFaVzl3YkdVeElqQWdCZ05WQkFNTUdUVTFOVEkxTXpVeU1URXdPRjlTUVU1RVQwMWZWVk5GVWxFd2daOHdEUVlKS29aSWh2Y05BUUVCQlFBRGdZMEFNSUdKQW9HQkFLdDRzek53N09BSDdBUVJyRGUveEJJbXNNbU1pUzlFc3JUM2EzcC9MaDNicmR6STlhYWpUVVoyYi9jdmJPYTdQZVlkN3UrSzRhMlpkMFhrKzBHRm1ZR3pTVlg2aVlqYmx3cjB2YWkzMXpWN0crbEd2SHhINnBTb0xDd0lDYVpBRndhYmVENU96OTQreUEzYVdOV3RHVjBEZmg5cXdIM1pGQ0lNUnN2ZXJOMXBBZ01CQUFHamdnRkRNSUlCUHpBT0JnTlZIUThCQWY4RUJBTUNCa0F3WlFZRFZSMGdBUUgvQkZzd1dUQlhCZ3NxaGpvQWlYdG1BQU1DQURCSU1FWUdDQ3NHQVFVRkJ3SUJGanBvZEhSd2N6b3ZMM0JyYVM1dWFITXVkV3N2WTJWeWRHbG1hV05oZEdWZmNHOXNhV05wWlhNdlkyOXVkR1Z1ZEY5amIyMXRhWFJ0Wlc1ME1ETUdBMVVkSHdRc01Db3dLS0Ftb0NTR0ltaDBkSEE2THk5amNtd3VibWh6TG5WckwybHVkQzh4WkM5amNteGpNeTVqY213d0t3WURWUjBRQkNRd0lvQVBNakF5TURFd01qSXhNREl4TlRWYWdROHlNREl5TURNeE56RXdOVEUxTlZvd0h3WURWUjBqQkJnd0ZvQVVvSllmZ1lUTlBkNkVVS0w2UUxJekh4WTVQRkl3SFFZRFZSME9CQllFRkx0eXZZU3lhcWc2MEFFVVpneGswd3JqUkpjK01Ba0dBMVVkRXdRQ01BQXdHUVlKS29aSWh2WjlCMEVBQkF3d0Noc0VWamd1TXdNQ0JMQXdEUVlKS29aSWh2Y05BUUVMQlFBRGdnRUJBQmN6eThCOGp1UHBJZmFUTkZjeHJDMjJhQ1gveFlabWhyTC9OdklCQWFYMUc1aGppd21rR0tFMmhSVElyNjdQeFp4bVhzSnhpZ1JCTUhQbEkrbFkvK29rekgwR2k3YjVicWx3N3B4R0lnSk8wMDB3OHBGc3ZvOXc0MklZaEhvZHN2bkRWU3hoTVQwSjQ2UWhrOXNvRTBMam9FVUxLUVBQbFlHa2UvR2wzbTE3SXRGWXdPYlFIMGZNRXdtaXFCeWVJZno3Z1NjY096TDVjSXA2UGNaVE9qbzJJcVFwZ0VtaGpPY1JJbkVxQU5pdFNkam9pSkFKenBhYVpqWVRSZEhVWDdpN2FqRWlING05MW5GVys0QXFrTnR0bGI0V2NHS3NTbVdnZktLaGVGNElvWktNRTgweGVyU2dNeTh2dGpMT0JKQ0dYejB3TEdtUXVSbXhNVHE4OHE0PTwvWDUwOUNlcnRpZmljYXRlPg0KICAgICAgICA8L1g1MDlEYXRhPg0KICAgIDwvS2V5SW5mbz4NCjwvU2lnbmF0dXJlPg0K" + } + ] + } + } + ] +} diff --git a/src/test/resources/examples/full_examples/secondary-care/community/repeat-dispensing/nominated-pharmacy/clinical-practitioner/multiple-medication-requests/prescriber-endorsed/1-Prepare-Request-200_OK.json b/src/test/resources/examples/full_examples/secondary-care/community/repeat-dispensing/nominated-pharmacy/clinical-practitioner/multiple-medication-requests/prescriber-endorsed/1-Prepare-Request-200_OK.json new file mode 100644 index 00000000..cb42e0ed --- /dev/null +++ b/src/test/resources/examples/full_examples/secondary-care/community/repeat-dispensing/nominated-pharmacy/clinical-practitioner/multiple-medication-requests/prescriber-endorsed/1-Prepare-Request-200_OK.json @@ -0,0 +1,912 @@ +{ + "resourceType": "Bundle", + "id": "aef77afb-7e3c-427a-8657-2c427f71a271", + "identifier": { + "system": "https://tools.ietf.org/html/rfc4122", + "value": "19b3e4a8-7db6-486a-b2b6-178b2f44ac13" + }, + "type": "message", + "entry": [ + { + "fullUrl": "urn:uuid:3599c0e9-9292-413e-9270-9a1ef1ead99c", + "resource": { + "resourceType": "MessageHeader", + "id": "3599c0e9-9292-413e-9270-9a1ef1ead99c", + "eventCoding": { + "system": "https://fhir.nhs.uk/CodeSystem/message-event", + "code": "prescription-order", + "display": "Prescription Order" + }, + "sender": { + "identifier": { + "system": "https://fhir.nhs.uk/Id/ods-organization-code", + "value": "RBA" + }, + "reference": "urn:uuid:56166769-c1c4-4d07-afa8-132b5dfca666", + "display": "RAZIA|ALI" + }, + "source": { + "endpoint": "https://directory.spineservices.nhs.uk/STU3/Organization/RBA" + }, + "destination": [ + { + "endpoint": "https://directory.spineservices.nhs.uk/STU3/Organization/FH542", + "receiver": { + "identifier": { + "system": "https://fhir.nhs.uk/Id/ods-organization-code", + "value": "FH542" + } + } + } + ], + "focus": [ + { + "reference": "urn:uuid:56166769-c1c4-4d07-afa8-132b5dfca666" + }, + { + "reference": "urn:uuid:a54219b8-f741-4c47-b662-e4f8dfa49ab6" + } + ] + } + }, + { + "fullUrl": "urn:uuid:a54219b8-f741-4c47-b662-e4f8dfa49ab7", + "resource": { + "resourceType": "MedicationRequest", + "id": "a54219b8-f741-4c47-b662-e4f8dfa49ab7", + "extension": [ + { + "url": "https://fhir.nhs.uk/StructureDefinition/Extension-DM-PrescriptionType", + "valueCoding": { + "system": "https://fhir.nhs.uk/CodeSystem/prescription-type", + "code": "1001", + "display": "Outpatient Community Prescriber - Medical Prescriber" + } + }, + { + "url": "https://fhir.hl7.org.uk/StructureDefinition/Extension-UKCore-MedicationRepeatInformation", + "extension": [ + { + "url": "authorisationExpiryDate", + "valueDateTime": "2024-11-30" + } + ] + }, + { + "url": "https://fhir.nhs.uk/StructureDefinition/Extension-DM-PrescriptionEndorsement", + "valueCodeableConcept": { + "coding": [ + { + "system": "https://fhir.nhs.uk/CodeSystem/medicationrequest-endorsement", + "code": "SLS", + "display": "Selected List Scheme" + } + ] + } + } + ], + "identifier": [ + { + "system": "https://fhir.nhs.uk/Id/prescription-order-item-number", + "value": "a54219b8-f741-4c47-b662-e4f8dfa49ab5" + } + ], + "status": "active", + "intent": "original-order", + "category": [ + { + "coding": [ + { + "system": "http://terminology.hl7.org/CodeSystem/medicationrequest-category", + "code": "outpatient", + "display": "Outpatient" + } + ] + } + ], + "medicationCodeableConcept": { + "coding": [ + { + "system": "http://snomed.info/sct", + "code": "15517911000001104", + "display": "Methotrexate 10mg/0.2ml solution for injection pre-filled syringes" + } + ] + }, + "subject": { + "reference": "urn:uuid:78d3c2eb-009e-4ec8-a358-b042954aa9b2" + }, + "requester": { + "reference": "urn:uuid:56166769-c1c4-4d07-afa8-132b5dfca666" + }, + "groupIdentifier": { + "extension": [ + { + "url": "https://fhir.nhs.uk/StructureDefinition/Extension-DM-PrescriptionId", + "valueIdentifier": { + "system": "https://fhir.nhs.uk/Id/prescription", + "value": "5f3b444b-9378-4597-ab49-194ebfd05439" + } + } + ], + "system": "https://fhir.nhs.uk/Id/prescription-order-number", + "value": "540F91-A99968-4B9EBV" + }, + "courseOfTherapyType": { + "coding": [ + { + "system": "https://fhir.nhs.uk/CodeSystem/medicationrequest-course-of-therapy", + "code": "continuous-repeat-dispensing", + "display": "Continuous long term (repeat dispensing)" + } + ] + }, + "dosageInstruction": [ + { + "text": "Inject 10 milligram - 5 times a day - Subcutaneous route - for 10 days", + "timing": { + "repeat": { + "frequency": 5, + "period": 1, + "periodUnit": "d", + "boundsDuration": { + "value": 10, + "unit": "day", + "system": "http://unitsofmeasure.org", + "code": "d" + } + } + }, + "method": { + "coding": [ + { + "system": "http://snomed.info/sct", + "code": "422145002", + "display": "Inject" + } + ] + }, + "route": { + "coding": [ + { + "system": "http://snomed.info/sct", + "code": "34206005", + "display": "Subcutaneous route" + } + ] + }, + "doseAndRate": [ + { + "doseQuantity": { + "value": 10, + "unit": "milligram", + "system": "http://unitsofmeasure.org", + "code": "mg" + } + } + ] + } + ], + "dispenseRequest": { + "extension": [ + { + "url": "https://fhir.nhs.uk/StructureDefinition/Extension-DM-PerformerSiteType", + "valueCoding": { + "system": "https://fhir.nhs.uk/CodeSystem/dispensing-site-preference", + "code": "P1" + } + } + ], + "numberOfRepeatsAllowed": 5, + "validityPeriod": { + "start": "2021-05-07", + "end": "2021-06-04" + }, + "quantity": { + "value": 63, + "unit": "tablet", + "system": "http://snomed.info/sct", + "code": "428673006" + }, + "expectedSupplyDuration": { + "value": 28, + "unit": "days", + "system": "http://unitsofmeasure.org", + "code": "d" + }, + "performer": { + "identifier": { + "system": "https://fhir.nhs.uk/Id/ods-organization-code", + "value": "FH542" + } + } + }, + "substitution": { + "allowedBoolean": false + } + } + }, + { + "fullUrl": "urn:uuid:a54219b8-f741-4c47-b662-e4f8dfa49ab6", + "resource": { + "resourceType": "MedicationRequest", + "id": "a54219b8-f741-4c47-b662-e4f8dfa49ab6", + "extension": [ + { + "url": "https://fhir.nhs.uk/StructureDefinition/Extension-DM-PrescriptionType", + "valueCoding": { + "system": "https://fhir.nhs.uk/CodeSystem/prescription-type", + "code": "1001", + "display": "Outpatient Community Prescriber - Medical Prescriber" + } + }, + { + "url": "https://fhir.hl7.org.uk/StructureDefinition/Extension-UKCore-MedicationRepeatInformation", + "extension": [ + { + "url": "authorisationExpiryDate", + "valueDateTime": "2024-11-30" + } + ] + }, + { + "url": "https://fhir.nhs.uk/StructureDefinition/Extension-DM-PrescriptionEndorsement", + "valueCodeableConcept": { + "coding": [ + { + "system": "https://fhir.nhs.uk/CodeSystem/medicationrequest-endorsement", + "code": "SLS", + "display": "Selected List Scheme" + } + ] + } + } + ], + "identifier": [ + { + "system": "https://fhir.nhs.uk/Id/prescription-order-item-number", + "value": "a54219b8-f741-4c47-b662-e4f8dfa49ab4" + } + ], + "status": "active", + "intent": "original-order", + "category": [ + { + "coding": [ + { + "system": "http://terminology.hl7.org/CodeSystem/medicationrequest-category", + "code": "outpatient", + "display": "Outpatient" + } + ] + } + ], + "medicationCodeableConcept": { + "coding": [ + { + "system": "http://snomed.info/sct", + "code": "15517911000001104", + "display": "Methotrexate 10mg/0.2ml solution for injection pre-filled syringes" + } + ] + }, + "subject": { + "reference": "urn:uuid:78d3c2eb-009e-4ec8-a358-b042954aa9b2" + }, + "requester": { + "reference": "urn:uuid:56166769-c1c4-4d07-afa8-132b5dfca666" + }, + "groupIdentifier": { + "extension": [ + { + "url": "https://fhir.nhs.uk/StructureDefinition/Extension-DM-PrescriptionId", + "valueIdentifier": { + "system": "https://fhir.nhs.uk/Id/prescription", + "value": "5f3b444b-9378-4597-ab49-194ebfd05439" + } + } + ], + "system": "https://fhir.nhs.uk/Id/prescription-order-number", + "value": "540F91-A99968-4B9EBV" + }, + "courseOfTherapyType": { + "coding": [ + { + "system": "https://fhir.nhs.uk/CodeSystem/medicationrequest-course-of-therapy", + "code": "continuous-repeat-dispensing", + "display": "Continuous long term (repeat dispensing)" + } + ] + }, + "dosageInstruction": [ + { + "text": "Inject 10 milligram - 5 times a day - Subcutaneous route - for 10 days", + "timing": { + "repeat": { + "frequency": 5, + "period": 1, + "periodUnit": "d", + "boundsDuration": { + "value": 10, + "unit": "day", + "system": "http://unitsofmeasure.org", + "code": "d" + } + } + }, + "method": { + "coding": [ + { + "system": "http://snomed.info/sct", + "code": "422145002", + "display": "Inject" + } + ] + }, + "route": { + "coding": [ + { + "system": "http://snomed.info/sct", + "code": "34206005", + "display": "Subcutaneous route" + } + ] + }, + "doseAndRate": [ + { + "doseQuantity": { + "value": 10, + "unit": "milligram", + "system": "http://unitsofmeasure.org", + "code": "mg" + } + } + ] + } + ], + "dispenseRequest": { + "extension": [ + { + "url": "https://fhir.nhs.uk/StructureDefinition/Extension-DM-PerformerSiteType", + "valueCoding": { + "system": "https://fhir.nhs.uk/CodeSystem/dispensing-site-preference", + "code": "P1" + } + } + ], + "numberOfRepeatsAllowed": 5, + "validityPeriod": { + "start": "2021-05-07", + "end": "2021-06-04" + }, + "quantity": { + "value": 63, + "unit": "tablet", + "system": "http://snomed.info/sct", + "code": "428673006" + }, + "expectedSupplyDuration": { + "value": 28, + "unit": "days", + "system": "http://unitsofmeasure.org", + "code": "d" + }, + "performer": { + "identifier": { + "system": "https://fhir.nhs.uk/Id/ods-organization-code", + "value": "FH542" + } + } + }, + "substitution": { + "allowedBoolean": false + } + } + }, + { + "fullUrl": "urn:uuid:a54219b8-f741-4c47-b662-e4f8dfa49ab5", + "resource": { + "resourceType": "MedicationRequest", + "id": "a54219b8-f741-4c47-b662-e4f8dfa49ab5", + "extension": [ + { + "url": "https://fhir.nhs.uk/StructureDefinition/Extension-DM-PrescriptionType", + "valueCoding": { + "system": "https://fhir.nhs.uk/CodeSystem/prescription-type", + "code": "1001", + "display": "Outpatient Community Prescriber - Medical Prescriber" + } + }, + { + "url": "https://fhir.hl7.org.uk/StructureDefinition/Extension-UKCore-MedicationRepeatInformation", + "extension": [ + { + "url": "authorisationExpiryDate", + "valueDateTime": "2024-11-30" + } + ] + }, + { + "url": "https://fhir.nhs.uk/StructureDefinition/Extension-DM-PrescriptionEndorsement", + "valueCodeableConcept": { + "coding": [ + { + "system": "https://fhir.nhs.uk/CodeSystem/medicationrequest-endorsement", + "code": "SLS", + "display": "Selected List Scheme" + } + ] + } + } + ], + "identifier": [ + { + "system": "https://fhir.nhs.uk/Id/prescription-order-item-number", + "value": "a54219b8-f741-4c47-b662-e4f8dfa49ab3" + } + ], + "status": "active", + "intent": "original-order", + "category": [ + { + "coding": [ + { + "system": "http://terminology.hl7.org/CodeSystem/medicationrequest-category", + "code": "outpatient", + "display": "Outpatient" + } + ] + } + ], + "medicationCodeableConcept": { + "coding": [ + { + "system": "http://snomed.info/sct", + "code": "15517911000001104", + "display": "Methotrexate 10mg/0.2ml solution for injection pre-filled syringes" + } + ] + }, + "subject": { + "reference": "urn:uuid:78d3c2eb-009e-4ec8-a358-b042954aa9b2" + }, + "requester": { + "reference": "urn:uuid:56166769-c1c4-4d07-afa8-132b5dfca666" + }, + "groupIdentifier": { + "extension": [ + { + "url": "https://fhir.nhs.uk/StructureDefinition/Extension-DM-PrescriptionId", + "valueIdentifier": { + "system": "https://fhir.nhs.uk/Id/prescription", + "value": "5f3b444b-9378-4597-ab49-194ebfd05439" + } + } + ], + "system": "https://fhir.nhs.uk/Id/prescription-order-number", + "value": "540F91-A99968-4B9EBV" + }, + "courseOfTherapyType": { + "coding": [ + { + "system": "https://fhir.nhs.uk/CodeSystem/medicationrequest-course-of-therapy", + "code": "continuous-repeat-dispensing", + "display": "Continuous long term (repeat dispensing)" + } + ] + }, + "dosageInstruction": [ + { + "text": "Inject 10 milligram - 5 times a day - Subcutaneous route - for 10 days", + "timing": { + "repeat": { + "frequency": 5, + "period": 1, + "periodUnit": "d", + "boundsDuration": { + "value": 10, + "unit": "day", + "system": "http://unitsofmeasure.org", + "code": "d" + } + } + }, + "method": { + "coding": [ + { + "system": "http://snomed.info/sct", + "code": "422145002", + "display": "Inject" + } + ] + }, + "route": { + "coding": [ + { + "system": "http://snomed.info/sct", + "code": "34206005", + "display": "Subcutaneous route" + } + ] + }, + "doseAndRate": [ + { + "doseQuantity": { + "value": 10, + "unit": "milligram", + "system": "http://unitsofmeasure.org", + "code": "mg" + } + } + ] + } + ], + "dispenseRequest": { + "extension": [ + { + "url": "https://fhir.nhs.uk/StructureDefinition/Extension-DM-PerformerSiteType", + "valueCoding": { + "system": "https://fhir.nhs.uk/CodeSystem/dispensing-site-preference", + "code": "P1" + } + } + ], + "numberOfRepeatsAllowed": 5, + "validityPeriod": { + "start": "2021-05-07", + "end": "2021-06-04" + }, + "quantity": { + "value": 63, + "unit": "tablet", + "system": "http://snomed.info/sct", + "code": "428673006" + }, + "expectedSupplyDuration": { + "value": 28, + "unit": "days", + "system": "http://unitsofmeasure.org", + "code": "d" + }, + "performer": { + "identifier": { + "system": "https://fhir.nhs.uk/Id/ods-organization-code", + "value": "FH542" + } + } + }, + "substitution": { + "allowedBoolean": false + } + } + }, + { + "fullUrl": "urn:uuid:a54219b8-f741-4c47-b662-e4f8dfa49ab4", + "resource": { + "resourceType": "MedicationRequest", + "id": "a54219b8-f741-4c47-b662-e4f8dfa49ab4", + "extension": [ + { + "url": "https://fhir.nhs.uk/StructureDefinition/Extension-DM-PrescriptionType", + "valueCoding": { + "system": "https://fhir.nhs.uk/CodeSystem/prescription-type", + "code": "1001", + "display": "Outpatient Community Prescriber - Medical Prescriber" + } + }, + { + "url": "https://fhir.hl7.org.uk/StructureDefinition/Extension-UKCore-MedicationRepeatInformation", + "extension": [ + { + "url": "authorisationExpiryDate", + "valueDateTime": "2024-11-30" + } + ] + }, + { + "url": "https://fhir.nhs.uk/StructureDefinition/Extension-DM-PrescriptionEndorsement", + "valueCodeableConcept": { + "coding": [ + { + "system": "https://fhir.nhs.uk/CodeSystem/medicationrequest-endorsement", + "code": "SLS", + "display": "Selected List Scheme" + } + ] + } + } + ], + "identifier": [ + { + "system": "https://fhir.nhs.uk/Id/prescription-order-item-number", + "value": "a54219b8-f741-4c47-b662-e4f8dfa49ab2" + } + ], + "status": "active", + "intent": "original-order", + "category": [ + { + "coding": [ + { + "system": "http://terminology.hl7.org/CodeSystem/medicationrequest-category", + "code": "outpatient", + "display": "Outpatient" + } + ] + } + ], + "medicationCodeableConcept": { + "coding": [ + { + "system": "http://snomed.info/sct", + "code": "15517911000001104", + "display": "Methotrexate 10mg/0.2ml solution for injection pre-filled syringes" + } + ] + }, + "subject": { + "reference": "urn:uuid:78d3c2eb-009e-4ec8-a358-b042954aa9b2" + }, + "requester": { + "reference": "urn:uuid:56166769-c1c4-4d07-afa8-132b5dfca666" + }, + "groupIdentifier": { + "extension": [ + { + "url": "https://fhir.nhs.uk/StructureDefinition/Extension-DM-PrescriptionId", + "valueIdentifier": { + "system": "https://fhir.nhs.uk/Id/prescription", + "value": "5f3b444b-9378-4597-ab49-194ebfd05439" + } + } + ], + "system": "https://fhir.nhs.uk/Id/prescription-order-number", + "value": "540F91-A99968-4B9EBV" + }, + "courseOfTherapyType": { + "coding": [ + { + "system": "https://fhir.nhs.uk/CodeSystem/medicationrequest-course-of-therapy", + "code": "continuous-repeat-dispensing", + "display": "Continuous long term (repeat dispensing)" + } + ] + }, + "dosageInstruction": [ + { + "text": "Inject 10 milligram - 5 times a day - Subcutaneous route - for 10 days", + "timing": { + "repeat": { + "frequency": 5, + "period": 1, + "periodUnit": "d", + "boundsDuration": { + "value": 10, + "unit": "day", + "system": "http://unitsofmeasure.org", + "code": "d" + } + } + }, + "method": { + "coding": [ + { + "system": "http://snomed.info/sct", + "code": "422145002", + "display": "Inject" + } + ] + }, + "route": { + "coding": [ + { + "system": "http://snomed.info/sct", + "code": "34206005", + "display": "Subcutaneous route" + } + ] + }, + "doseAndRate": [ + { + "doseQuantity": { + "value": 10, + "unit": "milligram", + "system": "http://unitsofmeasure.org", + "code": "mg" + } + } + ] + } + ], + "dispenseRequest": { + "extension": [ + { + "url": "https://fhir.nhs.uk/StructureDefinition/Extension-DM-PerformerSiteType", + "valueCoding": { + "system": "https://fhir.nhs.uk/CodeSystem/dispensing-site-preference", + "code": "P1" + } + } + ], + "numberOfRepeatsAllowed": 5, + "validityPeriod": { + "start": "2021-05-07", + "end": "2021-06-04" + }, + "quantity": { + "value": 63, + "unit": "tablet", + "system": "http://snomed.info/sct", + "code": "428673006" + }, + "expectedSupplyDuration": { + "value": 28, + "unit": "days", + "system": "http://unitsofmeasure.org", + "code": "d" + }, + "performer": { + "identifier": { + "system": "https://fhir.nhs.uk/Id/ods-organization-code", + "value": "FH542" + } + } + }, + "substitution": { + "allowedBoolean": false + } + } + }, + { + "fullUrl": "urn:uuid:78d3c2eb-009e-4ec8-a358-b042954aa9b2", + "resource": { + "resourceType": "Patient", + "id": "78d3c2eb-009e-4ec8-a358-b042954aa9b2", + "identifier": [ + { + "system": "https://fhir.nhs.uk/Id/nhs-number", + "value": "9449305552" + } + ], + "name": [ + { + "use": "usual", + "family": "CORY", + "given": [ + "ETTA" + ], + "prefix": [ + "MISS" + ] + } + ], + "gender": "female", + "birthDate": "1999-01-04", + "address": [ + { + "use": "home", + "line": [ + "123 Dale Avenue", + "Long Eaton", + "Nottingham" + ], + "postalCode": "NG10 1NP" + } + ], + "generalPractitioner": [ + { + "identifier": { + "system": "https://fhir.nhs.uk/Id/ods-organization-code", + "value": "B81001" + } + } + ] + } + }, + { + "fullUrl": "urn:uuid:56166769-c1c4-4d07-afa8-132b5dfca666", + "resource": { + "resourceType": "PractitionerRole", + "id": "56166769-c1c4-4d07-afa8-132b5dfca666", + "identifier": [ + { + "system": "https://fhir.nhs.uk/Id/sds-role-profile-id", + "value": "100102238986" + }, + { + "system": "https://fhir.hl7.org.uk/Id/nhsbsa-spurious-code", + "value": "612345" + } + ], + "practitioner": { + "reference": "urn:uuid:a8c85454-f8cb-498d-9629-78e2cb5fa47a" + }, + "organization": { + "reference": "urn:uuid:3b4b03a5-52ba-4ba6-9b82-70350aa109d8" + }, + "code": [ + { + "coding": [ + { + "system": "https://fhir.nhs.uk/CodeSystem/NHSDigital-SDS-JobRoleCode", + "code": "S8000:G8000:R8000", + "display": "Clinical Practitioner Access Role" + } + ] + } + ], + "telecom": [ + { + "system": "phone", + "value": "01234567890", + "use": "work" + } + ] + } + }, + { + "fullUrl": "urn:uuid:a8c85454-f8cb-498d-9629-78e2cb5fa47a", + "resource": { + "resourceType": "Practitioner", + "id": "a8c85454-f8cb-498d-9629-78e2cb5fa47a", + "identifier": [ + { + "system": "https://fhir.nhs.uk/Id/sds-user-id", + "value": "3415870201" + }, + { + "system": "https://fhir.hl7.org.uk/Id/gmc-number", + "value": "4428981" + } + ], + "name": [ + { + "family": "Edwards", + "given": [ + "Thomas" + ], + "prefix": [ + "DR" + ] + } + ] + } + }, + { + "fullUrl": "urn:uuid:3b4b03a5-52ba-4ba6-9b82-70350aa109d8", + "resource": { + "resourceType": "Organization", + "id": "3b4b03a5-52ba-4ba6-9b82-70350aa109d8", + "identifier": [ + { + "system": "https://fhir.nhs.uk/Id/ods-organization-code", + "value": "A99968" + } + ], + "name": "SOMERSET BOWEL CANCER SCREENING CENTRE", + "address": [ + { + "use": "work", + "line": ["MUSGROVE PARK HOSPITAL"], + "city": "TAUNTON", + "postalCode": "TA1 5DA" + } + ], + "telecom": [ + { + "system": "phone", + "value": "01823 333444", + "use": "work" + } + ], + "partOf": { + "identifier": { + "system": "https://fhir.nhs.uk/Id/ods-organization-code", + "value": "RBA" + }, + "display": "TAUNTON AND SOMERSET NHS FOUNDATION TRUST" + } + } + } + ] +} diff --git a/src/test/resources/examples/full_examples/secondary-care/community/repeat-dispensing/nominated-pharmacy/clinical-practitioner/multiple-medication-requests/prescriber-endorsed/1-Prepare-Response-200_OK.json b/src/test/resources/examples/full_examples/secondary-care/community/repeat-dispensing/nominated-pharmacy/clinical-practitioner/multiple-medication-requests/prescriber-endorsed/1-Prepare-Response-200_OK.json new file mode 100644 index 00000000..62825cd0 --- /dev/null +++ b/src/test/resources/examples/full_examples/secondary-care/community/repeat-dispensing/nominated-pharmacy/clinical-practitioner/multiple-medication-requests/prescriber-endorsed/1-Prepare-Response-200_OK.json @@ -0,0 +1,17 @@ +{ + "resourceType": "Parameters", + "parameter": [ + { + "name": "digest", + "valueString": "PFNpZ25lZEluZm8geG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvMDkveG1sZHNpZyMiPjxDYW5vbmljYWxpemF0aW9uTWV0aG9kIEFsZ29yaXRobT0iaHR0cDovL3d3dy53My5vcmcvMjAwMS8xMC94bWwtZXhjLWMxNG4jIj48L0Nhbm9uaWNhbGl6YXRpb25NZXRob2Q+PFNpZ25hdHVyZU1ldGhvZCBBbGdvcml0aG09Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvMDkveG1sZHNpZyNyc2Etc2hhMSI+PC9TaWduYXR1cmVNZXRob2Q+PFJlZmVyZW5jZT48VHJhbnNmb3Jtcz48VHJhbnNmb3JtIEFsZ29yaXRobT0iaHR0cDovL3d3dy53My5vcmcvMjAwMS8xMC94bWwtZXhjLWMxNG4jIj48L1RyYW5zZm9ybT48L1RyYW5zZm9ybXM+PERpZ2VzdE1ldGhvZCBBbGdvcml0aG09Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvMDkveG1sZHNpZyNzaGExIj48L0RpZ2VzdE1ldGhvZD48RGlnZXN0VmFsdWU+Q0lFM2MwNnRxZlQ4ZUhMM2ZMY3A4TWNFYkJnPTwvRGlnZXN0VmFsdWU+PC9SZWZlcmVuY2U+PC9TaWduZWRJbmZvPg==" + }, + { + "name": "timestamp", + "valueString": "2022-10-25T10:24:34+00:00" + }, + { + "name": "algorithm", + "valueString": "RS1" + } + ] +} diff --git a/src/test/resources/examples/full_examples/secondary-care/community/repeat-dispensing/nominated-pharmacy/clinical-practitioner/multiple-medication-requests/prescriber-endorsed/1-Process-Request-Dispense-200_OK.json b/src/test/resources/examples/full_examples/secondary-care/community/repeat-dispensing/nominated-pharmacy/clinical-practitioner/multiple-medication-requests/prescriber-endorsed/1-Process-Request-Dispense-200_OK.json new file mode 100644 index 00000000..45abb9a0 --- /dev/null +++ b/src/test/resources/examples/full_examples/secondary-care/community/repeat-dispensing/nominated-pharmacy/clinical-practitioner/multiple-medication-requests/prescriber-endorsed/1-Process-Request-Dispense-200_OK.json @@ -0,0 +1,1570 @@ +{ + "resourceType": "Bundle", + "id": "3d03b02a-2f98-44b8-b990-4280c5eafbb6", + "identifier": { + "system": "https://tools.ietf.org/html/rfc4122", + "value": "e7d43cac-5c63-4f08-b988-60813a080398" + }, + "type": "message", + "entry": [ + { + "fullUrl": "urn:uuid:59466d42-419a-40b3-a9a9-7b20c998fa7c", + "resource": { + "resourceType": "MessageHeader", + "id": "59466d42-419a-40b3-a9a9-7b20c998fa7c", + "destination": [ + { + "endpoint": "https://directory.spineservices.nhs.uk/STU3/Organization/FCG71", + "receiver": { + "identifier": { + "system": "https://fhir.nhs.uk/Id/ods-organization-code", + "value": "FCG71" + } + } + } + ], + "sender": { + "identifier": { + "system": "https://fhir.nhs.uk/Id/ods-organization-code", + "value": "X2601" + }, + "display": "NHS Digital Spine" + }, + "source": { + "name": "NHS Spine", + "endpoint": "https://internal-qa.api.service.nhs.uk/electronic-prescriptions/$process-message" + }, + "response": { + "code": "ok", + "identifier": "ffffffff-ffff-4fff-bfff-ffffffffffff" + }, + "eventCoding": { + "system": "https://fhir.nhs.uk/CodeSystem/message-event", + "code": "dispense-notification", + "display": "Dispense Notification" + }, + "focus": [ + { + "reference": "urn:uuid:44ec4183-028c-480a-aa61-86861afef355" + }, + { + "reference": "urn:uuid:92c421ee-322a-41c8-85ed-784733761581" + }, + { + "reference": "urn:uuid:4c963cd2-05e4-4c25-8acb-5c30ac1981ef" + } + ] + } + }, + { + "fullUrl": "urn:uuid:92c421ee-322a-41c8-85ed-784733761581", + "resource": { + "resourceType": "MedicationDispense", + "id": "92c421ee-322a-41c8-85ed-784733761581", + "extension": [ + { + "url": "https://fhir.nhs.uk/StructureDefinition/Extension-EPS-TaskBusinessStatus", + "valueCoding": { + "code": "0006", + "system": "https://fhir.nhs.uk/CodeSystem/EPS-task-business-status", + "display": "Dispensed" + } + } + ], + "identifier": [ + { + "system": "https://fhir.nhs.uk/Id/prescription-dispense-item-number", + "value": "f4625352-cbf9-4af4-8ad9-f639d003ad34" + } + ], + "contained": [ + { + "resourceType": "PractitionerRole", + "id": "performer", + "identifier": [ + { + "system": "https://fhir.nhs.uk/Id/sds-role-profile-id", + "value": "555086415105" + } + ], + "practitioner": { + "identifier": { + "system": "https://fhir.nhs.uk/Id/sds-user-id", + "value": "3415870201" + }, + "display": "Mr Peter Potion" + }, + "organization": { + "reference": "urn:uuid:2bf9f37c-d88b-4f86-ad5f-373c1416e04b" + }, + "code": [ + { + "coding": [ + { + "system": "https://fhir.nhs.uk/CodeSystem/NHSDigital-SDS-JobRoleCode", + "code": "S8000:G8000:R8000", + "display": "Clinical Practitioner Access Role" + } + ] + } + ], + "telecom": [ + { + "system": "phone", + "use": "work", + "value": "0532567890" + } + ] + }, + { + "resourceType": "MedicationRequest", + "id": "m1", + "extension": [ + { + "url": "https://fhir.nhs.uk/StructureDefinition/Extension-DM-PrescriptionType", + "valueCoding": { + "system": "https://fhir.nhs.uk/CodeSystem/prescription-type", + "code": "1001", + "display": "Outpatient Community Prescriber - Medical Prescriber" + } + }, + { + "url": "https://fhir.hl7.org.uk/StructureDefinition/Extension-UKCore-MedicationRepeatInformation", + "extension": [ + { + "url": "authorisationExpiryDate", + "valueDateTime": "2024-11-30" + }, + { + "url": "numberOfPrescriptionsIssued", + "valueUnsignedInt": 1 + } + ] + }, + { + "url": "https://fhir.nhs.uk/StructureDefinition/Extension-DM-PrescriptionEndorsement", + "valueCodeableConcept": { + "coding": [ + { + "system": "https://fhir.nhs.uk/CodeSystem/medicationrequest-endorsement", + "code": "SLS", + "display": "Selected List Scheme" + } + ] + } + } + ], + "basedOn": [ + { + "extension": [ + { + "url": "https://fhir.nhs.uk/StructureDefinition/Extension-EPS-RepeatInformation", + "extension": [ + { + "url": "numberOfRepeatsAllowed", + "valueInteger": 5 + }, + { + "url": "numberOfRepeatsIssued", + "valueInteger": 0 + } + ] + } + ] + } + ], + "identifier": [ + { + "system": "https://fhir.nhs.uk/Id/prescription-order-item-number", + "value": "a54219b8-f741-4c47-b662-e4f8dfa49ab5" + } + ], + "status": "active", + "intent": "original-order", + "category": [ + { + "coding": [ + { + "system": "http://terminology.hl7.org/CodeSystem/medicationrequest-category", + "code": "outpatient", + "display": "Outpatient" + } + ] + } + ], + "medicationCodeableConcept": { + "coding": [ + { + "system": "http://snomed.info/sct", + "code": "15517911000001104", + "display": "Methotrexate 10mg/0.2ml solution for injection pre-filled syringes" + } + ] + }, + "subject": { + "reference": "urn:uuid:78d3c2eb-009e-4ec8-a358-b042954aa9b2" + }, + "authoredOn": "2021-05-07T14:47:29+00:00", + "requester": { + "reference": "urn:uuid:56166769-c1c4-4d07-afa8-132b5dfca666" + }, + "groupIdentifier": { + "extension": [ + { + "url": "https://fhir.nhs.uk/StructureDefinition/Extension-DM-PrescriptionId", + "valueIdentifier": { + "system": "https://fhir.nhs.uk/Id/prescription", + "value": "5f3b444b-9378-4597-ab49-194ebfd05439" + } + } + ], + "system": "https://fhir.nhs.uk/Id/prescription-order-number", + "value": "540F91-A99968-4B9EBV" + }, + "courseOfTherapyType": { + "coding": [ + { + "system": "https://fhir.nhs.uk/CodeSystem/medicationrequest-course-of-therapy", + "code": "continuous-repeat-dispensing", + "display": "Continuous long term (repeat dispensing)" + } + ] + }, + "dosageInstruction": [ + { + "text": "Inject 10 milligram - 5 times a day - Subcutaneous route - for 10 days", + "timing": { + "repeat": { + "frequency": 5, + "period": 1, + "periodUnit": "d", + "boundsDuration": { + "value": 10, + "unit": "day", + "system": "http://unitsofmeasure.org", + "code": "d" + } + } + }, + "method": { + "coding": [ + { + "system": "http://snomed.info/sct", + "code": "422145002", + "display": "Inject" + } + ] + }, + "route": { + "coding": [ + { + "system": "http://snomed.info/sct", + "code": "34206005", + "display": "Subcutaneous route" + } + ] + }, + "doseAndRate": [ + { + "doseQuantity": { + "value": 10, + "unit": "milligram", + "system": "http://unitsofmeasure.org", + "code": "mg" + } + } + ] + } + ], + "dispenseRequest": { + "extension": [ + { + "url": "https://fhir.nhs.uk/StructureDefinition/Extension-DM-PerformerSiteType", + "valueCoding": { + "system": "https://fhir.nhs.uk/CodeSystem/dispensing-site-preference", + "code": "P1" + } + } + ], + "numberOfRepeatsAllowed": 5, + "validityPeriod": { + "start": "2021-05-07", + "end": "2021-06-04" + }, + "quantity": { + "value": 63, + "unit": "tablet", + "system": "http://snomed.info/sct", + "code": "428673006" + }, + "expectedSupplyDuration": { + "value": 28, + "unit": "days", + "system": "http://unitsofmeasure.org", + "code": "d" + }, + "performer": { + "identifier": { + "system": "https://fhir.nhs.uk/Id/ods-organization-code", + "value": "FH542" + } + } + }, + "substitution": { + "allowedBoolean": false + } + } + ], + "status": "unknown", + "statusReasonCodeableConcept": { + "coding": [ + { + "code": "0001", + "system": "https://fhir.nhs.uk/CodeSystem/medicationdispense-status-reason", + "display": "Not required as instructed by the patient" + } + ] + }, + "medicationCodeableConcept": { + "coding": [ + { + "system": "http://snomed.info/sct", + "code": "15517911000001104", + "display": "Methotrexate 10mg/0.2ml solution for injection pre-filled syringes" + } + ] + }, + "subject": { + "reference": "urn:uuid:44ec4183-028c-480a-aa61-86861afef355", + "identifier": { + "system": "https://fhir.nhs.uk/Id/nhs-number", + "value": "9449305552" + } + }, + "performer": [ + { + "actor": { + "reference": "#performer" + } + } + ], + "authorizingPrescription": [ + { + "reference": "#m1" + } + ], + "type": { + "coding": [ + { + "code": "0002", + "system": "https://fhir.nhs.uk/CodeSystem/medicationdispense-type", + "display": "Item not dispensed" + } + ] + }, + "quantity": { + "value": 63, + "unit": "tablet", + "system": "http://snomed.info/sct", + "code": "428673006" + }, + "whenHandedOver": "2023-02-07T11:46:05.004Z", + "dosageInstruction": [ + { + "text": "Inject 10 milligram - 5 times a day - Subcutaneous route - for 10 days", + "timing": { + "repeat": { + "frequency": 5, + "period": 1, + "periodUnit": "d", + "boundsDuration": { + "value": 10, + "unit": "day", + "system": "http://unitsofmeasure.org", + "code": "d" + } + } + }, + "method": { + "coding": [ + { + "system": "http://snomed.info/sct", + "code": "422145002", + "display": "Inject" + } + ] + }, + "route": { + "coding": [ + { + "system": "http://snomed.info/sct", + "code": "34206005", + "display": "Subcutaneous route" + } + ] + }, + "doseAndRate": [ + { + "doseQuantity": { + "value": 10, + "unit": "milligram", + "system": "http://unitsofmeasure.org", + "code": "mg" + } + } + ] + } + ] + } + }, + { + "fullUrl": "urn:uuid:4c963cd2-05e4-4c25-8acb-5c30ac1981ef", + "resource": { + "resourceType": "MedicationDispense", + "id": "4c963cd2-05e4-4c25-8acb-5c30ac1981ef", + "extension": [ + { + "url": "https://fhir.nhs.uk/StructureDefinition/Extension-EPS-TaskBusinessStatus", + "valueCoding": { + "code": "0006", + "system": "https://fhir.nhs.uk/CodeSystem/EPS-task-business-status", + "display": "Dispensed" + } + } + ], + "identifier": [ + { + "system": "https://fhir.nhs.uk/Id/prescription-dispense-item-number", + "value": "a677894f-efd1-46a1-a808-282ce2ae5729" + } + ], + "contained": [ + { + "resourceType": "PractitionerRole", + "id": "performer", + "identifier": [ + { + "system": "https://fhir.nhs.uk/Id/sds-role-profile-id", + "value": "555086415105" + } + ], + "practitioner": { + "identifier": { + "system": "https://fhir.nhs.uk/Id/sds-user-id", + "value": "3415870201" + }, + "display": "Mr Peter Potion" + }, + "organization": { + "reference": "urn:uuid:2bf9f37c-d88b-4f86-ad5f-373c1416e04b" + }, + "code": [ + { + "coding": [ + { + "system": "https://fhir.nhs.uk/CodeSystem/NHSDigital-SDS-JobRoleCode", + "code": "S8000:G8000:R8000", + "display": "Clinical Practitioner Access Role" + } + ] + } + ], + "telecom": [ + { + "system": "phone", + "use": "work", + "value": "0532567890" + } + ] + }, + { + "resourceType": "MedicationRequest", + "id": "m1", + "extension": [ + { + "url": "https://fhir.nhs.uk/StructureDefinition/Extension-DM-PrescriptionType", + "valueCoding": { + "system": "https://fhir.nhs.uk/CodeSystem/prescription-type", + "code": "1001", + "display": "Outpatient Community Prescriber - Medical Prescriber" + } + }, + { + "url": "https://fhir.hl7.org.uk/StructureDefinition/Extension-UKCore-MedicationRepeatInformation", + "extension": [ + { + "url": "authorisationExpiryDate", + "valueDateTime": "2024-11-30" + }, + { + "url": "numberOfPrescriptionsIssued", + "valueUnsignedInt": 1 + } + ] + }, + { + "url": "https://fhir.nhs.uk/StructureDefinition/Extension-DM-PrescriptionEndorsement", + "valueCodeableConcept": { + "coding": [ + { + "system": "https://fhir.nhs.uk/CodeSystem/medicationrequest-endorsement", + "code": "SLS", + "display": "Selected List Scheme" + } + ] + } + } + ], + "basedOn": [ + { + "extension": [ + { + "url": "https://fhir.nhs.uk/StructureDefinition/Extension-EPS-RepeatInformation", + "extension": [ + { + "url": "numberOfRepeatsAllowed", + "valueInteger": 5 + }, + { + "url": "numberOfRepeatsIssued", + "valueInteger": 0 + } + ] + } + ] + } + ], + "identifier": [ + { + "system": "https://fhir.nhs.uk/Id/prescription-order-item-number", + "value": "a54219b8-f741-4c47-b662-e4f8dfa49ab4" + } + ], + "status": "active", + "intent": "original-order", + "category": [ + { + "coding": [ + { + "system": "http://terminology.hl7.org/CodeSystem/medicationrequest-category", + "code": "outpatient", + "display": "Outpatient" + } + ] + } + ], + "medicationCodeableConcept": { + "coding": [ + { + "system": "http://snomed.info/sct", + "code": "15517911000001104", + "display": "Methotrexate 10mg/0.2ml solution for injection pre-filled syringes" + } + ] + }, + "subject": { + "reference": "urn:uuid:78d3c2eb-009e-4ec8-a358-b042954aa9b2" + }, + "authoredOn": "2021-05-07T14:47:29+00:00", + "requester": { + "reference": "urn:uuid:56166769-c1c4-4d07-afa8-132b5dfca666" + }, + "groupIdentifier": { + "extension": [ + { + "url": "https://fhir.nhs.uk/StructureDefinition/Extension-DM-PrescriptionId", + "valueIdentifier": { + "system": "https://fhir.nhs.uk/Id/prescription", + "value": "5f3b444b-9378-4597-ab49-194ebfd05439" + } + } + ], + "system": "https://fhir.nhs.uk/Id/prescription-order-number", + "value": "540F91-A99968-4B9EBV" + }, + "courseOfTherapyType": { + "coding": [ + { + "system": "https://fhir.nhs.uk/CodeSystem/medicationrequest-course-of-therapy", + "code": "continuous-repeat-dispensing", + "display": "Continuous long term (repeat dispensing)" + } + ] + }, + "dosageInstruction": [ + { + "text": "Inject 10 milligram - 5 times a day - Subcutaneous route - for 10 days", + "timing": { + "repeat": { + "frequency": 5, + "period": 1, + "periodUnit": "d", + "boundsDuration": { + "value": 10, + "unit": "day", + "system": "http://unitsofmeasure.org", + "code": "d" + } + } + }, + "method": { + "coding": [ + { + "system": "http://snomed.info/sct", + "code": "422145002", + "display": "Inject" + } + ] + }, + "route": { + "coding": [ + { + "system": "http://snomed.info/sct", + "code": "34206005", + "display": "Subcutaneous route" + } + ] + }, + "doseAndRate": [ + { + "doseQuantity": { + "value": 10, + "unit": "milligram", + "system": "http://unitsofmeasure.org", + "code": "mg" + } + } + ] + } + ], + "dispenseRequest": { + "extension": [ + { + "url": "https://fhir.nhs.uk/StructureDefinition/Extension-DM-PerformerSiteType", + "valueCoding": { + "system": "https://fhir.nhs.uk/CodeSystem/dispensing-site-preference", + "code": "P1" + } + } + ], + "numberOfRepeatsAllowed": 5, + "validityPeriod": { + "start": "2021-05-07", + "end": "2021-06-04" + }, + "quantity": { + "value": 63, + "unit": "tablet", + "system": "http://snomed.info/sct", + "code": "428673006" + }, + "expectedSupplyDuration": { + "value": 28, + "unit": "days", + "system": "http://unitsofmeasure.org", + "code": "d" + }, + "performer": { + "identifier": { + "system": "https://fhir.nhs.uk/Id/ods-organization-code", + "value": "FH542" + } + } + }, + "substitution": { + "allowedBoolean": false + } + } + ], + "status": "unknown", + "medicationCodeableConcept": { + "coding": [ + { + "system": "http://snomed.info/sct", + "code": "15517911000001104", + "display": "Methotrexate 10mg/0.2ml solution for injection pre-filled syringes" + } + ] + }, + "subject": { + "reference": "urn:uuid:44ec4183-028c-480a-aa61-86861afef355", + "identifier": { + "system": "https://fhir.nhs.uk/Id/nhs-number", + "value": "9449305552" + } + }, + "performer": [ + { + "actor": { + "reference": "#performer" + } + } + ], + "authorizingPrescription": [ + { + "reference": "#m1" + } + ], + "type": { + "coding": [ + { + "code": "0001", + "system": "https://fhir.nhs.uk/CodeSystem/medicationdispense-type", + "display": "Item fully dispensed" + } + ] + }, + "quantity": { + "value": 63, + "unit": "tablet", + "system": "http://snomed.info/sct", + "code": "428673006" + }, + "whenHandedOver": "2023-02-07T11:46:05.004Z", + "dosageInstruction": [ + { + "text": "Inject 10 milligram - 5 times a day - Subcutaneous route - for 10 days", + "timing": { + "repeat": { + "frequency": 5, + "period": 1, + "periodUnit": "d", + "boundsDuration": { + "value": 10, + "unit": "day", + "system": "http://unitsofmeasure.org", + "code": "d" + } + } + }, + "method": { + "coding": [ + { + "system": "http://snomed.info/sct", + "code": "422145002", + "display": "Inject" + } + ] + }, + "route": { + "coding": [ + { + "system": "http://snomed.info/sct", + "code": "34206005", + "display": "Subcutaneous route" + } + ] + }, + "doseAndRate": [ + { + "doseQuantity": { + "value": 10, + "unit": "milligram", + "system": "http://unitsofmeasure.org", + "code": "mg" + } + } + ] + } + ] + } + }, + { + "fullUrl": "urn:uuid:da9a7674-7dd5-438c-8efb-fd42aa497eb9", + "resource": { + "resourceType": "MedicationDispense", + "id": "da9a7674-7dd5-438c-8efb-fd42aa497eb9", + "extension": [ + { + "url": "https://fhir.nhs.uk/StructureDefinition/Extension-EPS-TaskBusinessStatus", + "valueCoding": { + "code": "0006", + "system": "https://fhir.nhs.uk/CodeSystem/EPS-task-business-status", + "display": "Dispensed" + } + } + ], + "identifier": [ + { + "system": "https://fhir.nhs.uk/Id/prescription-dispense-item-number", + "value": "da9a7674-7dd5-438c-8efb-fd42aa497eb9" + } + ], + "contained": [ + { + "resourceType": "PractitionerRole", + "id": "performer", + "identifier": [ + { + "system": "https://fhir.nhs.uk/Id/sds-role-profile-id", + "value": "555086415105" + } + ], + "practitioner": { + "identifier": { + "system": "https://fhir.nhs.uk/Id/sds-user-id", + "value": "3415870201" + }, + "display": "Mr Peter Potion" + }, + "organization": { + "reference": "urn:uuid:2bf9f37c-d88b-4f86-ad5f-373c1416e04b" + }, + "code": [ + { + "coding": [ + { + "system": "https://fhir.nhs.uk/CodeSystem/NHSDigital-SDS-JobRoleCode", + "code": "S8000:G8000:R8000", + "display": "Clinical Practitioner Access Role" + } + ] + } + ], + "telecom": [ + { + "system": "phone", + "use": "work", + "value": "0532567890" + } + ] + }, + { + "resourceType": "MedicationRequest", + "id": "m1", + "extension": [ + { + "url": "https://fhir.nhs.uk/StructureDefinition/Extension-DM-PrescriptionType", + "valueCoding": { + "system": "https://fhir.nhs.uk/CodeSystem/prescription-type", + "code": "1001", + "display": "Outpatient Community Prescriber - Medical Prescriber" + } + }, + { + "url": "https://fhir.hl7.org.uk/StructureDefinition/Extension-UKCore-MedicationRepeatInformation", + "extension": [ + { + "url": "authorisationExpiryDate", + "valueDateTime": "2024-11-30" + }, + { + "url": "numberOfPrescriptionsIssued", + "valueUnsignedInt": 1 + } + ] + }, + { + "url": "https://fhir.nhs.uk/StructureDefinition/Extension-DM-PrescriptionEndorsement", + "valueCodeableConcept": { + "coding": [ + { + "system": "https://fhir.nhs.uk/CodeSystem/medicationrequest-endorsement", + "code": "SLS", + "display": "Selected List Scheme" + } + ] + } + } + ], + "basedOn": [ + { + "extension": [ + { + "url": "https://fhir.nhs.uk/StructureDefinition/Extension-EPS-RepeatInformation", + "extension": [ + { + "url": "numberOfRepeatsAllowed", + "valueInteger": 5 + }, + { + "url": "numberOfRepeatsIssued", + "valueInteger": 0 + } + ] + } + ] + } + ], + "identifier": [ + { + "system": "https://fhir.nhs.uk/Id/prescription-order-item-number", + "value": "a54219b8-f741-4c47-b662-e4f8dfa49ab3" + } + ], + "status": "active", + "intent": "original-order", + "category": [ + { + "coding": [ + { + "system": "http://terminology.hl7.org/CodeSystem/medicationrequest-category", + "code": "outpatient", + "display": "Outpatient" + } + ] + } + ], + "medicationCodeableConcept": { + "coding": [ + { + "system": "http://snomed.info/sct", + "code": "15517911000001104", + "display": "Methotrexate 10mg/0.2ml solution for injection pre-filled syringes" + } + ] + }, + "subject": { + "reference": "urn:uuid:78d3c2eb-009e-4ec8-a358-b042954aa9b2" + }, + "authoredOn": "2021-05-07T14:47:29+00:00", + "requester": { + "reference": "urn:uuid:56166769-c1c4-4d07-afa8-132b5dfca666" + }, + "groupIdentifier": { + "extension": [ + { + "url": "https://fhir.nhs.uk/StructureDefinition/Extension-DM-PrescriptionId", + "valueIdentifier": { + "system": "https://fhir.nhs.uk/Id/prescription", + "value": "5f3b444b-9378-4597-ab49-194ebfd05439" + } + } + ], + "system": "https://fhir.nhs.uk/Id/prescription-order-number", + "value": "540F91-A99968-4B9EBV" + }, + "courseOfTherapyType": { + "coding": [ + { + "system": "https://fhir.nhs.uk/CodeSystem/medicationrequest-course-of-therapy", + "code": "continuous-repeat-dispensing", + "display": "Continuous long term (repeat dispensing)" + } + ] + }, + "dosageInstruction": [ + { + "text": "Inject 10 milligram - 5 times a day - Subcutaneous route - for 10 days", + "timing": { + "repeat": { + "frequency": 5, + "period": 1, + "periodUnit": "d", + "boundsDuration": { + "value": 10, + "unit": "day", + "system": "http://unitsofmeasure.org", + "code": "d" + } + } + }, + "method": { + "coding": [ + { + "system": "http://snomed.info/sct", + "code": "422145002", + "display": "Inject" + } + ] + }, + "route": { + "coding": [ + { + "system": "http://snomed.info/sct", + "code": "34206005", + "display": "Subcutaneous route" + } + ] + }, + "doseAndRate": [ + { + "doseQuantity": { + "value": 10, + "unit": "milligram", + "system": "http://unitsofmeasure.org", + "code": "mg" + } + } + ] + } + ], + "dispenseRequest": { + "extension": [ + { + "url": "https://fhir.nhs.uk/StructureDefinition/Extension-DM-PerformerSiteType", + "valueCoding": { + "system": "https://fhir.nhs.uk/CodeSystem/dispensing-site-preference", + "code": "P1" + } + } + ], + "numberOfRepeatsAllowed": 5, + "validityPeriod": { + "start": "2021-09-03", + "end": "2021-10-03" + }, + "quantity": { + "value": 63, + "unit": "tablet", + "system": "http://snomed.info/sct", + "code": "428673006" + }, + "expectedSupplyDuration": { + "value": 28, + "unit": "days", + "system": "http://unitsofmeasure.org", + "code": "d" + }, + "performer": { + "identifier": { + "system": "https://fhir.nhs.uk/Id/ods-organization-code", + "value": "FH542" + } + } + }, + "substitution": { + "allowedBoolean": false + } + } + ], + "status": "unknown", + "medicationCodeableConcept": { + "coding": [ + { + "system": "http://snomed.info/sct", + "code": "15517911000001104", + "display": "Methotrexate 10mg/0.2ml solution for injection pre-filled syringes" + } + ] + }, + "subject": { + "reference": "urn:uuid:44ec4183-028c-480a-aa61-86861afef355", + "identifier": { + "system": "https://fhir.nhs.uk/Id/nhs-number", + "value": "9449305552" + } + }, + "performer": [ + { + "actor": { + "reference": "#performer" + } + } + ], + "authorizingPrescription": [ + { + "reference": "#m1" + } + ], + "type": { + "coding": [ + { + "code": "0001", + "system": "https://fhir.nhs.uk/CodeSystem/medicationdispense-type", + "display": "Item fully dispensed" + } + ] + }, + "quantity": { + "value": 63, + "unit": "tablet", + "system": "http://snomed.info/sct", + "code": "428673006" + }, + "whenHandedOver": "2023-02-07T11:46:05.004Z", + "dosageInstruction": [ + { + "text": "Inject 10 milligram - 5 times a day - Subcutaneous route - for 10 days", + "timing": { + "repeat": { + "frequency": 5, + "period": 1, + "periodUnit": "d", + "boundsDuration": { + "value": 10, + "unit": "day", + "system": "http://unitsofmeasure.org", + "code": "d" + } + } + }, + "method": { + "coding": [ + { + "system": "http://snomed.info/sct", + "code": "422145002", + "display": "Inject" + } + ] + }, + "route": { + "coding": [ + { + "system": "http://snomed.info/sct", + "code": "34206005", + "display": "Subcutaneous route" + } + ] + }, + "doseAndRate": [ + { + "doseQuantity": { + "value": 10, + "unit": "milligram", + "system": "http://unitsofmeasure.org", + "code": "mg" + } + } + ] + } + ] + } + }, + { + "fullUrl": "urn:uuid:dc3948d9-5cc5-41ee-8c8d-fd690116762c", + "resource": { + "resourceType": "MedicationDispense", + "id": "dc3948d9-5cc5-41ee-8c8d-fd690116762c", + "extension": [ + { + "url": "https://fhir.nhs.uk/StructureDefinition/Extension-EPS-TaskBusinessStatus", + "valueCoding": { + "code": "0006", + "system": "https://fhir.nhs.uk/CodeSystem/EPS-task-business-status", + "display": "Dispensed" + } + } + ], + "identifier": [ + { + "system": "https://fhir.nhs.uk/Id/prescription-dispense-item-number", + "value": "dc3948d9-5cc5-41ee-8c8d-fd690116762c" + } + ], + "contained": [ + { + "resourceType": "PractitionerRole", + "id": "performer", + "identifier": [ + { + "system": "https://fhir.nhs.uk/Id/sds-role-profile-id", + "value": "555086415105" + } + ], + "practitioner": { + "identifier": { + "system": "https://fhir.nhs.uk/Id/sds-user-id", + "value": "3415870201" + }, + "display": "Mr Peter Potion" + }, + "organization": { + "reference": "urn:uuid:2bf9f37c-d88b-4f86-ad5f-373c1416e04b" + }, + "code": [ + { + "coding": [ + { + "system": "https://fhir.nhs.uk/CodeSystem/NHSDigital-SDS-JobRoleCode", + "code": "S8000:G8000:R8000", + "display": "Clinical Practitioner Access Role" + } + ] + } + ], + "telecom": [ + { + "system": "phone", + "use": "work", + "value": "0532567890" + } + ] + }, + { + "resourceType": "MedicationRequest", + "id": "m1", + "extension": [ + { + "url": "https://fhir.nhs.uk/StructureDefinition/Extension-DM-PrescriptionType", + "valueCoding": { + "system": "https://fhir.nhs.uk/CodeSystem/prescription-type", + "code": "1001", + "display": "Outpatient Community Prescriber - Medical Prescriber" + } + }, + { + "url": "https://fhir.hl7.org.uk/StructureDefinition/Extension-UKCore-MedicationRepeatInformation", + "extension": [ + { + "url": "authorisationExpiryDate", + "valueDateTime": "2024-11-30" + }, + { + "url": "numberOfPrescriptionsIssued", + "valueUnsignedInt": 1 + } + ] + }, + { + "url": "https://fhir.nhs.uk/StructureDefinition/Extension-DM-PrescriptionEndorsement", + "valueCodeableConcept": { + "coding": [ + { + "system": "https://fhir.nhs.uk/CodeSystem/medicationrequest-endorsement", + "code": "SLS", + "display": "Selected List Scheme" + } + ] + } + } + ], + "basedOn": [ + { + "extension": [ + { + "url": "https://fhir.nhs.uk/StructureDefinition/Extension-EPS-RepeatInformation", + "extension": [ + { + "url": "numberOfRepeatsAllowed", + "valueInteger": 5 + }, + { + "url": "numberOfRepeatsIssued", + "valueInteger": 0 + } + ] + } + ] + } + ], + "identifier": [ + { + "system": "https://fhir.nhs.uk/Id/prescription-order-item-number", + "value": "a54219b8-f741-4c47-b662-e4f8dfa49ab2" + } + ], + "status": "active", + "intent": "original-order", + "category": [ + { + "coding": [ + { + "system": "http://terminology.hl7.org/CodeSystem/medicationrequest-category", + "code": "outpatient", + "display": "Outpatient" + } + ] + } + ], + "medicationCodeableConcept": { + "coding": [ + { + "system": "http://snomed.info/sct", + "code": "15517911000001104", + "display": "Methotrexate 10mg/0.2ml solution for injection pre-filled syringes" + } + ] + }, + "subject": { + "reference": "urn:uuid:78d3c2eb-009e-4ec8-a358-b042954aa9b2" + }, + "authoredOn": "2021-05-07T14:47:29+00:00", + "requester": { + "reference": "urn:uuid:56166769-c1c4-4d07-afa8-132b5dfca666" + }, + "groupIdentifier": { + "extension": [ + { + "url": "https://fhir.nhs.uk/StructureDefinition/Extension-DM-PrescriptionId", + "valueIdentifier": { + "system": "https://fhir.nhs.uk/Id/prescription", + "value": "5f3b444b-9378-4597-ab49-194ebfd05439" + } + } + ], + "system": "https://fhir.nhs.uk/Id/prescription-order-number", + "value": "540F91-A99968-4B9EBV" + }, + "courseOfTherapyType": { + "coding": [ + { + "system": "https://fhir.nhs.uk/CodeSystem/medicationrequest-course-of-therapy", + "code": "continuous-repeat-dispensing", + "display": "Continuous long term (repeat dispensing)" + } + ] + }, + "dosageInstruction": [ + { + "text": "Inject 10 milligram - 5 times a day - Subcutaneous route - for 10 days", + "timing": { + "repeat": { + "frequency": 5, + "period": 1, + "periodUnit": "d", + "boundsDuration": { + "value": 10, + "unit": "day", + "system": "http://unitsofmeasure.org", + "code": "d" + } + } + }, + "method": { + "coding": [ + { + "system": "http://snomed.info/sct", + "code": "422145002", + "display": "Inject" + } + ] + }, + "route": { + "coding": [ + { + "system": "http://snomed.info/sct", + "code": "34206005", + "display": "Subcutaneous route" + } + ] + }, + "doseAndRate": [ + { + "doseQuantity": { + "value": 10, + "unit": "milligram", + "system": "http://unitsofmeasure.org", + "code": "mg" + } + } + ] + } + ], + "dispenseRequest": { + "extension": [ + { + "url": "https://fhir.nhs.uk/StructureDefinition/Extension-DM-PerformerSiteType", + "valueCoding": { + "system": "https://fhir.nhs.uk/CodeSystem/dispensing-site-preference", + "code": "P1" + } + } + ], + "numberOfRepeatsAllowed": 5, + "validityPeriod": { + "start": "2021-05-07", + "end": "2021-06-04" + }, + "quantity": { + "value": 63, + "unit": "tablet", + "system": "http://snomed.info/sct", + "code": "428673006" + }, + "expectedSupplyDuration": { + "value": 28, + "unit": "days", + "system": "http://unitsofmeasure.org", + "code": "d" + }, + "performer": { + "identifier": { + "system": "https://fhir.nhs.uk/Id/ods-organization-code", + "value": "FH542" + } + } + }, + "substitution": { + "allowedBoolean": false + } + } + ], + "status": "unknown", + "medicationCodeableConcept": { + "coding": [ + { + "system": "http://snomed.info/sct", + "code": "15517911000001104", + "display": "Methotrexate 10mg/0.2ml solution for injection pre-filled syringes" + } + ] + }, + "subject": { + "reference": "urn:uuid:44ec4183-028c-480a-aa61-86861afef355", + "identifier": { + "system": "https://fhir.nhs.uk/Id/nhs-number", + "value": "9449305552" + } + }, + "performer": [ + { + "actor": { + "reference": "#performer" + } + } + ], + "authorizingPrescription": [ + { + "reference": "#m1" + } + ], + "type": { + "coding": [ + { + "code": "0001", + "system": "https://fhir.nhs.uk/CodeSystem/medicationdispense-type", + "display": "Item fully dispensed" + } + ] + }, + "quantity": { + "value": 63, + "unit": "tablet", + "system": "http://snomed.info/sct", + "code": "428673006" + }, + "whenHandedOver": "2023-02-07T11:46:05.004Z", + "dosageInstruction": [ + { + "text": "Inject 10 milligram - 5 times a day - Subcutaneous route - for 10 days", + "timing": { + "repeat": { + "frequency": 5, + "period": 1, + "periodUnit": "d", + "boundsDuration": { + "value": 10, + "unit": "day", + "system": "http://unitsofmeasure.org", + "code": "d" + } + } + }, + "method": { + "coding": [ + { + "system": "http://snomed.info/sct", + "code": "422145002", + "display": "Inject" + } + ] + }, + "route": { + "coding": [ + { + "system": "http://snomed.info/sct", + "code": "34206005", + "display": "Subcutaneous route" + } + ] + }, + "doseAndRate": [ + { + "doseQuantity": { + "value": 10, + "unit": "milligram", + "system": "http://unitsofmeasure.org", + "code": "mg" + } + } + ] + } + ] + } + }, + { + "fullUrl": "urn:uuid:44ec4183-028c-480a-aa61-86861afef355", + "resource": { + "resourceType": "Patient", + "id": "44ec4183-028c-480a-aa61-86861afef355", + "identifier": [ + { + "system": "https://fhir.nhs.uk/Id/nhs-number", + "value": "9449305552" + } + ], + "name": [ + { + "use": "usual", + "family": "CORY", + "given": ["ETTA"], + "prefix": ["MISS"] + } + ], + "gender": "female", + "birthDate": "1999-01-04", + "address": [ + { + "use": "home", + "line": ["123 Dale Avenue", "Long Eaton", "Nottingham"], + "postalCode": "NG10 1NP" + } + ], + "generalPractitioner": [ + { + "identifier": { + "system": "https://fhir.nhs.uk/Id/ods-organization-code", + "value": "B81001" + } + } + ] + } + }, + { + "fullUrl": "urn:uuid:2bf9f37c-d88b-4f86-ad5f-373c1416e04b", + "resource": { + "resourceType": "Organization", + "extension": [ + { + "url": "https://fhir.nhs.uk/StructureDefinition/Extension-ODS-OrganisationRelationships", + "extension": [ + { + "url": "reimbursementAuthority", + "valueIdentifier": { + "system": "https://fhir.nhs.uk/Id/ods-organization-code", + "value": "T1450" + } + } + ] + } + ], + "identifier": [ + { + "system": "https://fhir.nhs.uk/Id/ods-organization-code", + "value": "VNE51" + } + ], + "id": "2bf9f37c-d88b-4f86-ad5f-373c1416e04b", + "address": [ + { + "city": "West Yorkshire", + "use": "work", + "line": ["17 Austhorpe Road", "Crossgates", "Leeds"], + "postalCode": "LS15 8BA" + } + ], + "active": true, + "type": [ + { + "coding": [ + { + "system": "https://fhir.nhs.uk/CodeSystem/organisation-role", + "code": "182", + "display": "PHARMACY" + } + ] + } + ], + "name": "The Simple Pharmacy", + "telecom": [ + { + "system": "phone", + "use": "work", + "value": "0113 3180277" + } + ] + } + } + ] +} diff --git a/src/test/resources/examples/full_examples/secondary-care/community/repeat-dispensing/nominated-pharmacy/clinical-practitioner/multiple-medication-requests/prescriber-endorsed/1-Process-Request-Send-200_OK.json b/src/test/resources/examples/full_examples/secondary-care/community/repeat-dispensing/nominated-pharmacy/clinical-practitioner/multiple-medication-requests/prescriber-endorsed/1-Process-Request-Send-200_OK.json new file mode 100644 index 00000000..12ec8186 --- /dev/null +++ b/src/test/resources/examples/full_examples/secondary-care/community/repeat-dispensing/nominated-pharmacy/clinical-practitioner/multiple-medication-requests/prescriber-endorsed/1-Process-Request-Send-200_OK.json @@ -0,0 +1,935 @@ +{ + "resourceType": "Bundle", + "id": "aef77afb-7e3c-427a-8657-2c427f71a271", + "identifier": { + "system": "https://tools.ietf.org/html/rfc4122", + "value": "221f6b28-cb58-410b-99bb-9375760ee70a" + }, + "type": "message", + "entry": [ + { + "fullUrl": "urn:uuid:3599c0e9-9292-413e-9270-9a1ef1ead99c", + "resource": { + "resourceType": "MessageHeader", + "id": "3599c0e9-9292-413e-9270-9a1ef1ead99c", + "eventCoding": { + "system": "https://fhir.nhs.uk/CodeSystem/message-event", + "code": "prescription-order", + "display": "Prescription Order" + }, + "sender": { + "identifier": { + "system": "https://fhir.nhs.uk/Id/ods-organization-code", + "value": "RBA" + }, + "reference": "urn:uuid:56166769-c1c4-4d07-afa8-132b5dfca666", + "display": "RAZIA|ALI" + }, + "source": { + "endpoint": "https://directory.spineservices.nhs.uk/STU3/Organization/RBA" + }, + "destination": [ + { + "endpoint": "https://directory.spineservices.nhs.uk/STU3/Organization/FH542", + "receiver": { + "identifier": { + "system": "https://fhir.nhs.uk/Id/ods-organization-code", + "value": "FH542" + } + } + } + ], + "focus": [ + { + "reference": "urn:uuid:56166769-c1c4-4d07-afa8-132b5dfca666" + }, + { + "reference": "urn:uuid:a54219b8-f741-4c47-b662-e4f8dfa49ab6" + } + ] + } + }, + { + "fullUrl": "urn:uuid:a54219b8-f741-4c47-b662-e4f8dfa49ab7", + "resource": { + "resourceType": "MedicationRequest", + "id": "a54219b8-f741-4c47-b662-e4f8dfa49ab7", + "extension": [ + { + "url": "https://fhir.nhs.uk/StructureDefinition/Extension-DM-PrescriptionType", + "valueCoding": { + "system": "https://fhir.nhs.uk/CodeSystem/prescription-type", + "code": "1001", + "display": "Outpatient Community Prescriber - Medical Prescriber" + } + }, + { + "url": "https://fhir.hl7.org.uk/StructureDefinition/Extension-UKCore-MedicationRepeatInformation", + "extension": [ + { + "url": "authorisationExpiryDate", + "valueDateTime": "2024-11-30" + } + ] + }, + { + "url": "https://fhir.nhs.uk/StructureDefinition/Extension-DM-PrescriptionEndorsement", + "valueCodeableConcept": { + "coding": [ + { + "system": "https://fhir.nhs.uk/CodeSystem/medicationrequest-endorsement", + "code": "SLS", + "display": "Selected List Scheme" + } + ] + } + } + ], + "identifier": [ + { + "system": "https://fhir.nhs.uk/Id/prescription-order-item-number", + "value": "a54219b8-f741-4c47-b662-e4f8dfa49ab5" + } + ], + "status": "active", + "intent": "original-order", + "category": [ + { + "coding": [ + { + "system": "http://terminology.hl7.org/CodeSystem/medicationrequest-category", + "code": "outpatient", + "display": "Outpatient" + } + ] + } + ], + "medicationCodeableConcept": { + "coding": [ + { + "system": "http://snomed.info/sct", + "code": "15517911000001104", + "display": "Methotrexate 10mg/0.2ml solution for injection pre-filled syringes" + } + ] + }, + "subject": { + "reference": "urn:uuid:78d3c2eb-009e-4ec8-a358-b042954aa9b2" + }, + "requester": { + "reference": "urn:uuid:56166769-c1c4-4d07-afa8-132b5dfca666" + }, + "groupIdentifier": { + "extension": [ + { + "url": "https://fhir.nhs.uk/StructureDefinition/Extension-DM-PrescriptionId", + "valueIdentifier": { + "system": "https://fhir.nhs.uk/Id/prescription", + "value": "5f3b444b-9378-4597-ab49-194ebfd05439" + } + } + ], + "system": "https://fhir.nhs.uk/Id/prescription-order-number", + "value": "540F91-A99968-4B9EBV" + }, + "courseOfTherapyType": { + "coding": [ + { + "system": "https://fhir.nhs.uk/CodeSystem/medicationrequest-course-of-therapy", + "code": "continuous-repeat-dispensing", + "display": "Continuous long term (repeat dispensing)" + } + ] + }, + "dosageInstruction": [ + { + "text": "Inject 10 milligram - 5 times a day - Subcutaneous route - for 10 days", + "timing": { + "repeat": { + "frequency": 5, + "period": 1, + "periodUnit": "d", + "boundsDuration": { + "value": 10, + "unit": "day", + "system": "http://unitsofmeasure.org", + "code": "d" + } + } + }, + "method": { + "coding": [ + { + "system": "http://snomed.info/sct", + "code": "422145002", + "display": "Inject" + } + ] + }, + "route": { + "coding": [ + { + "system": "http://snomed.info/sct", + "code": "34206005", + "display": "Subcutaneous route" + } + ] + }, + "doseAndRate": [ + { + "doseQuantity": { + "value": 10, + "unit": "milligram", + "system": "http://unitsofmeasure.org", + "code": "mg" + } + } + ] + } + ], + "dispenseRequest": { + "extension": [ + { + "url": "https://fhir.nhs.uk/StructureDefinition/Extension-DM-PerformerSiteType", + "valueCoding": { + "system": "https://fhir.nhs.uk/CodeSystem/dispensing-site-preference", + "code": "P1" + } + } + ], + "numberOfRepeatsAllowed": 5, + "validityPeriod": { + "start": "2021-05-07", + "end": "2021-06-04" + }, + "quantity": { + "value": 63, + "unit": "tablet", + "system": "http://snomed.info/sct", + "code": "428673006" + }, + "expectedSupplyDuration": { + "value": 28, + "unit": "days", + "system": "http://unitsofmeasure.org", + "code": "d" + }, + "performer": { + "identifier": { + "system": "https://fhir.nhs.uk/Id/ods-organization-code", + "value": "FH542" + } + } + }, + "substitution": { + "allowedBoolean": false + } + } + }, + { + "fullUrl": "urn:uuid:a54219b8-f741-4c47-b662-e4f8dfa49ab6", + "resource": { + "resourceType": "MedicationRequest", + "id": "a54219b8-f741-4c47-b662-e4f8dfa49ab6", + "extension": [ + { + "url": "https://fhir.nhs.uk/StructureDefinition/Extension-DM-PrescriptionType", + "valueCoding": { + "system": "https://fhir.nhs.uk/CodeSystem/prescription-type", + "code": "1001", + "display": "Outpatient Community Prescriber - Medical Prescriber" + } + }, + { + "url": "https://fhir.hl7.org.uk/StructureDefinition/Extension-UKCore-MedicationRepeatInformation", + "extension": [ + { + "url": "authorisationExpiryDate", + "valueDateTime": "2024-11-30" + } + ] + }, + { + "url": "https://fhir.nhs.uk/StructureDefinition/Extension-DM-PrescriptionEndorsement", + "valueCodeableConcept": { + "coding": [ + { + "system": "https://fhir.nhs.uk/CodeSystem/medicationrequest-endorsement", + "code": "SLS", + "display": "Selected List Scheme" + } + ] + } + } + ], + "identifier": [ + { + "system": "https://fhir.nhs.uk/Id/prescription-order-item-number", + "value": "a54219b8-f741-4c47-b662-e4f8dfa49ab4" + } + ], + "status": "active", + "intent": "original-order", + "category": [ + { + "coding": [ + { + "system": "http://terminology.hl7.org/CodeSystem/medicationrequest-category", + "code": "outpatient", + "display": "Outpatient" + } + ] + } + ], + "medicationCodeableConcept": { + "coding": [ + { + "system": "http://snomed.info/sct", + "code": "15517911000001104", + "display": "Methotrexate 10mg/0.2ml solution for injection pre-filled syringes" + } + ] + }, + "subject": { + "reference": "urn:uuid:78d3c2eb-009e-4ec8-a358-b042954aa9b2" + }, + "requester": { + "reference": "urn:uuid:56166769-c1c4-4d07-afa8-132b5dfca666" + }, + "groupIdentifier": { + "extension": [ + { + "url": "https://fhir.nhs.uk/StructureDefinition/Extension-DM-PrescriptionId", + "valueIdentifier": { + "system": "https://fhir.nhs.uk/Id/prescription", + "value": "5f3b444b-9378-4597-ab49-194ebfd05439" + } + } + ], + "system": "https://fhir.nhs.uk/Id/prescription-order-number", + "value": "540F91-A99968-4B9EBV" + }, + "courseOfTherapyType": { + "coding": [ + { + "system": "https://fhir.nhs.uk/CodeSystem/medicationrequest-course-of-therapy", + "code": "continuous-repeat-dispensing", + "display": "Continuous long term (repeat dispensing)" + } + ] + }, + "dosageInstruction": [ + { + "text": "Inject 10 milligram - 5 times a day - Subcutaneous route - for 10 days", + "timing": { + "repeat": { + "frequency": 5, + "period": 1, + "periodUnit": "d", + "boundsDuration": { + "value": 10, + "unit": "day", + "system": "http://unitsofmeasure.org", + "code": "d" + } + } + }, + "method": { + "coding": [ + { + "system": "http://snomed.info/sct", + "code": "422145002", + "display": "Inject" + } + ] + }, + "route": { + "coding": [ + { + "system": "http://snomed.info/sct", + "code": "34206005", + "display": "Subcutaneous route" + } + ] + }, + "doseAndRate": [ + { + "doseQuantity": { + "value": 10, + "unit": "milligram", + "system": "http://unitsofmeasure.org", + "code": "mg" + } + } + ] + } + ], + "dispenseRequest": { + "extension": [ + { + "url": "https://fhir.nhs.uk/StructureDefinition/Extension-DM-PerformerSiteType", + "valueCoding": { + "system": "https://fhir.nhs.uk/CodeSystem/dispensing-site-preference", + "code": "P1" + } + } + ], + "numberOfRepeatsAllowed": 5, + "validityPeriod": { + "start": "2021-05-07", + "end": "2021-06-04" + }, + "quantity": { + "value": 63, + "unit": "tablet", + "system": "http://snomed.info/sct", + "code": "428673006" + }, + "expectedSupplyDuration": { + "value": 28, + "unit": "days", + "system": "http://unitsofmeasure.org", + "code": "d" + }, + "performer": { + "identifier": { + "system": "https://fhir.nhs.uk/Id/ods-organization-code", + "value": "FH542" + } + } + }, + "substitution": { + "allowedBoolean": false + } + } + }, + { + "fullUrl": "urn:uuid:a54219b8-f741-4c47-b662-e4f8dfa49ab5", + "resource": { + "resourceType": "MedicationRequest", + "id": "a54219b8-f741-4c47-b662-e4f8dfa49ab5", + "extension": [ + { + "url": "https://fhir.nhs.uk/StructureDefinition/Extension-DM-PrescriptionType", + "valueCoding": { + "system": "https://fhir.nhs.uk/CodeSystem/prescription-type", + "code": "1001", + "display": "Outpatient Community Prescriber - Medical Prescriber" + } + }, + { + "url": "https://fhir.hl7.org.uk/StructureDefinition/Extension-UKCore-MedicationRepeatInformation", + "extension": [ + { + "url": "authorisationExpiryDate", + "valueDateTime": "2024-11-30" + } + ] + }, + { + "url": "https://fhir.nhs.uk/StructureDefinition/Extension-DM-PrescriptionEndorsement", + "valueCodeableConcept": { + "coding": [ + { + "system": "https://fhir.nhs.uk/CodeSystem/medicationrequest-endorsement", + "code": "SLS", + "display": "Selected List Scheme" + } + ] + } + } + ], + "identifier": [ + { + "system": "https://fhir.nhs.uk/Id/prescription-order-item-number", + "value": "a54219b8-f741-4c47-b662-e4f8dfa49ab3" + } + ], + "status": "active", + "intent": "original-order", + "category": [ + { + "coding": [ + { + "system": "http://terminology.hl7.org/CodeSystem/medicationrequest-category", + "code": "outpatient", + "display": "Outpatient" + } + ] + } + ], + "medicationCodeableConcept": { + "coding": [ + { + "system": "http://snomed.info/sct", + "code": "15517911000001104", + "display": "Methotrexate 10mg/0.2ml solution for injection pre-filled syringes" + } + ] + }, + "subject": { + "reference": "urn:uuid:78d3c2eb-009e-4ec8-a358-b042954aa9b2" + }, + "requester": { + "reference": "urn:uuid:56166769-c1c4-4d07-afa8-132b5dfca666" + }, + "groupIdentifier": { + "extension": [ + { + "url": "https://fhir.nhs.uk/StructureDefinition/Extension-DM-PrescriptionId", + "valueIdentifier": { + "system": "https://fhir.nhs.uk/Id/prescription", + "value": "5f3b444b-9378-4597-ab49-194ebfd05439" + } + } + ], + "system": "https://fhir.nhs.uk/Id/prescription-order-number", + "value": "540F91-A99968-4B9EBV" + }, + "courseOfTherapyType": { + "coding": [ + { + "system": "https://fhir.nhs.uk/CodeSystem/medicationrequest-course-of-therapy", + "code": "continuous-repeat-dispensing", + "display": "Continuous long term (repeat dispensing)" + } + ] + }, + "dosageInstruction": [ + { + "text": "Inject 10 milligram - 5 times a day - Subcutaneous route - for 10 days", + "timing": { + "repeat": { + "frequency": 5, + "period": 1, + "periodUnit": "d", + "boundsDuration": { + "value": 10, + "unit": "day", + "system": "http://unitsofmeasure.org", + "code": "d" + } + } + }, + "method": { + "coding": [ + { + "system": "http://snomed.info/sct", + "code": "422145002", + "display": "Inject" + } + ] + }, + "route": { + "coding": [ + { + "system": "http://snomed.info/sct", + "code": "34206005", + "display": "Subcutaneous route" + } + ] + }, + "doseAndRate": [ + { + "doseQuantity": { + "value": 10, + "unit": "milligram", + "system": "http://unitsofmeasure.org", + "code": "mg" + } + } + ] + } + ], + "dispenseRequest": { + "extension": [ + { + "url": "https://fhir.nhs.uk/StructureDefinition/Extension-DM-PerformerSiteType", + "valueCoding": { + "system": "https://fhir.nhs.uk/CodeSystem/dispensing-site-preference", + "code": "P1" + } + } + ], + "numberOfRepeatsAllowed": 5, + "validityPeriod": { + "start": "2021-05-07", + "end": "2021-06-04" + }, + "quantity": { + "value": 63, + "unit": "tablet", + "system": "http://snomed.info/sct", + "code": "428673006" + }, + "expectedSupplyDuration": { + "value": 28, + "unit": "days", + "system": "http://unitsofmeasure.org", + "code": "d" + }, + "performer": { + "identifier": { + "system": "https://fhir.nhs.uk/Id/ods-organization-code", + "value": "FH542" + } + } + }, + "substitution": { + "allowedBoolean": false + } + } + }, + { + "fullUrl": "urn:uuid:a54219b8-f741-4c47-b662-e4f8dfa49ab4", + "resource": { + "resourceType": "MedicationRequest", + "id": "a54219b8-f741-4c47-b662-e4f8dfa49ab4", + "extension": [ + { + "url": "https://fhir.nhs.uk/StructureDefinition/Extension-DM-PrescriptionType", + "valueCoding": { + "system": "https://fhir.nhs.uk/CodeSystem/prescription-type", + "code": "1001", + "display": "Outpatient Community Prescriber - Medical Prescriber" + } + }, + { + "url": "https://fhir.hl7.org.uk/StructureDefinition/Extension-UKCore-MedicationRepeatInformation", + "extension": [ + { + "url": "authorisationExpiryDate", + "valueDateTime": "2024-11-30" + } + ] + }, + { + "url": "https://fhir.nhs.uk/StructureDefinition/Extension-DM-PrescriptionEndorsement", + "valueCodeableConcept": { + "coding": [ + { + "system": "https://fhir.nhs.uk/CodeSystem/medicationrequest-endorsement", + "code": "SLS", + "display": "Selected List Scheme" + } + ] + } + } + ], + "identifier": [ + { + "system": "https://fhir.nhs.uk/Id/prescription-order-item-number", + "value": "a54219b8-f741-4c47-b662-e4f8dfa49ab2" + } + ], + "status": "active", + "intent": "original-order", + "category": [ + { + "coding": [ + { + "system": "http://terminology.hl7.org/CodeSystem/medicationrequest-category", + "code": "outpatient", + "display": "Outpatient" + } + ] + } + ], + "medicationCodeableConcept": { + "coding": [ + { + "system": "http://snomed.info/sct", + "code": "15517911000001104", + "display": "Methotrexate 10mg/0.2ml solution for injection pre-filled syringes" + } + ] + }, + "subject": { + "reference": "urn:uuid:78d3c2eb-009e-4ec8-a358-b042954aa9b2" + }, + "requester": { + "reference": "urn:uuid:56166769-c1c4-4d07-afa8-132b5dfca666" + }, + "groupIdentifier": { + "extension": [ + { + "url": "https://fhir.nhs.uk/StructureDefinition/Extension-DM-PrescriptionId", + "valueIdentifier": { + "system": "https://fhir.nhs.uk/Id/prescription", + "value": "5f3b444b-9378-4597-ab49-194ebfd05439" + } + } + ], + "system": "https://fhir.nhs.uk/Id/prescription-order-number", + "value": "540F91-A99968-4B9EBV" + }, + "courseOfTherapyType": { + "coding": [ + { + "system": "https://fhir.nhs.uk/CodeSystem/medicationrequest-course-of-therapy", + "code": "continuous-repeat-dispensing", + "display": "Continuous long term (repeat dispensing)" + } + ] + }, + "dosageInstruction": [ + { + "text": "Inject 10 milligram - 5 times a day - Subcutaneous route - for 10 days", + "timing": { + "repeat": { + "frequency": 5, + "period": 1, + "periodUnit": "d", + "boundsDuration": { + "value": 10, + "unit": "day", + "system": "http://unitsofmeasure.org", + "code": "d" + } + } + }, + "method": { + "coding": [ + { + "system": "http://snomed.info/sct", + "code": "422145002", + "display": "Inject" + } + ] + }, + "route": { + "coding": [ + { + "system": "http://snomed.info/sct", + "code": "34206005", + "display": "Subcutaneous route" + } + ] + }, + "doseAndRate": [ + { + "doseQuantity": { + "value": 10, + "unit": "milligram", + "system": "http://unitsofmeasure.org", + "code": "mg" + } + } + ] + } + ], + "dispenseRequest": { + "extension": [ + { + "url": "https://fhir.nhs.uk/StructureDefinition/Extension-DM-PerformerSiteType", + "valueCoding": { + "system": "https://fhir.nhs.uk/CodeSystem/dispensing-site-preference", + "code": "P1" + } + } + ], + "numberOfRepeatsAllowed": 5, + "validityPeriod": { + "start": "2021-05-07", + "end": "2021-06-04" + }, + "quantity": { + "value": 63, + "unit": "tablet", + "system": "http://snomed.info/sct", + "code": "428673006" + }, + "expectedSupplyDuration": { + "value": 28, + "unit": "days", + "system": "http://unitsofmeasure.org", + "code": "d" + }, + "performer": { + "identifier": { + "system": "https://fhir.nhs.uk/Id/ods-organization-code", + "value": "FH542" + } + } + }, + "substitution": { + "allowedBoolean": false + } + } + }, + { + "fullUrl": "urn:uuid:78d3c2eb-009e-4ec8-a358-b042954aa9b2", + "resource": { + "resourceType": "Patient", + "id": "78d3c2eb-009e-4ec8-a358-b042954aa9b2", + "identifier": [ + { + "system": "https://fhir.nhs.uk/Id/nhs-number", + "value": "9449305552" + } + ], + "name": [ + { + "use": "usual", + "family": "CORY", + "given": ["ETTA"], + "prefix": ["MISS"] + } + ], + "gender": "female", + "birthDate": "1999-01-04", + "address": [ + { + "use": "home", + "line": ["123 Dale Avenue", "Long Eaton", "Nottingham"], + "postalCode": "NG10 1NP" + } + ], + "generalPractitioner": [ + { + "identifier": { + "system": "https://fhir.nhs.uk/Id/ods-organization-code", + "value": "B81001" + } + } + ] + } + }, + { + "fullUrl": "urn:uuid:56166769-c1c4-4d07-afa8-132b5dfca666", + "resource": { + "resourceType": "PractitionerRole", + "id": "56166769-c1c4-4d07-afa8-132b5dfca666", + "identifier": [ + { + "system": "https://fhir.nhs.uk/Id/sds-role-profile-id", + "value": "100102238986" + }, + { + "system": "https://fhir.hl7.org.uk/Id/nhsbsa-spurious-code", + "value": "612345" + } + ], + "practitioner": { + "reference": "urn:uuid:a8c85454-f8cb-498d-9629-78e2cb5fa47a" + }, + "organization": { + "reference": "urn:uuid:3b4b03a5-52ba-4ba6-9b82-70350aa109d8" + }, + "code": [ + { + "coding": [ + { + "system": "https://fhir.nhs.uk/CodeSystem/NHSDigital-SDS-JobRoleCode", + "code": "S8000:G8000:R8000", + "display": "Clinical Practitioner Access Role" + } + ] + } + ], + "telecom": [ + { + "system": "phone", + "value": "01234567890", + "use": "work" + } + ] + } + }, + { + "fullUrl": "urn:uuid:a8c85454-f8cb-498d-9629-78e2cb5fa47a", + "resource": { + "resourceType": "Practitioner", + "id": "a8c85454-f8cb-498d-9629-78e2cb5fa47a", + "identifier": [ + { + "system": "https://fhir.nhs.uk/Id/sds-user-id", + "value": "3415870201" + }, + { + "system": "https://fhir.hl7.org.uk/Id/gmc-number", + "value": "4428981" + } + ], + "name": [ + { + "family": "Edwards", + "given": ["Thomas"], + "prefix": ["DR"] + } + ] + } + }, + { + "fullUrl": "urn:uuid:3b4b03a5-52ba-4ba6-9b82-70350aa109d8", + "resource": { + "resourceType": "Organization", + "id": "3b4b03a5-52ba-4ba6-9b82-70350aa109d8", + "identifier": [ + { + "system": "https://fhir.nhs.uk/Id/ods-organization-code", + "value": "A99968" + } + ], + "name": "SOMERSET BOWEL CANCER SCREENING CENTRE", + "address": [ + { + "use": "work", + "line": ["MUSGROVE PARK HOSPITAL"], + "city": "TAUNTON", + "postalCode": "TA1 5DA" + } + ], + "telecom": [ + { + "system": "phone", + "value": "01823 333444", + "use": "work" + } + ], + "partOf": { + "identifier": { + "system": "https://fhir.nhs.uk/Id/ods-organization-code", + "value": "RBA" + }, + "display": "TAUNTON AND SOMERSET NHS FOUNDATION TRUST" + } + } + }, + { + "fullUrl": "urn:uuid:28828c55-8fa7-42d7-916f-fcf076e0c10e", + "resource": { + "resourceType": "Provenance", + "id": "28828c55-8fa7-42d7-916f-fcf076e0c10e", + "target": [ + { + "reference": "urn:uuid:a54219b8-f741-4c47-b662-e4f8dfa49ab6" + } + ], + "recorded": "2008-02-27T11:38:00+00:00", + "agent": [ + { + "who": { + "reference": "urn:uuid:56166769-c1c4-4d07-afa8-132b5dfca666" + } + } + ], + "signature": [ + { + "type": [ + { + "system": "urn:iso-astm:E1762-95:2013", + "code": "1.2.840.10065.1.12.1.1" + } + ], + "when": "2021-05-07T14:47:33+00:00", + "who": { + "reference": "urn:uuid:56166769-c1c4-4d07-afa8-132b5dfca666" + }, + "data": "DQo8U2lnbmF0dXJlIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwLzA5L3htbGRzaWcjIj4NCiAgICA8U2lnbmVkSW5mbz48Q2Fub25pY2FsaXphdGlvbk1ldGhvZCBBbGdvcml0aG09Imh0dHA6Ly93d3cudzMub3JnLzIwMDEvMTAveG1sLWV4Yy1jMTRuIyI+PC9DYW5vbmljYWxpemF0aW9uTWV0aG9kPjxTaWduYXR1cmVNZXRob2QgQWxnb3JpdGhtPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwLzA5L3htbGRzaWcjcnNhLXNoYTEiPjwvU2lnbmF0dXJlTWV0aG9kPjxSZWZlcmVuY2U+PFRyYW5zZm9ybXM+PFRyYW5zZm9ybSBBbGdvcml0aG09Imh0dHA6Ly93d3cudzMub3JnLzIwMDEvMTAveG1sLWV4Yy1jMTRuIyI+PC9UcmFuc2Zvcm0+PC9UcmFuc2Zvcm1zPjxEaWdlc3RNZXRob2QgQWxnb3JpdGhtPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwLzA5L3htbGRzaWcjc2hhMSI+PC9EaWdlc3RNZXRob2Q+PERpZ2VzdFZhbHVlPkRaU1NaRzVPZHpoUUpVNHZoY2VUWng1UXRIRT08L0RpZ2VzdFZhbHVlPjwvUmVmZXJlbmNlPjwvU2lnbmVkSW5mbz4NCiAgICA8U2lnbmF0dXJlVmFsdWU+UUhFYmZXTXhFcUQzWUVIOFh1WFQ4VUdxY0MyQ3k3MVJrNGNjUTgyNTJPanhLanNCeEV5azQ3aG1Fci9oYkxvTEo1WnU3dy82cEs3blZEblNpUjVrSXhCL053VWF6TGdUaC8zWWJFQUQrZFUyb0J4TGJseEltVVAxNE5INlVMNEdTU2VCRFRPT0lFZkhiWFI0Vitsd2JiN0dadXV2Smp5TENVbjJsM0FENzVzPTwvU2lnbmF0dXJlVmFsdWU+DQogICAgPEtleUluZm8+DQogICAgICAgIDxYNTA5RGF0YT4NCiAgICAgICAgICAgIDxYNTA5Q2VydGlmaWNhdGU+TUlJRHVEQ0NBcUNnQXdJQkFnSUVYY210SHpBTkJna3Foa2lHOXcwQkFRc0ZBREEyTVF3d0NnWURWUVFLRXdOdWFITXhDekFKQmdOVkJBc1RBa05CTVJrd0Z3WURWUVFERXhCT1NGTWdTVTVVSUV4bGRtVnNJREZFTUI0WERUSXdNVEF5TWpFd01qRTFOVm9YRFRJeU1UQXlNakV3TlRFMU5Wb3dRekVNTUFvR0ExVUVDaE1EYm1oek1ROHdEUVlEVlFRTEV3WlFaVzl3YkdVeElqQWdCZ05WQkFNTUdUVTFOVEkxTXpVeU1URXdPRjlTUVU1RVQwMWZWVk5GVWxFd2daOHdEUVlKS29aSWh2Y05BUUVCQlFBRGdZMEFNSUdKQW9HQkFLdDRzek53N09BSDdBUVJyRGUveEJJbXNNbU1pUzlFc3JUM2EzcC9MaDNicmR6STlhYWpUVVoyYi9jdmJPYTdQZVlkN3UrSzRhMlpkMFhrKzBHRm1ZR3pTVlg2aVlqYmx3cjB2YWkzMXpWN0crbEd2SHhINnBTb0xDd0lDYVpBRndhYmVENU96OTQreUEzYVdOV3RHVjBEZmg5cXdIM1pGQ0lNUnN2ZXJOMXBBZ01CQUFHamdnRkRNSUlCUHpBT0JnTlZIUThCQWY4RUJBTUNCa0F3WlFZRFZSMGdBUUgvQkZzd1dUQlhCZ3NxaGpvQWlYdG1BQU1DQURCSU1FWUdDQ3NHQVFVRkJ3SUJGanBvZEhSd2N6b3ZMM0JyYVM1dWFITXVkV3N2WTJWeWRHbG1hV05oZEdWZmNHOXNhV05wWlhNdlkyOXVkR1Z1ZEY5amIyMXRhWFJ0Wlc1ME1ETUdBMVVkSHdRc01Db3dLS0Ftb0NTR0ltaDBkSEE2THk5amNtd3VibWh6TG5WckwybHVkQzh4WkM5amNteGpNeTVqY213d0t3WURWUjBRQkNRd0lvQVBNakF5TURFd01qSXhNREl4TlRWYWdROHlNREl5TURNeE56RXdOVEUxTlZvd0h3WURWUjBqQkJnd0ZvQVVvSllmZ1lUTlBkNkVVS0w2UUxJekh4WTVQRkl3SFFZRFZSME9CQllFRkx0eXZZU3lhcWc2MEFFVVpneGswd3JqUkpjK01Ba0dBMVVkRXdRQ01BQXdHUVlKS29aSWh2WjlCMEVBQkF3d0Noc0VWamd1TXdNQ0JMQXdEUVlKS29aSWh2Y05BUUVMQlFBRGdnRUJBQmN6eThCOGp1UHBJZmFUTkZjeHJDMjJhQ1gveFlabWhyTC9OdklCQWFYMUc1aGppd21rR0tFMmhSVElyNjdQeFp4bVhzSnhpZ1JCTUhQbEkrbFkvK29rekgwR2k3YjVicWx3N3B4R0lnSk8wMDB3OHBGc3ZvOXc0MklZaEhvZHN2bkRWU3hoTVQwSjQ2UWhrOXNvRTBMam9FVUxLUVBQbFlHa2UvR2wzbTE3SXRGWXdPYlFIMGZNRXdtaXFCeWVJZno3Z1NjY096TDVjSXA2UGNaVE9qbzJJcVFwZ0VtaGpPY1JJbkVxQU5pdFNkam9pSkFKenBhYVpqWVRSZEhVWDdpN2FqRWlING05MW5GVys0QXFrTnR0bGI0V2NHS3NTbVdnZktLaGVGNElvWktNRTgweGVyU2dNeTh2dGpMT0JKQ0dYejB3TEdtUXVSbXhNVHE4OHE0PTwvWDUwOUNlcnRpZmljYXRlPg0KICAgICAgICA8L1g1MDlEYXRhPg0KICAgIDwvS2V5SW5mbz4NCjwvU2lnbmF0dXJlPg0K" + } + ] + } + } + ] +} diff --git a/src/test/resources/examples/full_examples/secondary-care/community/repeat-dispensing/nominated-pharmacy/clinical-practitioner/multiple-medication-requests/prescriber-endorsed/1-Task-Request-Release-200_OK.json b/src/test/resources/examples/full_examples/secondary-care/community/repeat-dispensing/nominated-pharmacy/clinical-practitioner/multiple-medication-requests/prescriber-endorsed/1-Task-Request-Release-200_OK.json new file mode 100644 index 00000000..54dce09e --- /dev/null +++ b/src/test/resources/examples/full_examples/secondary-care/community/repeat-dispensing/nominated-pharmacy/clinical-practitioner/multiple-medication-requests/prescriber-endorsed/1-Task-Request-Release-200_OK.json @@ -0,0 +1,96 @@ +{ + "resourceType": "Parameters", + "id": "07de6aba-e4dd-4bb6-b96e-a2c9a44b12fd", + "parameter": [ + { + "name": "owner", + "resource": { + "resourceType": "Organization", + "id": "organization", + "identifier": [ + { + "system": "https://fhir.nhs.uk/Id/ods-organization-code", + "value": "VNE51" + } + ], + "address": [ + { + "city": "West Yorkshire", + "use": "work", + "line": ["17 Austhorpe Road", "Crossgates", "Leeds"], + "postalCode": "LS15 8BA" + } + ], + "active": true, + "type": [ + { + "coding": [ + { + "system": "https://fhir.nhs.uk/CodeSystem/organisation-role", + "code": "182", + "display": "PHARMACY" + } + ] + } + ], + "name": "The Simple Pharmacy", + "telecom": [ + { + "system": "phone", + "use": "work", + "value": "0113 3180277" + } + ] + } + }, + { + "name": "status", + "valueCode": "accepted" + }, + { + "name": "agent", + "resource": { + "resourceType": "PractitionerRole", + "id": "0933efe6-ada4-41e7-b1d1-3e4d2f47efe1", + "identifier": [ + { + "system": "https://fhir.nhs.uk/Id/sds-role-profile-id", + "value": "555086415105" + } + ], + "practitioner": { + "identifier": { + "system": "https://fhir.nhs.uk/Id/sds-user-id", + "value": "3415870201" + }, + "display": "Jackie Clark" + }, + "code": [ + { + "coding": [ + { + "system": "https://fhir.nhs.uk/CodeSystem/NHSDigital-SDS-JobRoleCode", + "code": "S8000:G8000:R8000", + "display": "Clinical Practitioner Access Role" + } + ] + } + ], + "telecom": [ + { + "system": "phone", + "value": "02380798431", + "use": "work" + } + ] + } + }, + { + "name": "group-identifier", + "valueIdentifier": { + "system": "https://fhir.nhs.uk/Id/prescription-order-number", + "value": "540F91-A99968-4B9EBV" + } + } + ] +} diff --git a/src/test/resources/examples/full_examples/secondary-care/community/repeat-dispensing/nominated-pharmacy/clinical-practitioner/single-medication-request/1-Claim-Request-200_OK.json b/src/test/resources/examples/full_examples/secondary-care/community/repeat-dispensing/nominated-pharmacy/clinical-practitioner/single-medication-request/1-Claim-Request-200_OK.json new file mode 100644 index 00000000..48ecf5ca --- /dev/null +++ b/src/test/resources/examples/full_examples/secondary-care/community/repeat-dispensing/nominated-pharmacy/clinical-practitioner/single-medication-request/1-Claim-Request-200_OK.json @@ -0,0 +1,354 @@ +{ + "resourceType": "Claim", + "id": "a76599c5-bbdd-4581-bb4d-377b348dd1e4", + "extension": [ + { + "url": "https://fhir.nhs.uk/StructureDefinition/Extension-Provenance-agent", + "valueReference": { + "identifier": { + "system": "https://fhir.nhs.uk/Id/sds-user-id", + "value": "7654321" + }, + "display": "Mr Peter Potion" + } + } + ], + "contained": [ + { + "resourceType": "PractitionerRole", + "id": "provider", + "identifier": [ + { + "system": "https://fhir.nhs.uk/Id/sds-role-profile-id", + "value": "454567759542" + } + ], + "code": [ + { + "coding": [ + { + "system": "https://fhir.nhs.uk/CodeSystem/NHSDigital-SDS-JobRoleCode", + "code": "S8000:G8000:R8000", + "display": "Clinical Practitioner Access Role" + } + ] + } + ], + "practitioner": { + "identifier": { + "system": "https://fhir.nhs.uk/Id/sds-user-id", + "value": "7654321" + }, + "display": "Mr Peter Potion" + }, + "organization": { + "reference": "#organisation" + }, + "telecom": [ + { + "system": "phone", + "use": "work", + "value": "01234567890" + } + ] + }, + { + "resourceType": "Organization", + "id": "organisation", + "identifier": [ + { + "system": "https://fhir.nhs.uk/Id/ods-organization-code", + "value": "VNE51" + } + ], + "address": [ + { + "city": "West Yorkshire", + "use": "work", + "line": [ + "17 Austhorpe Road", + "Crossgates", + "Leeds" + ], + "postalCode": "LS15 8BA" + } + ], + "active": true, + "type": [ + { + "coding": [ + { + "system": "https://fhir.nhs.uk/CodeSystem/organisation-role", + "code": "182", + "display": "PHARMACY" + } + ] + } + ], + "name": "The Simple Pharmacy", + "telecom": [ + { + "system": "phone", + "use": "work", + "value": "0113 3180277" + } + ] + } + ], + "created": "2022-11-30T13:30:00.000Z", + "identifier": [ + { + "system": "https://tools.ietf.org/html/rfc4122", + "value": "737dcf8d-fc7a-436d-b692-7d3c4f258083" + } + ], + "status": "active", + "type": { + "coding": [ + { + "system": "http://terminology.hl7.org/CodeSystem/claim-type", + "code": "pharmacy", + "display": "Pharmacy" + } + ] + }, + "use": "claim", + "patient": { + "identifier": { + "system": "https://fhir.nhs.uk/Id/nhs-number", + "value": "9449304130" + } + }, + "provider": { + "reference": "#provider" + }, + "priority": { + "coding": [ + { + "system": "http://terminology.hl7.org/CodeSystem/processpriority", + "code": "normal" + } + ] + }, + "insurance": [ + { + "sequence": 1, + "focal": true, + "coverage": { + "identifier": { + "system": "https://fhir.nhs.uk/Id/ods-organization-code", + "value": "T1450" + }, + "display": "NHS BUSINESS SERVICES AUTHORITY" + } + } + ], + "payee": { + "type": { + "coding": [ + { + "system": "http://terminology.hl7.org/CodeSystem/payeetype", + "code": "provider", + "display": "Provider" + } + ] + }, + "party": { + "reference": "#organisation" + } + }, + "prescription": { + "extension": [ + { + "url": "https://fhir.nhs.uk/StructureDefinition/Extension-DM-GroupIdentifier", + "extension": [ + { + "url": "shortForm", + "valueIdentifier": { + "system": "https://fhir.nhs.uk/Id/prescription-order-number", + "value": "B407F7-A99968-4DB2AU" + } + }, + { + "url": "UUID", + "valueIdentifier": { + "system": "https://fhir.nhs.uk/Id/prescription", + "value": "10d37820-dda2-4810-94d7-c79e5fdb4b46" + } + } + ] + } + ], + "display": "A prescription order" + }, + "item": [ + { + "extension": [ + { + "url": "https://fhir.nhs.uk/StructureDefinition/Extension-EPS-TaskBusinessStatus", + "valueCoding": { + "code": "0006", + "system": "https://fhir.nhs.uk/CodeSystem/EPS-task-business-status", + "display": "Dispensed" + } + } + ], + "sequence": 1, + "productOrService": { + "coding": [ + { + "system": "http://snomed.info/sct", + "code": "16076005", + "display": "Prescription" + } + ] + }, + "programCode": [ + { + "coding": [ + { + "code": "0001", + "system": "https://fhir.nhs.uk/CodeSystem/prescription-charge-exemption", + "display": "Patient has paid appropriate charges" + } + ] + }, + { + "coding": [ + { + "system": "https://fhir.nhs.uk/CodeSystem/DM-exemption-evidence", + "code": "no-evidence-seen", + "display": "No Evidence Seen" + } + ] + } + ], + "detail": [ + { + "extension": [ + { + "url": "https://fhir.nhs.uk/StructureDefinition/Extension-ClaimSequenceIdentifier", + "valueIdentifier": { + "system": "https://fhir.nhs.uk/Id/claim-sequence-identifier", + "value": "be948cf8-5db1-4c39-8f9b-c7e049d55acb" + } + }, + { + "url": "https://fhir.nhs.uk/StructureDefinition/Extension-ClaimMedicationRequestReference", + "valueReference": { + "identifier": { + "system": "https://fhir.nhs.uk/Id/prescription-order-item-number", + "value": "a54219b8-f741-4c47-b662-e4f8dfa49ab6" + } + } + }, + { + "url": "https://fhir.nhs.uk/StructureDefinition/Extension-EPS-RepeatInformation", + "extension": [ + { + "url": "numberOfRepeatsAllowed", + "valueInteger": 5 + }, + { + "url": "numberOfRepeatsIssued", + "valueInteger": 0 + } + ] + } + ], + "sequence": 1, + "productOrService": { + "coding": [ + { + "system": "http://snomed.info/sct", + "code": "39732311000001104", + "display": "Amoxicillin 250mg capsules" + } + ] + }, + "modifier": [ + { + "coding": [ + { + "code": "0001", + "system": "https://fhir.nhs.uk/CodeSystem/medicationdispense-type", + "display": "Item fully dispensed" + } + ] + } + ], + "programCode": [ + { + "coding": [ + { + "system": "https://fhir.nhs.uk/CodeSystem/DM-prescription-charge", + "code": "paid-once", + "display": "Paid Once" + } + ] + }, + { + "coding": [ + { + "system": "https://fhir.nhs.uk/CodeSystem/medicationdispense-endorsement", + "code": "NDEC", + "display": "No Dispenser Endorsement Code" + } + ] + } + ], + "quantity": { + "value": 20, + "unit": "tablet", + "system": "http://snomed.info/sct", + "code": "428673006" + }, + "subDetail": [ + { + "extension": [ + { + "url": "https://fhir.nhs.uk/StructureDefinition/Extension-ClaimMedicationDispenseReference", + "valueReference": { + "identifier": { + "system": "https://fhir.nhs.uk/Id/prescription-dispense-item-number", + "value": "fd833d33-f128-4fa2-a807-1fc8a7db2658" + } + } + }, + { + "url": "https://fhir.nhs.uk/StructureDefinition/Extension-EPS-RepeatInformation", + "extension": [ + { + "url": "numberOfRepeatsAllowed", + "valueInteger": 5 + }, + { + "url": "numberOfRepeatsIssued", + "valueInteger": 0 + } + ] + } + ], + "sequence": 1, + "productOrService": { + "coding": [ + { + "system": "http://snomed.info/sct", + "code": "39732311000001104", + "display": "Amoxicillin 250mg capsules" + } + ] + }, + "quantity": { + "value": 20, + "unit": "tablet", + "system": "http://snomed.info/sct", + "code": "428673006" + } + } + ] + } + ] + } + ] +} diff --git a/src/test/resources/examples/full_examples/secondary-care/community/repeat-dispensing/nominated-pharmacy/clinical-practitioner/single-medication-request/1-Prepare-Request-200_OK.json b/src/test/resources/examples/full_examples/secondary-care/community/repeat-dispensing/nominated-pharmacy/clinical-practitioner/single-medication-request/1-Prepare-Request-200_OK.json new file mode 100644 index 00000000..cd62f382 --- /dev/null +++ b/src/test/resources/examples/full_examples/secondary-care/community/repeat-dispensing/nominated-pharmacy/clinical-practitioner/single-medication-request/1-Prepare-Request-200_OK.json @@ -0,0 +1,357 @@ +{ + "resourceType": "Bundle", + "id": "aef77afb-7e3c-427a-8657-2c427f71a271", + "identifier": { + "system": "https://tools.ietf.org/html/rfc4122", + "value": "8de3221e-54b7-4994-a55b-e7038abd36ad" + }, + "type": "message", + "entry": [ + { + "fullUrl": "urn:uuid:aef77afb-7e3c-427a-8657-2c427f71a271", + "resource": { + "resourceType": "MessageHeader", + "id": "3599c0e9-9292-413e-9270-9a1ef1ead99c", + "eventCoding": { + "system": "https://fhir.nhs.uk/CodeSystem/message-event", + "code": "prescription-order", + "display": "Prescription Order" + }, + "sender": { + "identifier": { + "system": "https://fhir.nhs.uk/Id/ods-organization-code", + "value": "RBA" + }, + "reference": "urn:uuid:56166769-c1c4-4d07-afa8-132b5dfca666", + "display": "RAZIA|ALI" + }, + "source": { + "endpoint": "https://directory.spineservices.nhs.uk/STU3/Organization/RBA" + }, + "destination": [ + { + "endpoint": "https://directory.spineservices.nhs.uk/STU3/Organization/FH542", + "receiver": { + "identifier": { + "system": "https://fhir.nhs.uk/Id/ods-organization-code", + "value": "FH542" + } + } + } + ], + "focus": [ + { + "reference": "urn:uuid:56166769-c1c4-4d07-afa8-132b5dfca666" + }, + { + "reference": "urn:uuid:a54219b8-f741-4c47-b662-e4f8dfa49ab6" + } + ] + } + }, + { + "fullUrl": "urn:uuid:a54219b8-f741-4c47-b662-e4f8dfa49ab6", + "resource": { + "resourceType": "MedicationRequest", + "id": "a54219b8-f741-4c47-b662-e4f8dfa49ab6", + "extension": [ + { + "url": "https://fhir.nhs.uk/StructureDefinition/Extension-DM-PrescriptionType", + "valueCoding": { + "system": "https://fhir.nhs.uk/CodeSystem/prescription-type", + "code": "1001", + "display": "Outpatient Community Prescriber - Medical Prescriber" + } + }, + { + "url": "https://fhir.hl7.org.uk/StructureDefinition/Extension-UKCore-MedicationRepeatInformation", + "extension": [ + { + "url": "authorisationExpiryDate", + "valueDateTime": "2024-11-30" + } + ] + } + ], + "identifier": [ + { + "system": "https://fhir.nhs.uk/Id/prescription-order-item-number", + "value": "a54219b8-f741-4c47-b662-e4f8dfa49ab6" + } + ], + "status": "active", + "intent": "original-order", + "category": [ + { + "coding": [ + { + "system": "http://terminology.hl7.org/CodeSystem/medicationrequest-category", + "code": "outpatient", + "display": "Outpatient" + } + ] + } + ], + "medicationCodeableConcept": { + "coding": [ + { + "system": "http://snomed.info/sct", + "code": "15517911000001104", + "display": "Methotrexate 10mg/0.2ml solution for injection pre-filled syringes" + } + ] + }, + "subject": { + "reference": "urn:uuid:78d3c2eb-009e-4ec8-a358-b042954aa9b2" + }, + "requester": { + "reference": "urn:uuid:56166769-c1c4-4d07-afa8-132b5dfca666" + }, + "groupIdentifier": { + "extension": [ + { + "url": "https://fhir.nhs.uk/StructureDefinition/Extension-DM-PrescriptionId", + "valueIdentifier": { + "system": "https://fhir.nhs.uk/Id/prescription", + "value": "10d37820-dda2-4810-94d7-c79e5fdb4b46" + } + } + ], + "system": "https://fhir.nhs.uk/Id/prescription-order-number", + "value": "B407F7-A99968-4DB2AU" + }, + "courseOfTherapyType": { + "coding": [ + { + "system": "https://fhir.nhs.uk/CodeSystem/medicationrequest-course-of-therapy", + "code": "continuous-repeat-dispensing", + "display": "Continuous long term (repeat dispensing)" + } + ] + }, + "dosageInstruction": [ + { + "text": "Inject 10 milligram - 5 times a day - Subcutaneous route - for 10 days", + "timing": { + "repeat": { + "frequency": 5, + "period": 1, + "periodUnit": "d", + "boundsDuration": { + "value": 10, + "unit": "day", + "system": "http://unitsofmeasure.org", + "code": "d" + } + } + }, + "method": { + "coding": [ + { + "system": "http://snomed.info/sct", + "code": "422145002", + "display": "Inject" + } + ] + }, + "route": { + "coding": [ + { + "system": "http://snomed.info/sct", + "code": "34206005", + "display": "Subcutaneous route" + } + ] + }, + "doseAndRate": [ + { + "doseQuantity": { + "value": 10, + "unit": "milligram", + "system": "http://unitsofmeasure.org", + "code": "mg" + } + } + ] + } + ], + "dispenseRequest": { + "extension": [ + { + "url": "https://fhir.nhs.uk/StructureDefinition/Extension-DM-PerformerSiteType", + "valueCoding": { + "system": "https://fhir.nhs.uk/CodeSystem/dispensing-site-preference", + "code": "P1" + } + } + ], + "numberOfRepeatsAllowed": 5, + "validityPeriod": { + "start": "2021-09-03", + "end": "2021-10-03" + }, + "quantity": { + "value": 63, + "unit": "tablet", + "system": "http://snomed.info/sct", + "code": "428673006" + }, + "expectedSupplyDuration": { + "value": 28, + "unit": "days", + "system": "http://unitsofmeasure.org", + "code": "d" + }, + "performer": { + "identifier": { + "system": "https://fhir.nhs.uk/Id/ods-organization-code", + "value": "FER21" + } + } + }, + "substitution": { + "allowedBoolean": false + } + } + }, + { + "fullUrl": "urn:uuid:78d3c2eb-009e-4ec8-a358-b042954aa9b2", + "resource": { + "resourceType": "Patient", + "id": "78d3c2eb-009e-4ec8-a358-b042954aa9b2", + "identifier": [ + { + "system": "https://fhir.nhs.uk/Id/nhs-number", + "value": "9449305552" + } + ], + "name": [ + { + "use": "usual", + "family": "CORY", + "given": ["ETTA"], + "prefix": ["MISS"] + } + ], + "gender": "female", + "birthDate": "1999-01-04", + "address": [ + { + "use": "home", + "line": ["123 Dale Avenue", "Long Eaton", "Nottingham"], + "postalCode": "NG10 1NP" + } + ], + "generalPractitioner": [ + { + "identifier": { + "system": "https://fhir.nhs.uk/Id/ods-organization-code", + "value": "B81001" + } + } + ] + } + }, + { + "fullUrl": "urn:uuid:56166769-c1c4-4d07-afa8-132b5dfca666", + "resource": { + "resourceType": "PractitionerRole", + "id": "56166769-c1c4-4d07-afa8-132b5dfca666", + "identifier": [ + { + "system": "https://fhir.nhs.uk/Id/sds-role-profile-id", + "value": "100102238986" + }, + { + "system": "https://fhir.hl7.org.uk/Id/nhsbsa-spurious-code", + "value": "612345" + } + ], + "practitioner": { + "reference": "urn:uuid:a8c85454-f8cb-498d-9629-78e2cb5fa47a" + }, + "organization": { + "reference": "urn:uuid:3b4b03a5-52ba-4ba6-9b82-70350aa109d8" + }, + "code": [ + { + "coding": [ + { + "system": "https://fhir.nhs.uk/CodeSystem/NHSDigital-SDS-JobRoleCode", + "code": "S8000:G8000:R8000", + "display": "Clinical Practitioner Access Role" + } + ] + } + ], + "telecom": [ + { + "system": "phone", + "value": "01234567890", + "use": "work" + } + ] + } + }, + { + "fullUrl": "urn:uuid:a8c85454-f8cb-498d-9629-78e2cb5fa47a", + "resource": { + "resourceType": "Practitioner", + "id": "a8c85454-f8cb-498d-9629-78e2cb5fa47a", + "identifier": [ + { + "system": "https://fhir.nhs.uk/Id/sds-user-id", + "value": "3415870201" + }, + { + "system": "https://fhir.hl7.org.uk/Id/gmc-number", + "value": "4428981" + } + ], + "name": [ + { + "family": "Edwards", + "given": ["Thomas"], + "prefix": ["DR"] + } + ] + } + }, + { + "fullUrl": "urn:uuid:3b4b03a5-52ba-4ba6-9b82-70350aa109d8", + "resource": { + "resourceType": "Organization", + "id": "3b4b03a5-52ba-4ba6-9b82-70350aa109d8", + "identifier": [ + { + "system": "https://fhir.nhs.uk/Id/ods-organization-code", + "value": "A99968" + } + ], + "name": "SOMERSET BOWEL CANCER SCREENING CENTRE", + "address": [ + { + "use": "work", + "line": ["MUSGROVE PARK HOSPITAL"], + "city": "TAUNTON", + "postalCode": "TA1 5DA" + } + ], + "telecom": [ + { + "system": "phone", + "value": "01823 333444", + "use": "work" + } + ], + "partOf": { + "identifier": { + "system": "https://fhir.nhs.uk/Id/ods-organization-code", + "value": "RBA" + }, + "display": "TAUNTON AND SOMERSET NHS FOUNDATION TRUST" + } + } + } + ] +} diff --git a/src/test/resources/examples/full_examples/secondary-care/community/repeat-dispensing/nominated-pharmacy/clinical-practitioner/single-medication-request/1-Prepare-Response-200_OK.json b/src/test/resources/examples/full_examples/secondary-care/community/repeat-dispensing/nominated-pharmacy/clinical-practitioner/single-medication-request/1-Prepare-Response-200_OK.json new file mode 100644 index 00000000..40ea8f29 --- /dev/null +++ b/src/test/resources/examples/full_examples/secondary-care/community/repeat-dispensing/nominated-pharmacy/clinical-practitioner/single-medication-request/1-Prepare-Response-200_OK.json @@ -0,0 +1,17 @@ +{ + "resourceType": "Parameters", + "parameter": [ + { + "name": "digest", + "valueString": "PFNpZ25lZEluZm8geG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvMDkveG1sZHNpZyMiPjxDYW5vbmljYWxpemF0aW9uTWV0aG9kIEFsZ29yaXRobT0iaHR0cDovL3d3dy53My5vcmcvMjAwMS8xMC94bWwtZXhjLWMxNG4jIj48L0Nhbm9uaWNhbGl6YXRpb25NZXRob2Q+PFNpZ25hdHVyZU1ldGhvZCBBbGdvcml0aG09Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvMDkveG1sZHNpZyNyc2Etc2hhMSI+PC9TaWduYXR1cmVNZXRob2Q+PFJlZmVyZW5jZT48VHJhbnNmb3Jtcz48VHJhbnNmb3JtIEFsZ29yaXRobT0iaHR0cDovL3d3dy53My5vcmcvMjAwMS8xMC94bWwtZXhjLWMxNG4jIj48L1RyYW5zZm9ybT48L1RyYW5zZm9ybXM+PERpZ2VzdE1ldGhvZCBBbGdvcml0aG09Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvMDkveG1sZHNpZyNzaGExIj48L0RpZ2VzdE1ldGhvZD48RGlnZXN0VmFsdWU+ZFdTNjJDalJCeVpsSnN6bENrdGJ5TkdtUWlJPTwvRGlnZXN0VmFsdWU+PC9SZWZlcmVuY2U+PC9TaWduZWRJbmZvPg==" + }, + { + "name": "timestamp", + "valueString": "2022-10-25T10:24:34+00:00" + }, + { + "name": "algorithm", + "valueString": "RS1" + } + ] +} diff --git a/src/test/resources/examples/full_examples/secondary-care/community/repeat-dispensing/nominated-pharmacy/clinical-practitioner/single-medication-request/1-Process-Request-Dispense-200_OK.json b/src/test/resources/examples/full_examples/secondary-care/community/repeat-dispensing/nominated-pharmacy/clinical-practitioner/single-medication-request/1-Process-Request-Dispense-200_OK.json new file mode 100644 index 00000000..51531a8b --- /dev/null +++ b/src/test/resources/examples/full_examples/secondary-care/community/repeat-dispensing/nominated-pharmacy/clinical-practitioner/single-medication-request/1-Process-Request-Dispense-200_OK.json @@ -0,0 +1,423 @@ +{ + "resourceType": "Bundle", + "id": "aef77afb-7e3c-427a-8657-2c427f71a271", + "identifier": { + "system": "https://tools.ietf.org/html/rfc4122", + "value": "76d1cc0b-bd64-4fad-a513-4de0f2ae7014" + }, + "type": "message", + "entry": [ + { + "fullUrl": "urn:uuid:aef77afb-7e3c-427a-8657-2c427f71a271", + "resource": { + "resourceType": "MessageHeader", + "id": "3599c0e9-9292-413e-9270-9a1ef1ead99c", + "eventCoding": { + "system": "https://fhir.nhs.uk/CodeSystem/message-event", + "code": "dispense-notification", + "display": "Dispense Notification" + }, + "sender": { + "identifier": { + "system": "https://fhir.nhs.uk/Id/ods-organization-code", + "value": "RBA" + }, + "reference": "urn:uuid:56166769-c1c4-4d07-afa8-132b5dfca666", + "display": "RAZIA|ALI" + }, + "source": { + "endpoint": "https://directory.spineservices.nhs.uk/STU3/Organization/RBA" + }, + "destination": [ + { + "endpoint": "https://directory.spineservices.nhs.uk/STU3/Organization/FH542", + "receiver": { + "identifier": { + "system": "https://fhir.nhs.uk/Id/ods-organization-code", + "value": "FH542" + } + } + } + ], + "focus": [ + { + "reference": "urn:uuid:a54219b8-f741-4c47-b662-e4f8dfa49ab6" + } + ], + "response": { + "identifier": "999f9999-9999-9999-9ff9-f9fff9999999", + "code": "ok" + } + } + }, + { + "fullUrl": "urn:uuid:a54219b8-f741-4c47-b662-e4f8dfa49ab6", + "resource": { + "resourceType": "MedicationDispense", + "contained": [ + { + "resourceType": "PractitionerRole", + "id": "performer", + "identifier": [ + { + "system": "https://fhir.nhs.uk/Id/sds-role-profile-id", + "value": "555086415105" + } + ], + "practitioner": { + "identifier": { + "system": "https://fhir.nhs.uk/Id/sds-user-id", + "value": "3415870201" + }, + "display": "Jackie Clark" + }, + "organization": { + "reference": "urn:uuid:2bf9f37c-d88b-4f86-ad5f-373c1416e04b" + }, + "code": [ + { + "coding": [ + { + "system": "https://fhir.nhs.uk/CodeSystem/NHSDigital-SDS-JobRoleCode", + "code": "S8000:G8000:R8000", + "display": "Clinical Practitioner Access Role" + } + ] + } + ], + "telecom": [ + { + "system": "phone", + "use": "work", + "value": "02380798431" + } + ] + }, + { + "resourceType": "MedicationRequest", + "id": "m1", + "extension": [ + { + "url": "https://fhir.nhs.uk/StructureDefinition/Extension-DM-PrescriptionType", + "valueCoding": { + "system": "https://fhir.nhs.uk/CodeSystem/prescription-type", + "code": "1001", + "display": "Outpatient Community Prescriber - Medical Prescriber" + } + }, + { + "url": "https://fhir.hl7.org.uk/StructureDefinition/Extension-UKCore-MedicationRepeatInformation", + "extension": [ + { + "url": "authorisationExpiryDate", + "valueDateTime": "2020-12-07" + }, + { + "url": "numberOfPrescriptionsIssued", + "valueUnsignedInt": 1 + } + ] + } + ], + "basedOn": [ + { + "extension": [ + { + "url": "https://fhir.nhs.uk/StructureDefinition/Extension-EPS-RepeatInformation", + "extension": [ + { + "url": "numberOfRepeatsAllowed", + "valueInteger": 5 + }, + { + "url": "numberOfRepeatsIssued", + "valueInteger": 0 + } + ] + } + ] + } + ], + "identifier": [ + { + "system": "https://fhir.nhs.uk/Id/prescription-order-item-number", + "value": "a54219b8-f741-4c47-b662-e4f8dfa49ab6" + } + ], + "status": "active", + "intent": "original-order", + "category": [ + { + "coding": [ + { + "system": "http://terminology.hl7.org/CodeSystem/medicationrequest-category", + "code": "outpatient", + "display": "Outpatient" + } + ] + } + ], + "medicationCodeableConcept": { + "coding": [ + { + "system": "http://snomed.info/sct", + "code": "15517911000001104", + "display": "Methotrexate 10mg/0.2ml solution for injection pre-filled syringes" + } + ] + }, + "subject": { + "reference": "urn:uuid:78d3c2eb-009e-4ec8-a358-b042954aa9b2" + }, + "authoredOn": "2021-05-07T14:47:29+00:00", + "requester": { + "reference": "urn:uuid:56166769-c1c4-4d07-afa8-132b5dfca666" + }, + "groupIdentifier": { + "extension": [ + { + "url": "https://fhir.nhs.uk/StructureDefinition/Extension-DM-PrescriptionId", + "valueIdentifier": { + "system": "https://fhir.nhs.uk/Id/prescription", + "value": "10d37820-dda2-4810-94d7-c79e5fdb4b46" + } + } + ], + "system": "https://fhir.nhs.uk/Id/prescription-order-number", + "value": "B407F7-A99968-4DB2AU" + }, + "courseOfTherapyType": { + "coding": [ + { + "system": "https://fhir.nhs.uk/CodeSystem/medicationrequest-course-of-therapy", + "code": "continuous-repeat-dispensing", + "display": "Continuous long term (repeat dispensing)" + } + ] + }, + "dosageInstruction": [ + { + "text": "10 milligram, Inject, Subcutaneous route, once weekly", + "timing": { + "repeat": { + "frequency": 5, + "period": 1, + "periodUnit": "d", + "boundsDuration": { + "value": 10, + "unit": "day", + "system": "http://unitsofmeasure.org", + "code": "d" + } + } + }, + "method": { + "coding": [ + { + "system": "http://snomed.info/sct", + "code": "422145002", + "display": "Inject" + } + ] + }, + "route": { + "coding": [ + { + "system": "http://snomed.info/sct", + "code": "34206005", + "display": "Subcutaneous route" + } + ] + }, + "doseAndRate": [ + { + "doseQuantity": { + "value": 10, + "unit": "milligram", + "system": "http://unitsofmeasure.org", + "code": "mg" + } + } + ] + } + ], + "dispenseRequest": { + "extension": [ + { + "url": "https://fhir.nhs.uk/StructureDefinition/Extension-DM-PerformerSiteType", + "valueCoding": { + "system": "https://fhir.nhs.uk/CodeSystem/dispensing-site-preference", + "code": "P1" + } + } + ], + "numberOfRepeatsAllowed": 5, + "validityPeriod": { + "start": "2021-09-03", + "end": "2021-10-03" + }, + "quantity": { + "value": 63, + "unit": "tablet", + "system": "http://snomed.info/sct", + "code": "428673006" + }, + "expectedSupplyDuration": { + "value": 28, + "unit": "days", + "system": "http://unitsofmeasure.org", + "code": "d" + }, + "performer": { + "identifier": { + "system": "https://fhir.nhs.uk/Id/ods-organization-code", + "value": "FER21" + } + } + }, + "substitution": { + "allowedBoolean": false + } + } + ], + "extension": [ + { + "url": "https://fhir.nhs.uk/StructureDefinition/Extension-EPS-TaskBusinessStatus", + "valueCoding": { + "system": "https://fhir.nhs.uk/CodeSystem/EPS-task-business-status", + "code": "0006", + "display": "Dispensed" + } + }, + { + "extension": [ + { + "url": "numberOfRepeatsAllowed", + "valueInteger": 5 + }, + { + "url": "numberOfRepeatsIssued", + "valueInteger": 1 + } + ], + "url": "https://fhir.nhs.uk/StructureDefinition/Extension-EPS-RepeatInformation" + } + ], + "identifier": [ + { + "system": "https://fhir.nhs.uk/Id/prescription-dispense-item-number", + "value": "a54219b8-f741-4c47-b662-e4f8dfa49ab6" + } + ], + "medicationCodeableConcept": { + "coding": [ + { + "system": "http://snomed.info/sct", + "code": "15517911000001104", + "display": "Methotrexate 10mg/0.2ml solution for injection pre-filled syringes" + } + ] + }, + "subject": { + "type": "Patient", + "identifier": { + "system": "https://fhir.nhs.uk/Id/nhs-number", + "value": "9449305552" + } + }, + "authorizingPrescription": [ + { + "reference": "#m1" + } + ], + "performer": [ + { + "actor": { + "reference": "#performer" + } + } + ], + "whenHandedOver": "2021-07-07T15:43:00+00:00", + "dosageInstruction": [ + { + "text": "4 times a day for 7 days" + } + ], + "quantity": { + "value": 63, + "unit": "tablet", + "system": "http://snomed.info/sct", + "code": "428673006" + }, + "status": "completed", + "type": { + "coding": [ + { + "system": "https://fhir.nhs.uk/CodeSystem/medicationdispense-type", + "code": "0001", + "display": "Item fully dispensed" + } + ] + } + } + }, + { + "fullUrl": "urn:uuid:2bf9f37c-d88b-4f86-ad5f-373c1416e04b", + "resource": { + "resourceType": "Organization", + "extension": [ + { + "url": "https://fhir.nhs.uk/StructureDefinition/Extension-ODS-OrganisationRelationships", + "extension": [ + { + "url": "reimbursementAuthority", + "valueIdentifier": { + "system": "https://fhir.nhs.uk/Id/ods-organization-code", + "value": "T1450" + } + } + ] + } + ], + "identifier": [ + { + "system": "https://fhir.nhs.uk/Id/ods-organization-code", + "value": "VNE51" + } + ], + "address": [ + { + "city": "West Yorkshire", + "use": "work", + "line": [ + "17 Austhorpe Road", + "Crossgates", + "Leeds" + ], + "postalCode": "LS15 8BA" + } + ], + "active": true, + "type": [ + { + "coding": [ + { + "system": "https://fhir.nhs.uk/CodeSystem/organisation-role", + "code": "182", + "display": "PHARMACY" + } + ] + } + ], + "name": "The Simple Pharmacy", + "telecom": [ + { + "system": "phone", + "use": "work", + "value": "0113 3180277" + } + ] + } + } + ] +} diff --git a/src/test/resources/examples/full_examples/secondary-care/community/repeat-dispensing/nominated-pharmacy/clinical-practitioner/single-medication-request/1-Process-Request-Send-200_OK.json b/src/test/resources/examples/full_examples/secondary-care/community/repeat-dispensing/nominated-pharmacy/clinical-practitioner/single-medication-request/1-Process-Request-Send-200_OK.json new file mode 100644 index 00000000..724ee093 --- /dev/null +++ b/src/test/resources/examples/full_examples/secondary-care/community/repeat-dispensing/nominated-pharmacy/clinical-practitioner/single-medication-request/1-Process-Request-Send-200_OK.json @@ -0,0 +1,392 @@ +{ + "resourceType": "Bundle", + "id": "aef77afb-7e3c-427a-8657-2c427f71a271", + "identifier": { + "system": "https://tools.ietf.org/html/rfc4122", + "value": "8de3221e-54b7-4994-a55b-e7038abd36ad" + }, + "type": "message", + "entry": [ + { + "fullUrl": "urn:uuid:aef77afb-7e3c-427a-8657-2c427f71a271", + "resource": { + "resourceType": "MessageHeader", + "id": "3599c0e9-9292-413e-9270-9a1ef1ead99c", + "eventCoding": { + "system": "https://fhir.nhs.uk/CodeSystem/message-event", + "code": "prescription-order", + "display": "Prescription Order" + }, + "sender": { + "identifier": { + "system": "https://fhir.nhs.uk/Id/ods-organization-code", + "value": "RBA" + }, + "reference": "urn:uuid:56166769-c1c4-4d07-afa8-132b5dfca666", + "display": "RAZIA|ALI" + }, + "source": { + "endpoint": "https://directory.spineservices.nhs.uk/STU3/Organization/RBA" + }, + "destination": [ + { + "endpoint": "https://directory.spineservices.nhs.uk/STU3/Organization/FH542", + "receiver": { + "identifier": { + "system": "https://fhir.nhs.uk/Id/ods-organization-code", + "value": "FH542" + } + } + } + ], + "focus": [ + { + "reference": "urn:uuid:56166769-c1c4-4d07-afa8-132b5dfca666" + }, + { + "reference": "urn:uuid:a54219b8-f741-4c47-b662-e4f8dfa49ab6" + } + ] + } + }, + { + "fullUrl": "urn:uuid:a54219b8-f741-4c47-b662-e4f8dfa49ab6", + "resource": { + "resourceType": "MedicationRequest", + "id": "a54219b8-f741-4c47-b662-e4f8dfa49ab6", + "extension": [ + { + "url": "https://fhir.nhs.uk/StructureDefinition/Extension-DM-PrescriptionType", + "valueCoding": { + "system": "https://fhir.nhs.uk/CodeSystem/prescription-type", + "code": "1001", + "display": "Outpatient Community Prescriber - Medical Prescriber" + } + }, + { + "url": "https://fhir.hl7.org.uk/StructureDefinition/Extension-UKCore-MedicationRepeatInformation", + "extension": [ + { + "url": "authorisationExpiryDate", + "valueDateTime": "2024-11-30" + } + ] + } + ], + "identifier": [ + { + "system": "https://fhir.nhs.uk/Id/prescription-order-item-number", + "value": "a54219b8-f741-4c47-b662-e4f8dfa49ab6" + } + ], + "status": "active", + "intent": "original-order", + "category": [ + { + "coding": [ + { + "system": "http://terminology.hl7.org/CodeSystem/medicationrequest-category", + "code": "outpatient", + "display": "Outpatient" + } + ] + } + ], + "medicationCodeableConcept": { + "coding": [ + { + "system": "http://snomed.info/sct", + "code": "15517911000001104", + "display": "Methotrexate 10mg/0.2ml solution for injection pre-filled syringes" + } + ] + }, + "subject": { + "reference": "urn:uuid:78d3c2eb-009e-4ec8-a358-b042954aa9b2" + }, + "requester": { + "reference": "urn:uuid:56166769-c1c4-4d07-afa8-132b5dfca666" + }, + "groupIdentifier": { + "extension": [ + { + "url": "https://fhir.nhs.uk/StructureDefinition/Extension-DM-PrescriptionId", + "valueIdentifier": { + "system": "https://fhir.nhs.uk/Id/prescription", + "value": "10d37820-dda2-4810-94d7-c79e5fdb4b46" + } + } + ], + "system": "https://fhir.nhs.uk/Id/prescription-order-number", + "value": "B407F7-A99968-4DB2AU" + }, + "courseOfTherapyType": { + "coding": [ + { + "system": "https://fhir.nhs.uk/CodeSystem/medicationrequest-course-of-therapy", + "code": "continuous-repeat-dispensing", + "display": "Continuous long term (repeat dispensing)" + } + ] + }, + "dosageInstruction": [ + { + "text": "Inject 10 milligram - 5 times a day - Subcutaneous route - for 10 days", + "timing": { + "repeat": { + "frequency": 5, + "period": 1, + "periodUnit": "d", + "boundsDuration": { + "value": 10, + "unit": "day", + "system": "http://unitsofmeasure.org", + "code": "d" + } + } + }, + "method": { + "coding": [ + { + "system": "http://snomed.info/sct", + "code": "422145002", + "display": "Inject" + } + ] + }, + "route": { + "coding": [ + { + "system": "http://snomed.info/sct", + "code": "34206005", + "display": "Subcutaneous route" + } + ] + }, + "doseAndRate": [ + { + "doseQuantity": { + "value": 10, + "unit": "milligram", + "system": "http://unitsofmeasure.org", + "code": "mg" + } + } + ] + } + ], + "dispenseRequest": { + "extension": [ + { + "url": "https://fhir.nhs.uk/StructureDefinition/Extension-DM-PerformerSiteType", + "valueCoding": { + "system": "https://fhir.nhs.uk/CodeSystem/dispensing-site-preference", + "code": "P1" + } + } + ], + "numberOfRepeatsAllowed": 5, + "validityPeriod": { + "start": "2021-09-03", + "end": "2021-10-03" + }, + "quantity": { + "value": 63, + "unit": "tablet", + "system": "http://snomed.info/sct", + "code": "428673006" + }, + "expectedSupplyDuration": { + "value": 28, + "unit": "days", + "system": "http://unitsofmeasure.org", + "code": "d" + }, + "performer": { + "identifier": { + "system": "https://fhir.nhs.uk/Id/ods-organization-code", + "value": "FER21" + } + } + }, + "substitution": { + "allowedBoolean": false + } + } + }, + { + "fullUrl": "urn:uuid:78d3c2eb-009e-4ec8-a358-b042954aa9b2", + "resource": { + "resourceType": "Patient", + "id": "78d3c2eb-009e-4ec8-a358-b042954aa9b2", + "identifier": [ + { + "system": "https://fhir.nhs.uk/Id/nhs-number", + "value": "9449305552" + } + ], + "name": [ + { + "use": "usual", + "family": "CORY", + "given": ["ETTA"], + "prefix": ["MISS"] + } + ], + "gender": "female", + "birthDate": "1999-01-04", + "address": [ + { + "use": "home", + "line": ["123 Dale Avenue", "Long Eaton", "Nottingham"], + "postalCode": "NG10 1NP" + } + ], + "generalPractitioner": [ + { + "identifier": { + "system": "https://fhir.nhs.uk/Id/ods-organization-code", + "value": "B81001" + } + } + ] + } + }, + { + "fullUrl": "urn:uuid:56166769-c1c4-4d07-afa8-132b5dfca666", + "resource": { + "resourceType": "PractitionerRole", + "id": "56166769-c1c4-4d07-afa8-132b5dfca666", + "identifier": [ + { + "system": "https://fhir.nhs.uk/Id/sds-role-profile-id", + "value": "100102238986" + }, + { + "system": "https://fhir.hl7.org.uk/Id/nhsbsa-spurious-code", + "value": "612345" + } + ], + "practitioner": { + "reference": "urn:uuid:a8c85454-f8cb-498d-9629-78e2cb5fa47a" + }, + "organization": { + "reference": "urn:uuid:3b4b03a5-52ba-4ba6-9b82-70350aa109d8" + }, + "code": [ + { + "coding": [ + { + "system": "https://fhir.nhs.uk/CodeSystem/NHSDigital-SDS-JobRoleCode", + "code": "S8000:G8000:R8000", + "display": "Clinical Practitioner Access Role" + } + ] + } + ], + "telecom": [ + { + "system": "phone", + "value": "01234567890", + "use": "work" + } + ] + } + }, + { + "fullUrl": "urn:uuid:a8c85454-f8cb-498d-9629-78e2cb5fa47a", + "resource": { + "resourceType": "Practitioner", + "id": "a8c85454-f8cb-498d-9629-78e2cb5fa47a", + "identifier": [ + { + "system": "https://fhir.nhs.uk/Id/sds-user-id", + "value": "3415870201" + }, + { + "system": "https://fhir.hl7.org.uk/Id/gmc-number", + "value": "4428981" + } + ], + "name": [ + { + "family": "Edwards", + "given": ["Thomas"], + "prefix": ["DR"] + } + ] + } + }, + { + "fullUrl": "urn:uuid:3b4b03a5-52ba-4ba6-9b82-70350aa109d8", + "resource": { + "resourceType": "Organization", + "id": "3b4b03a5-52ba-4ba6-9b82-70350aa109d8", + "identifier": [ + { + "system": "https://fhir.nhs.uk/Id/ods-organization-code", + "value": "A99968" + } + ], + "name": "SOMERSET BOWEL CANCER SCREENING CENTRE", + "address": [ + { + "use": "work", + "line": ["MUSGROVE PARK HOSPITAL"], + "city": "TAUNTON", + "postalCode": "TA1 5DA" + } + ], + "telecom": [ + { + "system": "phone", + "value": "01823 333444", + "use": "work" + } + ], + "partOf": { + "identifier": { + "system": "https://fhir.nhs.uk/Id/ods-organization-code", + "value": "RBA" + }, + "display": "TAUNTON AND SOMERSET NHS FOUNDATION TRUST" + } + } + }, + { + "fullUrl": "urn:uuid:28828c55-8fa7-42d7-916f-fcf076e0c10e", + "resource": { + "resourceType": "Provenance", + "id": "28828c55-8fa7-42d7-916f-fcf076e0c10e", + "target": [ + { + "reference": "urn:uuid:a54219b8-f741-4c47-b662-e4f8dfa49ab6" + } + ], + "recorded": "2021-02-11T16:35:38+00:00", + "agent": [ + { + "who": { + "reference": "urn:uuid:56166769-c1c4-4d07-afa8-132b5dfca666" + } + } + ], + "signature": [ + { + "type": [ + { + "system": "urn:iso-astm:E1762-95:2013", + "code": "1.2.840.10065.1.12.1.1" + } + ], + "when": "2021-09-03T13:31:02+00:00", + "who": { + "reference": "urn:uuid:56166769-c1c4-4d07-afa8-132b5dfca666" + }, + "data": "PFNpZ25hdHVyZSB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC8wOS94bWxkc2lnIyI+PFNpZ25lZEluZm8+PENhbm9uaWNhbGl6YXRpb25NZXRob2QgQWxnb3JpdGhtPSJodHRwOi8vd3d3LnczLm9yZy8yMDAxLzEwL3htbC1leGMtYzE0biMiPjwvQ2Fub25pY2FsaXphdGlvbk1ldGhvZD48U2lnbmF0dXJlTWV0aG9kIEFsZ29yaXRobT0iaHR0cDovL3d3dy53My5vcmcvMjAwMC8wOS94bWxkc2lnI3JzYS1zaGExIj48L1NpZ25hdHVyZU1ldGhvZD48UmVmZXJlbmNlPjxUcmFuc2Zvcm1zPjxUcmFuc2Zvcm0gQWxnb3JpdGhtPSJodHRwOi8vd3d3LnczLm9yZy8yMDAxLzEwL3htbC1leGMtYzE0biMiPjwvVHJhbnNmb3JtPjwvVHJhbnNmb3Jtcz48RGlnZXN0TWV0aG9kIEFsZ29yaXRobT0iaHR0cDovL3d3dy53My5vcmcvMjAwMC8wOS94bWxkc2lnI3NoYTEiPjwvRGlnZXN0TWV0aG9kPjxEaWdlc3RWYWx1ZT5QbEdkVmYzeE5TNVFOdWdyelZHc0h3UW9Yc1E9PC9EaWdlc3RWYWx1ZT48L1JlZmVyZW5jZT48L1NpZ25lZEluZm8+PFNpZ25hdHVyZVZhbHVlPkl3enBUY1U1RjRnaklGY1RScHp2bGF3dkJoWVhBc1A3TXJUaG5FVm1UdWNxUFkxYVluTzB2VlY0d2RQeDFZK2FjYlBleGZCQmttbmFHUmNiUml6eDJ5YWdDMCtwUlhFSXZaa0tScHRkamVTbzFoODdnMUJIV1F4SG9MVjRQRzUvZm1ycy9LMEF0ZDRlMGNuWkwyRlpneFZXUkNkdEs1djQ5YU5qV1BqY1lCRHE3RC9rdTN0M0UrTVYvZ1VsenZVZnVqcWdrZnRxRHZBRUdCTmViZ2UzblRMdXJodmlYRUJuVjFxR1FZWVBJWjhaME9LUENUZHVDQ3dXZ0x2WmY3bU1vQjN0Nnh1UVNDL3Jybmo1dE5FekZVWDg4N3ZZa0ZGUzg4d2ZiNm8yd2dhdzRYZURhTitpU09sdUtObkhsNXRtaHNla3dTa081aE5wSWk3UDRSRGVTZz09PC9TaWduYXR1cmVWYWx1ZT48S2V5SW5mbz48WDUwOURhdGE+PFg1MDlDZXJ0aWZpY2F0ZT5NSUlFWlRDQ0EwMmdBd0lCQWdJRVlCcno3akFOQmdrcWhraUc5dzBCQVFzRkFEQTJNUXd3Q2dZRFZRUUtFd051YUhNeEN6QUpCZ05WQkFzVEFrTkJNUmt3RndZRFZRUURFeEJPU0ZNZ1NVNVVJRXhsZG1Wc0lESkVNQjRYRFRJeE1EZ3dOVEE1TWpNeE1Gb1hEVEl5TURnd05UQTVOVE14TUZvd1J6RU1NQW9HQTFVRUNoTURibWh6TVE4d0RRWURWUVFMRXdad1pXOXdiR1V4SmpBa0JnTlZCQU1NSFRVMU5UQXpOalkwTkRFd04xOVRiV2wwYUY5S2IyaHVJRk50YVhSb01JSUJJakFOQmdrcWhraUc5dzBCQVFFRkFBT0NBUThBTUlJQkNnS0NBUUVBbkYwblhjdnZsYlV4ejRKVFdVQWZWaXBXQ0VMN0RiclpBRDJvMktsWTVoNGRkc1F6N1Q5RWxrSE5ZbEQxZCtFZmhmU2xHZ21VS2Z2WlFBNGVFbWVCbDVPV085VTdzVnVlOGJuNW91ZjQrOGtublYyd05qNWhydWVWY0lKQlZyQ1ZoWkN0S3hyYm1jSFozOUlRSnJZaVozcXp4L1prREhuUTNhQ21UZFNHMG5hMHVZU2d5Q3JxVUVaNElnc0VrN2dNdGd4eGNWY28raStYc20wcHFIazIzaGtpMmRhclF4Tng2SXJ5UkFYZHVEWW9xSVl0T3lqVEVPVVZIN1JqUXI3TWlBVGYvSUZHWEx3bldqd0lGTWlpT2p0TkxKWHNETW5oVjVST3hCQmp0S1FMY0w1VUl4VXNOKzVWUVRLTUpsS0tNbjBmUThLdnF3SDkxQTZIbGRrTTJRSURBUUFCbzRJQmFEQ0NBV1F3RGdZRFZSMFBBUUgvQkFRREFnWkFNR1VHQTFVZElBRUIvd1JiTUZrd1Z3WUxLb1k2QUlsN1pnQURBZ0F3U0RCR0JnZ3JCZ0VGQlFjQ0FSWTZhSFIwY0hNNkx5OXdhMmt1Ym1oekxuVnJMMk5sY25ScFptbGpZWFJsWDNCdmJHbGphV1Z6TDJOdmJuUmxiblJmWTI5dGJXbDBiV1Z1ZERCWUJnTlZIUjhFVVRCUE1FMmdTNkJKcEVjd1JURU1NQW9HQTFVRUNoTURibWh6TVFzd0NRWURWUVFMRXdKRFFURVpNQmNHQTFVRUF4TVFUa2hUSUVsT1ZDQk1aWFpsYkNBeVJERU5NQXNHQTFVRUF4TUVRMUpNTVRBckJnTlZIUkFFSkRBaWdBOHlNREl4TURnd05UQTVNak14TUZxQkR6SXdNakl3TkRFM01qRTFNekV3V2pBZkJnTlZIU01FR0RBV2dCUjIwQk1LN2pNRGd2WFdQeFpWTE9RaHJDNnJ6akFkQmdOVkhRNEVGZ1FVdTZYc29LTEVrcVp6RWlPdlN6K1RDYytDeGxZd0NRWURWUjBUQkFJd0FEQVpCZ2txaGtpRzluMEhRUUFFRERBS0d3UldPQzR6QXdJRXNEQU5CZ2txaGtpRzl3MEJBUXNGQUFPQ0FRRUFzUENpQ29jRzZqVEVxK0VqQlZXb0NTR05NR1NUU3JXdUREdWdWUXJmTkRnQkRJeitTdE9TanVYN1RwZFhCamNWTEJsYzU4a1dtVitDN1pZWDhsSDRpV1dudG1lVE40T3h4VmRXNWlvV1ljbkYzRkRCYmNXU1BUNzExNXlvWmtpbGF6Z0c1akpWRDNhdU5mMUpqMVZ5Szl3TStoRm54K3hLMUgyVnB6TG5ScUpIMW9OeDJJS1FxY04wekZNSEJKa1VMT0RobDR6TjBKbmR3Z21vRkNTc3RjUUgxRFdwU0RTWFFhOTVtalR5aTNTaGFpV2plVndJaisrQkJmMjdRaUdaRk5pOVI0alhPWUxHc0FXZzRzTGZWMXZmZXhTcVMzeFF2ZnFSbmkyME5Mc1VaRTZPM2pQYkY3dG5hRlFTd0dxVWVNbHZJcDVWcXUzaUVMN1hPSFkyd1E9PTwvWDUwOUNlcnRpZmljYXRlPjwvWDUwOURhdGE+PC9LZXlJbmZvPjwvU2lnbmF0dXJlPg==" + } + ] + } + } + ] +} diff --git a/src/test/resources/examples/full_examples/secondary-care/community/repeat-dispensing/nominated-pharmacy/clinical-practitioner/single-medication-request/1-Task-Request-Release-200_OK.json b/src/test/resources/examples/full_examples/secondary-care/community/repeat-dispensing/nominated-pharmacy/clinical-practitioner/single-medication-request/1-Task-Request-Release-200_OK.json new file mode 100644 index 00000000..88c8f053 --- /dev/null +++ b/src/test/resources/examples/full_examples/secondary-care/community/repeat-dispensing/nominated-pharmacy/clinical-practitioner/single-medication-request/1-Task-Request-Release-200_OK.json @@ -0,0 +1,100 @@ +{ + "resourceType": "Parameters", + "id": "d773b78f-0802-47d2-8364-19990a4f051e", + "parameter": [ + { + "name": "owner", + "resource": { + "resourceType": "Organization", + "id": "organization", + "identifier": [ + { + "system": "https://fhir.nhs.uk/Id/ods-organization-code", + "value": "VNE51" + } + ], + "address": [ + { + "city": "West Yorkshire", + "use": "work", + "line": [ + "17 Austhorpe Road", + "Crossgates", + "Leeds" + ], + "postalCode": "LS15 8BA" + } + ], + "active": true, + "type": [ + { + "coding": [ + { + "system": "https://fhir.nhs.uk/CodeSystem/organisation-role", + "code": "182", + "display": "PHARMACY" + } + ] + } + ], + "name": "The Simple Pharmacy", + "telecom": [ + { + "system": "phone", + "use": "work", + "value": "0113 3180277" + } + ] + } + }, + { + "name": "status", + "valueCode": "accepted" + }, + { + "name": "agent", + "resource": { + "resourceType": "PractitionerRole", + "id": "16708936-6397-4e03-b84f-4aaa790633e0", + "identifier": [ + { + "system": "https://fhir.nhs.uk/Id/sds-role-profile-id", + "value": "555086415105" + } + ], + "practitioner": { + "identifier": { + "system": "https://fhir.nhs.uk/Id/sds-user-id", + "value": "3415870201" + }, + "display": "Jackie Clark" + }, + "code": [ + { + "coding": [ + { + "system": "https://fhir.nhs.uk/CodeSystem/NHSDigital-SDS-JobRoleCode", + "code": "S8000:G8000:R8000", + "display": "Clinical Practitioner Access Role" + } + ] + } + ], + "telecom": [ + { + "system": "phone", + "value": "02380798431", + "use": "work" + } + ] + } + }, + { + "name": "group-identifier", + "valueIdentifier": { + "system": "https://fhir.nhs.uk/Id/prescription-order-number", + "value": "B407F7-A99968-4DB2AU" + } + } + ] +} diff --git a/src/test/resources/examples/full_examples/secondary-care/homecare/acute/nominated-pharmacy/clinical-practitioner/1-Claim-Request-200_OK.json b/src/test/resources/examples/full_examples/secondary-care/homecare/acute/nominated-pharmacy/clinical-practitioner/1-Claim-Request-200_OK.json new file mode 100644 index 00000000..5ee08915 --- /dev/null +++ b/src/test/resources/examples/full_examples/secondary-care/homecare/acute/nominated-pharmacy/clinical-practitioner/1-Claim-Request-200_OK.json @@ -0,0 +1,412 @@ +{ + "resourceType": "Claim", + "id": "e8e75676-9d30-45f8-8b09-696818e7f4ca", + "contained": [ + { + "resourceType": "PractitionerRole", + "id": "performer", + "identifier": [ + { + "system": "https://fhir.nhs.uk/Id/sds-role-profile-id", + "value": "555086415105" + } + ], + "practitioner": { + "identifier": { + "system": "https://fhir.nhs.uk/Id/sds-user-id", + "value": "3415870201" + }, + "display": "Mr Peter Potion" + }, + "organization": { + "reference": "#organization" + }, + "code": [ + { + "coding": [ + { + "system": "https://fhir.nhs.uk/CodeSystem/NHSDigital-SDS-JobRoleCode", + "code": "S8000:G8000:R8000", + "display": "Clinical Practitioner Access Role" + } + ] + } + ], + "telecom": [ + { + "system": "phone", + "use": "work", + "value": "0532567890" + } + ] + }, + { + "resourceType": "Organization", + "id": "organization", + "identifier": [ + { + "system": "https://fhir.nhs.uk/Id/ods-organization-code", + "value": "VNE51" + } + ], + "address": [ + { + "city": "West Yorkshire", + "use": "work", + "line": [ + "17 Austhorpe Road", + "Crossgates", + "Leeds" + ], + "postalCode": "LS15 8BA" + } + ], + "active": true, + "type": [ + { + "coding": [ + { + "system": "https://fhir.nhs.uk/CodeSystem/organisation-role", + "code": "182", + "display": "PHARMACY" + } + ] + } + ], + "name": "The Simple Pharmacy", + "telecom": [ + { + "system": "phone", + "use": "work", + "value": "0113 3180277" + } + ] + } + ], + "extension": [ + { + "url": "https://fhir.nhs.uk/StructureDefinition/Extension-Provenance-agent", + "valueReference": { + "identifier": { + "system": "https://fhir.nhs.uk/Id/sds-role-profile-id", + "value": "555253518103" + }, + "display": "Mr User Chris T" + } + } + ], + "identifier": [ + { + "system": "https://tools.ietf.org/html/rfc4122", + "value": "a2c05ec6-4292-4568-8200-bfac8439da04" + } + ], + "status": "active", + "type": { + "coding": [ + { + "system": "http://terminology.hl7.org/CodeSystem/claim-type", + "code": "pharmacy", + "display": "Pharmacy" + } + ] + }, + "use": "claim", + "patient": { + "identifier": { + "system": "https://fhir.nhs.uk/Id/nhs-number", + "value": "9449304106" + } + }, + "created": "2021-09-23T13:09:56+00:00", + "provider": { + "reference": "#performer" + }, + "priority": { + "coding": [ + { + "system": "http://terminology.hl7.org/CodeSystem/processpriority", + "code": "normal" + } + ] + }, + "prescription": { + "extension": [ + { + "url": "https://fhir.nhs.uk/StructureDefinition/Extension-DM-GroupIdentifier", + "extension": [ + { + "url": "shortForm", + "valueIdentifier": { + "system": "https://fhir.nhs.uk/Id/prescription-order-number", + "value": "A0548B-A99968-451485" + } + }, + { + "url": "UUID", + "valueIdentifier": { + "system": "https://fhir.nhs.uk/Id/prescription", + "value": "a5b9dc81-ccf4-4dab-b887-3d88e557febb" + } + } + ] + } + ] + }, + "payee": { + "type": { + "coding": [ + { + "system": "http://terminology.hl7.org/CodeSystem/payeetype", + "code": "provider", + "display": "Provider" + } + ] + }, + "party": { + "reference": "#organization" + } + }, + "insurance": [ + { + "sequence": 1, + "focal": true, + "coverage": { + "identifier": { + "system": "https://fhir.nhs.uk/Id/ods-organization-code", + "value": "T1450" + }, + "display": "NHS BUSINESS SERVICES AUTHORITY" + } + } + ], + "item": [ + { + "sequence": 1, + "extension": [ + { + "url": "https://fhir.nhs.uk/StructureDefinition/Extension-EPS-TaskBusinessStatus", + "valueCoding": { + "system": "https://fhir.nhs.uk/CodeSystem/EPS-task-business-status", + "code": "0006", + "display": "Dispensed" + } + }, + { + "url": "https://fhir.nhs.uk/StructureDefinition/Extension-DM-SuppliedItemIdentifier", + "valueIdentifier": { + "value": "This extension shouldn't be here - ask Kevin to remove from the profile" + } + } + ], + "productOrService": { + "coding": [ + { + "system": "http://snomed.info/sct", + "code": "16076005", + "display": "Prescription" + } + ] + }, + "modifier": [ + { + "text": "This modifier shouldn't be here - ask Kevin to remove from the profile", + "coding": [ + { + "system": "https://fhir.nhs.uk/CodeSystem/medicationdispense-type", + "code": "0001", + "display": "Item fully dispensed" + } + ] + } + ], + "programCode": [ + { + "coding": [ + { + "system": "https://fhir.nhs.uk/CodeSystem/prescription-charge-exemption", + "code": "0001", + "display": "Patient has paid appropriate charges" + } + ] + } + ], + "detail": [ + { + "extension": [ + { + "url": "https://fhir.nhs.uk/StructureDefinition/Extension-ClaimSequenceIdentifier", + "valueIdentifier": { + "system": "https://fhir.nhs.uk/Id/claim-sequence-identifier", + "value": "a54219b8-f741-4c47-b662-e4f8dfa49ab6" + } + }, + { + "url": "https://fhir.nhs.uk/StructureDefinition/Extension-ClaimMedicationRequestReference", + "valueReference": { + "identifier": { + "system": "https://fhir.nhs.uk/Id/prescription-order-item-number", + "value": "a54219b8-f741-4c47-b662-e4f8dfa49ab6" + } + } + } + ], + "sequence": 1, + "productOrService": { + "coding": [ + { + "system": "http://snomed.info/sct", + "code": "13892511000001100", + "display": "Amlodipine 5mg/5ml oral solution" + } + ] + }, + "modifier": [ + { + "coding": [ + { + "system": "https://fhir.nhs.uk/CodeSystem/medicationdispense-type", + "code": "0001", + "display": "Item fully dispensed" + } + ] + } + ], + "quantity": { + "value": 5, + "unit": "ml", + "system": "http://snomed.info/sct", + "code": "385024007" + }, + "programCode": [ + { + "coding": [ + { + "system": "https://fhir.nhs.uk/CodeSystem/medicationdispense-endorsement", + "code": "NDEC", + "display": "No Dispenser Endorsement Code" + } + ] + }, + { + "coding": [ + { + "system": "https://fhir.nhs.uk/CodeSystem/DM-prescription-charge", + "code": "not-paid", + "display": "Not Paid" + } + ] + } + ], + "subDetail": [ + { + "sequence": 1, + "productOrService": { + "coding": [ + { + "system": "http://snomed.info/sct", + "code": "13892511000001100", + "display": "Amlodipine 5mg/5ml oral solution" + } + ] + }, + "quantity": { + "value": 5, + "unit": "ml", + "system": "http://snomed.info/sct", + "code": "385024007" + } + } + ] + }, + { + "extension": [ + { + "url": "https://fhir.nhs.uk/StructureDefinition/Extension-ClaimSequenceIdentifier", + "valueIdentifier": { + "system": "https://fhir.nhs.uk/Id/claim-sequence-identifier", + "value": "a54219b8-f741-4c47-b662-e4f8dfa49ab7" + } + }, + { + "url": "https://fhir.nhs.uk/StructureDefinition/Extension-ClaimMedicationRequestReference", + "valueReference": { + "identifier": { + "system": "https://fhir.nhs.uk/Id/prescription-order-item-number", + "value": "a54219b8-f741-4c47-b662-e4f8dfa49ab7" + } + } + } + ], + "sequence": 1, + "productOrService": { + "coding": [ + { + "system": "http://snomed.info/sct", + "code": "317972000", + "display": "Furosemide 40mg tablets" + } + ] + }, + "modifier": [ + { + "coding": [ + { + "system": "https://fhir.nhs.uk/CodeSystem/medicationdispense-type", + "code": "0001", + "display": "Item fully dispensed" + } + ] + } + ], + "quantity": { + "value": 28, + "unit": "tablet", + "system": "http://snomed.info/sct", + "code": "428673006" + }, + "programCode": [ + { + "coding": [ + { + "system": "https://fhir.nhs.uk/CodeSystem/medicationdispense-endorsement", + "code": "NDEC", + "display": "No Dispenser Endorsement Code" + } + ] + }, + { + "coding": [ + { + "system": "https://fhir.nhs.uk/CodeSystem/DM-prescription-charge", + "code": "not-paid", + "display": "Not Paid" + } + ] + } + ], + "subDetail": [ + { + "sequence": 1, + "productOrService": { + "coding": [ + { + "system": "http://snomed.info/sct", + "code": "317972000", + "display": "Furosemide 40mg tablets" + } + ] + }, + "quantity": { + "value": 28, + "unit": "tablet", + "system": "http://snomed.info/sct", + "code": "428673006" + } + } + ] + } + ] + } + ] +} diff --git a/src/test/resources/examples/full_examples/secondary-care/homecare/acute/nominated-pharmacy/clinical-practitioner/1-Prepare-Request-200_OK.json b/src/test/resources/examples/full_examples/secondary-care/homecare/acute/nominated-pharmacy/clinical-practitioner/1-Prepare-Request-200_OK.json new file mode 100644 index 00000000..6f415b24 --- /dev/null +++ b/src/test/resources/examples/full_examples/secondary-care/homecare/acute/nominated-pharmacy/clinical-practitioner/1-Prepare-Request-200_OK.json @@ -0,0 +1,527 @@ +{ + "resourceType": "Bundle", + "id": "aef77afb-7e3c-427a-8657-2c427f71a272", + "identifier": { + "system": "https://tools.ietf.org/html/rfc4122", + "value": "ea66ee9d-a981-432f-8c27-6907cbd99219" + }, + "type": "message", + "entry": [ + { + "fullUrl": "urn:uuid:aef77afb-7e3c-427a-8657-2c427f71a272", + "resource": { + "resourceType": "MessageHeader", + "id": "3599c0e9-9292-413e-9270-9a1ef1ead99c", + "eventCoding": { + "system": "https://fhir.nhs.uk/CodeSystem/message-event", + "code": "prescription-order", + "display": "Prescription Order" + }, + "sender": { + "identifier": { + "system": "https://fhir.nhs.uk/Id/ods-organization-code", + "value": "RBA" + }, + "reference": "urn:uuid:56166769-c1c4-4d07-afa8-132b5dfca666", + "display": "RAZIA|ALI" + }, + "source": { + "endpoint": "https://directory.spineservices.nhs.uk/STU3/Organization/RBA" + }, + "destination": [ + { + "endpoint": "https://sandbox.api.service.nhs.uk/electronic-prescriptions/$post-message", + "receiver": { + "identifier": { + "system": "https://fhir.nhs.uk/Id/ods-organization-code", + "value": "X26" + } + } + } + ], + "focus": [ + { + "reference": "urn:uuid:78d3c2eb-009e-4ec8-a358-b042954aa9b2" + }, + { + "reference": "urn:uuid:a54219b8-f741-4c47-b662-e4f8dfa49ab6" + }, + { + "reference": "urn:uuid:51793ac0-112f-46c7-a891-9af8cefb206e" + } + ] + } + }, + { + "fullUrl": "urn:uuid:a54219b8-f741-4c47-b662-e4f8dfa49ab6", + "resource": { + "resourceType": "MedicationRequest", + "id": "a54219b8-f741-4c47-b662-e4f8dfa49ab6", + "extension": [ + { + "url": "https://fhir.nhs.uk/StructureDefinition/Extension-DM-PrescriptionType", + "valueCoding": { + "system": "https://fhir.nhs.uk/CodeSystem/prescription-type", + "code": "1201", + "display": "Outpatient Homecare Prescriber - Medical Prescriber" + } + } + ], + "identifier": [ + { + "system": "https://fhir.nhs.uk/Id/prescription-order-item-number", + "value": "a54219b8-f741-4c47-b662-e4f8dfa49ab6" + } + ], + "status": "active", + "intent": "order", + "category": [ + { + "coding": [ + { + "system": "http://terminology.hl7.org/CodeSystem/medicationrequest-category", + "code": "outpatient", + "display": "Outpatient" + } + ] + } + ], + "medicationCodeableConcept": { + "coding": [ + { + "system": "http://snomed.info/sct", + "code": "13892511000001100", + "display": "Amlodipine 5mg/5ml oral solution" + } + ] + }, + "subject": { + "reference": "urn:uuid:78d3c2eb-009e-4ec8-a358-b042954aa9b2" + }, + "requester": { + "reference": "urn:uuid:56166769-c1c4-4d07-afa8-132b5dfca666" + }, + "groupIdentifier": { + "extension": [ + { + "url": "https://fhir.nhs.uk/StructureDefinition/Extension-DM-PrescriptionId", + "valueIdentifier": { + "system": "https://fhir.nhs.uk/Id/prescription", + "value": "a5b9dc81-ccf4-4dab-b887-3d88e557febb" + } + } + ], + "system": "https://fhir.nhs.uk/Id/prescription-order-number", + "value": "A0548B-A99968-451485" + }, + "courseOfTherapyType": { + "coding": [ + { + "system": "http://terminology.hl7.org/CodeSystem/medicationrequest-course-of-therapy", + "code": "acute", + "display": "Short course (acute) therapy" + } + ] + }, + "dosageInstruction": [ + { + "text": "5 milligram - 5 times a day - Oral - for 10 days", + "timing": { + "repeat": { + "frequency": 5, + "period": 1, + "periodUnit": "d", + "boundsDuration": { + "value": 10, + "unit": "day", + "system": "http://unitsofmeasure.org", + "code": "d" + } + } + }, + "route": { + "coding": [ + { + "system": "http://snomed.info/sct", + "code": "26643006", + "display": "Oral" + } + ] + }, + "doseAndRate": [ + { + "doseQuantity": { + "value": 5, + "unit": "milligram", + "system": "http://unitsofmeasure.org", + "code": "mg" + } + } + ] + } + ], + "dispenseRequest": { + "extension": [ + { + "url": "https://fhir.nhs.uk/StructureDefinition/Extension-DM-PerformerSiteType", + "valueCoding": { + "system": "https://fhir.nhs.uk/CodeSystem/dispensing-site-preference", + "code": "P1" + } + } + ], + "performer": { + "identifier": { + "system": "https://fhir.nhs.uk/Id/ods-organization-code", + "value": "VNCEL" + } + }, + "quantity": { + "value": 5, + "unit": "ml", + "system": "http://snomed.info/sct", + "code": "385024007" + } + }, + "substitution": { + "allowedBoolean": false + } + } + }, + { + "fullUrl": "urn:uuid:a54219b8-f741-4c47-b662-e4f8dfa49ab7", + "resource": { + "resourceType": "MedicationRequest", + "id": "a54219b8-f741-4c47-b662-e4f8dfa49ab7", + "extension": [ + { + "url": "https://fhir.nhs.uk/StructureDefinition/Extension-DM-PrescriptionType", + "valueCoding": { + "system": "https://fhir.nhs.uk/CodeSystem/prescription-type", + "code": "1201", + "display": "Outpatient Homecare Prescriber - Medical Prescriber" + } + } + ], + "identifier": [ + { + "system": "https://fhir.nhs.uk/Id/prescription-order-item-number", + "value": "a54219b8-f741-4c47-b662-e4f8dfa49ab7" + } + ], + "status": "active", + "intent": "order", + "category": [ + { + "coding": [ + { + "system": "http://terminology.hl7.org/CodeSystem/medicationrequest-category", + "code": "outpatient", + "display": "Outpatient" + } + ] + } + ], + "medicationCodeableConcept": { + "coding": [ + { + "system": "http://snomed.info/sct", + "code": "317972000", + "display": "Furosemide 40mg tablets" + } + ] + }, + "subject": { + "reference": "urn:uuid:78d3c2eb-009e-4ec8-a358-b042954aa9b2" + }, + "requester": { + "reference": "urn:uuid:56166769-c1c4-4d07-afa8-132b5dfca666" + }, + "groupIdentifier": { + "extension": [ + { + "url": "https://fhir.nhs.uk/StructureDefinition/Extension-DM-PrescriptionId", + "valueIdentifier": { + "system": "https://fhir.nhs.uk/Id/prescription", + "value": "a5b9dc81-ccf4-4dab-b887-3d88e557febb" + } + } + ], + "system": "https://fhir.nhs.uk/Id/prescription-order-number", + "value": "A0548B-A99968-451485" + }, + "courseOfTherapyType": { + "coding": [ + { + "system": "http://terminology.hl7.org/CodeSystem/medicationrequest-course-of-therapy", + "code": "acute", + "display": "Short course (acute) therapy" + } + ] + }, + "dosageInstruction": [ + { + "text": "5 times a day - Oral - for 10 days", + "timing": { + "repeat": { + "frequency": 5, + "period": 1, + "periodUnit": "d", + "boundsDuration": { + "value": 10, + "unit": "day", + "system": "http://unitsofmeasure.org", + "code": "d" + } + } + }, + "route": { + "coding": [ + { + "system": "http://snomed.info/sct", + "code": "26643006", + "display": "Oral" + } + ] + } + } + ], + "dispenseRequest": { + "extension": [ + { + "url": "https://fhir.nhs.uk/StructureDefinition/Extension-DM-PerformerSiteType", + "valueCoding": { + "system": "https://fhir.nhs.uk/CodeSystem/dispensing-site-preference", + "code": "P1" + } + } + ], + "performer": { + "identifier": { + "system": "https://fhir.nhs.uk/Id/ods-organization-code", + "value": "VNCEL" + } + }, + "quantity": { + "value": 28, + "unit": "tablet", + "system": "http://snomed.info/sct", + "code": "428673006" + } + }, + "substitution": { + "allowedBoolean": false + } + } + }, + { + "fullUrl": "urn:uuid:78d3c2eb-009e-4ec8-a358-b042954aa9b2", + "resource": { + "resourceType": "Patient", + "identifier": [ + { + "system": "https://fhir.nhs.uk/Id/nhs-number", + "value": "9449304106" + } + ], + "name": [ + { + "use": "usual", + "family": "LEGASSICK", + "given": ["NICODEMUS", "ZACKERY"], + "prefix": ["MR"] + } + ], + "gender": "male", + "birthDate": "1994-03-19", + "address": [ + { + "use": "home", + "line": ["11 LITTLEHEATH LANE", "COBHAM", "SURREY"], + "postalCode": "KT11 2QG" + } + ], + "generalPractitioner": [ + { + "identifier": { + "system": "https://fhir.nhs.uk/Id/ods-organization-code", + "value": "B81001" + } + } + ] + } + }, + { + "fullUrl": "urn:uuid:56166769-c1c4-4d07-afa8-132b5dfca666", + "resource": { + "resourceType": "PractitionerRole", + "id": "56166769-c1c4-4d07-afa8-132b5dfca666", + "identifier": [ + { + "system": "https://fhir.nhs.uk/Id/sds-role-profile-id", + "value": "100102238986" + } + ], + "practitioner": { + "reference": "urn:uuid:a8c85454-f8cb-498d-9629-78e2cb5fa47a" + }, + "organization": { + "reference": "urn:uuid:3b4b03a5-52ba-4ba6-9b82-70350aa109d8" + }, + "code": [ + { + "coding": [ + { + "system": "https://fhir.nhs.uk/CodeSystem/NHSDigital-SDS-JobRoleCode", + "code": "S8000:G8000:R8000", + "display": "Clinical Practitioner Access Role" + } + ] + } + ], + "telecom": [ + { + "system": "phone", + "value": "01234567890", + "use": "work" + } + ] + } + }, + { + "fullUrl": "urn:uuid:a8c85454-f8cb-498d-9629-78e2cb5fa47a", + "resource": { + "resourceType": "Practitioner", + "id": "a8c85454-f8cb-498d-9629-78e2cb5fa47a", + "identifier": [ + { + "system": "https://fhir.nhs.uk/Id/sds-user-id", + "value": "7020134158" + }, + { + "system": "https://fhir.hl7.org.uk/Id/gmc-number", + "value": "G9999999" + }, + { + "system": "https://fhir.hl7.org.uk/Id/din-number", + "value": "70201123456" + } + ], + "name": [ + { + "family": "Edwards", + "given": ["Thomas"], + "prefix": ["DR"] + } + ] + } + }, + { + "fullUrl": "urn:uuid:3b4b03a5-52ba-4ba6-9b82-70350aa109d8", + "resource": { + "resourceType": "Organization", + "id": "3b4b03a5-52ba-4ba6-9b82-70350aa109d8", + "identifier": [ + { + "system": "https://fhir.nhs.uk/Id/ods-organization-code", + "value": "A99968" + } + ], + "name": "SOMERSET BOWEL CANCER SCREENING CENTRE", + "address": [ + { + "use": "work", + "line": ["MUSGROVE PARK HOSPITAL"], + "city": "TAUNTON", + "postalCode": "TA1 5DA" + } + ], + "telecom": [ + { + "system": "phone", + "value": "01823 333444", + "use": "work" + } + ], + "partOf": { + "identifier": { + "system": "https://fhir.nhs.uk/Id/ods-organization-code", + "value": "RBA" + }, + "display": "TAUNTON AND SOMERSET NHS FOUNDATION TRUST" + } + } + }, + { + "fullUrl": "urn:uuid:51793ac0-112f-46c7-a891-9af8cefb206e", + "resource": { + "resourceType": "CommunicationRequest", + "status": "unknown", + "subject": { + "reference": "urn:uuid:78d3c2eb-009e-4ec8-a358-b042954aa9b2" + }, + "payload": [ + { + "contentReference": { + "reference": "urn:uuid:d0f003a0-8763-43d5-a264-ce52a38901c9", + "display": "List of Repeat Medications for re-ordering" + } + } + ], + "requester": { + "type": "Organization", + "identifier": { + "system": "https://fhir.nhs.uk/Id/ods-organization-code", + "value": "RBA" + }, + "display": "TAUNTON AND SOMERSET NHS FOUNDATION TRUST" + }, + "recipient": [ + { + "type": "Patient", + "identifier": { + "system": "https://fhir.nhs.uk/Id/nhs-number", + "value": "9453740519" + } + } + ] + } + }, + { + "fullUrl": "urn:uuid:d0f003a0-8763-43d5-a264-ce52a38901c9", + "resource": { + "resourceType": "List", + "status": "current", + "mode": "snapshot", + "code": { + "text": "Repeat Medications" + }, + "subject": { + "reference": "urn:uuid:78d3c2eb-009e-4ec8-a358-b042954aa9b2" + }, + "entry": [ + { + "item": { + "display": "Metformin 500mg tablets" + } + }, + { + "item": { + "display": "Aspirin 75mg dispersible tablets" + } + }, + { + "item": { + "display": "Simvastatin 40mg tablets" + } + }, + { + "item": { + "display": "Chloramphenicol 0.5% eye drops" + } + } + ] + } + } + ] +} diff --git a/src/test/resources/examples/full_examples/secondary-care/homecare/acute/nominated-pharmacy/clinical-practitioner/1-Prepare-Response-200_OK.json b/src/test/resources/examples/full_examples/secondary-care/homecare/acute/nominated-pharmacy/clinical-practitioner/1-Prepare-Response-200_OK.json new file mode 100644 index 00000000..430e9bcb --- /dev/null +++ b/src/test/resources/examples/full_examples/secondary-care/homecare/acute/nominated-pharmacy/clinical-practitioner/1-Prepare-Response-200_OK.json @@ -0,0 +1,17 @@ +{ + "resourceType": "Parameters", + "parameter": [ + { + "name": "digest", + "valueString": "PFNpZ25lZEluZm8geG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvMDkveG1sZHNpZyMiPjxDYW5vbmljYWxpemF0aW9uTWV0aG9kIEFsZ29yaXRobT0iaHR0cDovL3d3dy53My5vcmcvMjAwMS8xMC94bWwtZXhjLWMxNG4jIj48L0Nhbm9uaWNhbGl6YXRpb25NZXRob2Q+PFNpZ25hdHVyZU1ldGhvZCBBbGdvcml0aG09Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvMDkveG1sZHNpZyNyc2Etc2hhMSI+PC9TaWduYXR1cmVNZXRob2Q+PFJlZmVyZW5jZT48VHJhbnNmb3Jtcz48VHJhbnNmb3JtIEFsZ29yaXRobT0iaHR0cDovL3d3dy53My5vcmcvMjAwMS8xMC94bWwtZXhjLWMxNG4jIj48L1RyYW5zZm9ybT48L1RyYW5zZm9ybXM+PERpZ2VzdE1ldGhvZCBBbGdvcml0aG09Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvMDkveG1sZHNpZyNzaGExIj48L0RpZ2VzdE1ldGhvZD48RGlnZXN0VmFsdWU+SFkrMTNqZUt6Sm1nMlpHMjA2VDhteG1DMk1ZPTwvRGlnZXN0VmFsdWU+PC9SZWZlcmVuY2U+PC9TaWduZWRJbmZvPg==" + }, + { + "name": "timestamp", + "valueString": "2022-10-25T10:24:34+00:00" + }, + { + "name": "algorithm", + "valueString": "RS1" + } + ] +} diff --git a/src/test/resources/examples/full_examples/secondary-care/homecare/acute/nominated-pharmacy/clinical-practitioner/1-Process-Request-Dispense-200_OK.json b/src/test/resources/examples/full_examples/secondary-care/homecare/acute/nominated-pharmacy/clinical-practitioner/1-Process-Request-Dispense-200_OK.json new file mode 100644 index 00000000..a54cf0c9 --- /dev/null +++ b/src/test/resources/examples/full_examples/secondary-care/homecare/acute/nominated-pharmacy/clinical-practitioner/1-Process-Request-Dispense-200_OK.json @@ -0,0 +1,842 @@ +{ + "resourceType": "Bundle", + "id": "166f1103-3r67-73dw-7364-s395c4itv284", + "identifier": { + "system": "https://tools.ietf.org/html/rfc4122", + "value": "a22ad970-417c-4b0d-9c18-19a54761b478" + }, + "type": "message", + "entry": [ + { + "fullUrl": "urn:uuid:be807dac-9dcf-45cf-91d6-70d9d58dcf34", + "resource": { + "resourceType": "MessageHeader", + "eventCoding": { + "system": "https://fhir.nhs.uk/CodeSystem/message-event", + "code": "dispense-notification", + "display": "Dispense Notification" + }, + "destination": [ + { + "endpoint": "https://sandbox.api.service.nhs.uk/electronic-prescriptions/$post-message", + "receiver": { + "identifier": { + "system": "https://fhir.nhs.uk/Id/ods-organization-code", + "value": "T1450" + }, + "display": "NHS BUSINESS SERVICES AUTHORITY" + } + } + ], + "sender": { + "identifier": { + "system": "https://fhir.nhs.uk/Id/ods-organization-code", + "value": "VNCEL" + }, + "display": "YORKSHIRE HOMECARE LIMITED" + }, + "source": { + "name": "YORKSHIRE HOMECARE LIMITED", + "endpoint": "https://directory.spineservices.nhs.uk/STU3/Organization/VNCEL" + }, + "reason": { + "coding": [ + { + "system": "https://fhir.nhs.uk/CodeSystem/message-reason-prescription", + "code": "notification", + "display": "Notification" + } + ] + }, + "response": { + "identifier": "999f9999-9999-9999-9ff9-f9fff9999999", + "code": "ok" + }, + "focus": [ + { + "reference": "urn:uuid:4509b70d-d8b8-ea03-1105-64557cb54a29" + } + ] + } + }, + { + "fullUrl": "urn:uuid:4509b70d-d8b8-ea03-1105-64557cb54a29", + "resource": { + "resourceType": "MedicationDispense", + "contained": [ + { + "resourceType": "PractitionerRole", + "id": "performer", + "identifier": [ + { + "system": "https://fhir.nhs.uk/Id/sds-role-profile-id", + "value": "555086415105" + } + ], + "practitioner": { + "identifier": { + "system": "https://fhir.nhs.uk/Id/sds-user-id", + "value": "3415870201" + }, + "display": "Jackie Clark" + }, + "organization": { + "reference": "urn:uuid:2bf9f37c-d88b-4f86-ad5f-373c1416e04b" + }, + "code": [ + { + "coding": [ + { + "system": "https://fhir.nhs.uk/CodeSystem/NHSDigital-SDS-JobRoleCode", + "code": "S8000:G8000:R8000", + "display": "Clinical Practitioner Access Role" + } + ] + } + ], + "telecom": [ + { + "system": "phone", + "use": "work", + "value": "02380798431" + } + ] + }, + { + "resourceType": "MedicationRequest", + "id": "m1", + "extension": [ + { + "url": "https://fhir.nhs.uk/StructureDefinition/Extension-DM-PrescriptionType", + "valueCoding": { + "system": "https://fhir.nhs.uk/CodeSystem/prescription-type", + "code": "1201", + "display": "Outpatient Homecare Prescriber - Medical Prescriber" + } + } + ], + "identifier": [ + { + "system": "https://fhir.nhs.uk/Id/prescription-order-item-number", + "value": "a54219b8-f741-4c47-b662-e4f8dfa49ab6" + } + ], + "status": "active", + "intent": "order", + "category": [ + { + "coding": [ + { + "system": "http://terminology.hl7.org/CodeSystem/medicationrequest-category", + "code": "outpatient", + "display": "Outpatient" + } + ] + } + ], + "medicationCodeableConcept": { + "coding": [ + { + "system": "http://snomed.info/sct", + "code": "13892511000001100", + "display": "Amlodipine 5mg/5ml oral solution" + } + ] + }, + "subject": { + "reference": "urn:uuid:78d3c2eb-009e-4ec8-a358-b042954aa9b2" + }, + "authoredOn": "2021-05-07T14:47:29+00:00", + "requester": { + "reference": "urn:uuid:56166769-c1c4-4d07-afa8-132b5dfca666" + }, + "groupIdentifier": { + "extension": [ + { + "url": "https://fhir.nhs.uk/StructureDefinition/Extension-DM-PrescriptionId", + "valueIdentifier": { + "system": "https://fhir.nhs.uk/Id/prescription", + "value": "a5b9dc81-ccf4-4dab-b887-3d88e557febb" + } + } + ], + "system": "https://fhir.nhs.uk/Id/prescription-order-number", + "value": "A0548B-A99968-451485" + }, + "courseOfTherapyType": { + "coding": [ + { + "system": "http://terminology.hl7.org/CodeSystem/medicationrequest-course-of-therapy", + "code": "acute", + "display": "Short course (acute) therapy" + } + ] + }, + "dosageInstruction": [ + { + "text": "Once daily", + "timing": { + "repeat": { + "frequency": 5, + "period": 1, + "periodUnit": "d", + "boundsDuration": { + "value": 10, + "unit": "day", + "system": "http://unitsofmeasure.org", + "code": "d" + } + } + }, + "route": { + "coding": [ + { + "system": "http://snomed.info/sct", + "code": "26643006", + "display": "Oral" + } + ] + }, + "doseAndRate": [ + { + "doseQuantity": { + "value": 5, + "unit": "milligram", + "system": "http://unitsofmeasure.org", + "code": "mg" + } + } + ] + } + ], + "dispenseRequest": { + "extension": [ + { + "url": "https://fhir.nhs.uk/StructureDefinition/Extension-DM-PerformerSiteType", + "valueCoding": { + "system": "https://fhir.nhs.uk/CodeSystem/dispensing-site-preference", + "code": "P1" + } + } + ], + "performer": { + "identifier": { + "system": "https://fhir.nhs.uk/Id/ods-organization-code", + "value": "VNCEL" + } + }, + "quantity": { + "value": 5, + "unit": "ml", + "system": "http://snomed.info/sct", + "code": "385024007" + } + }, + "substitution": { + "allowedBoolean": false + } + } + ], + "extension": [ + { + "url": "https://fhir.nhs.uk/StructureDefinition/Extension-EPS-TaskBusinessStatus", + "valueCoding": { + "system": "https://fhir.nhs.uk/CodeSystem/EPS-task-business-status", + "code": "0006", + "display": "Dispensed" + } + } + ], + "identifier": [ + { + "system": "https://fhir.nhs.uk/Id/prescription-dispense-item-number", + "value": "a54219b8-f741-4c47-b662-e4f8dfa49ab6" + } + ], + "status": "completed", + "medicationCodeableConcept": { + "coding": [ + { + "system": "http://snomed.info/sct", + "code": "13892511000001100", + "display": "Amlodipine 5mg/5ml oral solution" + } + ] + }, + "subject": { + "type": "Patient", + "identifier": { + "system": "https://fhir.nhs.uk/Id/nhs-number", + "value": "9449304106" + }, + "display": "MR ZACKERY NICODEMUS LEGASSICK" + }, + "performer": [ + { + "actor": { + "reference": "#performer" + } + } + ], + "authorizingPrescription": [ + { + "reference": "#m1" + } + ], + "type": { + "coding": [ + { + "system": "https://fhir.nhs.uk/CodeSystem/medicationdispense-type", + "code": "0001", + "display": "Item fully dispensed" + } + ] + }, + "quantity": { + "value": 5, + "unit": "ml", + "system": "http://snomed.info/sct", + "code": "385024007" + }, + "whenHandedOver": "2021-05-07T14:47:29+00:00", + "dosageInstruction": [ + { + "text": "80mg at 8am and 40mg at 2pm for 5 days. Then 40mg tablet - oral- daily at 8am" + } + ] + } + }, + { + "fullUrl": "urn:uuid:4509b70d-d8b8-ea03-1105-64557cb54a28", + "resource": { + "resourceType": "MedicationDispense", + "contained": [ + { + "resourceType": "PractitionerRole", + "id": "performer", + "identifier": [ + { + "system": "https://fhir.nhs.uk/Id/sds-role-profile-id", + "value": "555086415105" + } + ], + "practitioner": { + "identifier": { + "system": "https://fhir.nhs.uk/Id/sds-user-id", + "value": "3415870201" + }, + "display": "Jackie Clark" + }, + "organization": { + "reference": "urn:uuid:2bf9f37c-d88b-4f86-ad5f-373c1416e04b" + }, + "code": [ + { + "coding": [ + { + "system": "https://fhir.nhs.uk/CodeSystem/NHSDigital-SDS-JobRoleCode", + "code": "S8000:G8000:R8000", + "display": "Clinical Practitioner Access Role" + } + ] + } + ], + "telecom": [ + { + "system": "phone", + "use": "work", + "value": "02380798431" + } + ] + }, + { + "resourceType": "MedicationRequest", + "id": "m1", + "extension": [ + { + "url": "https://fhir.nhs.uk/StructureDefinition/Extension-DM-PrescriptionType", + "valueCoding": { + "system": "https://fhir.nhs.uk/CodeSystem/prescription-type", + "code": "1201", + "display": "Outpatient Homecare Prescriber - Medical Prescriber" + } + } + ], + "identifier": [ + { + "system": "https://fhir.nhs.uk/Id/prescription-order-item-number", + "value": "a54219b8-f741-4c47-b662-e4f8dfa49ab7" + } + ], + "status": "active", + "intent": "order", + "category": [ + { + "coding": [ + { + "system": "http://terminology.hl7.org/CodeSystem/medicationrequest-category", + "code": "outpatient", + "display": "Outpatient" + } + ] + } + ], + "medicationCodeableConcept": { + "coding": [ + { + "system": "http://snomed.info/sct", + "code": "317972000", + "display": "Furosemide 40mg tablets" + } + ] + }, + "subject": { + "reference": "urn:uuid:78d3c2eb-009e-4ec8-a358-b042954aa9b2" + }, + "authoredOn": "2021-05-07T14:47:29+00:00", + "requester": { + "reference": "urn:uuid:56166769-c1c4-4d07-afa8-132b5dfca666" + }, + "groupIdentifier": { + "extension": [ + { + "url": "https://fhir.nhs.uk/StructureDefinition/Extension-DM-PrescriptionId", + "valueIdentifier": { + "system": "https://fhir.nhs.uk/Id/prescription", + "value": "a5b9dc81-ccf4-4dab-b887-3d88e557febb" + } + } + ], + "system": "https://fhir.nhs.uk/Id/prescription-order-number", + "value": "A0548B-A99968-451485" + }, + "courseOfTherapyType": { + "coding": [ + { + "system": "http://terminology.hl7.org/CodeSystem/medicationrequest-course-of-therapy", + "code": "acute", + "display": "Short course (acute) therapy" + } + ] + }, + "dosageInstruction": [ + { + "text": "80mg at 8am and 40mg at 2pm for 5 days. Then 40mg tablet - oral- daily at 8am", + "timing": { + "repeat": { + "frequency": 5, + "period": 1, + "periodUnit": "d", + "boundsDuration": { + "value": 10, + "unit": "day", + "system": "http://unitsofmeasure.org", + "code": "d" + } + } + }, + "route": { + "coding": [ + { + "system": "http://snomed.info/sct", + "code": "26643006", + "display": "Oral" + } + ] + } + } + ], + "dispenseRequest": { + "extension": [ + { + "url": "https://fhir.nhs.uk/StructureDefinition/Extension-DM-PerformerSiteType", + "valueCoding": { + "system": "https://fhir.nhs.uk/CodeSystem/dispensing-site-preference", + "code": "P1" + } + } + ], + "performer": { + "identifier": { + "system": "https://fhir.nhs.uk/Id/ods-organization-code", + "value": "VNCEL" + } + }, + "quantity": { + "value": 28, + "unit": "tablet", + "system": "http://snomed.info/sct", + "code": "428673006" + } + }, + "substitution": { + "allowedBoolean": false + } + } + ], + "extension": [ + { + "url": "https://fhir.nhs.uk/StructureDefinition/Extension-EPS-TaskBusinessStatus", + "valueCoding": { + "system": "https://fhir.nhs.uk/CodeSystem/EPS-task-business-status", + "code": "0006", + "display": "Dispensed" + } + } + ], + "identifier": [ + { + "system": "https://fhir.nhs.uk/Id/prescription-dispense-item-number", + "value": "a54219b8-f741-4c47-b662-e4f8dfa49ab7" + } + ], + "status": "completed", + "medicationCodeableConcept": { + "coding": [ + { + "system": "http://snomed.info/sct", + "code": "317972000", + "display": "Furosemide 40mg tablets (Manufacturer A)" + } + ] + }, + "subject": { + "type": "Patient", + "identifier": { + "system": "https://fhir.nhs.uk/Id/nhs-number", + "value": "9449304106" + }, + "display": "MR ZACKERY NICODEMUS LEGASSICK" + }, + "performer": [ + { + "actor": { + "reference": "#performer" + } + } + ], + "authorizingPrescription": [ + { + "reference": "#m1" + } + ], + "type": { + "coding": [ + { + "system": "https://fhir.nhs.uk/CodeSystem/medicationdispense-type", + "code": "0001", + "display": "Item fully dispensed" + } + ] + }, + "quantity": { + "value": 13, + "unit": "tablet", + "system": "http://snomed.info/sct", + "code": "428673006" + }, + "whenHandedOver": "2021-05-07T14:47:29+00:00", + "dosageInstruction": [ + { + "text": "80mg at 8am and 40mg at 2pm for 5 days. Then 40mg tablet - oral- daily at 8am" + } + ] + } + }, + { + "fullUrl": "urn:uuid:322b989d-3334-485b-9966-d59350cee160", + "resource": { + "resourceType": "MedicationDispense", + "contained": [ + { + "resourceType": "PractitionerRole", + "id": "performer", + "identifier": [ + { + "system": "https://fhir.nhs.uk/Id/sds-role-profile-id", + "value": "555086415105" + } + ], + "practitioner": { + "identifier": { + "system": "https://fhir.nhs.uk/Id/sds-user-id", + "value": "3415870201" + }, + "display": "Jackie Clark" + }, + "organization": { + "reference": "urn:uuid:2bf9f37c-d88b-4f86-ad5f-373c1416e04b" + }, + "code": [ + { + "coding": [ + { + "system": "https://fhir.nhs.uk/CodeSystem/NHSDigital-SDS-JobRoleCode", + "code": "S8000:G8000:R8000", + "display": "Clinical Practitioner Access Role" + } + ] + } + ], + "telecom": [ + { + "system": "phone", + "use": "work", + "value": "02380798431" + } + ] + }, + { + "resourceType": "MedicationRequest", + "id": "m1", + "extension": [ + { + "url": "https://fhir.nhs.uk/StructureDefinition/Extension-DM-PrescriptionType", + "valueCoding": { + "system": "https://fhir.nhs.uk/CodeSystem/prescription-type", + "code": "1201", + "display": "Outpatient Homecare Prescriber - Medical Prescriber" + } + } + ], + "identifier": [ + { + "system": "https://fhir.nhs.uk/Id/prescription-order-item-number", + "value": "a54219b8-f741-4c47-b662-e4f8dfa49ab7" + } + ], + "status": "active", + "intent": "order", + "category": [ + { + "coding": [ + { + "system": "http://terminology.hl7.org/CodeSystem/medicationrequest-category", + "code": "outpatient", + "display": "Outpatient" + } + ] + } + ], + "medicationCodeableConcept": { + "coding": [ + { + "system": "http://snomed.info/sct", + "code": "317972000", + "display": "Furosemide 40mg tablets" + } + ] + }, + "subject": { + "reference": "urn:uuid:78d3c2eb-009e-4ec8-a358-b042954aa9b2" + }, + "authoredOn": "2021-05-07T14:47:29+00:00", + "requester": { + "reference": "urn:uuid:56166769-c1c4-4d07-afa8-132b5dfca666" + }, + "groupIdentifier": { + "extension": [ + { + "url": "https://fhir.nhs.uk/StructureDefinition/Extension-DM-PrescriptionId", + "valueIdentifier": { + "system": "https://fhir.nhs.uk/Id/prescription", + "value": "a5b9dc81-ccf4-4dab-b887-3d88e557febb" + } + } + ], + "system": "https://fhir.nhs.uk/Id/prescription-order-number", + "value": "A0548B-A99968-451485" + }, + "courseOfTherapyType": { + "coding": [ + { + "system": "http://terminology.hl7.org/CodeSystem/medicationrequest-course-of-therapy", + "code": "acute", + "display": "Short course (acute) therapy" + } + ] + }, + "dosageInstruction": [ + { + "text": "80mg at 8am and 40mg at 2pm for 5 days. Then 40mg tablet - oral- daily at 8am", + "timing": { + "repeat": { + "frequency": 5, + "period": 1, + "periodUnit": "d", + "boundsDuration": { + "value": 10, + "unit": "day", + "system": "http://unitsofmeasure.org", + "code": "d" + } + } + }, + "route": { + "coding": [ + { + "system": "http://snomed.info/sct", + "code": "26643006", + "display": "Oral" + } + ] + } + } + ], + "dispenseRequest": { + "extension": [ + { + "url": "https://fhir.nhs.uk/StructureDefinition/Extension-DM-PerformerSiteType", + "valueCoding": { + "system": "https://fhir.nhs.uk/CodeSystem/dispensing-site-preference", + "code": "P1" + } + } + ], + "performer": { + "identifier": { + "system": "https://fhir.nhs.uk/Id/ods-organization-code", + "value": "VNCEL" + } + }, + "quantity": { + "value": 28, + "unit": "tablet", + "system": "http://snomed.info/sct", + "code": "428673006" + } + }, + "substitution": { + "allowedBoolean": false + } + } + ], + "extension": [ + { + "url": "https://fhir.nhs.uk/StructureDefinition/Extension-EPS-TaskBusinessStatus", + "valueCoding": { + "system": "https://fhir.nhs.uk/CodeSystem/EPS-task-business-status", + "code": "0006", + "display": "Dispensed" + } + } + ], + "identifier": [ + { + "system": "https://fhir.nhs.uk/Id/prescription-dispense-item-number", + "value": "a54219b8-f741-4c47-b662-e4f8dfa49ab7" + } + ], + "status": "completed", + "medicationCodeableConcept": { + "coding": [ + { + "system": "http://snomed.info/sct", + "code": "317972000", + "display": "Furosemide 40mg tablets (Manufacturer B)" + } + ] + }, + "subject": { + "type": "Patient", + "identifier": { + "system": "https://fhir.nhs.uk/Id/nhs-number", + "value": "9449304106" + }, + "display": "MR ZACKERY NICODEMUS LEGASSICK" + }, + "performer": [ + { + "actor": { + "reference": "#performer" + } + } + ], + "authorizingPrescription": [ + { + "reference": "#m1" + } + ], + "type": { + "coding": [ + { + "system": "https://fhir.nhs.uk/CodeSystem/medicationdispense-type", + "code": "0001", + "display": "Item fully dispensed" + } + ] + }, + "quantity": { + "value": 15, + "unit": "tablet", + "system": "http://snomed.info/sct", + "code": "428673006" + }, + "whenHandedOver": "2021-05-07T14:47:29+00:00", + "dosageInstruction": [ + { + "text": "80mg at 8am and 40mg at 2pm for 5 days. Then 40mg tablet - oral- daily at 8am" + } + ] + } + }, + { + "fullUrl": "urn:uuid:2bf9f37c-d88b-4f86-ad5f-373c1416e04b", + "resource": { + "resourceType": "Organization", + "extension": [ + { + "url": "https://fhir.nhs.uk/StructureDefinition/Extension-ODS-OrganisationRelationships", + "extension": [ + { + "url": "reimbursementAuthority", + "valueIdentifier": { + "system": "https://fhir.nhs.uk/Id/ods-organization-code", + "value": "T1450" + } + } + ] + } + ], + "identifier": [ + { + "system": "https://fhir.nhs.uk/Id/ods-organization-code", + "value": "VNE51" + } + ], + "address": [ + { + "city": "West Yorkshire", + "use": "work", + "line": [ + "17 Austhorpe Road", + "Crossgates", + "Leeds" + ], + "postalCode": "LS15 8BA" + } + ], + "active": true, + "type": [ + { + "coding": [ + { + "system": "https://fhir.nhs.uk/CodeSystem/organisation-role", + "code": "182", + "display": "PHARMACY" + } + ] + } + ], + "name": "The Simple Pharmacy", + "telecom": [ + { + "system": "phone", + "use": "work", + "value": "0113 3180277" + } + ] + } + } + ] +} diff --git a/src/test/resources/examples/full_examples/secondary-care/homecare/acute/nominated-pharmacy/clinical-practitioner/1-Process-Request-Send-200_OK.json b/src/test/resources/examples/full_examples/secondary-care/homecare/acute/nominated-pharmacy/clinical-practitioner/1-Process-Request-Send-200_OK.json new file mode 100644 index 00000000..92218b43 --- /dev/null +++ b/src/test/resources/examples/full_examples/secondary-care/homecare/acute/nominated-pharmacy/clinical-practitioner/1-Process-Request-Send-200_OK.json @@ -0,0 +1,562 @@ +{ + "resourceType": "Bundle", + "id": "aef77afb-7e3c-427a-8657-2c427f71a272", + "identifier": { + "system": "https://tools.ietf.org/html/rfc4122", + "value": "4bbc97c0-f16d-4d82-85c8-c3cc62f8bd78" + }, + "type": "message", + "entry": [ + { + "fullUrl": "urn:uuid:aef77afb-7e3c-427a-8657-2c427f71a272", + "resource": { + "resourceType": "MessageHeader", + "id": "3599c0e9-9292-413e-9270-9a1ef1ead99c", + "eventCoding": { + "system": "https://fhir.nhs.uk/CodeSystem/message-event", + "code": "prescription-order", + "display": "Prescription Order" + }, + "sender": { + "identifier": { + "system": "https://fhir.nhs.uk/Id/ods-organization-code", + "value": "RBA" + }, + "reference": "urn:uuid:56166769-c1c4-4d07-afa8-132b5dfca666", + "display": "RAZIA|ALI" + }, + "source": { + "endpoint": "https://directory.spineservices.nhs.uk/STU3/Organization/RBA" + }, + "destination": [ + { + "endpoint": "https://sandbox.api.service.nhs.uk/electronic-prescriptions/$post-message", + "receiver": { + "identifier": { + "system": "https://fhir.nhs.uk/Id/ods-organization-code", + "value": "X26" + } + } + } + ], + "focus": [ + { + "reference": "urn:uuid:78d3c2eb-009e-4ec8-a358-b042954aa9b2" + }, + { + "reference": "urn:uuid:a54219b8-f741-4c47-b662-e4f8dfa49ab6" + }, + { + "reference": "urn:uuid:51793ac0-112f-46c7-a891-9af8cefb206e" + } + ] + } + }, + { + "fullUrl": "urn:uuid:a54219b8-f741-4c47-b662-e4f8dfa49ab6", + "resource": { + "resourceType": "MedicationRequest", + "id": "a54219b8-f741-4c47-b662-e4f8dfa49ab6", + "extension": [ + { + "url": "https://fhir.nhs.uk/StructureDefinition/Extension-DM-PrescriptionType", + "valueCoding": { + "system": "https://fhir.nhs.uk/CodeSystem/prescription-type", + "code": "1201", + "display": "Outpatient Homecare Prescriber - Medical Prescriber" + } + } + ], + "identifier": [ + { + "system": "https://fhir.nhs.uk/Id/prescription-order-item-number", + "value": "a54219b8-f741-4c47-b662-e4f8dfa49ab6" + } + ], + "status": "active", + "intent": "order", + "category": [ + { + "coding": [ + { + "system": "http://terminology.hl7.org/CodeSystem/medicationrequest-category", + "code": "outpatient", + "display": "Outpatient" + } + ] + } + ], + "medicationCodeableConcept": { + "coding": [ + { + "system": "http://snomed.info/sct", + "code": "13892511000001100", + "display": "Amlodipine 5mg/5ml oral solution" + } + ] + }, + "subject": { + "reference": "urn:uuid:78d3c2eb-009e-4ec8-a358-b042954aa9b2" + }, + "requester": { + "reference": "urn:uuid:56166769-c1c4-4d07-afa8-132b5dfca666" + }, + "groupIdentifier": { + "extension": [ + { + "url": "https://fhir.nhs.uk/StructureDefinition/Extension-DM-PrescriptionId", + "valueIdentifier": { + "system": "https://fhir.nhs.uk/Id/prescription", + "value": "a5b9dc81-ccf4-4dab-b887-3d88e557febb" + } + } + ], + "system": "https://fhir.nhs.uk/Id/prescription-order-number", + "value": "A0548B-A99968-451485" + }, + "courseOfTherapyType": { + "coding": [ + { + "system": "http://terminology.hl7.org/CodeSystem/medicationrequest-course-of-therapy", + "code": "acute", + "display": "Short course (acute) therapy" + } + ] + }, + "dosageInstruction": [ + { + "text": "5 milligram - 5 times a day - Oral - for 10 days", + "timing": { + "repeat": { + "frequency": 5, + "period": 1, + "periodUnit": "d", + "boundsDuration": { + "value": 10, + "unit": "day", + "system": "http://unitsofmeasure.org", + "code": "d" + } + } + }, + "route": { + "coding": [ + { + "system": "http://snomed.info/sct", + "code": "26643006", + "display": "Oral" + } + ] + }, + "doseAndRate": [ + { + "doseQuantity": { + "value": 5, + "unit": "milligram", + "system": "http://unitsofmeasure.org", + "code": "mg" + } + } + ] + } + ], + "dispenseRequest": { + "extension": [ + { + "url": "https://fhir.nhs.uk/StructureDefinition/Extension-DM-PerformerSiteType", + "valueCoding": { + "system": "https://fhir.nhs.uk/CodeSystem/dispensing-site-preference", + "code": "P1" + } + } + ], + "performer": { + "identifier": { + "system": "https://fhir.nhs.uk/Id/ods-organization-code", + "value": "VNCEL" + } + }, + "quantity": { + "value": 5, + "unit": "ml", + "system": "http://snomed.info/sct", + "code": "385024007" + } + }, + "substitution": { + "allowedBoolean": false + } + } + }, + { + "fullUrl": "urn:uuid:a54219b8-f741-4c47-b662-e4f8dfa49ab7", + "resource": { + "resourceType": "MedicationRequest", + "id": "a54219b8-f741-4c47-b662-e4f8dfa49ab7", + "extension": [ + { + "url": "https://fhir.nhs.uk/StructureDefinition/Extension-DM-PrescriptionType", + "valueCoding": { + "system": "https://fhir.nhs.uk/CodeSystem/prescription-type", + "code": "1201", + "display": "Outpatient Homecare Prescriber - Medical Prescriber" + } + } + ], + "identifier": [ + { + "system": "https://fhir.nhs.uk/Id/prescription-order-item-number", + "value": "a54219b8-f741-4c47-b662-e4f8dfa49ab7" + } + ], + "status": "active", + "intent": "order", + "category": [ + { + "coding": [ + { + "system": "http://terminology.hl7.org/CodeSystem/medicationrequest-category", + "code": "outpatient", + "display": "Outpatient" + } + ] + } + ], + "medicationCodeableConcept": { + "coding": [ + { + "system": "http://snomed.info/sct", + "code": "317972000", + "display": "Furosemide 40mg tablets" + } + ] + }, + "subject": { + "reference": "urn:uuid:78d3c2eb-009e-4ec8-a358-b042954aa9b2" + }, + "requester": { + "reference": "urn:uuid:56166769-c1c4-4d07-afa8-132b5dfca666" + }, + "groupIdentifier": { + "extension": [ + { + "url": "https://fhir.nhs.uk/StructureDefinition/Extension-DM-PrescriptionId", + "valueIdentifier": { + "system": "https://fhir.nhs.uk/Id/prescription", + "value": "a5b9dc81-ccf4-4dab-b887-3d88e557febb" + } + } + ], + "system": "https://fhir.nhs.uk/Id/prescription-order-number", + "value": "A0548B-A99968-451485" + }, + "courseOfTherapyType": { + "coding": [ + { + "system": "http://terminology.hl7.org/CodeSystem/medicationrequest-course-of-therapy", + "code": "acute", + "display": "Short course (acute) therapy" + } + ] + }, + "dosageInstruction": [ + { + "text": "5 times a day - Oral - for 10 days", + "timing": { + "repeat": { + "frequency": 5, + "period": 1, + "periodUnit": "d", + "boundsDuration": { + "value": 10, + "unit": "day", + "system": "http://unitsofmeasure.org", + "code": "d" + } + } + }, + "route": { + "coding": [ + { + "system": "http://snomed.info/sct", + "code": "26643006", + "display": "Oral" + } + ] + } + } + ], + "dispenseRequest": { + "extension": [ + { + "url": "https://fhir.nhs.uk/StructureDefinition/Extension-DM-PerformerSiteType", + "valueCoding": { + "system": "https://fhir.nhs.uk/CodeSystem/dispensing-site-preference", + "code": "P1" + } + } + ], + "performer": { + "identifier": { + "system": "https://fhir.nhs.uk/Id/ods-organization-code", + "value": "VNCEL" + } + }, + "quantity": { + "value": 28, + "unit": "tablet", + "system": "http://snomed.info/sct", + "code": "428673006" + } + }, + "substitution": { + "allowedBoolean": false + } + } + }, + { + "fullUrl": "urn:uuid:78d3c2eb-009e-4ec8-a358-b042954aa9b2", + "resource": { + "resourceType": "Patient", + "identifier": [ + { + "system": "https://fhir.nhs.uk/Id/nhs-number", + "value": "9449304106" + } + ], + "name": [ + { + "use": "usual", + "family": "LEGASSICK", + "given": ["NICODEMUS", "ZACKERY"], + "prefix": ["MR"] + } + ], + "gender": "male", + "birthDate": "1994-03-19", + "address": [ + { + "use": "home", + "line": ["11 LITTLEHEATH LANE", "COBHAM", "SURREY"], + "postalCode": "KT11 2QG" + } + ], + "generalPractitioner": [ + { + "identifier": { + "system": "https://fhir.nhs.uk/Id/ods-organization-code", + "value": "B81001" + } + } + ] + } + }, + { + "fullUrl": "urn:uuid:56166769-c1c4-4d07-afa8-132b5dfca666", + "resource": { + "resourceType": "PractitionerRole", + "id": "56166769-c1c4-4d07-afa8-132b5dfca666", + "identifier": [ + { + "system": "https://fhir.nhs.uk/Id/sds-role-profile-id", + "value": "100102238986" + } + ], + "practitioner": { + "reference": "urn:uuid:a8c85454-f8cb-498d-9629-78e2cb5fa47a" + }, + "organization": { + "reference": "urn:uuid:3b4b03a5-52ba-4ba6-9b82-70350aa109d8" + }, + "code": [ + { + "coding": [ + { + "system": "https://fhir.nhs.uk/CodeSystem/NHSDigital-SDS-JobRoleCode", + "code": "S8000:G8000:R8000", + "display": "Clinical Practitioner Access Role" + } + ] + } + ], + "telecom": [ + { + "system": "phone", + "value": "01234567890", + "use": "work" + } + ] + } + }, + { + "fullUrl": "urn:uuid:a8c85454-f8cb-498d-9629-78e2cb5fa47a", + "resource": { + "resourceType": "Practitioner", + "id": "a8c85454-f8cb-498d-9629-78e2cb5fa47a", + "identifier": [ + { + "system": "https://fhir.nhs.uk/Id/sds-user-id", + "value": "7020134158" + }, + { + "system": "https://fhir.hl7.org.uk/Id/gmc-number", + "value": "G9999999" + }, + { + "system": "https://fhir.hl7.org.uk/Id/din-number", + "value": "70201123456" + } + ], + "name": [ + { + "family": "Edwards", + "given": ["Thomas"], + "prefix": ["DR"] + } + ] + } + }, + { + "fullUrl": "urn:uuid:3b4b03a5-52ba-4ba6-9b82-70350aa109d8", + "resource": { + "resourceType": "Organization", + "id": "3b4b03a5-52ba-4ba6-9b82-70350aa109d8", + "identifier": [ + { + "system": "https://fhir.nhs.uk/Id/ods-organization-code", + "value": "A99968" + } + ], + "name": "SOMERSET BOWEL CANCER SCREENING CENTRE", + "address": [ + { + "use": "work", + "line": ["MUSGROVE PARK HOSPITAL"], + "city": "TAUNTON", + "postalCode": "TA1 5DA" + } + ], + "telecom": [ + { + "system": "phone", + "value": "01823 333444", + "use": "work" + } + ], + "partOf": { + "identifier": { + "system": "https://fhir.nhs.uk/Id/ods-organization-code", + "value": "RBA" + }, + "display": "TAUNTON AND SOMERSET NHS FOUNDATION TRUST" + } + } + }, + { + "fullUrl": "urn:uuid:51793ac0-112f-46c7-a891-9af8cefb206e", + "resource": { + "resourceType": "CommunicationRequest", + "status": "unknown", + "subject": { + "reference": "urn:uuid:78d3c2eb-009e-4ec8-a358-b042954aa9b2" + }, + "payload": [ + { + "contentReference": { + "reference": "urn:uuid:d0f003a0-8763-43d5-a264-ce52a38901c9", + "display": "List of Repeat Medications for re-ordering" + } + } + ], + "requester": { + "type": "Organization", + "identifier": { + "system": "https://fhir.nhs.uk/Id/ods-organization-code", + "value": "RBA" + }, + "display": "TAUNTON AND SOMERSET NHS FOUNDATION TRUST" + }, + "recipient": [ + { + "type": "Patient", + "identifier": { + "system": "https://fhir.nhs.uk/Id/nhs-number", + "value": "9453740519" + } + } + ] + } + }, + { + "fullUrl": "urn:uuid:d0f003a0-8763-43d5-a264-ce52a38901c9", + "resource": { + "resourceType": "List", + "status": "current", + "mode": "snapshot", + "code": { + "text": "Repeat Medications" + }, + "subject": { + "reference": "urn:uuid:78d3c2eb-009e-4ec8-a358-b042954aa9b2" + }, + "entry": [ + { + "item": { + "display": "Metformin 500mg tablets" + } + }, + { + "item": { + "display": "Aspirin 75mg dispersible tablets" + } + }, + { + "item": { + "display": "Simvastatin 40mg tablets" + } + }, + { + "item": { + "display": "Chloramphenicol 0.5% eye drops" + } + } + ] + } + }, + { + "fullUrl": "urn:uuid:28828c55-8fa7-42d7-916f-fcf076e0c10e", + "resource": { + "resourceType": "Provenance", + "id": "28828c55-8fa7-42d7-916f-fcf076e0c10e", + "target": [ + { + "reference": "urn:uuid:a54219b8-f741-4c47-b662-e4f8dfa49ab6" + } + ], + "recorded": "2008-02-27T11:38:00+00:00", + "agent": [ + { + "who": { + "reference": "urn:uuid:56166769-c1c4-4d07-afa8-132b5dfca666" + } + } + ], + "signature": [ + { + "type": [ + { + "system": "urn:iso-astm:E1762-95:2013", + "code": "1.2.840.10065.1.12.1.1" + } + ], + "when": "2021-05-07T14:47:30+00:00", + "who": { + "reference": "urn:uuid:56166769-c1c4-4d07-afa8-132b5dfca666" + }, + "data": "DQo8U2lnbmF0dXJlIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwLzA5L3htbGRzaWcjIj4NCiAgICA8U2lnbmVkSW5mbz48Q2Fub25pY2FsaXphdGlvbk1ldGhvZCBBbGdvcml0aG09Imh0dHA6Ly93d3cudzMub3JnLzIwMDEvMTAveG1sLWV4Yy1jMTRuIyI+PC9DYW5vbmljYWxpemF0aW9uTWV0aG9kPjxTaWduYXR1cmVNZXRob2QgQWxnb3JpdGhtPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwLzA5L3htbGRzaWcjcnNhLXNoYTEiPjwvU2lnbmF0dXJlTWV0aG9kPjxSZWZlcmVuY2U+PFRyYW5zZm9ybXM+PFRyYW5zZm9ybSBBbGdvcml0aG09Imh0dHA6Ly93d3cudzMub3JnLzIwMDEvMTAveG1sLWV4Yy1jMTRuIyI+PC9UcmFuc2Zvcm0+PC9UcmFuc2Zvcm1zPjxEaWdlc3RNZXRob2QgQWxnb3JpdGhtPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwLzA5L3htbGRzaWcjc2hhMSI+PC9EaWdlc3RNZXRob2Q+PERpZ2VzdFZhbHVlPjhIeUJwQnhPN1U3M2QrVlBUTHFSNnBrK2xRbz08L0RpZ2VzdFZhbHVlPjwvUmVmZXJlbmNlPjwvU2lnbmVkSW5mbz4NCiAgICA8U2lnbmF0dXJlVmFsdWU+cUhQcnVBbnpYUlRGNzB1NU9Xd2xOaVhmN3JaYUlUMjdCTTNZaEZJRkRZUFFydUtOTzhEakxrbWpUbENpRWxXTU1HWXFUT1U0S2REcE1rS2JrOU51TnFvTTNBWitCcVo4OGhOTUxlTlQ1ZktpK0dMK1RUWU9hclVVZEpGMEUxZmtERS9nbDJob1lXK29OM29VUEtJVU9mZkNSVXYycEVHaEg3Y0drT0Jvc3ZjPTwvU2lnbmF0dXJlVmFsdWU+DQogICAgPEtleUluZm8+DQogICAgICAgIDxYNTA5RGF0YT4NCiAgICAgICAgICAgIDxYNTA5Q2VydGlmaWNhdGU+TUlJRHVEQ0NBcUNnQXdJQkFnSUVYY210SHpBTkJna3Foa2lHOXcwQkFRc0ZBREEyTVF3d0NnWURWUVFLRXdOdWFITXhDekFKQmdOVkJBc1RBa05CTVJrd0Z3WURWUVFERXhCT1NGTWdTVTVVSUV4bGRtVnNJREZFTUI0WERUSXdNVEF5TWpFd01qRTFOVm9YRFRJeU1UQXlNakV3TlRFMU5Wb3dRekVNTUFvR0ExVUVDaE1EYm1oek1ROHdEUVlEVlFRTEV3WlFaVzl3YkdVeElqQWdCZ05WQkFNTUdUVTFOVEkxTXpVeU1URXdPRjlTUVU1RVQwMWZWVk5GVWxFd2daOHdEUVlKS29aSWh2Y05BUUVCQlFBRGdZMEFNSUdKQW9HQkFLdDRzek53N09BSDdBUVJyRGUveEJJbXNNbU1pUzlFc3JUM2EzcC9MaDNicmR6STlhYWpUVVoyYi9jdmJPYTdQZVlkN3UrSzRhMlpkMFhrKzBHRm1ZR3pTVlg2aVlqYmx3cjB2YWkzMXpWN0crbEd2SHhINnBTb0xDd0lDYVpBRndhYmVENU96OTQreUEzYVdOV3RHVjBEZmg5cXdIM1pGQ0lNUnN2ZXJOMXBBZ01CQUFHamdnRkRNSUlCUHpBT0JnTlZIUThCQWY4RUJBTUNCa0F3WlFZRFZSMGdBUUgvQkZzd1dUQlhCZ3NxaGpvQWlYdG1BQU1DQURCSU1FWUdDQ3NHQVFVRkJ3SUJGanBvZEhSd2N6b3ZMM0JyYVM1dWFITXVkV3N2WTJWeWRHbG1hV05oZEdWZmNHOXNhV05wWlhNdlkyOXVkR1Z1ZEY5amIyMXRhWFJ0Wlc1ME1ETUdBMVVkSHdRc01Db3dLS0Ftb0NTR0ltaDBkSEE2THk5amNtd3VibWh6TG5WckwybHVkQzh4WkM5amNteGpNeTVqY213d0t3WURWUjBRQkNRd0lvQVBNakF5TURFd01qSXhNREl4TlRWYWdROHlNREl5TURNeE56RXdOVEUxTlZvd0h3WURWUjBqQkJnd0ZvQVVvSllmZ1lUTlBkNkVVS0w2UUxJekh4WTVQRkl3SFFZRFZSME9CQllFRkx0eXZZU3lhcWc2MEFFVVpneGswd3JqUkpjK01Ba0dBMVVkRXdRQ01BQXdHUVlKS29aSWh2WjlCMEVBQkF3d0Noc0VWamd1TXdNQ0JMQXdEUVlKS29aSWh2Y05BUUVMQlFBRGdnRUJBQmN6eThCOGp1UHBJZmFUTkZjeHJDMjJhQ1gveFlabWhyTC9OdklCQWFYMUc1aGppd21rR0tFMmhSVElyNjdQeFp4bVhzSnhpZ1JCTUhQbEkrbFkvK29rekgwR2k3YjVicWx3N3B4R0lnSk8wMDB3OHBGc3ZvOXc0MklZaEhvZHN2bkRWU3hoTVQwSjQ2UWhrOXNvRTBMam9FVUxLUVBQbFlHa2UvR2wzbTE3SXRGWXdPYlFIMGZNRXdtaXFCeWVJZno3Z1NjY096TDVjSXA2UGNaVE9qbzJJcVFwZ0VtaGpPY1JJbkVxQU5pdFNkam9pSkFKenBhYVpqWVRSZEhVWDdpN2FqRWlING05MW5GVys0QXFrTnR0bGI0V2NHS3NTbVdnZktLaGVGNElvWktNRTgweGVyU2dNeTh2dGpMT0JKQ0dYejB3TEdtUXVSbXhNVHE4OHE0PTwvWDUwOUNlcnRpZmljYXRlPg0KICAgICAgICA8L1g1MDlEYXRhPg0KICAgIDwvS2V5SW5mbz4NCjwvU2lnbmF0dXJlPg0K" + } + ] + } + } + ] +} diff --git a/src/test/resources/examples/full_examples/secondary-care/homecare/acute/nominated-pharmacy/clinical-practitioner/1-Task-Request-Release-200_OK.json b/src/test/resources/examples/full_examples/secondary-care/homecare/acute/nominated-pharmacy/clinical-practitioner/1-Task-Request-Release-200_OK.json new file mode 100644 index 00000000..d4e18963 --- /dev/null +++ b/src/test/resources/examples/full_examples/secondary-care/homecare/acute/nominated-pharmacy/clinical-practitioner/1-Task-Request-Release-200_OK.json @@ -0,0 +1,100 @@ +{ + "resourceType": "Parameters", + "id": "854b706a-c6e5-11ec-9d64-0242ac120002", + "parameter": [ + { + "name": "owner", + "resource": { + "resourceType": "Organization", + "id": "organization", + "identifier": [ + { + "system": "https://fhir.nhs.uk/Id/ods-organization-code", + "value": "VNE51" + } + ], + "address": [ + { + "city": "West Yorkshire", + "use": "work", + "line": [ + "17 Austhorpe Road", + "Crossgates", + "Leeds" + ], + "postalCode": "LS15 8BA" + } + ], + "active": true, + "type": [ + { + "coding": [ + { + "system": "https://fhir.nhs.uk/CodeSystem/organisation-role", + "code": "182", + "display": "PHARMACY" + } + ] + } + ], + "name": "The Simple Pharmacy", + "telecom": [ + { + "system": "phone", + "use": "work", + "value": "0113 3180277" + } + ] + } + }, + { + "name": "status", + "valueCode": "accepted" + }, + { + "name": "agent", + "resource": { + "resourceType": "PractitionerRole", + "id": "16708936-6397-4e03-b84f-4aaa790633e0", + "identifier": [ + { + "system": "https://fhir.nhs.uk/Id/sds-role-profile-id", + "value": "555086415105" + } + ], + "practitioner": { + "identifier": { + "system": "https://fhir.nhs.uk/Id/sds-user-id", + "value": "3415870201" + }, + "display": "Jackie Clark" + }, + "code": [ + { + "coding": [ + { + "system": "https://fhir.nhs.uk/CodeSystem/NHSDigital-SDS-JobRoleCode", + "code": "S8000:G8000:R8000", + "display": "Clinical Practitioner Access Role" + } + ] + } + ], + "telecom": [ + { + "system": "phone", + "value": "02380798431", + "use": "work" + } + ] + } + }, + { + "name": "group-identifier", + "valueIdentifier": { + "system": "https://fhir.nhs.uk/Id/prescription-order-number", + "value": "A0548B-A99968-451485" + } + } + ] +} diff --git a/src/test/resources/examples/full_examples/secondary-care/homecare/acute/nominated-pharmacy/clinical-practitioner/2-Prepare-Request-200_OK.json b/src/test/resources/examples/full_examples/secondary-care/homecare/acute/nominated-pharmacy/clinical-practitioner/2-Prepare-Request-200_OK.json new file mode 100644 index 00000000..211ec179 --- /dev/null +++ b/src/test/resources/examples/full_examples/secondary-care/homecare/acute/nominated-pharmacy/clinical-practitioner/2-Prepare-Request-200_OK.json @@ -0,0 +1,341 @@ +{ + "resourceType": "Bundle", + "id": "0A1FD9EF-A3D5-4E95-84CD-352070A03086", + "identifier": { + "system": "https://tools.ietf.org/html/rfc4122", + "value": "67c585f6-f4b5-4f53-861a-50c07ecff5d4" + }, + "type": "message", + "entry": [ + { + "fullUrl": "urn:uuid:0a1fd9ef-a3d5-4e95-84cd-552070a03086", + "resource": { + "resourceType": "MessageHeader", + "id": "0a1fd9ef-a3d5-4e95-84cd-552070a03086", + "eventCoding": { + "system": "https://fhir.nhs.uk/CodeSystem/message-event", + "code": "prescription-order", + "display": "Prescription Order" + }, + "sender": { + "identifier": { + "system": "https://fhir.nhs.uk/Id/ods-organization-code", + "value": "RBA" + }, + "reference": "urn:uuid:56166769-c1c4-4d07-afa8-132b5dfca666", + "display": "BOOTH|PHIL" + }, + "source": { + "endpoint": "https://directory.spineservices.nhs.uk/STU3/Organization/RBA" + }, + "destination": [ + { + "endpoint": "https://directory.spineservices.nhs.uk/STU3/Organization/FH542", + "receiver": { + "identifier": { + "system": "https://fhir.nhs.uk/Id/ods-organization-code", + "value": "VNFKT" + } + } + } + ], + "focus": [ + { + "reference": "urn:uuid:78d3c2eb-009e-4ec8-a358-b042954aa9b2" + }, + { + "reference": "urn:uuid:a54219b8-f741-4c47-b662-e4f8dfa49ab6" + } + ] + } + }, + { + "fullUrl": "urn:uuid:a54219b8-f741-4c47-b662-e4f8dfa49ab6", + "resource": { + "resourceType": "MedicationRequest", + "id": "a54219b8-f741-4c47-b662-e4f8dfa49ab6", + "extension": [ + { + "url": "https://fhir.nhs.uk/StructureDefinition/Extension-DM-PrescriptionType", + "valueCoding": { + "system": "https://fhir.nhs.uk/CodeSystem/prescription-type", + "code": "1001", + "display": "Outpatient Community Prescriber - Medical Prescriber" + } + } + ], + "identifier": [ + { + "system": "https://fhir.nhs.uk/Id/prescription-order-item-number", + "value": "a54219b8-f741-4c47-b662-e4f8dfa49ab6" + } + ], + "status": "active", + "intent": "order", + "category": [ + { + "coding": [ + { + "system": "http://terminology.hl7.org/CodeSystem/medicationrequest-category", + "code": "outpatient", + "display": "Outpatient" + } + ] + } + ], + "medicationCodeableConcept": { + "coding": [ + { + "system": "http://snomed.info/sct", + "code": "15517911000001104", + "display": "Methotrexate 10mg/0.2ml solution for injection pre-filled syringes" + } + ] + }, + "subject": { + "reference": "urn:uuid:78d3c2eb-009e-4ec8-a358-b042954aa9b2" + }, + "requester": { + "reference": "urn:uuid:56166769-c1c4-4d07-afa8-132b5dfca666" + }, + "groupIdentifier": { + "extension": [ + { + "url": "https://fhir.nhs.uk/StructureDefinition/Extension-DM-PrescriptionId", + "valueIdentifier": { + "system": "https://fhir.nhs.uk/Id/prescription", + "value": "80c5279c-0c78-4ef5-a0a1-a6aeb32c7298" + } + } + ], + "system": "https://fhir.nhs.uk/Id/prescription-order-number", + "value": "18B064-A99968-4BCAA3" + }, + "courseOfTherapyType": { + "coding": [ + { + "system": "http://terminology.hl7.org/CodeSystem/medicationrequest-course-of-therapy", + "code": "acute", + "display": "Short course (acute) therapy" + } + ] + }, + "dosageInstruction": [ + { + "text": "Inject 10 milligram - 5 times a day - Subcutaneous route - for 10 days", + "timing": { + "repeat": { + "frequency": 5, + "period": 1, + "periodUnit": "d", + "boundsDuration": { + "value": 10, + "unit": "day", + "system": "http://unitsofmeasure.org", + "code": "d" + } + } + }, + "method": { + "coding": [ + { + "system": "http://snomed.info/sct", + "code": "422145002", + "display": "Inject" + } + ] + }, + "route": { + "coding": [ + { + "system": "http://snomed.info/sct", + "code": "34206005", + "display": "Subcutaneous route" + } + ] + }, + "doseAndRate": [ + { + "doseQuantity": { + "value": 10, + "unit": "milligram", + "system": "http://unitsofmeasure.org", + "code": "mg" + } + } + ] + } + ], + "dispenseRequest": { + "extension": [ + { + "url": "https://fhir.nhs.uk/StructureDefinition/Extension-DM-PerformerSiteType", + "valueCoding": { + "system": "https://fhir.nhs.uk/CodeSystem/dispensing-site-preference", + "code": "P1" + } + } + ], + "quantity": { + "value": 1, + "unit": "pre-filled disposable injection", + "system": "http://snomed.info/sct", + "code": "3318611000001103" + }, + "performer": { + "identifier": { + "system": "https://fhir.nhs.uk/Id/ods-organization-code", + "value": "VNFKT" + } + } + }, + "substitution": { + "allowedBoolean": false + } + } + }, + { + "fullUrl": "urn:uuid:78d3c2eb-009e-4ec8-a358-b042954aa9b2", + "resource": { + "resourceType": "Patient", + "identifier": [ + { + "system": "https://fhir.nhs.uk/Id/nhs-number", + "value": "9449304289" + } + ], + "name": [ + { + "use": "usual", + "family": "OHIKHUARE", + "given": ["COURTNEY"], + "prefix": ["MS"] + } + ], + "gender": "female", + "birthDate": "1987-05-01", + "address": [ + { + "use": "home", + "line": [ + "151 TILT ROAD", + "STOKE D'ABERNON", + "COBHAM", + "West Yorkshire" + ], + "postalCode": "KT11 3HT" + } + ], + "generalPractitioner": [ + { + "identifier": { + "system": "https://fhir.nhs.uk/Id/ods-organization-code", + "value": "B81001" + } + } + ] + } + }, + { + "fullUrl": "urn:uuid:a8c85454-f8cb-498d-9629-78e2cb5fa47a", + "resource": { + "resourceType": "Practitioner", + "id": "a8c85454-f8cb-498d-9629-78e2cb5fa47a", + "identifier": [ + { + "system": "https://fhir.nhs.uk/Id/sds-user-id", + "value": "555086689106" + }, + { + "system": "https://fhir.hl7.org.uk/Id/gmc-number", + "value": "6150129" + } + ], + "name": [ + { + "family": "FIFTYSEVEN", + "given": ["RANDOM"], + "prefix": ["MR"] + } + ] + } + }, + { + "fullUrl": "urn:uuid:56166769-c1c4-4d07-afa8-132b5dfca666", + "resource": { + "resourceType": "PractitionerRole", + "id": "56166769-c1c4-4d07-afa8-132b5dfca666", + "identifier": [ + { + "system": "https://fhir.nhs.uk/Id/sds-role-profile-id", + "value": "601986680555" + }, + { + "system": "https://fhir.hl7.org.uk/Id/nhsbsa-spurious-code", + "value": "683458" + } + ], + "practitioner": { + "reference": "urn:uuid:a8c85454-f8cb-498d-9629-78e2cb5fa47a" + }, + "organization": { + "reference": "urn:uuid:3b4b03a5-52ba-4ba6-9b82-70350aa109d8" + }, + "code": [ + { + "coding": [ + { + "system": "https://fhir.nhs.uk/CodeSystem/NHSDigital-SDS-JobRoleCode", + "code": "S8000:G8000:R8000", + "display": "Clinical Practitioner Access Role " + } + ] + } + ], + "telecom": [ + { + "system": "phone", + "value": "01234567890", + "use": "work" + } + ] + } + }, + { + "fullUrl": "urn:uuid:3b4b03a5-52ba-4ba6-9b82-70350aa109d8", + "resource": { + "resourceType": "Organization", + "id": "3b4b03a5-52ba-4ba6-9b82-70350aa109d8", + "identifier": [ + { + "system": "https://fhir.nhs.uk/Id/ods-organization-code", + "value": "A99968" + } + ], + "name": "SOMERSET BOWEL CANCER SCREENING CENTRE", + "address": [ + { + "use": "work", + "line": ["MUSGROVE PARK HOSPITAL"], + "city": "TAUNTON", + "postalCode": "TA1 5DA" + } + ], + "telecom": [ + { + "system": "phone", + "value": "01823 333444", + "use": "work" + } + ], + "partOf": { + "identifier": { + "system": "https://fhir.nhs.uk/Id/ods-organization-code", + "value": "RBA" + }, + "display": "TAUNTON AND SOMERSET NHS FOUNDATION TRUST" + } + } + } + ] +} diff --git a/src/test/resources/examples/full_examples/secondary-care/homecare/acute/nominated-pharmacy/clinical-practitioner/2-Prepare-Response-200_OK.json b/src/test/resources/examples/full_examples/secondary-care/homecare/acute/nominated-pharmacy/clinical-practitioner/2-Prepare-Response-200_OK.json new file mode 100644 index 00000000..25f81e63 --- /dev/null +++ b/src/test/resources/examples/full_examples/secondary-care/homecare/acute/nominated-pharmacy/clinical-practitioner/2-Prepare-Response-200_OK.json @@ -0,0 +1,17 @@ +{ + "resourceType": "Parameters", + "parameter": [ + { + "name": "digest", + "valueString": "PFNpZ25lZEluZm8geG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvMDkveG1sZHNpZyMiPjxDYW5vbmljYWxpemF0aW9uTWV0aG9kIEFsZ29yaXRobT0iaHR0cDovL3d3dy53My5vcmcvMjAwMS8xMC94bWwtZXhjLWMxNG4jIj48L0Nhbm9uaWNhbGl6YXRpb25NZXRob2Q+PFNpZ25hdHVyZU1ldGhvZCBBbGdvcml0aG09Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvMDkveG1sZHNpZyNyc2Etc2hhMSI+PC9TaWduYXR1cmVNZXRob2Q+PFJlZmVyZW5jZT48VHJhbnNmb3Jtcz48VHJhbnNmb3JtIEFsZ29yaXRobT0iaHR0cDovL3d3dy53My5vcmcvMjAwMS8xMC94bWwtZXhjLWMxNG4jIj48L1RyYW5zZm9ybT48L1RyYW5zZm9ybXM+PERpZ2VzdE1ldGhvZCBBbGdvcml0aG09Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvMDkveG1sZHNpZyNzaGExIj48L0RpZ2VzdE1ldGhvZD48RGlnZXN0VmFsdWU+YkNOaUpMVlVpUzBDbUNpS2s2dXdTTDNOTE1RPTwvRGlnZXN0VmFsdWU+PC9SZWZlcmVuY2U+PC9TaWduZWRJbmZvPg==" + }, + { + "name": "timestamp", + "valueString": "2022-10-25T10:24:34+00:00" + }, + { + "name": "algorithm", + "valueString": "RS1" + } + ] +} diff --git a/src/test/resources/examples/full_examples/secondary-care/homecare/acute/nominated-pharmacy/clinical-practitioner/2-Process-Request-Send-200_OK.json b/src/test/resources/examples/full_examples/secondary-care/homecare/acute/nominated-pharmacy/clinical-practitioner/2-Process-Request-Send-200_OK.json new file mode 100644 index 00000000..3356020d --- /dev/null +++ b/src/test/resources/examples/full_examples/secondary-care/homecare/acute/nominated-pharmacy/clinical-practitioner/2-Process-Request-Send-200_OK.json @@ -0,0 +1,379 @@ +{ + "resourceType": "Bundle", + "id": "0A1FD9EF-A3D5-4E95-84CD-352070A03086", + "identifier": { + "system": "https://tools.ietf.org/html/rfc4122", + "value": "67c585f6-f4b5-4f53-861a-50c07ecff5d4" + }, + "type": "message", + "entry": [ + { + "fullUrl": "urn:uuid:0a1fd9ef-a3d5-4e95-84cd-552070a03086", + "resource": { + "resourceType": "MessageHeader", + "id": "0a1fd9ef-a3d5-4e95-84cd-552070a03086", + "eventCoding": { + "system": "https://fhir.nhs.uk/CodeSystem/message-event", + "code": "prescription-order", + "display": "Prescription Order" + }, + "sender": { + "identifier": { + "system": "https://fhir.nhs.uk/Id/ods-organization-code", + "value": "RBA" + }, + "reference": "urn:uuid:56166769-c1c4-4d07-afa8-132b5dfca666", + "display": "BOOTH|PHIL" + }, + "source": { + "endpoint": "https://directory.spineservices.nhs.uk/STU3/Organization/RBA" + }, + "destination": [ + { + "endpoint": "https://directory.spineservices.nhs.uk/STU3/Organization/FH542", + "receiver": { + "identifier": { + "system": "https://fhir.nhs.uk/Id/ods-organization-code", + "value": "VNFKT" + } + } + } + ], + "focus": [ + { + "reference": "urn:uuid:78d3c2eb-009e-4ec8-a358-b042954aa9b2" + }, + { + "reference": "urn:uuid:a54219b8-f741-4c47-b662-e4f8dfa49ab6" + }, + { + "reference": "urn:uuid:28828c55-8fa7-42d7-916f-fcf076e0c10e" + } + ] + } + }, + { + "fullUrl": "urn:uuid:a54219b8-f741-4c47-b662-e4f8dfa49ab6", + "resource": { + "resourceType": "MedicationRequest", + "id": "a54219b8-f741-4c47-b662-e4f8dfa49ab6", + "extension": [ + { + "url": "https://fhir.nhs.uk/StructureDefinition/Extension-DM-PrescriptionType", + "valueCoding": { + "system": "https://fhir.nhs.uk/CodeSystem/prescription-type", + "code": "1001", + "display": "Outpatient Community Prescriber - Medical Prescriber" + } + } + ], + "identifier": [ + { + "system": "https://fhir.nhs.uk/Id/prescription-order-item-number", + "value": "a54219b8-f741-4c47-b662-e4f8dfa49ab6" + } + ], + "status": "active", + "intent": "order", + "category": [ + { + "coding": [ + { + "system": "http://terminology.hl7.org/CodeSystem/medicationrequest-category", + "code": "outpatient", + "display": "Outpatient" + } + ] + } + ], + "medicationCodeableConcept": { + "coding": [ + { + "system": "http://snomed.info/sct", + "code": "15517911000001104", + "display": "Methotrexate 10mg/0.2ml solution for injection pre-filled syringes" + } + ] + }, + "subject": { + "reference": "urn:uuid:78d3c2eb-009e-4ec8-a358-b042954aa9b2" + }, + "requester": { + "reference": "urn:uuid:56166769-c1c4-4d07-afa8-132b5dfca666" + }, + "groupIdentifier": { + "extension": [ + { + "url": "https://fhir.nhs.uk/StructureDefinition/Extension-DM-PrescriptionId", + "valueIdentifier": { + "system": "https://fhir.nhs.uk/Id/prescription", + "value": "80c5279c-0c78-4ef5-a0a1-a6aeb32c7298" + } + } + ], + "system": "https://fhir.nhs.uk/Id/prescription-order-number", + "value": "18B064-A99968-4BCAA3" + }, + "courseOfTherapyType": { + "coding": [ + { + "system": "http://terminology.hl7.org/CodeSystem/medicationrequest-course-of-therapy", + "code": "acute", + "display": "Short course (acute) therapy" + } + ] + }, + "dosageInstruction": [ + { + "text": "Inject 10 milligram - 5 times a day - Subcutaneous route - for 10 days", + "timing": { + "repeat": { + "frequency": 5, + "period": 1, + "periodUnit": "d", + "boundsDuration": { + "value": 10, + "unit": "day", + "system": "http://unitsofmeasure.org", + "code": "d" + } + } + }, + "method": { + "coding": [ + { + "system": "http://snomed.info/sct", + "code": "422145002", + "display": "Inject" + } + ] + }, + "route": { + "coding": [ + { + "system": "http://snomed.info/sct", + "code": "34206005", + "display": "Subcutaneous route" + } + ] + }, + "doseAndRate": [ + { + "doseQuantity": { + "value": 10, + "unit": "milligram", + "system": "http://unitsofmeasure.org", + "code": "mg" + } + } + ] + } + ], + "dispenseRequest": { + "extension": [ + { + "url": "https://fhir.nhs.uk/StructureDefinition/Extension-DM-PerformerSiteType", + "valueCoding": { + "system": "https://fhir.nhs.uk/CodeSystem/dispensing-site-preference", + "code": "P1" + } + } + ], + "quantity": { + "value": 1, + "unit": "pre-filled disposable injection", + "system": "http://snomed.info/sct", + "code": "3318611000001103" + }, + "performer": { + "identifier": { + "system": "https://fhir.nhs.uk/Id/ods-organization-code", + "value": "VNFKT" + } + } + }, + "substitution": { + "allowedBoolean": false + } + } + }, + { + "fullUrl": "urn:uuid:78d3c2eb-009e-4ec8-a358-b042954aa9b2", + "resource": { + "resourceType": "Patient", + "identifier": [ + { + "system": "https://fhir.nhs.uk/Id/nhs-number", + "value": "9449304289" + } + ], + "name": [ + { + "use": "usual", + "family": "OHIKHUARE", + "given": ["COURTNEY"], + "prefix": ["MS"] + } + ], + "gender": "female", + "birthDate": "1987-05-01", + "address": [ + { + "use": "home", + "line": [ + "151 TILT ROAD", + "STOKE D'ABERNON", + "COBHAM", + "West Yorkshire" + ], + "postalCode": "KT11 3HT" + } + ], + "generalPractitioner": [ + { + "identifier": { + "system": "https://fhir.nhs.uk/Id/ods-organization-code", + "value": "B81001" + } + } + ] + } + }, + { + "fullUrl": "urn:uuid:a8c85454-f8cb-498d-9629-78e2cb5fa47a", + "resource": { + "resourceType": "Practitioner", + "id": "a8c85454-f8cb-498d-9629-78e2cb5fa47a", + "identifier": [ + { + "system": "https://fhir.nhs.uk/Id/sds-user-id", + "value": "555086689106" + }, + { + "system": "https://fhir.hl7.org.uk/Id/gmc-number", + "value": "6150129" + } + ], + "name": [ + { + "family": "FIFTYSEVEN", + "given": ["RANDOM"], + "prefix": ["MR"] + } + ] + } + }, + { + "fullUrl": "urn:uuid:56166769-c1c4-4d07-afa8-132b5dfca666", + "resource": { + "resourceType": "PractitionerRole", + "id": "56166769-c1c4-4d07-afa8-132b5dfca666", + "identifier": [ + { + "system": "https://fhir.nhs.uk/Id/sds-role-profile-id", + "value": "601986680555" + }, + { + "system": "https://fhir.hl7.org.uk/Id/nhsbsa-spurious-code", + "value": "683458" + } + ], + "practitioner": { + "reference": "urn:uuid:a8c85454-f8cb-498d-9629-78e2cb5fa47a" + }, + "organization": { + "reference": "urn:uuid:3b4b03a5-52ba-4ba6-9b82-70350aa109d8" + }, + "code": [ + { + "coding": [ + { + "system": "https://fhir.nhs.uk/CodeSystem/NHSDigital-SDS-JobRoleCode", + "code": "S8000:G8000:R8000", + "display": "Clinical Practitioner Access Role " + } + ] + } + ], + "telecom": [ + { + "system": "phone", + "value": "01234567890", + "use": "work" + } + ] + } + }, + { + "fullUrl": "urn:uuid:3b4b03a5-52ba-4ba6-9b82-70350aa109d8", + "resource": { + "resourceType": "Organization", + "id": "3b4b03a5-52ba-4ba6-9b82-70350aa109d8", + "identifier": [ + { + "system": "https://fhir.nhs.uk/Id/ods-organization-code", + "value": "A99968" + } + ], + "name": "SOMERSET BOWEL CANCER SCREENING CENTRE", + "address": [ + { + "use": "work", + "line": ["MUSGROVE PARK HOSPITAL"], + "city": "TAUNTON", + "postalCode": "TA1 5DA" + } + ], + "telecom": [ + { + "system": "phone", + "value": "01823 333444", + "use": "work" + } + ], + "partOf": { + "identifier": { + "system": "https://fhir.nhs.uk/Id/ods-organization-code", + "value": "RBA" + }, + "display": "TAUNTON AND SOMERSET NHS FOUNDATION TRUST" + } + } + }, + { + "fullUrl": "urn:uuid:28828c55-8fa7-42d7-916f-fcf076e0c10e", + "resource": { + "resourceType": "Provenance", + "id": "28828c55-8fa7-42d7-916f-fcf076e0c10e", + "target": [ + { + "reference": "urn:uuid:a54219b8-f741-4c47-b662-e4f8dfa49ab6" + } + ], + "recorded": "2008-02-27T11:38:00+00:00", + "agent": [ + { + "who": { + "reference": "urn:uuid:56166769-c1c4-4d07-afa8-132b5dfca666" + } + } + ], + "signature": [ + { + "type": [ + { + "system": "urn:iso-astm:E1762-95:2013", + "code": "1.2.840.10065.1.12.1.1" + } + ], + "when": "2021-05-07T14:47:29+00:00", + "who": { + "reference": "urn:uuid:56166769-c1c4-4d07-afa8-132b5dfca666" + }, + "data": "DQo8U2lnbmF0dXJlIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwLzA5L3htbGRzaWcjIj4NCiAgICA8U2lnbmVkSW5mbz48Q2Fub25pY2FsaXphdGlvbk1ldGhvZCBBbGdvcml0aG09Imh0dHA6Ly93d3cudzMub3JnLzIwMDEvMTAveG1sLWV4Yy1jMTRuIyI+PC9DYW5vbmljYWxpemF0aW9uTWV0aG9kPjxTaWduYXR1cmVNZXRob2QgQWxnb3JpdGhtPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwLzA5L3htbGRzaWcjcnNhLXNoYTEiPjwvU2lnbmF0dXJlTWV0aG9kPjxSZWZlcmVuY2U+PFRyYW5zZm9ybXM+PFRyYW5zZm9ybSBBbGdvcml0aG09Imh0dHA6Ly93d3cudzMub3JnLzIwMDEvMTAveG1sLWV4Yy1jMTRuIyI+PC9UcmFuc2Zvcm0+PC9UcmFuc2Zvcm1zPjxEaWdlc3RNZXRob2QgQWxnb3JpdGhtPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwLzA5L3htbGRzaWcjc2hhMSI+PC9EaWdlc3RNZXRob2Q+PERpZ2VzdFZhbHVlPmlscE5XeW05Wk1Pbk5jV1VzWk9TditmbFJwQT08L0RpZ2VzdFZhbHVlPjwvUmVmZXJlbmNlPjwvU2lnbmVkSW5mbz4NCiAgICA8U2lnbmF0dXJlVmFsdWU+S1Yzc0RsY1UzbUhZcmcwYjBhbnBtTjJ4djRpVXJGRmVzVTl1TVZQL2UycHp0aUduT0pKcGFoanBtbGRGTFRIVE1pdXFpbHlwZTVMZDAvdWNlWnR5Q2gzMHUvOW50aEVpLyszOFljcVNNRlNTeWpuN1FPUXl2VFNqTkVqT3Fhb2FTaEhnSmNaR3hUei9GcG5iYktCUUI0NCt0MXVZSjlZbFFJdWNKSkRZWjFZPTwvU2lnbmF0dXJlVmFsdWU+DQogICAgPEtleUluZm8+DQogICAgICAgIDxYNTA5RGF0YT4NCiAgICAgICAgICAgIDxYNTA5Q2VydGlmaWNhdGU+TUlJRHVEQ0NBcUNnQXdJQkFnSUVYY210SHpBTkJna3Foa2lHOXcwQkFRc0ZBREEyTVF3d0NnWURWUVFLRXdOdWFITXhDekFKQmdOVkJBc1RBa05CTVJrd0Z3WURWUVFERXhCT1NGTWdTVTVVSUV4bGRtVnNJREZFTUI0WERUSXdNVEF5TWpFd01qRTFOVm9YRFRJeU1UQXlNakV3TlRFMU5Wb3dRekVNTUFvR0ExVUVDaE1EYm1oek1ROHdEUVlEVlFRTEV3WlFaVzl3YkdVeElqQWdCZ05WQkFNTUdUVTFOVEkxTXpVeU1URXdPRjlTUVU1RVQwMWZWVk5GVWxFd2daOHdEUVlKS29aSWh2Y05BUUVCQlFBRGdZMEFNSUdKQW9HQkFLdDRzek53N09BSDdBUVJyRGUveEJJbXNNbU1pUzlFc3JUM2EzcC9MaDNicmR6STlhYWpUVVoyYi9jdmJPYTdQZVlkN3UrSzRhMlpkMFhrKzBHRm1ZR3pTVlg2aVlqYmx3cjB2YWkzMXpWN0crbEd2SHhINnBTb0xDd0lDYVpBRndhYmVENU96OTQreUEzYVdOV3RHVjBEZmg5cXdIM1pGQ0lNUnN2ZXJOMXBBZ01CQUFHamdnRkRNSUlCUHpBT0JnTlZIUThCQWY4RUJBTUNCa0F3WlFZRFZSMGdBUUgvQkZzd1dUQlhCZ3NxaGpvQWlYdG1BQU1DQURCSU1FWUdDQ3NHQVFVRkJ3SUJGanBvZEhSd2N6b3ZMM0JyYVM1dWFITXVkV3N2WTJWeWRHbG1hV05oZEdWZmNHOXNhV05wWlhNdlkyOXVkR1Z1ZEY5amIyMXRhWFJ0Wlc1ME1ETUdBMVVkSHdRc01Db3dLS0Ftb0NTR0ltaDBkSEE2THk5amNtd3VibWh6TG5WckwybHVkQzh4WkM5amNteGpNeTVqY213d0t3WURWUjBRQkNRd0lvQVBNakF5TURFd01qSXhNREl4TlRWYWdROHlNREl5TURNeE56RXdOVEUxTlZvd0h3WURWUjBqQkJnd0ZvQVVvSllmZ1lUTlBkNkVVS0w2UUxJekh4WTVQRkl3SFFZRFZSME9CQllFRkx0eXZZU3lhcWc2MEFFVVpneGswd3JqUkpjK01Ba0dBMVVkRXdRQ01BQXdHUVlKS29aSWh2WjlCMEVBQkF3d0Noc0VWamd1TXdNQ0JMQXdEUVlKS29aSWh2Y05BUUVMQlFBRGdnRUJBQmN6eThCOGp1UHBJZmFUTkZjeHJDMjJhQ1gveFlabWhyTC9OdklCQWFYMUc1aGppd21rR0tFMmhSVElyNjdQeFp4bVhzSnhpZ1JCTUhQbEkrbFkvK29rekgwR2k3YjVicWx3N3B4R0lnSk8wMDB3OHBGc3ZvOXc0MklZaEhvZHN2bkRWU3hoTVQwSjQ2UWhrOXNvRTBMam9FVUxLUVBQbFlHa2UvR2wzbTE3SXRGWXdPYlFIMGZNRXdtaXFCeWVJZno3Z1NjY096TDVjSXA2UGNaVE9qbzJJcVFwZ0VtaGpPY1JJbkVxQU5pdFNkam9pSkFKenBhYVpqWVRSZEhVWDdpN2FqRWlING05MW5GVys0QXFrTnR0bGI0V2NHS3NTbVdnZktLaGVGNElvWktNRTgweGVyU2dNeTh2dGpMT0JKQ0dYejB3TEdtUXVSbXhNVHE4OHE0PTwvWDUwOUNlcnRpZmljYXRlPg0KICAgICAgICA8L1g1MDlEYXRhPg0KICAgIDwvS2V5SW5mbz4NCjwvU2lnbmF0dXJlPg0K" + } + ] + } + } + ] +} diff --git a/src/test/resources/examples/full_examples/secondary-care/homecare/acute/nominated-pharmacy/clinical-practitioner/2-Task-Request-Release-200_OK.json b/src/test/resources/examples/full_examples/secondary-care/homecare/acute/nominated-pharmacy/clinical-practitioner/2-Task-Request-Release-200_OK.json new file mode 100644 index 00000000..2248bc6e --- /dev/null +++ b/src/test/resources/examples/full_examples/secondary-care/homecare/acute/nominated-pharmacy/clinical-practitioner/2-Task-Request-Release-200_OK.json @@ -0,0 +1,100 @@ +{ + "resourceType": "Parameters", + "id": "nominatedPharmacyReleaseRequest", + "parameter": [ + { + "name": "owner", + "resource": { + "resourceType": "Organization", + "id": "organization", + "identifier": [ + { + "system": "https://fhir.nhs.uk/Id/ods-organization-code", + "value": "VNE51" + } + ], + "address": [ + { + "city": "West Yorkshire", + "use": "work", + "line": [ + "17 Austhorpe Road", + "Crossgates", + "Leeds" + ], + "postalCode": "LS15 8BA" + } + ], + "active": true, + "type": [ + { + "coding": [ + { + "system": "https://fhir.nhs.uk/CodeSystem/organisation-role", + "code": "182", + "display": "PHARMACY" + } + ] + } + ], + "name": "The Simple Pharmacy", + "telecom": [ + { + "system": "phone", + "use": "work", + "value": "0113 3180277" + } + ] + } + }, + { + "name": "status", + "valueCode": "accepted" + }, + { + "name": "agent", + "resource": { + "resourceType": "PractitionerRole", + "id": "16708936-6397-4e03-b84f-4aaa790633e0", + "identifier": [ + { + "system": "https://fhir.nhs.uk/Id/sds-role-profile-id", + "value": "555086415105" + } + ], + "practitioner": { + "identifier": { + "system": "https://fhir.nhs.uk/Id/sds-user-id", + "value": "3415870201" + }, + "display": "Jackie Clark" + }, + "code": [ + { + "coding": [ + { + "system": "https://fhir.nhs.uk/CodeSystem/NHSDigital-SDS-JobRoleCode", + "code": "S8000:G8000:R8000", + "display": "Clinical Practitioner Access Role" + } + ] + } + ], + "telecom": [ + { + "system": "phone", + "value": "02380798431", + "use": "work" + } + ] + } + }, + { + "name": "group-identifier", + "valueIdentifier": { + "system": "https://fhir.nhs.uk/Id/prescription-order-number", + "value": "18B064-A99968-4BCAA3" + } + } + ] +} diff --git a/src/test/resources/examples/full_examples/secondary-care/homecare/acute/nominated-pharmacy/clinical-practitioner/2-Task-Request-Return-200_OK.json b/src/test/resources/examples/full_examples/secondary-care/homecare/acute/nominated-pharmacy/clinical-practitioner/2-Task-Request-Return-200_OK.json new file mode 100644 index 00000000..3c15c394 --- /dev/null +++ b/src/test/resources/examples/full_examples/secondary-care/homecare/acute/nominated-pharmacy/clinical-practitioner/2-Task-Request-Return-200_OK.json @@ -0,0 +1,139 @@ +{ + "resourceType": "Task", + "id": "ee1b55f8-113c-4725-99a3-25fbad366dd6", + "contained": [ + { + "resourceType": "PractitionerRole", + "id": "16708936-6397-4e03-b84f-4aaa790633e0", + "identifier": [ + { + "system": "https://fhir.nhs.uk/Id/sds-role-profile-id", + "value": "555086415105" + } + ], + "practitioner": { + "identifier": { + "system": "https://fhir.nhs.uk/Id/sds-user-id", + "value": "3415870201" + }, + "display": "Jackie Clark" + }, + "organization": { + "reference": "#organisation" + }, + "code": [ + { + "coding": [ + { + "system": "https://fhir.nhs.uk/CodeSystem/NHSDigital-SDS-JobRoleCode", + "code": "S8000:G8000:R8000", + "display": "Clinical Practitioner Access Role" + } + ] + } + ], + "telecom": [ + { + "system": "phone", + "use": "work", + "value": "02380798431" + } + ] + }, + { + "resourceType": "Organization", + "id": "organisation", + "identifier": [ + { + "system": "https://fhir.nhs.uk/Id/ods-organization-code", + "value": "VNE51" + } + ], + "address": [ + { + "city": "West Yorkshire", + "use": "work", + "line": [ + "17 Austhorpe Road", + "Crossgates", + "Leeds" + ], + "postalCode": "LS15 8BA" + } + ], + "active": true, + "type": [ + { + "coding": [ + { + "system": "https://fhir.nhs.uk/CodeSystem/organisation-role", + "code": "182", + "display": "PHARMACY" + } + ] + } + ], + "name": "The Simple Pharmacy", + "telecom": [ + { + "system": "phone", + "use": "work", + "value": "0113 3180277" + } + ] + } + ], + "identifier": [ + { + "system": "https://tools.ietf.org/html/rfc4122", + "value": "add2e9dd-da0a-c266-a4e3-447c68239525" + } + ], + "status": "rejected", + "intent": "order", + "groupIdentifier": { + "system": "https://fhir.nhs.uk/Id/prescription-order-number", + "value": "18B064-A99968-4BCAA3" + }, + "code": { + "coding": [ + { + "system": "http://hl7.org/fhir/CodeSystem/task-code", + "code": "change", + "display": "Change the focal resource" + } + ] + }, + "focus": { + "type": "Bundle", + "identifier": { + "system": "https://tools.ietf.org/html/rfc4122", + "value": "67c585f6-f4b5-4f53-861a-50c07ecff5d4" + } + }, + "for": { + "identifier": { + "system": "https://fhir.nhs.uk/Id/nhs-number", + "value": "9449304289" + } + }, + "authoredOn": "2016-03-10T22:39:32-04:00", + "owner": { + "identifier": { + "system": "https://fhir.nhs.uk/Id/ods-organization-code", + "value": "VNFKT" + } + }, + "statusReason": { + "coding": [ + { + "system": "https://fhir.nhs.uk/CodeSystem/EPS-task-dispense-return-status-reason", + "code": "0002", + "display": "Unable to dispense medication on prescriptions" + } + ] + }, + "requester": { + "reference": "#16708936-6397-4e03-b84f-4aaa790633e0" + } +} diff --git a/src/test/resources/examples/full_examples/secondary-care/homecare/acute/nominated-pharmacy/clinical-practitioner/3-Prepare-Request-200_OK.json b/src/test/resources/examples/full_examples/secondary-care/homecare/acute/nominated-pharmacy/clinical-practitioner/3-Prepare-Request-200_OK.json new file mode 100644 index 00000000..baff1874 --- /dev/null +++ b/src/test/resources/examples/full_examples/secondary-care/homecare/acute/nominated-pharmacy/clinical-practitioner/3-Prepare-Request-200_OK.json @@ -0,0 +1,341 @@ +{ + "resourceType": "Bundle", + "id": "0a1fd9ef-a3d5-4e95-84cd-552070a03096", + "identifier": { + "system": "https://tools.ietf.org/html/rfc4122", + "value": "b1137e40-8d6c-4ba6-9823-36eec3ac7cbe" + }, + "type": "message", + "entry": [ + { + "fullUrl": "urn:uuid:0a1fd9ef-a3d5-4e95-84cd-552070a03096", + "resource": { + "resourceType": "MessageHeader", + "id": "0a1fd9ef-a3d5-4e95-84cd-552070a03096", + "eventCoding": { + "system": "https://fhir.nhs.uk/CodeSystem/message-event", + "code": "prescription-order", + "display": "Prescription Order" + }, + "sender": { + "identifier": { + "system": "https://fhir.nhs.uk/Id/ods-organization-code", + "value": "RBA" + }, + "reference": "urn:uuid:56166769-c1c4-4d07-afa8-132b5dfca666", + "display": "BOOTH|PHIL" + }, + "source": { + "endpoint": "https://directory.spineservices.nhs.uk/STU3/Organization/RBA" + }, + "destination": [ + { + "endpoint": "https://directory.spineservices.nhs.uk/STU3/Organization/FH542", + "receiver": { + "identifier": { + "system": "https://fhir.nhs.uk/Id/ods-organization-code", + "value": "VN6XW" + } + } + } + ], + "focus": [ + { + "reference": "urn:uuid:78d3c2eb-009e-4ec8-a358-b042954aa9b2" + }, + { + "reference": "urn:uuid:a54219b8-f741-4c47-b662-e4f8dfa49ab6" + } + ] + } + }, + { + "fullUrl": "urn:uuid:a54219b8-f741-4c47-b662-e4f8dfa49ab6", + "resource": { + "resourceType": "MedicationRequest", + "id": "a54219b8-f741-4c47-b662-e4f8dfa49ab6", + "extension": [ + { + "url": "https://fhir.nhs.uk/StructureDefinition/Extension-DM-PrescriptionType", + "valueCoding": { + "system": "https://fhir.nhs.uk/CodeSystem/prescription-type", + "code": "1001", + "display": "Outpatient Community Prescriber - Medical Prescriber" + } + } + ], + "identifier": [ + { + "system": "https://fhir.nhs.uk/Id/prescription-order-item-number", + "value": "a54219b8-f741-4c47-b662-e4f8dfa49ab6" + } + ], + "status": "active", + "intent": "order", + "category": [ + { + "coding": [ + { + "system": "http://terminology.hl7.org/CodeSystem/medicationrequest-category", + "code": "outpatient", + "display": "Outpatient" + } + ] + } + ], + "medicationCodeableConcept": { + "coding": [ + { + "system": "http://snomed.info/sct", + "code": "15517911000001104", + "display": "Methotrexate 10mg/0.2ml solution for injection pre-filled syringes" + } + ] + }, + "subject": { + "reference": "urn:uuid:78d3c2eb-009e-4ec8-a358-b042954aa9b2" + }, + "requester": { + "reference": "urn:uuid:56166769-c1c4-4d07-afa8-132b5dfca666" + }, + "groupIdentifier": { + "extension": [ + { + "url": "https://fhir.nhs.uk/StructureDefinition/Extension-DM-PrescriptionId", + "valueIdentifier": { + "system": "https://fhir.nhs.uk/Id/prescription", + "value": "2cbe1f0b-a05f-4697-9948-031f9bf9dd97" + } + } + ], + "system": "https://fhir.nhs.uk/Id/prescription-order-number", + "value": "C2782B-A99968-4E4E9Z" + }, + "courseOfTherapyType": { + "coding": [ + { + "system": "http://terminology.hl7.org/CodeSystem/medicationrequest-course-of-therapy", + "code": "acute", + "display": "Short course (acute) therapy" + } + ] + }, + "dosageInstruction": [ + { + "text": "Inject 10 milligram - 5 times a day - Subcutaneous route - for 10 days", + "timing": { + "repeat": { + "frequency": 5, + "period": 1, + "periodUnit": "d", + "boundsDuration": { + "value": 10, + "unit": "day", + "system": "http://unitsofmeasure.org", + "code": "d" + } + } + }, + "method": { + "coding": [ + { + "system": "http://snomed.info/sct", + "code": "422145002", + "display": "Inject" + } + ] + }, + "route": { + "coding": [ + { + "system": "http://snomed.info/sct", + "code": "34206005", + "display": "Subcutaneous route" + } + ] + }, + "doseAndRate": [ + { + "doseQuantity": { + "value": 10, + "unit": "milligram", + "system": "http://unitsofmeasure.org", + "code": "mg" + } + } + ] + } + ], + "dispenseRequest": { + "extension": [ + { + "url": "https://fhir.nhs.uk/StructureDefinition/Extension-DM-PerformerSiteType", + "valueCoding": { + "system": "https://fhir.nhs.uk/CodeSystem/dispensing-site-preference", + "code": "P1" + } + } + ], + "quantity": { + "value": 1, + "unit": "pre-filled disposable injection", + "system": "http://snomed.info/sct", + "code": "3318611000001103" + }, + "performer": { + "identifier": { + "system": "https://fhir.nhs.uk/Id/ods-organization-code", + "value": "VN6XW" + } + } + }, + "substitution": { + "allowedBoolean": false + } + } + }, + { + "fullUrl": "urn:uuid:78d3c2eb-009e-4ec8-a358-b042954aa9b2", + "resource": { + "resourceType": "Patient", + "identifier": [ + { + "system": "https://fhir.nhs.uk/Id/nhs-number", + "value": "9990548609" + } + ], + "name": [ + { + "use": "usual", + "family": "XXTESTPATIENT-TGNP", + "given": ["DONOTUSE"], + "prefix": ["MR"] + } + ], + "gender": "male", + "birthDate": "1932-01-06", + "address": [ + { + "use": "home", + "line": [ + "1 Trevelyan Square", + "Boar Lane", + "Leeds", + "West Yorkshire" + ], + "postalCode": "LS1 6AE" + } + ], + "generalPractitioner": [ + { + "identifier": { + "system": "https://fhir.nhs.uk/Id/ods-organization-code", + "value": "B81001" + } + } + ] + } + }, + { + "fullUrl": "urn:uuid:a8c85454-f8cb-498d-9629-78e2cb5fa47a", + "resource": { + "resourceType": "Practitioner", + "id": "a8c85454-f8cb-498d-9629-78e2cb5fa47a", + "identifier": [ + { + "system": "https://fhir.nhs.uk/Id/sds-user-id", + "value": "555086689106" + }, + { + "system": "https://fhir.hl7.org.uk/Id/gmc-number", + "value": "6150129" + } + ], + "name": [ + { + "family": "FIFTYSEVEN", + "given": ["RANDOM"], + "prefix": ["MR"] + } + ] + } + }, + { + "fullUrl": "urn:uuid:56166769-c1c4-4d07-afa8-132b5dfca666", + "resource": { + "resourceType": "PractitionerRole", + "id": "56166769-c1c4-4d07-afa8-132b5dfca666", + "identifier": [ + { + "system": "https://fhir.nhs.uk/Id/sds-role-profile-id", + "value": "601986680555" + }, + { + "system": "https://fhir.hl7.org.uk/Id/nhsbsa-spurious-code", + "value": "683458" + } + ], + "practitioner": { + "reference": "urn:uuid:a8c85454-f8cb-498d-9629-78e2cb5fa47a" + }, + "organization": { + "reference": "urn:uuid:3b4b03a5-52ba-4ba6-9b82-70350aa109d8" + }, + "code": [ + { + "coding": [ + { + "system": "https://fhir.nhs.uk/CodeSystem/NHSDigital-SDS-JobRoleCode", + "code": "S8000:G8000:R8000", + "display": "Clinical Practitioner Access Role " + } + ] + } + ], + "telecom": [ + { + "system": "phone", + "value": "01234567890", + "use": "work" + } + ] + } + }, + { + "fullUrl": "urn:uuid:3b4b03a5-52ba-4ba6-9b82-70350aa109d8", + "resource": { + "resourceType": "Organization", + "id": "3b4b03a5-52ba-4ba6-9b82-70350aa109d8", + "identifier": [ + { + "system": "https://fhir.nhs.uk/Id/ods-organization-code", + "value": "A99968" + } + ], + "name": "SOMERSET BOWEL CANCER SCREENING CENTRE", + "address": [ + { + "use": "work", + "line": ["MUSGROVE PARK HOSPITAL"], + "city": "TAUNTON", + "postalCode": "TA1 5DA" + } + ], + "telecom": [ + { + "system": "phone", + "value": "01823 333444", + "use": "work" + } + ], + "partOf": { + "identifier": { + "system": "https://fhir.nhs.uk/Id/ods-organization-code", + "value": "RBA" + }, + "display": "TAUNTON AND SOMERSET NHS FOUNDATION TRUST" + } + } + } + ] +} diff --git a/src/test/resources/examples/full_examples/secondary-care/homecare/acute/nominated-pharmacy/clinical-practitioner/3-Prepare-Response-200_OK.json b/src/test/resources/examples/full_examples/secondary-care/homecare/acute/nominated-pharmacy/clinical-practitioner/3-Prepare-Response-200_OK.json new file mode 100644 index 00000000..2da5c7f3 --- /dev/null +++ b/src/test/resources/examples/full_examples/secondary-care/homecare/acute/nominated-pharmacy/clinical-practitioner/3-Prepare-Response-200_OK.json @@ -0,0 +1,17 @@ +{ + "resourceType": "Parameters", + "parameter": [ + { + "name": "digest", + "valueString": "PFNpZ25lZEluZm8geG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvMDkveG1sZHNpZyMiPjxDYW5vbmljYWxpemF0aW9uTWV0aG9kIEFsZ29yaXRobT0iaHR0cDovL3d3dy53My5vcmcvMjAwMS8xMC94bWwtZXhjLWMxNG4jIj48L0Nhbm9uaWNhbGl6YXRpb25NZXRob2Q+PFNpZ25hdHVyZU1ldGhvZCBBbGdvcml0aG09Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvMDkveG1sZHNpZyNyc2Etc2hhMSI+PC9TaWduYXR1cmVNZXRob2Q+PFJlZmVyZW5jZT48VHJhbnNmb3Jtcz48VHJhbnNmb3JtIEFsZ29yaXRobT0iaHR0cDovL3d3dy53My5vcmcvMjAwMS8xMC94bWwtZXhjLWMxNG4jIj48L1RyYW5zZm9ybT48L1RyYW5zZm9ybXM+PERpZ2VzdE1ldGhvZCBBbGdvcml0aG09Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvMDkveG1sZHNpZyNzaGExIj48L0RpZ2VzdE1ldGhvZD48RGlnZXN0VmFsdWU+ek1kTEFGZCswSmpPV29TWkt4UWZxTUhpNWlZPTwvRGlnZXN0VmFsdWU+PC9SZWZlcmVuY2U+PC9TaWduZWRJbmZvPg==" + }, + { + "name": "timestamp", + "valueString": "2022-10-25T10:24:34+00:00" + }, + { + "name": "algorithm", + "valueString": "RS1" + } + ] +} diff --git a/src/test/resources/examples/full_examples/secondary-care/homecare/acute/nominated-pharmacy/clinical-practitioner/3-Process-Request-Dispense-200_OK.json b/src/test/resources/examples/full_examples/secondary-care/homecare/acute/nominated-pharmacy/clinical-practitioner/3-Process-Request-Dispense-200_OK.json new file mode 100644 index 00000000..ee62c770 --- /dev/null +++ b/src/test/resources/examples/full_examples/secondary-care/homecare/acute/nominated-pharmacy/clinical-practitioner/3-Process-Request-Dispense-200_OK.json @@ -0,0 +1,383 @@ +{ + "resourceType": "Bundle", + "id": "prescription-dispense-notification", + "identifier": { + "system": "https://tools.ietf.org/html/rfc4122", + "value": "602159ee-1678-41ec-a100-7b3dd04c1d84" + }, + "type": "message", + "entry": [ + { + "fullUrl": "urn:uuid:be807dac-9dcf-45cf-91d6-70d9d58dcf34", + "resource": { + "resourceType": "MessageHeader", + "eventCoding": { + "system": "https://fhir.nhs.uk/CodeSystem/message-event", + "code": "dispense-notification", + "display": "Dispense Notification" + }, + "destination": [ + { + "endpoint": "https://sandbox.api.service.nhs.uk/electronic-prescriptions/$post-message", + "receiver": { + "identifier": { + "system": "https://fhir.nhs.uk/Id/ods-organization-code", + "value": "VN6XW" + }, + "display": "GRACE HOMECARE LTD" + } + } + ], + "sender": { + "identifier": { + "system": "https://fhir.nhs.uk/Id/ods-organization-code", + "value": "VN6XW" + }, + "display": "GRACE HOMECARE LTD" + }, + "source": { + "name": "GRACE HOMECARE LTD", + "endpoint": "https://directory.spineservices.nhs.uk/STU3/Organization/VN6XW" + }, + "reason": { + "coding": [ + { + "system": "https://fhir.nhs.uk/CodeSystem/message-reason-prescription", + "code": "notification", + "display": "Notification" + } + ] + }, + "response": { + "identifier": "999f9999-9999-9999-9ff9-f9fff9999999", + "code": "ok" + }, + "focus": [ + { + "reference": "urn:uuid:4509b70d-d8b8-ea03-1105-64557cb54a29" + } + ] + } + }, + { + "fullUrl": "urn:uuid:4509b70d-d8b8-ea03-1105-64557cb54a29", + "resource": { + "resourceType": "MedicationDispense", + "contained": [ + { + "resourceType": "PractitionerRole", + "id": "performer", + "identifier": [ + { + "system": "https://fhir.nhs.uk/Id/sds-role-profile-id", + "value": "555086415105" + } + ], + "practitioner": { + "identifier": { + "system": "https://fhir.nhs.uk/Id/sds-user-id", + "value": "3415870201" + }, + "display": "Jackie Clark" + }, + "organization": { + "reference": "urn:uuid:2bf9f37c-d88b-4f86-ad5f-373c1416e04b" + }, + "code": [ + { + "coding": [ + { + "system": "https://fhir.nhs.uk/CodeSystem/NHSDigital-SDS-JobRoleCode", + "code": "S8000:G8000:R8000", + "display": "Clinical Practitioner Access Role" + } + ] + } + ], + "telecom": [ + { + "system": "phone", + "use": "work", + "value": "02380798431" + } + ] + }, + { + "resourceType": "MedicationRequest", + "id": "m1", + "extension": [ + { + "url": "https://fhir.nhs.uk/StructureDefinition/Extension-DM-PrescriptionType", + "valueCoding": { + "system": "https://fhir.nhs.uk/CodeSystem/prescription-type", + "code": "1001", + "display": "Outpatient Community Prescriber - Medical Prescriber" + } + } + ], + "identifier": [ + { + "system": "https://fhir.nhs.uk/Id/prescription-order-item-number", + "value": "a54219b8-f741-4c47-b662-e4f8dfa49ab6" + } + ], + "status": "active", + "intent": "order", + "category": [ + { + "coding": [ + { + "system": "http://terminology.hl7.org/CodeSystem/medicationrequest-category", + "code": "outpatient", + "display": "Outpatient" + } + ] + } + ], + "medicationCodeableConcept": { + "coding": [ + { + "system": "http://snomed.info/sct", + "code": "15517911000001104", + "display": "Methotrexate 10mg/0.2ml solution for injection pre-filled syringes" + } + ] + }, + "subject": { + "reference": "urn:uuid:78d3c2eb-009e-4ec8-a358-b042954aa9b2" + }, + "authoredOn": "2021-05-07T14:47:29+00:00", + "requester": { + "reference": "urn:uuid:56166769-c1c4-4d07-afa8-132b5dfca666" + }, + "groupIdentifier": { + "extension": [ + { + "url": "https://fhir.nhs.uk/StructureDefinition/Extension-DM-PrescriptionId", + "valueIdentifier": { + "system": "https://fhir.nhs.uk/Id/prescription", + "value": "2cbe1f0b-a05f-4697-9948-031f9bf9dd97" + } + } + ], + "system": "https://fhir.nhs.uk/Id/prescription-order-number", + "value": "C2782B-A99968-4E4E9Z" + }, + "courseOfTherapyType": { + "coding": [ + { + "system": "http://terminology.hl7.org/CodeSystem/medicationrequest-course-of-therapy", + "code": "acute", + "display": "Short course (acute) therapy" + } + ] + }, + "dosageInstruction": [ + { + "text": "10 milligram, Inject, Subcutaneous route, once weekly", + "timing": { + "repeat": { + "frequency": 5, + "period": 1, + "periodUnit": "d", + "boundsDuration": { + "value": 10, + "unit": "day", + "system": "http://unitsofmeasure.org", + "code": "d" + } + } + }, + "method": { + "coding": [ + { + "system": "http://snomed.info/sct", + "code": "422145002", + "display": "Inject" + } + ] + }, + "route": { + "coding": [ + { + "system": "http://snomed.info/sct", + "code": "34206005", + "display": "Subcutaneous route" + } + ] + }, + "doseAndRate": [ + { + "doseQuantity": { + "value": 10, + "unit": "milligram", + "system": "http://unitsofmeasure.org", + "code": "mg" + } + } + ] + } + ], + "dispenseRequest": { + "extension": [ + { + "url": "https://fhir.nhs.uk/StructureDefinition/Extension-DM-PerformerSiteType", + "valueCoding": { + "system": "https://fhir.nhs.uk/CodeSystem/dispensing-site-preference", + "code": "P1" + } + } + ], + "quantity": { + "value": 1, + "unit": "pre-filled disposable injection", + "system": "http://snomed.info/sct", + "code": "3318611000001103" + }, + "performer": { + "identifier": { + "system": "https://fhir.nhs.uk/Id/ods-organization-code", + "value": "VN6XW" + } + } + }, + "substitution": { + "allowedBoolean": false + } + } + ], + "extension": [ + { + "url": "https://fhir.nhs.uk/StructureDefinition/Extension-EPS-TaskBusinessStatus", + "valueCoding": { + "system": "https://fhir.nhs.uk/CodeSystem/EPS-task-business-status", + "code": "0003", + "display": "With Dispenser - Active" + } + } + ], + "identifier": [ + { + "system": "https://fhir.nhs.uk/Id/prescription-dispense-item-number", + "value": "a54219b8-f741-4c47-b662-e4f8dfa49ab6" + } + ], + "status": "completed", + "medicationCodeableConcept": { + "coding": [ + { + "system": "http://snomed.info/sct", + "code": "15517911000001104", + "display": "Methotrexate 10mg/0.2ml solution for injection pre-filled syringes" + } + ] + }, + "subject": { + "type": "Patient", + "identifier": { + "system": "https://fhir.nhs.uk/Id/nhs-number", + "value": "9990548609" + }, + "display": "MR DONOTUSE XXTESTPATIENT-TGNP" + }, + "performer": [ + { + "actor": { + "reference": "#performer" + } + } + ], + "authorizingPrescription": [ + { + "reference": "#m1" + } + ], + "type": { + "coding": [ + { + "system": "https://fhir.nhs.uk/CodeSystem/medicationdispense-type", + "code": "0001", + "display": "Item fully dispensed" + } + ] + }, + "quantity": { + "value": 1, + "unit": "pre-filled disposable injection", + "system": "http://snomed.info/sct", + "code": "3318611000001103" + }, + "daysSupply": { + "value": 10, + "unit": "Day", + "system": "http://unitsofmeasure.org", + "code": "d" + }, + "whenHandedOver": "2021-05-07T14:47:29+00:00", + "dosageInstruction": [ + { + "text": "10 milligram, Inject, Subcutaneous route, once weekly" + } + ] + } + }, + { + "fullUrl": "urn:uuid:2bf9f37c-d88b-4f86-ad5f-373c1416e04b", + "resource": { + "resourceType": "Organization", + "extension": [ + { + "url": "https://fhir.nhs.uk/StructureDefinition/Extension-ODS-OrganisationRelationships", + "extension": [ + { + "url": "reimbursementAuthority", + "valueIdentifier": { + "system": "https://fhir.nhs.uk/Id/ods-organization-code", + "value": "T1450" + } + } + ] + } + ], + "identifier": [ + { + "system": "https://fhir.nhs.uk/Id/ods-organization-code", + "value": "VNE51" + } + ], + "address": [ + { + "city": "West Yorkshire", + "use": "work", + "line": [ + "17 Austhorpe Road", + "Crossgates", + "Leeds" + ], + "postalCode": "LS15 8BA" + } + ], + "active": true, + "type": [ + { + "coding": [ + { + "system": "https://fhir.nhs.uk/CodeSystem/organisation-role", + "code": "182", + "display": "PHARMACY" + } + ] + } + ], + "name": "The Simple Pharmacy", + "telecom": [ + { + "system": "phone", + "use": "work", + "value": "0113 3180277" + } + ] + } + } + ] +} diff --git a/src/test/resources/examples/full_examples/secondary-care/homecare/acute/nominated-pharmacy/clinical-practitioner/3-Process-Request-Send-200_OK.json b/src/test/resources/examples/full_examples/secondary-care/homecare/acute/nominated-pharmacy/clinical-practitioner/3-Process-Request-Send-200_OK.json new file mode 100644 index 00000000..07962f0b --- /dev/null +++ b/src/test/resources/examples/full_examples/secondary-care/homecare/acute/nominated-pharmacy/clinical-practitioner/3-Process-Request-Send-200_OK.json @@ -0,0 +1,376 @@ +{ + "resourceType": "Bundle", + "id": "0a1fd9ef-a3d5-4e95-84cd-552070a03096", + "identifier": { + "system": "https://tools.ietf.org/html/rfc4122", + "value": "b1137e40-8d6c-4ba6-9823-36eec3ac7cbe" + }, + "type": "message", + "entry": [ + { + "fullUrl": "urn:uuid:0a1fd9ef-a3d5-4e95-84cd-552070a03096", + "resource": { + "resourceType": "MessageHeader", + "id": "0a1fd9ef-a3d5-4e95-84cd-552070a03096", + "eventCoding": { + "system": "https://fhir.nhs.uk/CodeSystem/message-event", + "code": "prescription-order", + "display": "Prescription Order" + }, + "sender": { + "identifier": { + "system": "https://fhir.nhs.uk/Id/ods-organization-code", + "value": "RBA" + }, + "reference": "urn:uuid:56166769-c1c4-4d07-afa8-132b5dfca666", + "display": "BOOTH|PHIL" + }, + "source": { + "endpoint": "https://directory.spineservices.nhs.uk/STU3/Organization/RBA" + }, + "destination": [ + { + "endpoint": "https://directory.spineservices.nhs.uk/STU3/Organization/FH542", + "receiver": { + "identifier": { + "system": "https://fhir.nhs.uk/Id/ods-organization-code", + "value": "VN6XW" + } + } + } + ], + "focus": [ + { + "reference": "urn:uuid:78d3c2eb-009e-4ec8-a358-b042954aa9b2" + }, + { + "reference": "urn:uuid:a54219b8-f741-4c47-b662-e4f8dfa49ab6" + } + ] + } + }, + { + "fullUrl": "urn:uuid:a54219b8-f741-4c47-b662-e4f8dfa49ab6", + "resource": { + "resourceType": "MedicationRequest", + "id": "a54219b8-f741-4c47-b662-e4f8dfa49ab6", + "extension": [ + { + "url": "https://fhir.nhs.uk/StructureDefinition/Extension-DM-PrescriptionType", + "valueCoding": { + "system": "https://fhir.nhs.uk/CodeSystem/prescription-type", + "code": "1001", + "display": "Outpatient Community Prescriber - Medical Prescriber" + } + } + ], + "identifier": [ + { + "system": "https://fhir.nhs.uk/Id/prescription-order-item-number", + "value": "a54219b8-f741-4c47-b662-e4f8dfa49ab6" + } + ], + "status": "active", + "intent": "order", + "category": [ + { + "coding": [ + { + "system": "http://terminology.hl7.org/CodeSystem/medicationrequest-category", + "code": "outpatient", + "display": "Outpatient" + } + ] + } + ], + "medicationCodeableConcept": { + "coding": [ + { + "system": "http://snomed.info/sct", + "code": "15517911000001104", + "display": "Methotrexate 10mg/0.2ml solution for injection pre-filled syringes" + } + ] + }, + "subject": { + "reference": "urn:uuid:78d3c2eb-009e-4ec8-a358-b042954aa9b2" + }, + "requester": { + "reference": "urn:uuid:56166769-c1c4-4d07-afa8-132b5dfca666" + }, + "groupIdentifier": { + "extension": [ + { + "url": "https://fhir.nhs.uk/StructureDefinition/Extension-DM-PrescriptionId", + "valueIdentifier": { + "system": "https://fhir.nhs.uk/Id/prescription", + "value": "2cbe1f0b-a05f-4697-9948-031f9bf9dd97" + } + } + ], + "system": "https://fhir.nhs.uk/Id/prescription-order-number", + "value": "C2782B-A99968-4E4E9Z" + }, + "courseOfTherapyType": { + "coding": [ + { + "system": "http://terminology.hl7.org/CodeSystem/medicationrequest-course-of-therapy", + "code": "acute", + "display": "Short course (acute) therapy" + } + ] + }, + "dosageInstruction": [ + { + "text": "Inject 10 milligram - 5 times a day - Subcutaneous route - for 10 days", + "timing": { + "repeat": { + "frequency": 5, + "period": 1, + "periodUnit": "d", + "boundsDuration": { + "value": 10, + "unit": "day", + "system": "http://unitsofmeasure.org", + "code": "d" + } + } + }, + "method": { + "coding": [ + { + "system": "http://snomed.info/sct", + "code": "422145002", + "display": "Inject" + } + ] + }, + "route": { + "coding": [ + { + "system": "http://snomed.info/sct", + "code": "34206005", + "display": "Subcutaneous route" + } + ] + }, + "doseAndRate": [ + { + "doseQuantity": { + "value": 10, + "unit": "milligram", + "system": "http://unitsofmeasure.org", + "code": "mg" + } + } + ] + } + ], + "dispenseRequest": { + "extension": [ + { + "url": "https://fhir.nhs.uk/StructureDefinition/Extension-DM-PerformerSiteType", + "valueCoding": { + "system": "https://fhir.nhs.uk/CodeSystem/dispensing-site-preference", + "code": "P1" + } + } + ], + "quantity": { + "value": 1, + "unit": "pre-filled disposable injection", + "system": "http://snomed.info/sct", + "code": "3318611000001103" + }, + "performer": { + "identifier": { + "system": "https://fhir.nhs.uk/Id/ods-organization-code", + "value": "VN6XW" + } + } + }, + "substitution": { + "allowedBoolean": false + } + } + }, + { + "fullUrl": "urn:uuid:78d3c2eb-009e-4ec8-a358-b042954aa9b2", + "resource": { + "resourceType": "Patient", + "identifier": [ + { + "system": "https://fhir.nhs.uk/Id/nhs-number", + "value": "9990548609" + } + ], + "name": [ + { + "use": "usual", + "family": "XXTESTPATIENT-TGNP", + "given": ["DONOTUSE"], + "prefix": ["MR"] + } + ], + "gender": "male", + "birthDate": "1932-01-06", + "address": [ + { + "use": "home", + "line": [ + "1 Trevelyan Square", + "Boar Lane", + "Leeds", + "West Yorkshire" + ], + "postalCode": "LS1 6AE" + } + ], + "generalPractitioner": [ + { + "identifier": { + "system": "https://fhir.nhs.uk/Id/ods-organization-code", + "value": "B81001" + } + } + ] + } + }, + { + "fullUrl": "urn:uuid:a8c85454-f8cb-498d-9629-78e2cb5fa47a", + "resource": { + "resourceType": "Practitioner", + "id": "a8c85454-f8cb-498d-9629-78e2cb5fa47a", + "identifier": [ + { + "system": "https://fhir.nhs.uk/Id/sds-user-id", + "value": "555086689106" + }, + { + "system": "https://fhir.hl7.org.uk/Id/gmc-number", + "value": "6150129" + } + ], + "name": [ + { + "family": "FIFTYSEVEN", + "given": ["RANDOM"], + "prefix": ["MR"] + } + ] + } + }, + { + "fullUrl": "urn:uuid:56166769-c1c4-4d07-afa8-132b5dfca666", + "resource": { + "resourceType": "PractitionerRole", + "id": "56166769-c1c4-4d07-afa8-132b5dfca666", + "identifier": [ + { + "system": "https://fhir.nhs.uk/Id/sds-role-profile-id", + "value": "601986680555" + }, + { + "system": "https://fhir.hl7.org.uk/Id/nhsbsa-spurious-code", + "value": "683458" + } + ], + "practitioner": { + "reference": "urn:uuid:a8c85454-f8cb-498d-9629-78e2cb5fa47a" + }, + "organization": { + "reference": "urn:uuid:3b4b03a5-52ba-4ba6-9b82-70350aa109d8" + }, + "code": [ + { + "coding": [ + { + "system": "https://fhir.nhs.uk/CodeSystem/NHSDigital-SDS-JobRoleCode", + "code": "S8000:G8000:R8000", + "display": "Clinical Practitioner Access Role " + } + ] + } + ], + "telecom": [ + { + "system": "phone", + "value": "01234567890", + "use": "work" + } + ] + } + }, + { + "fullUrl": "urn:uuid:3b4b03a5-52ba-4ba6-9b82-70350aa109d8", + "resource": { + "resourceType": "Organization", + "id": "3b4b03a5-52ba-4ba6-9b82-70350aa109d8", + "identifier": [ + { + "system": "https://fhir.nhs.uk/Id/ods-organization-code", + "value": "A99968" + } + ], + "name": "SOMERSET BOWEL CANCER SCREENING CENTRE", + "address": [ + { + "use": "work", + "line": ["MUSGROVE PARK HOSPITAL"], + "city": "TAUNTON", + "postalCode": "TA1 5DA" + } + ], + "telecom": [ + { + "system": "phone", + "value": "01823 333444", + "use": "work" + } + ], + "partOf": { + "identifier": { + "system": "https://fhir.nhs.uk/Id/ods-organization-code", + "value": "RBA" + }, + "display": "TAUNTON AND SOMERSET NHS FOUNDATION TRUST" + } + } + }, + { + "fullUrl": "urn:uuid:28828c55-8fa7-42d7-916f-fcf076e0c10e", + "resource": { + "resourceType": "Provenance", + "id": "28828c55-8fa7-42d7-916f-fcf076e0c10e", + "target": [ + { + "reference": "urn:uuid:a54219b8-f741-4c47-b662-e4f8dfa49ab6" + } + ], + "recorded": "2008-02-27T11:38:00+00:00", + "agent": [ + { + "who": { + "reference": "urn:uuid:56166769-c1c4-4d07-afa8-132b5dfca666" + } + } + ], + "signature": [ + { + "type": [ + { + "system": "urn:iso-astm:E1762-95:2013", + "code": "1.2.840.10065.1.12.1.1" + } + ], + "when": "2021-05-07T14:47:32+00:00", + "who": { + "reference": "urn:uuid:56166769-c1c4-4d07-afa8-132b5dfca666" + }, + "data": "DQo8U2lnbmF0dXJlIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwLzA5L3htbGRzaWcjIj4NCiAgICA8U2lnbmVkSW5mbz48Q2Fub25pY2FsaXphdGlvbk1ldGhvZCBBbGdvcml0aG09Imh0dHA6Ly93d3cudzMub3JnLzIwMDEvMTAveG1sLWV4Yy1jMTRuIyI+PC9DYW5vbmljYWxpemF0aW9uTWV0aG9kPjxTaWduYXR1cmVNZXRob2QgQWxnb3JpdGhtPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwLzA5L3htbGRzaWcjcnNhLXNoYTEiPjwvU2lnbmF0dXJlTWV0aG9kPjxSZWZlcmVuY2U+PFRyYW5zZm9ybXM+PFRyYW5zZm9ybSBBbGdvcml0aG09Imh0dHA6Ly93d3cudzMub3JnLzIwMDEvMTAveG1sLWV4Yy1jMTRuIyI+PC9UcmFuc2Zvcm0+PC9UcmFuc2Zvcm1zPjxEaWdlc3RNZXRob2QgQWxnb3JpdGhtPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwLzA5L3htbGRzaWcjc2hhMSI+PC9EaWdlc3RNZXRob2Q+PERpZ2VzdFZhbHVlPmlscE5XeW05Wk1Pbk5jV1VzWk9TditmbFJwQT08L0RpZ2VzdFZhbHVlPjwvUmVmZXJlbmNlPjwvU2lnbmVkSW5mbz4NCiAgICA8U2lnbmF0dXJlVmFsdWU+S1Yzc0RsY1UzbUhZcmcwYjBhbnBtTjJ4djRpVXJGRmVzVTl1TVZQL2UycHp0aUduT0pKcGFoanBtbGRGTFRIVE1pdXFpbHlwZTVMZDAvdWNlWnR5Q2gzMHUvOW50aEVpLyszOFljcVNNRlNTeWpuN1FPUXl2VFNqTkVqT3Fhb2FTaEhnSmNaR3hUei9GcG5iYktCUUI0NCt0MXVZSjlZbFFJdWNKSkRZWjFZPTwvU2lnbmF0dXJlVmFsdWU+DQogICAgPEtleUluZm8+DQogICAgICAgIDxYNTA5RGF0YT4NCiAgICAgICAgICAgIDxYNTA5Q2VydGlmaWNhdGU+TUlJRHVEQ0NBcUNnQXdJQkFnSUVYY210SHpBTkJna3Foa2lHOXcwQkFRc0ZBREEyTVF3d0NnWURWUVFLRXdOdWFITXhDekFKQmdOVkJBc1RBa05CTVJrd0Z3WURWUVFERXhCT1NGTWdTVTVVSUV4bGRtVnNJREZFTUI0WERUSXdNVEF5TWpFd01qRTFOVm9YRFRJeU1UQXlNakV3TlRFMU5Wb3dRekVNTUFvR0ExVUVDaE1EYm1oek1ROHdEUVlEVlFRTEV3WlFaVzl3YkdVeElqQWdCZ05WQkFNTUdUVTFOVEkxTXpVeU1URXdPRjlTUVU1RVQwMWZWVk5GVWxFd2daOHdEUVlKS29aSWh2Y05BUUVCQlFBRGdZMEFNSUdKQW9HQkFLdDRzek53N09BSDdBUVJyRGUveEJJbXNNbU1pUzlFc3JUM2EzcC9MaDNicmR6STlhYWpUVVoyYi9jdmJPYTdQZVlkN3UrSzRhMlpkMFhrKzBHRm1ZR3pTVlg2aVlqYmx3cjB2YWkzMXpWN0crbEd2SHhINnBTb0xDd0lDYVpBRndhYmVENU96OTQreUEzYVdOV3RHVjBEZmg5cXdIM1pGQ0lNUnN2ZXJOMXBBZ01CQUFHamdnRkRNSUlCUHpBT0JnTlZIUThCQWY4RUJBTUNCa0F3WlFZRFZSMGdBUUgvQkZzd1dUQlhCZ3NxaGpvQWlYdG1BQU1DQURCSU1FWUdDQ3NHQVFVRkJ3SUJGanBvZEhSd2N6b3ZMM0JyYVM1dWFITXVkV3N2WTJWeWRHbG1hV05oZEdWZmNHOXNhV05wWlhNdlkyOXVkR1Z1ZEY5amIyMXRhWFJ0Wlc1ME1ETUdBMVVkSHdRc01Db3dLS0Ftb0NTR0ltaDBkSEE2THk5amNtd3VibWh6TG5WckwybHVkQzh4WkM5amNteGpNeTVqY213d0t3WURWUjBRQkNRd0lvQVBNakF5TURFd01qSXhNREl4TlRWYWdROHlNREl5TURNeE56RXdOVEUxTlZvd0h3WURWUjBqQkJnd0ZvQVVvSllmZ1lUTlBkNkVVS0w2UUxJekh4WTVQRkl3SFFZRFZSME9CQllFRkx0eXZZU3lhcWc2MEFFVVpneGswd3JqUkpjK01Ba0dBMVVkRXdRQ01BQXdHUVlKS29aSWh2WjlCMEVBQkF3d0Noc0VWamd1TXdNQ0JMQXdEUVlKS29aSWh2Y05BUUVMQlFBRGdnRUJBQmN6eThCOGp1UHBJZmFUTkZjeHJDMjJhQ1gveFlabWhyTC9OdklCQWFYMUc1aGppd21rR0tFMmhSVElyNjdQeFp4bVhzSnhpZ1JCTUhQbEkrbFkvK29rekgwR2k3YjVicWx3N3B4R0lnSk8wMDB3OHBGc3ZvOXc0MklZaEhvZHN2bkRWU3hoTVQwSjQ2UWhrOXNvRTBMam9FVUxLUVBQbFlHa2UvR2wzbTE3SXRGWXdPYlFIMGZNRXdtaXFCeWVJZno3Z1NjY096TDVjSXA2UGNaVE9qbzJJcVFwZ0VtaGpPY1JJbkVxQU5pdFNkam9pSkFKenBhYVpqWVRSZEhVWDdpN2FqRWlING05MW5GVys0QXFrTnR0bGI0V2NHS3NTbVdnZktLaGVGNElvWktNRTgweGVyU2dNeTh2dGpMT0JKQ0dYejB3TEdtUXVSbXhNVHE4OHE0PTwvWDUwOUNlcnRpZmljYXRlPg0KICAgICAgICA8L1g1MDlEYXRhPg0KICAgIDwvS2V5SW5mbz4NCjwvU2lnbmF0dXJlPg0K" + } + ] + } + } + ] +} diff --git a/src/test/resources/examples/full_examples/secondary-care/homecare/acute/nominated-pharmacy/clinical-practitioner/3-Task-Request-Release-200_OK.json b/src/test/resources/examples/full_examples/secondary-care/homecare/acute/nominated-pharmacy/clinical-practitioner/3-Task-Request-Release-200_OK.json new file mode 100644 index 00000000..e6d7b71b --- /dev/null +++ b/src/test/resources/examples/full_examples/secondary-care/homecare/acute/nominated-pharmacy/clinical-practitioner/3-Task-Request-Release-200_OK.json @@ -0,0 +1,100 @@ +{ + "resourceType": "Parameters", + "id": "nominatedPharmacyReleaseRequest", + "parameter": [ + { + "name": "owner", + "resource": { + "resourceType": "Organization", + "id": "organization", + "identifier": [ + { + "system": "https://fhir.nhs.uk/Id/ods-organization-code", + "value": "VNE51" + } + ], + "address": [ + { + "city": "West Yorkshire", + "use": "work", + "line": [ + "17 Austhorpe Road", + "Crossgates", + "Leeds" + ], + "postalCode": "LS15 8BA" + } + ], + "active": true, + "type": [ + { + "coding": [ + { + "system": "https://fhir.nhs.uk/CodeSystem/organisation-role", + "code": "182", + "display": "PHARMACY" + } + ] + } + ], + "name": "The Simple Pharmacy", + "telecom": [ + { + "system": "phone", + "use": "work", + "value": "0113 3180277" + } + ] + } + }, + { + "name": "status", + "valueCode": "accepted" + }, + { + "name": "agent", + "resource": { + "resourceType": "PractitionerRole", + "id": "16708936-6397-4e03-b84f-4aaa790633e0", + "identifier": [ + { + "system": "https://fhir.nhs.uk/Id/sds-role-profile-id", + "value": "555086415105" + } + ], + "practitioner": { + "identifier": { + "system": "https://fhir.nhs.uk/Id/sds-user-id", + "value": "3415870201" + }, + "display": "Jackie Clark" + }, + "code": [ + { + "coding": [ + { + "system": "https://fhir.nhs.uk/CodeSystem/NHSDigital-SDS-JobRoleCode", + "code": "S8000:G8000:R8000", + "display": "Clinical Practitioner Access Role" + } + ] + } + ], + "telecom": [ + { + "system": "phone", + "value": "02380798431", + "use": "work" + } + ] + } + }, + { + "name": "group-identifier", + "valueIdentifier": { + "system": "https://fhir.nhs.uk/Id/prescription-order-number", + "value": "C2782B-A99968-4E4E9Z" + } + } + ] +} diff --git a/src/test/resources/examples/full_examples/secondary-care/homecare/acute/nominated-pharmacy/clinical-practitioner/3-Task-Request-Withdraw-200_OK.json b/src/test/resources/examples/full_examples/secondary-care/homecare/acute/nominated-pharmacy/clinical-practitioner/3-Task-Request-Withdraw-200_OK.json new file mode 100644 index 00000000..fa9c84a1 --- /dev/null +++ b/src/test/resources/examples/full_examples/secondary-care/homecare/acute/nominated-pharmacy/clinical-practitioner/3-Task-Request-Withdraw-200_OK.json @@ -0,0 +1,139 @@ +{ + "resourceType": "Task", + "id": "6a2624a2-321b-470e-91a6-8ae7a065e2f0", + "contained": [ + { + "resourceType": "PractitionerRole", + "id": "16708936-6397-4e03-b84f-4aaa790633e0", + "identifier": [ + { + "system": "https://fhir.nhs.uk/Id/sds-role-profile-id", + "value": "555086415105" + } + ], + "practitioner": { + "identifier": { + "system": "https://fhir.nhs.uk/Id/sds-user-id", + "value": "3415870201" + }, + "display": "Jackie Clark" + }, + "organization": { + "reference": "#2bf9f37c-d88b-4f86-ad5f-373c1416e04b" + }, + "code": [ + { + "coding": [ + { + "system": "https://fhir.nhs.uk/CodeSystem/NHSDigital-SDS-JobRoleCode", + "code": "S8000:G8000:R8000", + "display": "Clinical Practitioner Access Role" + } + ] + } + ], + "telecom": [ + { + "system": "phone", + "use": "work", + "value": "02380798431" + } + ] + }, + { + "resourceType": "Organization", + "id": "2bf9f37c-d88b-4f86-ad5f-373c1416e04b", + "identifier": [ + { + "system": "https://fhir.nhs.uk/Id/ods-organization-code", + "value": "VNE51" + } + ], + "address": [ + { + "city": "West Yorkshire", + "use": "work", + "line": [ + "17 Austhorpe Road", + "Crossgates", + "Leeds" + ], + "postalCode": "LS15 8BA" + } + ], + "active": true, + "type": [ + { + "coding": [ + { + "system": "https://fhir.nhs.uk/CodeSystem/organisation-role", + "code": "182", + "display": "PHARMACY" + } + ] + } + ], + "name": "The Simple Pharmacy", + "telecom": [ + { + "system": "phone", + "use": "work", + "value": "0113 3180277" + } + ] + } + ], + "identifier": [ + { + "system": "https://tools.ietf.org/html/rfc4122", + "value": "5ac84c11-db8b-44da-8fcf-8980b3d13596" + } + ], + "status": "in-progress", + "intent": "order", + "groupIdentifier": { + "system": "https://fhir.nhs.uk/Id/prescription-order-number", + "value": "C2782B-A99968-4E4E9Z" + }, + "code": { + "coding": [ + { + "system": "http://hl7.org/fhir/CodeSystem/task-code", + "code": "abort", + "display": "Mark the focal resource as no longer active" + } + ] + }, + "focus": { + "type": "Bundle", + "identifier": { + "system": "https://tools.ietf.org/html/rfc4122", + "value": "602159ee-1678-41ec-a100-7b3dd04c1d84" + } + }, + "for": { + "identifier": { + "system": "https://fhir.nhs.uk/Id/nhs-number", + "value": "9990548609" + } + }, + "authoredOn": "2020-12-21T17:03:20-00:00", + "owner": { + "identifier": { + "system": "https://fhir.nhs.uk/Id/ods-organization-code", + "value": "VN6XW" + } + }, + "statusReason": { + "coding": [ + { + "system": "https://fhir.nhs.uk/CodeSystem/EPS-task-dispense-withdraw-reason", + "code": "DA", + "display": "Dosage Amendments" + } + ] + }, + "requester": { + "reference": "#16708936-6397-4e03-b84f-4aaa790633e0" + } +} diff --git a/src/test/resources/examples/full_examples/secondary-care/homecare/acute/nominated-pharmacy/clinical-practitioner/4-Claim-Request-200_OK.json b/src/test/resources/examples/full_examples/secondary-care/homecare/acute/nominated-pharmacy/clinical-practitioner/4-Claim-Request-200_OK.json new file mode 100644 index 00000000..274bd27c --- /dev/null +++ b/src/test/resources/examples/full_examples/secondary-care/homecare/acute/nominated-pharmacy/clinical-practitioner/4-Claim-Request-200_OK.json @@ -0,0 +1,307 @@ +{ + "resourceType": "Claim", + "id": "e8e75676-9d30-45f8-8b09-696818e7f4ca", + "contained": [ + { + "resourceType": "PractitionerRole", + "id": "performer", + "identifier": [ + { + "system": "https://fhir.nhs.uk/Id/sds-role-profile-id", + "value": "555086415105" + } + ], + "practitioner": { + "identifier": { + "system": "https://fhir.nhs.uk/Id/sds-user-id", + "value": "3415870201" + }, + "display": "Mr Peter Potion" + }, + "organization": { + "reference": "#organization" + }, + "code": [ + { + "coding": [ + { + "system": "https://fhir.nhs.uk/CodeSystem/NHSDigital-SDS-JobRoleCode", + "code": "S8000:G8000:R8000", + "display": "Clinical Practitioner Access Role" + } + ] + } + ], + "telecom": [ + { + "system": "phone", + "use": "work", + "value": "0532567890" + } + ] + }, + { + "resourceType": "Organization", + "id": "organization", + "identifier": [ + { + "system": "https://fhir.nhs.uk/Id/ods-organization-code", + "value": "VNE51" + } + ], + "address": [ + { + "city": "West Yorkshire", + "use": "work", + "line": [ + "17 Austhorpe Road", + "Crossgates", + "Leeds" + ], + "postalCode": "LS15 8BA" + } + ], + "active": true, + "type": [ + { + "coding": [ + { + "system": "https://fhir.nhs.uk/CodeSystem/organisation-role", + "code": "182", + "display": "PHARMACY" + } + ] + } + ], + "name": "The Simple Pharmacy", + "telecom": [ + { + "system": "phone", + "use": "work", + "value": "0113 3180277" + } + ] + } + ], + "extension": [ + { + "url": "https://fhir.nhs.uk/StructureDefinition/Extension-Provenance-agent", + "valueReference": { + "identifier": { + "system": "https://fhir.nhs.uk/Id/sds-role-profile-id", + "value": "555253518103" + }, + "display": "Mr User Chris T" + } + } + ], + "identifier": [ + { + "system": "https://tools.ietf.org/html/rfc4122", + "value": "a2c05ec6-4292-4568-8200-bfac8439da04" + } + ], + "status": "active", + "type": { + "coding": [ + { + "system": "http://terminology.hl7.org/CodeSystem/claim-type", + "code": "pharmacy", + "display": "Pharmacy" + } + ] + }, + "use": "claim", + "patient": { + "identifier": { + "system": "https://fhir.nhs.uk/Id/nhs-number", + "value": "9990548609" + } + }, + "created": "2021-09-23T13:09:56+00:00", + "provider": { + "reference": "#performer" + }, + "priority": { + "coding": [ + { + "system": "http://terminology.hl7.org/CodeSystem/processpriority", + "code": "normal" + } + ] + }, + "prescription": { + "extension": [ + { + "url": "https://fhir.nhs.uk/StructureDefinition/Extension-DM-GroupIdentifier", + "extension": [ + { + "url": "shortForm", + "valueIdentifier": { + "system": "https://fhir.nhs.uk/Id/prescription-order-number", + "value": "0EB38D-A99968-424EAR" + } + }, + { + "url": "UUID", + "valueIdentifier": { + "system": "https://fhir.nhs.uk/Id/prescription", + "value": "57a5aa32-7148-47c1-8efc-65ac5f625e61" + } + } + ] + } + ] + }, + "payee": { + "type": { + "coding": [ + { + "system": "http://terminology.hl7.org/CodeSystem/payeetype", + "code": "provider", + "display": "Provider" + } + ] + }, + "party": { + "reference": "#organization" + } + }, + "insurance": [ + { + "sequence": 1, + "focal": true, + "coverage": { + "identifier": { + "system": "https://fhir.nhs.uk/Id/ods-organization-code", + "value": "T1450" + }, + "display": "NHS BUSINESS SERVICES AUTHORITY" + } + } + ], + "item": [ + { + "sequence": 1, + "extension": [ + { + "url": "https://fhir.nhs.uk/StructureDefinition/Extension-EPS-TaskBusinessStatus", + "valueCoding": { + "system": "https://fhir.nhs.uk/CodeSystem/EPS-task-business-status", + "code": "0006", + "display": "Dispensed" + } + } + ], + "productOrService": { + "coding": [ + { + "system": "http://snomed.info/sct", + "code": "16076005", + "display": "Prescription" + } + ] + }, + "programCode": [ + { + "coding": [ + { + "system": "https://fhir.nhs.uk/CodeSystem/prescription-charge-exemption", + "code": "0001", + "display": "Patient has paid appropriate charges" + } + ] + } + ], + "detail": [ + { + "extension": [ + { + "url": "https://fhir.nhs.uk/StructureDefinition/Extension-ClaimSequenceIdentifier", + "valueIdentifier": { + "system": "https://fhir.nhs.uk/Id/claim-sequence-identifier", + "value": "598bf5df-3086-4cd5-99ed-7cb0df0bacf3" + } + }, + { + "url": "https://fhir.nhs.uk/StructureDefinition/Extension-ClaimMedicationRequestReference", + "valueReference": { + "identifier": { + "system": "https://fhir.nhs.uk/Id/prescription-order-item-number", + "value": "a54219b8-f741-4c47-b662-e4f8dfa49ab6" + } + } + } + ], + "sequence": 1, + "productOrService": { + "coding": [ + { + "system": "http://snomed.info/sct", + "code": "15517911000001104", + "display": "Methotrexate 10mg/0.2ml solution for injection pre-filled syringes" + } + ] + }, + "modifier": [ + { + "coding": [ + { + "system": "https://fhir.nhs.uk/CodeSystem/medicationdispense-type", + "code": "0001", + "display": "Item fully dispensed" + } + ] + } + ], + "quantity": { + "value": 1, + "unit": "pre-filled disposable injection", + "system": "http://snomed.info/sct", + "code": "3318611000001103" + }, + "programCode": [ + { + "coding": [ + { + "system": "https://fhir.nhs.uk/CodeSystem/medicationdispense-endorsement", + "code": "NDEC", + "display": "No Dispenser Endorsement Code" + } + ] + }, + { + "coding": [ + { + "system": "https://fhir.nhs.uk/CodeSystem/DM-prescription-charge", + "code": "not-paid", + "display": "Not Paid" + } + ] + } + ], + "subDetail": [ + { + "sequence": 1, + "productOrService": { + "coding": [ + { + "system": "http://snomed.info/sct", + "code": "15517911000001104", + "display": "Methotrexate 10mg/0.2ml solution for injection pre-filled syringes" + } + ] + }, + "quantity": { + "value": 1, + "unit": "pre-filled disposable injection", + "system": "http://snomed.info/sct", + "code": "3318611000001103" + } + } + ] + } + ] + } + ] +} diff --git a/src/test/resources/examples/full_examples/secondary-care/homecare/acute/nominated-pharmacy/clinical-practitioner/4-Prepare-Request-200_OK.json b/src/test/resources/examples/full_examples/secondary-care/homecare/acute/nominated-pharmacy/clinical-practitioner/4-Prepare-Request-200_OK.json new file mode 100644 index 00000000..ac088a4c --- /dev/null +++ b/src/test/resources/examples/full_examples/secondary-care/homecare/acute/nominated-pharmacy/clinical-practitioner/4-Prepare-Request-200_OK.json @@ -0,0 +1,341 @@ +{ + "resourceType": "Bundle", + "id": "0a1fd9ef-a3d5-4e95-84cd-552070a03096", + "identifier": { + "system": "https://tools.ietf.org/html/rfc4122", + "value": "96f32611-e838-474e-ad08-4345f61b8ff7" + }, + "type": "message", + "entry": [ + { + "fullUrl": "urn:uuid:0a1fd9ef-a3d5-4e95-84cd-552070a03096", + "resource": { + "resourceType": "MessageHeader", + "id": "0a1fd9ef-a3d5-4e95-84cd-552070a03096", + "eventCoding": { + "system": "https://fhir.nhs.uk/CodeSystem/message-event", + "code": "prescription-order", + "display": "Prescription Order" + }, + "sender": { + "identifier": { + "system": "https://fhir.nhs.uk/Id/ods-organization-code", + "value": "RBA" + }, + "reference": "urn:uuid:56166769-c1c4-4d07-afa8-132b5dfca666", + "display": "BOOTH|PHIL" + }, + "source": { + "endpoint": "https://directory.spineservices.nhs.uk/STU3/Organization/RBA" + }, + "destination": [ + { + "endpoint": "https://directory.spineservices.nhs.uk/STU3/Organization/FH542", + "receiver": { + "identifier": { + "system": "https://fhir.nhs.uk/Id/ods-organization-code", + "value": "FL584" + } + } + } + ], + "focus": [ + { + "reference": "urn:uuid:78d3c2eb-009e-4ec8-a358-b042954aa9b2" + }, + { + "reference": "urn:uuid:a54219b8-f741-4c47-b662-e4f8dfa49ab6" + } + ] + } + }, + { + "fullUrl": "urn:uuid:a54219b8-f741-4c47-b662-e4f8dfa49ab6", + "resource": { + "resourceType": "MedicationRequest", + "id": "a54219b8-f741-4c47-b662-e4f8dfa49ab6", + "extension": [ + { + "url": "https://fhir.nhs.uk/StructureDefinition/Extension-DM-PrescriptionType", + "valueCoding": { + "system": "https://fhir.nhs.uk/CodeSystem/prescription-type", + "code": "1001", + "display": "Outpatient Community Prescriber - Medical Prescriber" + } + } + ], + "identifier": [ + { + "system": "https://fhir.nhs.uk/Id/prescription-order-item-number", + "value": "a54219b8-f741-4c47-b662-e4f8dfa49ab6" + } + ], + "status": "active", + "intent": "order", + "category": [ + { + "coding": [ + { + "system": "http://terminology.hl7.org/CodeSystem/medicationrequest-category", + "code": "outpatient", + "display": "Outpatient" + } + ] + } + ], + "medicationCodeableConcept": { + "coding": [ + { + "system": "http://snomed.info/sct", + "code": "15517911000001104", + "display": "Methotrexate 10mg/0.2ml solution for injection pre-filled syringes" + } + ] + }, + "subject": { + "reference": "urn:uuid:78d3c2eb-009e-4ec8-a358-b042954aa9b2" + }, + "requester": { + "reference": "urn:uuid:56166769-c1c4-4d07-afa8-132b5dfca666" + }, + "groupIdentifier": { + "extension": [ + { + "url": "https://fhir.nhs.uk/StructureDefinition/Extension-DM-PrescriptionId", + "valueIdentifier": { + "system": "https://fhir.nhs.uk/Id/prescription", + "value": "57a5aa32-7148-47c1-8efc-65ac5f625e61" + } + } + ], + "system": "https://fhir.nhs.uk/Id/prescription-order-number", + "value": "0EB38D-A99968-424EAR" + }, + "courseOfTherapyType": { + "coding": [ + { + "system": "http://terminology.hl7.org/CodeSystem/medicationrequest-course-of-therapy", + "code": "acute", + "display": "Short course (acute) therapy" + } + ] + }, + "dosageInstruction": [ + { + "text": "Inject 10 milligram - 5 times a day - Subcutaneous route - for 10 days", + "timing": { + "repeat": { + "frequency": 5, + "period": 1, + "periodUnit": "d", + "boundsDuration": { + "value": 10, + "unit": "day", + "system": "http://unitsofmeasure.org", + "code": "d" + } + } + }, + "method": { + "coding": [ + { + "system": "http://snomed.info/sct", + "code": "422145002", + "display": "Inject" + } + ] + }, + "route": { + "coding": [ + { + "system": "http://snomed.info/sct", + "code": "34206005", + "display": "Subcutaneous route" + } + ] + }, + "doseAndRate": [ + { + "doseQuantity": { + "value": 10, + "unit": "milligram", + "system": "http://unitsofmeasure.org", + "code": "mg" + } + } + ] + } + ], + "dispenseRequest": { + "extension": [ + { + "url": "https://fhir.nhs.uk/StructureDefinition/Extension-DM-PerformerSiteType", + "valueCoding": { + "system": "https://fhir.nhs.uk/CodeSystem/dispensing-site-preference", + "code": "P1" + } + } + ], + "quantity": { + "value": 1, + "unit": "pre-filled disposable injection", + "system": "http://snomed.info/sct", + "code": "3318611000001103" + }, + "performer": { + "identifier": { + "system": "https://fhir.nhs.uk/Id/ods-organization-code", + "value": "FL584" + } + } + }, + "substitution": { + "allowedBoolean": false + } + } + }, + { + "fullUrl": "urn:uuid:78d3c2eb-009e-4ec8-a358-b042954aa9b2", + "resource": { + "resourceType": "Patient", + "identifier": [ + { + "system": "https://fhir.nhs.uk/Id/nhs-number", + "value": "9990548609" + } + ], + "name": [ + { + "use": "usual", + "family": "XXTESTPATIENT-TGNP", + "given": ["DONOTUSE"], + "prefix": ["MR"] + } + ], + "gender": "male", + "birthDate": "1932-01-06", + "address": [ + { + "use": "home", + "line": [ + "1 Trevelyan Square", + "Boar Lane", + "Leeds", + "West Yorkshire" + ], + "postalCode": "LS1 6AE" + } + ], + "generalPractitioner": [ + { + "identifier": { + "system": "https://fhir.nhs.uk/Id/ods-organization-code", + "value": "B81001" + } + } + ] + } + }, + { + "fullUrl": "urn:uuid:a8c85454-f8cb-498d-9629-78e2cb5fa47a", + "resource": { + "resourceType": "Practitioner", + "id": "a8c85454-f8cb-498d-9629-78e2cb5fa47a", + "identifier": [ + { + "system": "https://fhir.nhs.uk/Id/sds-user-id", + "value": "555086689106" + }, + { + "system": "https://fhir.hl7.org.uk/Id/gmc-number", + "value": "6150129" + } + ], + "name": [ + { + "family": "FIFTYSEVEN", + "given": ["RANDOM"], + "prefix": ["MR"] + } + ] + } + }, + { + "fullUrl": "urn:uuid:56166769-c1c4-4d07-afa8-132b5dfca666", + "resource": { + "resourceType": "PractitionerRole", + "id": "56166769-c1c4-4d07-afa8-132b5dfca666", + "identifier": [ + { + "system": "https://fhir.nhs.uk/Id/sds-role-profile-id", + "value": "601986680555" + }, + { + "system": "https://fhir.hl7.org.uk/Id/nhsbsa-spurious-code", + "value": "683458" + } + ], + "practitioner": { + "reference": "urn:uuid:a8c85454-f8cb-498d-9629-78e2cb5fa47a" + }, + "organization": { + "reference": "urn:uuid:3b4b03a5-52ba-4ba6-9b82-70350aa109d8" + }, + "code": [ + { + "coding": [ + { + "system": "https://fhir.nhs.uk/CodeSystem/NHSDigital-SDS-JobRoleCode", + "code": "S8000:G8000:R8000", + "display": "Clinical Practitioner Access Role " + } + ] + } + ], + "telecom": [ + { + "system": "phone", + "value": "01234567890", + "use": "work" + } + ] + } + }, + { + "fullUrl": "urn:uuid:3b4b03a5-52ba-4ba6-9b82-70350aa109d8", + "resource": { + "resourceType": "Organization", + "id": "3b4b03a5-52ba-4ba6-9b82-70350aa109d8", + "identifier": [ + { + "system": "https://fhir.nhs.uk/Id/ods-organization-code", + "value": "A99968" + } + ], + "name": "SOMERSET BOWEL CANCER SCREENING CENTRE", + "address": [ + { + "use": "work", + "line": ["MUSGROVE PARK HOSPITAL"], + "city": "TAUNTON", + "postalCode": "TA1 5DA" + } + ], + "telecom": [ + { + "system": "phone", + "value": "01823 333444", + "use": "work" + } + ], + "partOf": { + "identifier": { + "system": "https://fhir.nhs.uk/Id/ods-organization-code", + "value": "RBA" + }, + "display": "TAUNTON AND SOMERSET NHS FOUNDATION TRUST" + } + } + } + ] +} diff --git a/src/test/resources/examples/full_examples/secondary-care/homecare/acute/nominated-pharmacy/clinical-practitioner/4-Prepare-Response-200_OK.json b/src/test/resources/examples/full_examples/secondary-care/homecare/acute/nominated-pharmacy/clinical-practitioner/4-Prepare-Response-200_OK.json new file mode 100644 index 00000000..3a9a3c5e --- /dev/null +++ b/src/test/resources/examples/full_examples/secondary-care/homecare/acute/nominated-pharmacy/clinical-practitioner/4-Prepare-Response-200_OK.json @@ -0,0 +1,17 @@ +{ + "resourceType": "Parameters", + "parameter": [ + { + "name": "digest", + "valueString": "PFNpZ25lZEluZm8geG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvMDkveG1sZHNpZyMiPjxDYW5vbmljYWxpemF0aW9uTWV0aG9kIEFsZ29yaXRobT0iaHR0cDovL3d3dy53My5vcmcvMjAwMS8xMC94bWwtZXhjLWMxNG4jIj48L0Nhbm9uaWNhbGl6YXRpb25NZXRob2Q+PFNpZ25hdHVyZU1ldGhvZCBBbGdvcml0aG09Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvMDkveG1sZHNpZyNyc2Etc2hhMSI+PC9TaWduYXR1cmVNZXRob2Q+PFJlZmVyZW5jZT48VHJhbnNmb3Jtcz48VHJhbnNmb3JtIEFsZ29yaXRobT0iaHR0cDovL3d3dy53My5vcmcvMjAwMS8xMC94bWwtZXhjLWMxNG4jIj48L1RyYW5zZm9ybT48L1RyYW5zZm9ybXM+PERpZ2VzdE1ldGhvZCBBbGdvcml0aG09Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvMDkveG1sZHNpZyNzaGExIj48L0RpZ2VzdE1ldGhvZD48RGlnZXN0VmFsdWU+aUlPYWhsVFFrOWFRSlViVU8wa2J6VDJweFlBPTwvRGlnZXN0VmFsdWU+PC9SZWZlcmVuY2U+PC9TaWduZWRJbmZvPg==" + }, + { + "name": "timestamp", + "valueString": "2022-10-25T10:24:34+00:00" + }, + { + "name": "algorithm", + "valueString": "RS1" + } + ] +} diff --git a/src/test/resources/examples/full_examples/secondary-care/homecare/acute/nominated-pharmacy/clinical-practitioner/4-Process-Request-Dispense-200_OK.json b/src/test/resources/examples/full_examples/secondary-care/homecare/acute/nominated-pharmacy/clinical-practitioner/4-Process-Request-Dispense-200_OK.json new file mode 100644 index 00000000..c8f1e9a6 --- /dev/null +++ b/src/test/resources/examples/full_examples/secondary-care/homecare/acute/nominated-pharmacy/clinical-practitioner/4-Process-Request-Dispense-200_OK.json @@ -0,0 +1,383 @@ +{ + "resourceType": "Bundle", + "id": "prescription-dispense-notification", + "identifier": { + "system": "https://tools.ietf.org/html/rfc4122", + "value": "a6af5492-d71e-4773-9bb5-2f13ab85f6b3" + }, + "type": "message", + "entry": [ + { + "fullUrl": "urn:uuid:be807dac-9dcf-45cf-91d6-70d9d58dcf34", + "resource": { + "resourceType": "MessageHeader", + "eventCoding": { + "system": "https://fhir.nhs.uk/CodeSystem/message-event", + "code": "dispense-notification", + "display": "Dispense Notification" + }, + "destination": [ + { + "endpoint": "https://sandbox.api.service.nhs.uk/electronic-prescriptions/$post-message", + "receiver": { + "identifier": { + "system": "https://fhir.nhs.uk/Id/ods-organization-code", + "value": "FL584" + }, + "display": "YOUR LOCAL BOOTS PHARMACY" + } + } + ], + "sender": { + "identifier": { + "system": "https://fhir.nhs.uk/Id/ods-organization-code", + "value": "FL584" + }, + "display": "YOUR LOCAL BOOTS PHARMACY" + }, + "source": { + "name": "YOUR LOCAL BOOTS PHARMACY", + "endpoint": "https://directory.spineservices.nhs.uk/STU3/Organization/FL584" + }, + "reason": { + "coding": [ + { + "system": "https://fhir.nhs.uk/CodeSystem/message-reason-prescription", + "code": "notification", + "display": "Notification" + } + ] + }, + "response": { + "identifier": "999f9999-9999-9999-9ff9-f9fff9999999", + "code": "ok" + }, + "focus": [ + { + "reference": "urn:uuid:4509b70d-d8b8-ea03-1105-64557cb54a29" + } + ] + } + }, + { + "fullUrl": "urn:uuid:4509b70d-d8b8-ea03-1105-64557cb54a29", + "resource": { + "resourceType": "MedicationDispense", + "contained": [ + { + "resourceType": "PractitionerRole", + "id": "performer", + "identifier": [ + { + "system": "https://fhir.nhs.uk/Id/sds-role-profile-id", + "value": "555086415105" + } + ], + "practitioner": { + "identifier": { + "system": "https://fhir.nhs.uk/Id/sds-user-id", + "value": "3415870201" + }, + "display": "Jackie Clark" + }, + "organization": { + "reference": "urn:uuid:2bf9f37c-d88b-4f86-ad5f-373c1416e04b" + }, + "code": [ + { + "coding": [ + { + "system": "https://fhir.nhs.uk/CodeSystem/NHSDigital-SDS-JobRoleCode", + "code": "S8000:G8000:R8000", + "display": "Clinical Practitioner Access Role" + } + ] + } + ], + "telecom": [ + { + "system": "phone", + "use": "work", + "value": "02380798431" + } + ] + }, + { + "resourceType": "MedicationRequest", + "id": "m1", + "extension": [ + { + "url": "https://fhir.nhs.uk/StructureDefinition/Extension-DM-PrescriptionType", + "valueCoding": { + "system": "https://fhir.nhs.uk/CodeSystem/prescription-type", + "code": "1001", + "display": "Outpatient Community Prescriber - Medical Prescriber" + } + } + ], + "identifier": [ + { + "system": "https://fhir.nhs.uk/Id/prescription-order-item-number", + "value": "a54219b8-f741-4c47-b662-e4f8dfa49ab6" + } + ], + "status": "active", + "intent": "order", + "category": [ + { + "coding": [ + { + "system": "http://terminology.hl7.org/CodeSystem/medicationrequest-category", + "code": "outpatient", + "display": "Outpatient" + } + ] + } + ], + "medicationCodeableConcept": { + "coding": [ + { + "system": "http://snomed.info/sct", + "code": "15517911000001104", + "display": "Methotrexate 10mg/0.2ml solution for injection pre-filled syringes" + } + ] + }, + "subject": { + "reference": "urn:uuid:78d3c2eb-009e-4ec8-a358-b042954aa9b2" + }, + "authoredOn": "2021-06-14T18:26:00+00:00", + "requester": { + "reference": "urn:uuid:56166769-c1c4-4d07-afa8-132b5dfca666" + }, + "groupIdentifier": { + "extension": [ + { + "url": "https://fhir.nhs.uk/StructureDefinition/Extension-DM-PrescriptionId", + "valueIdentifier": { + "system": "https://fhir.nhs.uk/Id/prescription", + "value": "57a5aa32-7148-47c1-8efc-65ac5f625e61" + } + } + ], + "system": "https://fhir.nhs.uk/Id/prescription-order-number", + "value": "0EB38D-A99968-424EAR" + }, + "courseOfTherapyType": { + "coding": [ + { + "system": "http://terminology.hl7.org/CodeSystem/medicationrequest-course-of-therapy", + "code": "acute", + "display": "Short course (acute) therapy" + } + ] + }, + "dosageInstruction": [ + { + "text": "10 milligram, Inject, Subcutaneous route, once weekly", + "timing": { + "repeat": { + "frequency": 5, + "period": 1, + "periodUnit": "d", + "boundsDuration": { + "value": 10, + "unit": "day", + "system": "http://unitsofmeasure.org", + "code": "d" + } + } + }, + "method": { + "coding": [ + { + "system": "http://snomed.info/sct", + "code": "422145002", + "display": "Inject" + } + ] + }, + "route": { + "coding": [ + { + "system": "http://snomed.info/sct", + "code": "34206005", + "display": "Subcutaneous route" + } + ] + }, + "doseAndRate": [ + { + "doseQuantity": { + "value": 10, + "unit": "milligram", + "system": "http://unitsofmeasure.org", + "code": "mg" + } + } + ] + } + ], + "dispenseRequest": { + "extension": [ + { + "url": "https://fhir.nhs.uk/StructureDefinition/Extension-DM-PerformerSiteType", + "valueCoding": { + "system": "https://fhir.nhs.uk/CodeSystem/dispensing-site-preference", + "code": "P1" + } + } + ], + "quantity": { + "value": 1, + "unit": "pre-filled disposable injection", + "system": "http://snomed.info/sct", + "code": "3318611000001103" + }, + "performer": { + "identifier": { + "system": "https://fhir.nhs.uk/Id/ods-organization-code", + "value": "FL584" + } + } + }, + "substitution": { + "allowedBoolean": false + } + } + ], + "extension": [ + { + "url": "https://fhir.nhs.uk/StructureDefinition/Extension-EPS-TaskBusinessStatus", + "valueCoding": { + "system": "https://fhir.nhs.uk/CodeSystem/EPS-task-business-status", + "code": "0006", + "display": "Dispensed" + } + } + ], + "identifier": [ + { + "system": "https://fhir.nhs.uk/Id/prescription-dispense-item-number", + "value": "a54219b8-f741-4c47-b662-e4f8dfa49ab6" + } + ], + "status": "completed", + "medicationCodeableConcept": { + "coding": [ + { + "system": "http://snomed.info/sct", + "code": "15517911000001104", + "display": "Methotrexate 10mg/0.2ml solution for injection pre-filled syringes" + } + ] + }, + "subject": { + "type": "Patient", + "identifier": { + "system": "https://fhir.nhs.uk/Id/nhs-number", + "value": "9990548609" + }, + "display": "MR DONOTUSE XXTESTPATIENT-TGNP" + }, + "performer": [ + { + "actor": { + "reference": "#performer" + } + } + ], + "authorizingPrescription": [ + { + "reference": "#m1" + } + ], + "type": { + "coding": [ + { + "system": "https://fhir.nhs.uk/CodeSystem/medicationdispense-type", + "code": "0001", + "display": "Item fully dispensed" + } + ] + }, + "quantity": { + "value": 1, + "unit": "pre-filled disposable injection", + "system": "http://snomed.info/sct", + "code": "3318611000001103" + }, + "daysSupply": { + "value": 10, + "unit": "Day", + "system": "http://unitsofmeasure.org", + "code": "d" + }, + "whenHandedOver": "2021-06-14T18:26:00+00:00", + "dosageInstruction": [ + { + "text": "10 milligram, Inject, Subcutaneous route, once weekly" + } + ] + } + }, + { + "fullUrl": "urn:uuid:2bf9f37c-d88b-4f86-ad5f-373c1416e04b", + "resource": { + "resourceType": "Organization", + "extension": [ + { + "url": "https://fhir.nhs.uk/StructureDefinition/Extension-ODS-OrganisationRelationships", + "extension": [ + { + "url": "reimbursementAuthority", + "valueIdentifier": { + "system": "https://fhir.nhs.uk/Id/ods-organization-code", + "value": "T1450" + } + } + ] + } + ], + "identifier": [ + { + "system": "https://fhir.nhs.uk/Id/ods-organization-code", + "value": "VNE51" + } + ], + "address": [ + { + "city": "West Yorkshire", + "use": "work", + "line": [ + "17 Austhorpe Road", + "Crossgates", + "Leeds" + ], + "postalCode": "LS15 8BA" + } + ], + "active": true, + "type": [ + { + "coding": [ + { + "system": "https://fhir.nhs.uk/CodeSystem/organisation-role", + "code": "182", + "display": "PHARMACY" + } + ] + } + ], + "name": "The Simple Pharmacy", + "telecom": [ + { + "system": "phone", + "use": "work", + "value": "0113 3180277" + } + ] + } + } + ] +} diff --git a/src/test/resources/examples/full_examples/secondary-care/homecare/acute/nominated-pharmacy/clinical-practitioner/4-Process-Request-Send-200_OK.json b/src/test/resources/examples/full_examples/secondary-care/homecare/acute/nominated-pharmacy/clinical-practitioner/4-Process-Request-Send-200_OK.json new file mode 100644 index 00000000..2bc0693c --- /dev/null +++ b/src/test/resources/examples/full_examples/secondary-care/homecare/acute/nominated-pharmacy/clinical-practitioner/4-Process-Request-Send-200_OK.json @@ -0,0 +1,376 @@ +{ + "resourceType": "Bundle", + "id": "0a1fd9ef-a3d5-4e95-84cd-552070a03096", + "identifier": { + "system": "https://tools.ietf.org/html/rfc4122", + "value": "085099cd-9c1b-43c3-b61c-efc0ec7332aa" + }, + "type": "message", + "entry": [ + { + "fullUrl": "urn:uuid:0a1fd9ef-a3d5-4e95-84cd-552070a03096", + "resource": { + "resourceType": "MessageHeader", + "id": "0a1fd9ef-a3d5-4e95-84cd-552070a03096", + "eventCoding": { + "system": "https://fhir.nhs.uk/CodeSystem/message-event", + "code": "prescription-order", + "display": "Prescription Order" + }, + "sender": { + "identifier": { + "system": "https://fhir.nhs.uk/Id/ods-organization-code", + "value": "RBA" + }, + "reference": "urn:uuid:56166769-c1c4-4d07-afa8-132b5dfca666", + "display": "BOOTH|PHIL" + }, + "source": { + "endpoint": "https://directory.spineservices.nhs.uk/STU3/Organization/RBA" + }, + "destination": [ + { + "endpoint": "https://directory.spineservices.nhs.uk/STU3/Organization/FH542", + "receiver": { + "identifier": { + "system": "https://fhir.nhs.uk/Id/ods-organization-code", + "value": "FL584" + } + } + } + ], + "focus": [ + { + "reference": "urn:uuid:78d3c2eb-009e-4ec8-a358-b042954aa9b2" + }, + { + "reference": "urn:uuid:a54219b8-f741-4c47-b662-e4f8dfa49ab6" + } + ] + } + }, + { + "fullUrl": "urn:uuid:a54219b8-f741-4c47-b662-e4f8dfa49ab6", + "resource": { + "resourceType": "MedicationRequest", + "id": "a54219b8-f741-4c47-b662-e4f8dfa49ab6", + "extension": [ + { + "url": "https://fhir.nhs.uk/StructureDefinition/Extension-DM-PrescriptionType", + "valueCoding": { + "system": "https://fhir.nhs.uk/CodeSystem/prescription-type", + "code": "1001", + "display": "Outpatient Community Prescriber - Medical Prescriber" + } + } + ], + "identifier": [ + { + "system": "https://fhir.nhs.uk/Id/prescription-order-item-number", + "value": "a54219b8-f741-4c47-b662-e4f8dfa49ab6" + } + ], + "status": "active", + "intent": "order", + "category": [ + { + "coding": [ + { + "system": "http://terminology.hl7.org/CodeSystem/medicationrequest-category", + "code": "outpatient", + "display": "Outpatient" + } + ] + } + ], + "medicationCodeableConcept": { + "coding": [ + { + "system": "http://snomed.info/sct", + "code": "15517911000001104", + "display": "Methotrexate 10mg/0.2ml solution for injection pre-filled syringes" + } + ] + }, + "subject": { + "reference": "urn:uuid:78d3c2eb-009e-4ec8-a358-b042954aa9b2" + }, + "requester": { + "reference": "urn:uuid:56166769-c1c4-4d07-afa8-132b5dfca666" + }, + "groupIdentifier": { + "extension": [ + { + "url": "https://fhir.nhs.uk/StructureDefinition/Extension-DM-PrescriptionId", + "valueIdentifier": { + "system": "https://fhir.nhs.uk/Id/prescription", + "value": "57a5aa32-7148-47c1-8efc-65ac5f625e61" + } + } + ], + "system": "https://fhir.nhs.uk/Id/prescription-order-number", + "value": "0EB38D-A99968-424EAR" + }, + "courseOfTherapyType": { + "coding": [ + { + "system": "http://terminology.hl7.org/CodeSystem/medicationrequest-course-of-therapy", + "code": "acute", + "display": "Short course (acute) therapy" + } + ] + }, + "dosageInstruction": [ + { + "text": "Inject 10 milligram - 5 times a day - Subcutaneous route - for 10 days", + "timing": { + "repeat": { + "frequency": 5, + "period": 1, + "periodUnit": "d", + "boundsDuration": { + "value": 10, + "unit": "day", + "system": "http://unitsofmeasure.org", + "code": "d" + } + } + }, + "method": { + "coding": [ + { + "system": "http://snomed.info/sct", + "code": "422145002", + "display": "Inject" + } + ] + }, + "route": { + "coding": [ + { + "system": "http://snomed.info/sct", + "code": "34206005", + "display": "Subcutaneous route" + } + ] + }, + "doseAndRate": [ + { + "doseQuantity": { + "value": 10, + "unit": "milligram", + "system": "http://unitsofmeasure.org", + "code": "mg" + } + } + ] + } + ], + "dispenseRequest": { + "extension": [ + { + "url": "https://fhir.nhs.uk/StructureDefinition/Extension-DM-PerformerSiteType", + "valueCoding": { + "system": "https://fhir.nhs.uk/CodeSystem/dispensing-site-preference", + "code": "P1" + } + } + ], + "quantity": { + "value": 1, + "unit": "pre-filled disposable injection", + "system": "http://snomed.info/sct", + "code": "3318611000001103" + }, + "performer": { + "identifier": { + "system": "https://fhir.nhs.uk/Id/ods-organization-code", + "value": "FL584" + } + } + }, + "substitution": { + "allowedBoolean": false + } + } + }, + { + "fullUrl": "urn:uuid:78d3c2eb-009e-4ec8-a358-b042954aa9b2", + "resource": { + "resourceType": "Patient", + "identifier": [ + { + "system": "https://fhir.nhs.uk/Id/nhs-number", + "value": "9990548609" + } + ], + "name": [ + { + "use": "usual", + "family": "XXTESTPATIENT-TGNP", + "given": ["DONOTUSE"], + "prefix": ["MR"] + } + ], + "gender": "male", + "birthDate": "1932-01-06", + "address": [ + { + "use": "home", + "line": [ + "1 Trevelyan Square", + "Boar Lane", + "Leeds", + "West Yorkshire" + ], + "postalCode": "LS1 6AE" + } + ], + "generalPractitioner": [ + { + "identifier": { + "system": "https://fhir.nhs.uk/Id/ods-organization-code", + "value": "B81001" + } + } + ] + } + }, + { + "fullUrl": "urn:uuid:a8c85454-f8cb-498d-9629-78e2cb5fa47a", + "resource": { + "resourceType": "Practitioner", + "id": "a8c85454-f8cb-498d-9629-78e2cb5fa47a", + "identifier": [ + { + "system": "https://fhir.nhs.uk/Id/sds-user-id", + "value": "555086689106" + }, + { + "system": "https://fhir.hl7.org.uk/Id/gmc-number", + "value": "6150129" + } + ], + "name": [ + { + "family": "FIFTYSEVEN", + "given": ["RANDOM"], + "prefix": ["MR"] + } + ] + } + }, + { + "fullUrl": "urn:uuid:56166769-c1c4-4d07-afa8-132b5dfca666", + "resource": { + "resourceType": "PractitionerRole", + "id": "56166769-c1c4-4d07-afa8-132b5dfca666", + "identifier": [ + { + "system": "https://fhir.nhs.uk/Id/sds-role-profile-id", + "value": "601986680555" + }, + { + "system": "https://fhir.hl7.org.uk/Id/nhsbsa-spurious-code", + "value": "683458" + } + ], + "practitioner": { + "reference": "urn:uuid:a8c85454-f8cb-498d-9629-78e2cb5fa47a" + }, + "organization": { + "reference": "urn:uuid:3b4b03a5-52ba-4ba6-9b82-70350aa109d8" + }, + "code": [ + { + "coding": [ + { + "system": "https://fhir.nhs.uk/CodeSystem/NHSDigital-SDS-JobRoleCode", + "code": "S8000:G8000:R8000", + "display": "Clinical Practitioner Access Role " + } + ] + } + ], + "telecom": [ + { + "system": "phone", + "value": "01234567890", + "use": "work" + } + ] + } + }, + { + "fullUrl": "urn:uuid:3b4b03a5-52ba-4ba6-9b82-70350aa109d8", + "resource": { + "resourceType": "Organization", + "id": "3b4b03a5-52ba-4ba6-9b82-70350aa109d8", + "identifier": [ + { + "system": "https://fhir.nhs.uk/Id/ods-organization-code", + "value": "A99968" + } + ], + "name": "SOMERSET BOWEL CANCER SCREENING CENTRE", + "address": [ + { + "use": "work", + "line": ["MUSGROVE PARK HOSPITAL"], + "city": "TAUNTON", + "postalCode": "TA1 5DA" + } + ], + "telecom": [ + { + "system": "phone", + "value": "01823 333444", + "use": "work" + } + ], + "partOf": { + "identifier": { + "system": "https://fhir.nhs.uk/Id/ods-organization-code", + "value": "RBA" + }, + "display": "TAUNTON AND SOMERSET NHS FOUNDATION TRUST" + } + } + }, + { + "fullUrl": "urn:uuid:28828c55-8fa7-42d7-916f-fcf076e0c10e", + "resource": { + "resourceType": "Provenance", + "id": "28828c55-8fa7-42d7-916f-fcf076e0c10e", + "target": [ + { + "reference": "urn:uuid:a54219b8-f741-4c47-b662-e4f8dfa49ab6" + } + ], + "recorded": "2008-02-27T11:38:00+00:00", + "agent": [ + { + "who": { + "reference": "urn:uuid:56166769-c1c4-4d07-afa8-132b5dfca666" + } + } + ], + "signature": [ + { + "type": [ + { + "system": "urn:iso-astm:E1762-95:2013", + "code": "1.2.840.10065.1.12.1.1" + } + ], + "when": "2021-06-14T18:26:36+00:00", + "who": { + "reference": "urn:uuid:56166769-c1c4-4d07-afa8-132b5dfca666" + }, + "data": "DQo8U2lnbmF0dXJlIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwLzA5L3htbGRzaWcjIj4NCiAgICA8U2lnbmVkSW5mbz48Q2Fub25pY2FsaXphdGlvbk1ldGhvZCBBbGdvcml0aG09Imh0dHA6Ly93d3cudzMub3JnLzIwMDEvMTAveG1sLWV4Yy1jMTRuIyI+PC9DYW5vbmljYWxpemF0aW9uTWV0aG9kPjxTaWduYXR1cmVNZXRob2QgQWxnb3JpdGhtPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwLzA5L3htbGRzaWcjcnNhLXNoYTEiPjwvU2lnbmF0dXJlTWV0aG9kPjxSZWZlcmVuY2U+PFRyYW5zZm9ybXM+PFRyYW5zZm9ybSBBbGdvcml0aG09Imh0dHA6Ly93d3cudzMub3JnLzIwMDEvMTAveG1sLWV4Yy1jMTRuIyI+PC9UcmFuc2Zvcm0+PC9UcmFuc2Zvcm1zPjxEaWdlc3RNZXRob2QgQWxnb3JpdGhtPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwLzA5L3htbGRzaWcjc2hhMSI+PC9EaWdlc3RNZXRob2Q+PERpZ2VzdFZhbHVlPi9tSXk1TmlmT1A5dkFSTkU3NkZIWlZFZ2xCdz08L0RpZ2VzdFZhbHVlPjwvUmVmZXJlbmNlPjwvU2lnbmVkSW5mbz4NCiAgICA8U2lnbmF0dXJlVmFsdWU+UTVkU2h5c2hPcVg0bmNJaHFGa0FGaGRmZlFRbmNsWUIxOVJvNnFvd2U2WlNRSW9YVXFEb0ZiZmZyT1pYbE9jQWZrTVgranBiZmU1NnJQUTlKbXlmWGRKV2dCalNRM1k4Y2hCcWZTdDE1RmFUcGozbmllU3dwTXY3YWxnN2taR3lsRXd3WVZCci9lZ0htNjlKZ2ZnRDU3ZVhJQWVtZDRTMzlsSE5Wb1NGSWpRPTwvU2lnbmF0dXJlVmFsdWU+DQogICAgPEtleUluZm8+DQogICAgICAgIDxYNTA5RGF0YT4NCiAgICAgICAgICAgIDxYNTA5Q2VydGlmaWNhdGU+TUlJRHVEQ0NBcUNnQXdJQkFnSUVYY210SHpBTkJna3Foa2lHOXcwQkFRc0ZBREEyTVF3d0NnWURWUVFLRXdOdWFITXhDekFKQmdOVkJBc1RBa05CTVJrd0Z3WURWUVFERXhCT1NGTWdTVTVVSUV4bGRtVnNJREZFTUI0WERUSXdNVEF5TWpFd01qRTFOVm9YRFRJeU1UQXlNakV3TlRFMU5Wb3dRekVNTUFvR0ExVUVDaE1EYm1oek1ROHdEUVlEVlFRTEV3WlFaVzl3YkdVeElqQWdCZ05WQkFNTUdUVTFOVEkxTXpVeU1URXdPRjlTUVU1RVQwMWZWVk5GVWxFd2daOHdEUVlKS29aSWh2Y05BUUVCQlFBRGdZMEFNSUdKQW9HQkFLdDRzek53N09BSDdBUVJyRGUveEJJbXNNbU1pUzlFc3JUM2EzcC9MaDNicmR6STlhYWpUVVoyYi9jdmJPYTdQZVlkN3UrSzRhMlpkMFhrKzBHRm1ZR3pTVlg2aVlqYmx3cjB2YWkzMXpWN0crbEd2SHhINnBTb0xDd0lDYVpBRndhYmVENU96OTQreUEzYVdOV3RHVjBEZmg5cXdIM1pGQ0lNUnN2ZXJOMXBBZ01CQUFHamdnRkRNSUlCUHpBT0JnTlZIUThCQWY4RUJBTUNCa0F3WlFZRFZSMGdBUUgvQkZzd1dUQlhCZ3NxaGpvQWlYdG1BQU1DQURCSU1FWUdDQ3NHQVFVRkJ3SUJGanBvZEhSd2N6b3ZMM0JyYVM1dWFITXVkV3N2WTJWeWRHbG1hV05oZEdWZmNHOXNhV05wWlhNdlkyOXVkR1Z1ZEY5amIyMXRhWFJ0Wlc1ME1ETUdBMVVkSHdRc01Db3dLS0Ftb0NTR0ltaDBkSEE2THk5amNtd3VibWh6TG5WckwybHVkQzh4WkM5amNteGpNeTVqY213d0t3WURWUjBRQkNRd0lvQVBNakF5TURFd01qSXhNREl4TlRWYWdROHlNREl5TURNeE56RXdOVEUxTlZvd0h3WURWUjBqQkJnd0ZvQVVvSllmZ1lUTlBkNkVVS0w2UUxJekh4WTVQRkl3SFFZRFZSME9CQllFRkx0eXZZU3lhcWc2MEFFVVpneGswd3JqUkpjK01Ba0dBMVVkRXdRQ01BQXdHUVlKS29aSWh2WjlCMEVBQkF3d0Noc0VWamd1TXdNQ0JMQXdEUVlKS29aSWh2Y05BUUVMQlFBRGdnRUJBQmN6eThCOGp1UHBJZmFUTkZjeHJDMjJhQ1gveFlabWhyTC9OdklCQWFYMUc1aGppd21rR0tFMmhSVElyNjdQeFp4bVhzSnhpZ1JCTUhQbEkrbFkvK29rekgwR2k3YjVicWx3N3B4R0lnSk8wMDB3OHBGc3ZvOXc0MklZaEhvZHN2bkRWU3hoTVQwSjQ2UWhrOXNvRTBMam9FVUxLUVBQbFlHa2UvR2wzbTE3SXRGWXdPYlFIMGZNRXdtaXFCeWVJZno3Z1NjY096TDVjSXA2UGNaVE9qbzJJcVFwZ0VtaGpPY1JJbkVxQU5pdFNkam9pSkFKenBhYVpqWVRSZEhVWDdpN2FqRWlING05MW5GVys0QXFrTnR0bGI0V2NHS3NTbVdnZktLaGVGNElvWktNRTgweGVyU2dNeTh2dGpMT0JKQ0dYejB3TEdtUXVSbXhNVHE4OHE0PTwvWDUwOUNlcnRpZmljYXRlPg0KICAgICAgICA8L1g1MDlEYXRhPg0KICAgIDwvS2V5SW5mbz4NCjwvU2lnbmF0dXJlPg0K" + } + ] + } + } + ] +} diff --git a/src/test/resources/examples/full_examples/secondary-care/homecare/acute/nominated-pharmacy/clinical-practitioner/4-Task-Request-Release-200_OK.json b/src/test/resources/examples/full_examples/secondary-care/homecare/acute/nominated-pharmacy/clinical-practitioner/4-Task-Request-Release-200_OK.json new file mode 100644 index 00000000..3eaf8ba7 --- /dev/null +++ b/src/test/resources/examples/full_examples/secondary-care/homecare/acute/nominated-pharmacy/clinical-practitioner/4-Task-Request-Release-200_OK.json @@ -0,0 +1,100 @@ +{ + "resourceType": "Parameters", + "id": "nominatedPharmacyReleaseRequest", + "parameter": [ + { + "name": "owner", + "resource": { + "resourceType": "Organization", + "id": "organization", + "identifier": [ + { + "system": "https://fhir.nhs.uk/Id/ods-organization-code", + "value": "VNE51" + } + ], + "address": [ + { + "city": "West Yorkshire", + "use": "work", + "line": [ + "17 Austhorpe Road", + "Crossgates", + "Leeds" + ], + "postalCode": "LS15 8BA" + } + ], + "active": true, + "type": [ + { + "coding": [ + { + "system": "https://fhir.nhs.uk/CodeSystem/organisation-role", + "code": "182", + "display": "PHARMACY" + } + ] + } + ], + "name": "The Simple Pharmacy", + "telecom": [ + { + "system": "phone", + "use": "work", + "value": "0113 3180277" + } + ] + } + }, + { + "name": "status", + "valueCode": "accepted" + }, + { + "name": "agent", + "resource": { + "resourceType": "PractitionerRole", + "id": "16708936-6397-4e03-b84f-4aaa790633e0", + "identifier": [ + { + "system": "https://fhir.nhs.uk/Id/sds-role-profile-id", + "value": "555086415105" + } + ], + "practitioner": { + "identifier": { + "system": "https://fhir.nhs.uk/Id/sds-user-id", + "value": "3415870201" + }, + "display": "Jackie Clark" + }, + "code": [ + { + "coding": [ + { + "system": "https://fhir.nhs.uk/CodeSystem/NHSDigital-SDS-JobRoleCode", + "code": "S8000:G8000:R8000", + "display": "Clinical Practitioner Access Role" + } + ] + } + ], + "telecom": [ + { + "system": "phone", + "value": "02380798431", + "use": "work" + } + ] + } + }, + { + "name": "group-identifier", + "valueIdentifier": { + "system": "https://fhir.nhs.uk/Id/prescription-order-number", + "value": "0EB38D-A99968-424EAR" + } + } + ] +} diff --git a/src/test/resources/examples/full_examples/secondary-care/homecare/acute/nominated-pharmacy/clinical-practitioner/5-Prepare-Request-200_OK.json b/src/test/resources/examples/full_examples/secondary-care/homecare/acute/nominated-pharmacy/clinical-practitioner/5-Prepare-Request-200_OK.json new file mode 100644 index 00000000..f6023839 --- /dev/null +++ b/src/test/resources/examples/full_examples/secondary-care/homecare/acute/nominated-pharmacy/clinical-practitioner/5-Prepare-Request-200_OK.json @@ -0,0 +1,341 @@ +{ + "resourceType": "Bundle", + "id": "0a1fd9ef-a3d5-4e95-84cd-552070a03096", + "identifier": { + "system": "https://tools.ietf.org/html/rfc4122", + "value": "597fc63c-d86d-4c10-bfd2-88b16570dd07" + }, + "type": "message", + "entry": [ + { + "fullUrl": "urn:uuid:0a1fd9ef-a3d5-4e95-84cd-552070a03096", + "resource": { + "resourceType": "MessageHeader", + "id": "0a1fd9ef-a3d5-4e95-84cd-552070a03096", + "eventCoding": { + "system": "https://fhir.nhs.uk/CodeSystem/message-event", + "code": "prescription-order", + "display": "Prescription Order" + }, + "sender": { + "identifier": { + "system": "https://fhir.nhs.uk/Id/ods-organization-code", + "value": "RBA" + }, + "reference": "urn:uuid:56166769-c1c4-4d07-afa8-132b5dfca666", + "display": "BOOTH|PHIL" + }, + "source": { + "endpoint": "https://directory.spineservices.nhs.uk/STU3/Organization/RBA" + }, + "destination": [ + { + "endpoint": "https://directory.spineservices.nhs.uk/STU3/Organization/FH542", + "receiver": { + "identifier": { + "system": "https://fhir.nhs.uk/Id/ods-organization-code", + "value": "VN6XW" + } + } + } + ], + "focus": [ + { + "reference": "urn:uuid:78d3c2eb-009e-4ec8-a358-b042954aa9b2" + }, + { + "reference": "urn:uuid:a54219b8-f741-4c47-b662-e4f8dfa49ab6" + } + ] + } + }, + { + "fullUrl": "urn:uuid:a54219b8-f741-4c47-b662-e4f8dfa49ab6", + "resource": { + "resourceType": "MedicationRequest", + "id": "a54219b8-f741-4c47-b662-e4f8dfa49ab6", + "extension": [ + { + "url": "https://fhir.nhs.uk/StructureDefinition/Extension-DM-PrescriptionType", + "valueCoding": { + "system": "https://fhir.nhs.uk/CodeSystem/prescription-type", + "code": "1001", + "display": "Outpatient Community Prescriber - Medical Prescriber" + } + } + ], + "identifier": [ + { + "system": "https://fhir.nhs.uk/Id/prescription-order-item-number", + "value": "5ad41934-d5c8-4f74-b4da-4f3609acaa1f" + } + ], + "status": "active", + "intent": "order", + "category": [ + { + "coding": [ + { + "system": "http://terminology.hl7.org/CodeSystem/medicationrequest-category", + "code": "outpatient", + "display": "Outpatient" + } + ] + } + ], + "medicationCodeableConcept": { + "coding": [ + { + "system": "http://snomed.info/sct", + "code": "15517911000001104", + "display": "Methotrexate 10mg/0.2ml solution for injection pre-filled syringes" + } + ] + }, + "subject": { + "reference": "urn:uuid:78d3c2eb-009e-4ec8-a358-b042954aa9b2" + }, + "requester": { + "reference": "urn:uuid:56166769-c1c4-4d07-afa8-132b5dfca666" + }, + "groupIdentifier": { + "extension": [ + { + "url": "https://fhir.nhs.uk/StructureDefinition/Extension-DM-PrescriptionId", + "valueIdentifier": { + "system": "https://fhir.nhs.uk/Id/prescription", + "value": "ae143c69-35ec-4be1-b38a-685459f3bfb2" + } + } + ], + "system": "https://fhir.nhs.uk/Id/prescription-order-number", + "value": "5EA56C-Z6EA5E-710A1O" + }, + "courseOfTherapyType": { + "coding": [ + { + "system": "http://terminology.hl7.org/CodeSystem/medicationrequest-course-of-therapy", + "code": "acute", + "display": "Short course (acute) therapy" + } + ] + }, + "dosageInstruction": [ + { + "text": "Inject 10 milligram - 5 times a day - Subcutaneous route - for 10 days", + "timing": { + "repeat": { + "frequency": 5, + "period": 1, + "periodUnit": "d", + "boundsDuration": { + "value": 10, + "unit": "day", + "system": "http://unitsofmeasure.org", + "code": "d" + } + } + }, + "method": { + "coding": [ + { + "system": "http://snomed.info/sct", + "code": "422145002", + "display": "Inject" + } + ] + }, + "route": { + "coding": [ + { + "system": "http://snomed.info/sct", + "code": "34206005", + "display": "Subcutaneous route" + } + ] + }, + "doseAndRate": [ + { + "doseQuantity": { + "value": 10, + "unit": "milligram", + "system": "http://unitsofmeasure.org", + "code": "mg" + } + } + ] + } + ], + "dispenseRequest": { + "extension": [ + { + "url": "https://fhir.nhs.uk/StructureDefinition/Extension-DM-PerformerSiteType", + "valueCoding": { + "system": "https://fhir.nhs.uk/CodeSystem/dispensing-site-preference", + "code": "P1" + } + } + ], + "quantity": { + "value": 1, + "unit": "pre-filled disposable injection", + "system": "http://snomed.info/sct", + "code": "3318611000001103" + }, + "performer": { + "identifier": { + "system": "https://fhir.nhs.uk/Id/ods-organization-code", + "value": "VN6XW" + } + } + }, + "substitution": { + "allowedBoolean": false + } + } + }, + { + "fullUrl": "urn:uuid:78d3c2eb-009e-4ec8-a358-b042954aa9b2", + "resource": { + "resourceType": "Patient", + "identifier": [ + { + "system": "https://fhir.nhs.uk/Id/nhs-number", + "value": "9990548609" + } + ], + "name": [ + { + "use": "usual", + "family": "XXTESTPATIENT-TGNP", + "given": ["DONOTUSE"], + "prefix": ["MR"] + } + ], + "gender": "male", + "birthDate": "1932-01-06", + "address": [ + { + "use": "home", + "line": [ + "1 Trevelyan Square", + "Boar Lane", + "Leeds", + "West Yorkshire" + ], + "postalCode": "LS1 6AE" + } + ], + "generalPractitioner": [ + { + "identifier": { + "system": "https://fhir.nhs.uk/Id/ods-organization-code", + "value": "B81001" + } + } + ] + } + }, + { + "fullUrl": "urn:uuid:a8c85454-f8cb-498d-9629-78e2cb5fa47a", + "resource": { + "resourceType": "Practitioner", + "id": "a8c85454-f8cb-498d-9629-78e2cb5fa47a", + "identifier": [ + { + "system": "https://fhir.nhs.uk/Id/sds-user-id", + "value": "555086689106" + }, + { + "system": "https://fhir.hl7.org.uk/Id/gmc-number", + "value": "6150129" + } + ], + "name": [ + { + "family": "FIFTYSEVEN", + "given": ["RANDOM"], + "prefix": ["MR"] + } + ] + } + }, + { + "fullUrl": "urn:uuid:56166769-c1c4-4d07-afa8-132b5dfca666", + "resource": { + "resourceType": "PractitionerRole", + "id": "56166769-c1c4-4d07-afa8-132b5dfca666", + "identifier": [ + { + "system": "https://fhir.nhs.uk/Id/sds-role-profile-id", + "value": "601986680555" + }, + { + "system": "https://fhir.hl7.org.uk/Id/nhsbsa-spurious-code", + "value": "683458" + } + ], + "practitioner": { + "reference": "urn:uuid:a8c85454-f8cb-498d-9629-78e2cb5fa47a" + }, + "organization": { + "reference": "urn:uuid:3b4b03a5-52ba-4ba6-9b82-70350aa109d8" + }, + "code": [ + { + "coding": [ + { + "system": "https://fhir.nhs.uk/CodeSystem/NHSDigital-SDS-JobRoleCode", + "code": "S8000:G8000:R8000", + "display": "Clinical Practitioner Access Role " + } + ] + } + ], + "telecom": [ + { + "system": "phone", + "value": "01234567890", + "use": "work" + } + ] + } + }, + { + "fullUrl": "urn:uuid:3b4b03a5-52ba-4ba6-9b82-70350aa109d8", + "resource": { + "resourceType": "Organization", + "id": "3b4b03a5-52ba-4ba6-9b82-70350aa109d8", + "identifier": [ + { + "system": "https://fhir.nhs.uk/Id/ods-organization-code", + "value": "A99968" + } + ], + "name": "SOMERSET BOWEL CANCER SCREENING CENTRE", + "address": [ + { + "use": "work", + "line": ["MUSGROVE PARK HOSPITAL"], + "city": "TAUNTON", + "postalCode": "TA1 5DA" + } + ], + "telecom": [ + { + "system": "phone", + "value": "01823 333444", + "use": "work" + } + ], + "partOf": { + "identifier": { + "system": "https://fhir.nhs.uk/Id/ods-organization-code", + "value": "RBA" + }, + "display": "TAUNTON AND SOMERSET NHS FOUNDATION TRUST" + } + } + } + ] +} diff --git a/src/test/resources/examples/full_examples/secondary-care/homecare/acute/nominated-pharmacy/clinical-practitioner/5-Prepare-Response-200_OK.json b/src/test/resources/examples/full_examples/secondary-care/homecare/acute/nominated-pharmacy/clinical-practitioner/5-Prepare-Response-200_OK.json new file mode 100644 index 00000000..b824ca98 --- /dev/null +++ b/src/test/resources/examples/full_examples/secondary-care/homecare/acute/nominated-pharmacy/clinical-practitioner/5-Prepare-Response-200_OK.json @@ -0,0 +1,17 @@ +{ + "resourceType": "Parameters", + "parameter": [ + { + "name": "digest", + "valueString": "PFNpZ25lZEluZm8geG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvMDkveG1sZHNpZyMiPjxDYW5vbmljYWxpemF0aW9uTWV0aG9kIEFsZ29yaXRobT0iaHR0cDovL3d3dy53My5vcmcvMjAwMS8xMC94bWwtZXhjLWMxNG4jIj48L0Nhbm9uaWNhbGl6YXRpb25NZXRob2Q+PFNpZ25hdHVyZU1ldGhvZCBBbGdvcml0aG09Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvMDkveG1sZHNpZyNyc2Etc2hhMSI+PC9TaWduYXR1cmVNZXRob2Q+PFJlZmVyZW5jZT48VHJhbnNmb3Jtcz48VHJhbnNmb3JtIEFsZ29yaXRobT0iaHR0cDovL3d3dy53My5vcmcvMjAwMS8xMC94bWwtZXhjLWMxNG4jIj48L1RyYW5zZm9ybT48L1RyYW5zZm9ybXM+PERpZ2VzdE1ldGhvZCBBbGdvcml0aG09Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvMDkveG1sZHNpZyNzaGExIj48L0RpZ2VzdE1ldGhvZD48RGlnZXN0VmFsdWU+ZXZQUk9MUmRvZEFpdHg4Z3gzMktsS1hEOFNjPTwvRGlnZXN0VmFsdWU+PC9SZWZlcmVuY2U+PC9TaWduZWRJbmZvPg==" + }, + { + "name": "timestamp", + "valueString": "2022-10-25T10:24:34+00:00" + }, + { + "name": "algorithm", + "valueString": "RS1" + } + ] +} diff --git a/src/test/resources/examples/full_examples/secondary-care/homecare/acute/nominated-pharmacy/clinical-practitioner/5-Process-Request-Dispense-200_OK.json b/src/test/resources/examples/full_examples/secondary-care/homecare/acute/nominated-pharmacy/clinical-practitioner/5-Process-Request-Dispense-200_OK.json new file mode 100644 index 00000000..8016e642 --- /dev/null +++ b/src/test/resources/examples/full_examples/secondary-care/homecare/acute/nominated-pharmacy/clinical-practitioner/5-Process-Request-Dispense-200_OK.json @@ -0,0 +1,382 @@ +{ + "resourceType": "Bundle", + "id": "b757abaa-4d06-4467-bc20-3205812e3ede", + "identifier": { + "system": "https://tools.ietf.org/html/rfc4122", + "value": "50101420-789b-4a3d-a4fb-4d3d0af76a64" + }, + "type": "message", + "entry": [ + { + "fullUrl": "urn:uuid:b5680e02-a014-4164-8489-7c7925fdfbc0", + "resource": { + "resourceType": "MessageHeader", + "id": "b5680e02-a014-4164-8489-7c7925fdfbc0", + "destination": [ + { + "endpoint": "https://directory.spineservices.nhs.uk/STU3/Organization/VN6XW", + "receiver": { + "identifier": { + "system": "https://fhir.nhs.uk/Id/ods-organization-code", + "value": "VN6XW" + } + } + } + ], + "sender": { + "identifier": { + "system": "https://fhir.nhs.uk/Id/ods-organization-code", + "value": "X2601" + }, + "display": "NHS Digital Spine" + }, + "source": { + "name": "NHS Spine", + "endpoint": "https://internal-dev.api.service.nhs.uk/electronic-prescriptions/$process-message" + }, + "response": { + "code": "ok", + "identifier": "ffffffff-ffff-4fff-bfff-ffffffffffff" + }, + "eventCoding": { + "system": "https://fhir.nhs.uk/CodeSystem/message-event", + "code": "dispense-notification", + "display": "Dispense Notification" + }, + "focus": [ + { + "reference": "urn:uuid:2f44e6d0-5530-4582-b971-0cbcf21165d9" + }, + { + "reference": "urn:uuid:0256a42a-5f31-4938-9d09-e79e904e1968" + } + ] + } + }, + { + "fullUrl": "urn:uuid:0256a42a-5f31-4938-9d09-e79e904e1968", + "resource": { + "resourceType": "MedicationDispense", + "id": "0256a42a-5f31-4938-9d09-e79e904e1968", + "extension": [ + { + "url": "https://fhir.nhs.uk/StructureDefinition/Extension-EPS-TaskBusinessStatus", + "valueCoding": { + "code": "0006", + "system": "https://fhir.nhs.uk/CodeSystem/EPS-task-business-status", + "display": "Dispensed" + } + } + ], + "identifier": [ + { + "system": "https://fhir.nhs.uk/Id/prescription-dispense-item-number", + "value": "37ea97af-5539-42e0-9135-7832480f99db" + } + ], + "contained": [ + { + "resourceType": "PractitionerRole", + "id": "performer", + "identifier": [ + { + "system": "https://fhir.nhs.uk/Id/sds-role-profile-id", + "value": "555086415105" + } + ], + "practitioner": { + "identifier": { + "system": "https://fhir.nhs.uk/Id/sds-user-id", + "value": "3415870201" + }, + "display": "Jackie Clark" + }, + "organization": { + "reference": "urn:uuid:2bf9f37c-d88b-4f86-ad5f-373c1416e04b" + }, + "code": [ + { + "coding": [ + { + "system": "https://fhir.nhs.uk/CodeSystem/NHSDigital-SDS-JobRoleCode", + "code": "S8000:G8000:R8000", + "display": "Clinical Practitioner Access Role" + } + ] + } + ], + "telecom": [ + { + "system": "phone", + "use": "work", + "value": "02380798431" + } + ] + }, + { + "resourceType": "MedicationRequest", + "id": "m1", + "extension": [ + { + "url": "https://fhir.nhs.uk/StructureDefinition/Extension-DM-ResponsiblePractitioner", + "valueReference": { + "reference": "urn:uuid:aa4015b3-acb6-4f19-ad67-8537dacfb0e3" + } + }, + { + "url": "https://fhir.nhs.uk/StructureDefinition/Extension-DM-PrescriptionType", + "valueCoding": { + "system": "https://fhir.nhs.uk/CodeSystem/prescription-type", + "code": "1001" + } + } + ], + "identifier": [ + { + "system": "https://fhir.nhs.uk/Id/prescription-order-item-number", + "value": "5ad41934-d5c8-4f74-b4da-4f3609acaa1f" + } + ], + "status": "active", + "intent": "order", + "medicationCodeableConcept": { + "coding": [ + { + "system": "http://snomed.info/sct", + "code": "15517911000001104", + "display": "Methotrexate 10mg/0.2ml solution for injection pre-filled syringes" + } + ] + }, + "subject": { + "reference": "urn:uuid:27c4494d-b8bf-417f-9877-4c54e87aaa24" + }, + "category": [ + { + "coding": [ + { + "system": "http://terminology.hl7.org/CodeSystem/medicationrequest-category", + "code": "outpatient", + "display": "Outpatient" + } + ] + } + ], + "requester": { + "reference": "urn:uuid:aa4015b3-acb6-4f19-ad67-8537dacfb0e3" + }, + "groupIdentifier": { + "system": "https://fhir.nhs.uk/Id/prescription-order-number", + "value": "5EA56C-Z6EA5E-710A1O", + "extension": [ + { + "url": "https://fhir.nhs.uk/StructureDefinition/Extension-DM-PrescriptionId", + "valueIdentifier": { + "system": "https://fhir.nhs.uk/Id/prescription", + "value": "ae143c69-35ec-4be1-b38a-685459f3bfb2" + } + } + ] + }, + "courseOfTherapyType": { + "coding": [ + { + "system": "http://terminology.hl7.org/CodeSystem/medicationrequest-course-of-therapy", + "code": "acute", + "display": "Short course (acute) therapy" + } + ] + }, + "dosageInstruction": [ + { + "text": "10 milligram, Inject, Subcutaneous route, once weekly" + } + ], + "dispenseRequest": { + "extension": [ + { + "url": "https://fhir.nhs.uk/StructureDefinition/Extension-DM-PerformerSiteType", + "valueCoding": { + "system": "https://fhir.nhs.uk/CodeSystem/dispensing-site-preference", + "code": "P1" + } + } + ], + "numberOfRepeatsAllowed": 0, + "quantity": { + "value": 1, + "unit": "pre-filled disposable injection", + "system": "http://snomed.info/sct", + "code": "3318611000001103" + }, + "performer": { + "identifier": { + "system": "https://fhir.nhs.uk/Id/ods-organization-code", + "value": "VN6XW" + } + } + }, + "substitution": { + "allowedBoolean": false + } + } + ], + "status": "unknown", + "medicationCodeableConcept": { + "coding": [ + { + "system": "http://snomed.info/sct", + "code": "15517911000001104", + "display": "Methotrexate 10mg/0.2ml solution for injection pre-filled syringes" + } + ] + }, + "subject": { + "reference": "urn:uuid:2f44e6d0-5530-4582-b971-0cbcf21165d9", + "identifier": { + "system": "https://fhir.nhs.uk/Id/nhs-number", + "value": "9990548609" + } + }, + "performer": [ + { + "actor": { + "reference": "#performer" + } + } + ], + "authorizingPrescription": [ + { + "reference": "#m1" + } + ], + "type": { + "coding": [ + { + "code": "0001", + "system": "https://fhir.nhs.uk/CodeSystem/medicationdispense-type", + "display": "Item fully dispensed" + } + ] + }, + "quantity": { + "value": 1, + "unit": "pre-filled disposable injection", + "system": "http://snomed.info/sct", + "code": "3318611000001103" + }, + "whenHandedOver": "2022-03-17T12:01:18.354Z", + "dosageInstruction": [ + { + "text": "10 milligram, Inject, Subcutaneous route, once weekly" + } + ] + } + }, + { + "fullUrl": "urn:uuid:2f44e6d0-5530-4582-b971-0cbcf21165d9", + "resource": { + "resourceType": "Patient", + "id": "2f44e6d0-5530-4582-b971-0cbcf21165d9", + "identifier": [ + { + "system": "https://fhir.nhs.uk/Id/nhs-number", + "value": "9990548609" + } + ], + "name": [ + { + "use": "usual", + "family": "XXTESTPATIENT-TGNP", + "given": [ + "DONOTUSE" + ], + "prefix": [ + "MR" + ] + } + ], + "gender": "male", + "birthDate": "1932-01-06", + "address": [ + { + "use": "home", + "line": [ + "1 Trevelyan Square", + "Boar Lane", + "Leeds", + "West Yorkshire" + ], + "postalCode": "LS1 6AE" + } + ], + "generalPractitioner": [ + { + "identifier": { + "system": "https://fhir.nhs.uk/Id/ods-organization-code", + "value": "B81001" + } + } + ] + } + }, + { + "fullUrl": "urn:uuid:2bf9f37c-d88b-4f86-ad5f-373c1416e04b", + "resource": { + "resourceType": "Organization", + "extension": [ + { + "url": "https://fhir.nhs.uk/StructureDefinition/Extension-ODS-OrganisationRelationships", + "extension": [ + { + "url": "reimbursementAuthority", + "valueIdentifier": { + "system": "https://fhir.nhs.uk/Id/ods-organization-code", + "value": "T1450" + } + } + ] + } + ], + "identifier": [ + { + "system": "https://fhir.nhs.uk/Id/ods-organization-code", + "value": "VNE51" + } + ], + "address": [ + { + "city": "West Yorkshire", + "use": "work", + "line": [ + "17 Austhorpe Road", + "Crossgates", + "Leeds" + ], + "postalCode": "LS15 8BA" + } + ], + "active": true, + "type": [ + { + "coding": [ + { + "system": "https://fhir.nhs.uk/CodeSystem/organisation-role", + "code": "182", + "display": "PHARMACY" + } + ] + } + ], + "name": "The Simple Pharmacy", + "telecom": [ + { + "system": "phone", + "use": "work", + "value": "0113 3180277" + } + ] + } + } + ] +} diff --git a/src/test/resources/examples/full_examples/secondary-care/homecare/acute/nominated-pharmacy/clinical-practitioner/5-Process-Request-DispenseAmend-200_OK.json b/src/test/resources/examples/full_examples/secondary-care/homecare/acute/nominated-pharmacy/clinical-practitioner/5-Process-Request-DispenseAmend-200_OK.json new file mode 100644 index 00000000..83bb74b4 --- /dev/null +++ b/src/test/resources/examples/full_examples/secondary-care/homecare/acute/nominated-pharmacy/clinical-practitioner/5-Process-Request-DispenseAmend-200_OK.json @@ -0,0 +1,391 @@ +{ + "resourceType": "Bundle", + "id": "b757abaa-4d06-4467-bc20-3205812e3ede", + "identifier": { + "system": "https://tools.ietf.org/html/rfc4122", + "value": "08a95f44-5869-4dbb-93ec-22d12ece1748" + }, + "type": "message", + "entry": [ + { + "fullUrl": "urn:uuid:b5680e02-a014-4164-8489-7c7925fdfbc0", + "resource": { + "resourceType": "MessageHeader", + "id": "b5680e02-a014-4164-8489-7c7925fdfbc0", + "extension": [ + { + "url": "https://fhir.nhs.uk/StructureDefinition/Extension-replacementOf", + "valueIdentifier": { + "system": "https://tools.ietf.org/html/rfc4122", + "value": "50101420-789b-4a3d-a4fb-4d3d0af76a64" + } + } + ], + "destination": [ + { + "endpoint": "https://directory.spineservices.nhs.uk/STU3/Organization/VN6XW", + "receiver": { + "identifier": { + "system": "https://fhir.nhs.uk/Id/ods-organization-code", + "value": "VN6XW" + } + } + } + ], + "sender": { + "identifier": { + "system": "https://fhir.nhs.uk/Id/ods-organization-code", + "value": "X2601" + }, + "display": "NHS Digital Spine" + }, + "source": { + "name": "NHS Spine", + "endpoint": "https://internal-dev.api.service.nhs.uk/electronic-prescriptions/$process-message" + }, + "response": { + "code": "ok", + "identifier": "ffffffff-ffff-4fff-bfff-ffffffffffff" + }, + "eventCoding": { + "system": "https://fhir.nhs.uk/CodeSystem/message-event", + "code": "dispense-notification", + "display": "Dispense Notification" + }, + "focus": [ + { + "reference": "urn:uuid:2f44e6d0-5530-4582-b971-0cbcf21165d9" + }, + { + "reference": "urn:uuid:0256a42a-5f31-4938-9d09-e79e904e1968" + } + ] + } + }, + { + "fullUrl": "urn:uuid:0256a42a-5f31-4938-9d09-e79e904e1968", + "resource": { + "resourceType": "MedicationDispense", + "id": "0256a42a-5f31-4938-9d09-e79e904e1968", + "extension": [ + { + "url": "https://fhir.nhs.uk/StructureDefinition/Extension-EPS-TaskBusinessStatus", + "valueCoding": { + "code": "0006", + "system": "https://fhir.nhs.uk/CodeSystem/EPS-task-business-status", + "display": "Dispensed" + } + } + ], + "identifier": [ + { + "system": "https://fhir.nhs.uk/Id/prescription-dispense-item-number", + "value": "37ea97af-5539-42e0-9135-7832480f99db" + } + ], + "contained": [ + { + "resourceType": "PractitionerRole", + "id": "performer", + "identifier": [ + { + "system": "https://fhir.nhs.uk/Id/sds-role-profile-id", + "value": "555086415105" + } + ], + "practitioner": { + "identifier": { + "system": "https://fhir.nhs.uk/Id/sds-user-id", + "value": "3415870201" + }, + "display": "Jackie Clark" + }, + "organization": { + "reference": "urn:uuid:2bf9f37c-d88b-4f86-ad5f-373c1416e04b" + }, + "code": [ + { + "coding": [ + { + "system": "https://fhir.nhs.uk/CodeSystem/NHSDigital-SDS-JobRoleCode", + "code": "S8000:G8000:R8000", + "display": "Clinical Practitioner Access Role" + } + ] + } + ], + "telecom": [ + { + "system": "phone", + "use": "work", + "value": "02380798431" + } + ] + }, + { + "resourceType": "MedicationRequest", + "id": "m1", + "extension": [ + { + "url": "https://fhir.nhs.uk/StructureDefinition/Extension-DM-ResponsiblePractitioner", + "valueReference": { + "reference": "urn:uuid:aa4015b3-acb6-4f19-ad67-8537dacfb0e3" + } + }, + { + "url": "https://fhir.nhs.uk/StructureDefinition/Extension-DM-PrescriptionType", + "valueCoding": { + "system": "https://fhir.nhs.uk/CodeSystem/prescription-type", + "code": "1001" + } + } + ], + "identifier": [ + { + "system": "https://fhir.nhs.uk/Id/prescription-order-item-number", + "value": "5ad41934-d5c8-4f74-b4da-4f3609acaa1f" + } + ], + "status": "active", + "intent": "order", + "medicationCodeableConcept": { + "coding": [ + { + "system": "http://snomed.info/sct", + "code": "15517911000001104", + "display": "Methotrexate 10mg/0.2ml solution for injection pre-filled syringes" + } + ] + }, + "subject": { + "reference": "urn:uuid:27c4494d-b8bf-417f-9877-4c54e87aaa24" + }, + "category": [ + { + "coding": [ + { + "system": "http://terminology.hl7.org/CodeSystem/medicationrequest-category", + "code": "outpatient", + "display": "Outpatient" + } + ] + } + ], + "requester": { + "reference": "urn:uuid:aa4015b3-acb6-4f19-ad67-8537dacfb0e3" + }, + "groupIdentifier": { + "system": "https://fhir.nhs.uk/Id/prescription-order-number", + "value": "5EA56C-Z6EA5E-710A1O", + "extension": [ + { + "url": "https://fhir.nhs.uk/StructureDefinition/Extension-DM-PrescriptionId", + "valueIdentifier": { + "system": "https://fhir.nhs.uk/Id/prescription", + "value": "ae143c69-35ec-4be1-b38a-685459f3bfb2" + } + } + ] + }, + "courseOfTherapyType": { + "coding": [ + { + "system": "http://terminology.hl7.org/CodeSystem/medicationrequest-course-of-therapy", + "code": "acute", + "display": "Short course (acute) therapy" + } + ] + }, + "dosageInstruction": [ + { + "text": "10 milligram, Inject, Subcutaneous route, once weekly" + } + ], + "dispenseRequest": { + "extension": [ + { + "url": "https://fhir.nhs.uk/StructureDefinition/Extension-DM-PerformerSiteType", + "valueCoding": { + "system": "https://fhir.nhs.uk/CodeSystem/dispensing-site-preference", + "code": "P1" + } + } + ], + "numberOfRepeatsAllowed": 0, + "quantity": { + "value": 1, + "unit": "pre-filled disposable injection", + "system": "http://snomed.info/sct", + "code": "3318611000001103" + }, + "performer": { + "identifier": { + "system": "https://fhir.nhs.uk/Id/ods-organization-code", + "value": "VN6XW" + } + } + }, + "substitution": { + "allowedBoolean": false + } + } + ], + "status": "unknown", + "medicationCodeableConcept": { + "coding": [ + { + "system": "http://snomed.info/sct", + "code": "37571311000001104", + "display": "Methofill 10mg/0.2ml solution for injection pre-filled syringes (Accord Healthcare Ltd) (product)" + } + ] + }, + "subject": { + "reference": "urn:uuid:2f44e6d0-5530-4582-b971-0cbcf21165d9", + "identifier": { + "system": "https://fhir.nhs.uk/Id/nhs-number", + "value": "9990548609" + } + }, + "performer": [ + { + "actor": { + "reference": "#performer" + } + } + ], + "authorizingPrescription": [ + { + "reference": "#m1" + } + ], + "type": { + "coding": [ + { + "code": "0001", + "system": "https://fhir.nhs.uk/CodeSystem/medicationdispense-type", + "display": "Item fully dispensed" + } + ] + }, + "quantity": { + "value": 1, + "unit": "pre-filled disposable injection", + "system": "http://snomed.info/sct", + "code": "3318611000001103" + }, + "whenHandedOver": "2022-03-17T12:01:18.354Z", + "dosageInstruction": [ + { + "text": "10 milligram, Inject, Subcutaneous route, once weekly" + } + ] + } + }, + { + "fullUrl": "urn:uuid:2f44e6d0-5530-4582-b971-0cbcf21165d9", + "resource": { + "resourceType": "Patient", + "id": "2f44e6d0-5530-4582-b971-0cbcf21165d9", + "identifier": [ + { + "system": "https://fhir.nhs.uk/Id/nhs-number", + "value": "9990548609" + } + ], + "name": [ + { + "use": "usual", + "family": "XXTESTPATIENT-TGNP", + "given": [ + "DONOTUSE" + ], + "prefix": [ + "MR" + ] + } + ], + "gender": "male", + "birthDate": "1932-01-06", + "address": [ + { + "use": "home", + "line": [ + "1 Trevelyan Square", + "Boar Lane", + "Leeds", + "West Yorkshire" + ], + "postalCode": "LS1 6AE" + } + ], + "generalPractitioner": [ + { + "identifier": { + "system": "https://fhir.nhs.uk/Id/ods-organization-code", + "value": "B81001" + } + } + ] + } + }, + { + "fullUrl": "urn:uuid:2bf9f37c-d88b-4f86-ad5f-373c1416e04b", + "resource": { + "resourceType": "Organization", + "extension": [ + { + "url": "https://fhir.nhs.uk/StructureDefinition/Extension-ODS-OrganisationRelationships", + "extension": [ + { + "url": "reimbursementAuthority", + "valueIdentifier": { + "system": "https://fhir.nhs.uk/Id/ods-organization-code", + "value": "T1450" + } + } + ] + } + ], + "identifier": [ + { + "system": "https://fhir.nhs.uk/Id/ods-organization-code", + "value": "VNE51" + } + ], + "address": [ + { + "city": "West Yorkshire", + "use": "work", + "line": [ + "17 Austhorpe Road", + "Crossgates", + "Leeds" + ], + "postalCode": "LS15 8BA" + } + ], + "active": true, + "type": [ + { + "coding": [ + { + "system": "https://fhir.nhs.uk/CodeSystem/organisation-role", + "code": "182", + "display": "PHARMACY" + } + ] + } + ], + "name": "The Simple Pharmacy", + "telecom": [ + { + "system": "phone", + "use": "work", + "value": "0113 3180277" + } + ] + } + } + ] +} diff --git a/src/test/resources/examples/full_examples/secondary-care/homecare/acute/nominated-pharmacy/clinical-practitioner/5-Process-Request-Send-200_OK.json b/src/test/resources/examples/full_examples/secondary-care/homecare/acute/nominated-pharmacy/clinical-practitioner/5-Process-Request-Send-200_OK.json new file mode 100644 index 00000000..7677e759 --- /dev/null +++ b/src/test/resources/examples/full_examples/secondary-care/homecare/acute/nominated-pharmacy/clinical-practitioner/5-Process-Request-Send-200_OK.json @@ -0,0 +1,376 @@ +{ + "resourceType": "Bundle", + "id": "0a1fd9ef-a3d5-4e95-84cd-552070a03096", + "identifier": { + "system": "https://tools.ietf.org/html/rfc4122", + "value": "597fc63c-d86d-4c10-bfd2-88b16570dd07" + }, + "type": "message", + "entry": [ + { + "fullUrl": "urn:uuid:0a1fd9ef-a3d5-4e95-84cd-552070a03096", + "resource": { + "resourceType": "MessageHeader", + "id": "0a1fd9ef-a3d5-4e95-84cd-552070a03096", + "eventCoding": { + "system": "https://fhir.nhs.uk/CodeSystem/message-event", + "code": "prescription-order", + "display": "Prescription Order" + }, + "sender": { + "identifier": { + "system": "https://fhir.nhs.uk/Id/ods-organization-code", + "value": "RBA" + }, + "reference": "urn:uuid:56166769-c1c4-4d07-afa8-132b5dfca666", + "display": "BOOTH|PHIL" + }, + "source": { + "endpoint": "https://directory.spineservices.nhs.uk/STU3/Organization/RBA" + }, + "destination": [ + { + "endpoint": "https://directory.spineservices.nhs.uk/STU3/Organization/FH542", + "receiver": { + "identifier": { + "system": "https://fhir.nhs.uk/Id/ods-organization-code", + "value": "VN6XW" + } + } + } + ], + "focus": [ + { + "reference": "urn:uuid:78d3c2eb-009e-4ec8-a358-b042954aa9b2" + }, + { + "reference": "urn:uuid:a54219b8-f741-4c47-b662-e4f8dfa49ab6" + } + ] + } + }, + { + "fullUrl": "urn:uuid:a54219b8-f741-4c47-b662-e4f8dfa49ab6", + "resource": { + "resourceType": "MedicationRequest", + "id": "a54219b8-f741-4c47-b662-e4f8dfa49ab6", + "extension": [ + { + "url": "https://fhir.nhs.uk/StructureDefinition/Extension-DM-PrescriptionType", + "valueCoding": { + "system": "https://fhir.nhs.uk/CodeSystem/prescription-type", + "code": "1001", + "display": "Outpatient Community Prescriber - Medical Prescriber" + } + } + ], + "identifier": [ + { + "system": "https://fhir.nhs.uk/Id/prescription-order-item-number", + "value": "5ad41934-d5c8-4f74-b4da-4f3609acaa1f" + } + ], + "status": "active", + "intent": "order", + "category": [ + { + "coding": [ + { + "system": "http://terminology.hl7.org/CodeSystem/medicationrequest-category", + "code": "outpatient", + "display": "Outpatient" + } + ] + } + ], + "medicationCodeableConcept": { + "coding": [ + { + "system": "http://snomed.info/sct", + "code": "15517911000001104", + "display": "Methotrexate 10mg/0.2ml solution for injection pre-filled syringes" + } + ] + }, + "subject": { + "reference": "urn:uuid:78d3c2eb-009e-4ec8-a358-b042954aa9b2" + }, + "requester": { + "reference": "urn:uuid:56166769-c1c4-4d07-afa8-132b5dfca666" + }, + "groupIdentifier": { + "extension": [ + { + "url": "https://fhir.nhs.uk/StructureDefinition/Extension-DM-PrescriptionId", + "valueIdentifier": { + "system": "https://fhir.nhs.uk/Id/prescription", + "value": "ae143c69-35ec-4be1-b38a-685459f3bfb2" + } + } + ], + "system": "https://fhir.nhs.uk/Id/prescription-order-number", + "value": "5EA56C-Z6EA5E-710A1O" + }, + "courseOfTherapyType": { + "coding": [ + { + "system": "http://terminology.hl7.org/CodeSystem/medicationrequest-course-of-therapy", + "code": "acute", + "display": "Short course (acute) therapy" + } + ] + }, + "dosageInstruction": [ + { + "text": "Inject 10 milligram - 5 times a day - Subcutaneous route - for 10 days", + "timing": { + "repeat": { + "frequency": 5, + "period": 1, + "periodUnit": "d", + "boundsDuration": { + "value": 10, + "unit": "day", + "system": "http://unitsofmeasure.org", + "code": "d" + } + } + }, + "method": { + "coding": [ + { + "system": "http://snomed.info/sct", + "code": "422145002", + "display": "Inject" + } + ] + }, + "route": { + "coding": [ + { + "system": "http://snomed.info/sct", + "code": "34206005", + "display": "Subcutaneous route" + } + ] + }, + "doseAndRate": [ + { + "doseQuantity": { + "value": 10, + "unit": "milligram", + "system": "http://unitsofmeasure.org", + "code": "mg" + } + } + ] + } + ], + "dispenseRequest": { + "extension": [ + { + "url": "https://fhir.nhs.uk/StructureDefinition/Extension-DM-PerformerSiteType", + "valueCoding": { + "system": "https://fhir.nhs.uk/CodeSystem/dispensing-site-preference", + "code": "P1" + } + } + ], + "quantity": { + "value": 1, + "unit": "pre-filled disposable injection", + "system": "http://snomed.info/sct", + "code": "3318611000001103" + }, + "performer": { + "identifier": { + "system": "https://fhir.nhs.uk/Id/ods-organization-code", + "value": "VN6XW" + } + } + }, + "substitution": { + "allowedBoolean": false + } + } + }, + { + "fullUrl": "urn:uuid:78d3c2eb-009e-4ec8-a358-b042954aa9b2", + "resource": { + "resourceType": "Patient", + "identifier": [ + { + "system": "https://fhir.nhs.uk/Id/nhs-number", + "value": "9990548609" + } + ], + "name": [ + { + "use": "usual", + "family": "XXTESTPATIENT-TGNP", + "given": ["DONOTUSE"], + "prefix": ["MR"] + } + ], + "gender": "male", + "birthDate": "1932-01-06", + "address": [ + { + "use": "home", + "line": [ + "1 Trevelyan Square", + "Boar Lane", + "Leeds", + "West Yorkshire" + ], + "postalCode": "LS1 6AE" + } + ], + "generalPractitioner": [ + { + "identifier": { + "system": "https://fhir.nhs.uk/Id/ods-organization-code", + "value": "B81001" + } + } + ] + } + }, + { + "fullUrl": "urn:uuid:a8c85454-f8cb-498d-9629-78e2cb5fa47a", + "resource": { + "resourceType": "Practitioner", + "id": "a8c85454-f8cb-498d-9629-78e2cb5fa47a", + "identifier": [ + { + "system": "https://fhir.nhs.uk/Id/sds-user-id", + "value": "555086689106" + }, + { + "system": "https://fhir.hl7.org.uk/Id/gmc-number", + "value": "6150129" + } + ], + "name": [ + { + "family": "FIFTYSEVEN", + "given": ["RANDOM"], + "prefix": ["MR"] + } + ] + } + }, + { + "fullUrl": "urn:uuid:56166769-c1c4-4d07-afa8-132b5dfca666", + "resource": { + "resourceType": "PractitionerRole", + "id": "56166769-c1c4-4d07-afa8-132b5dfca666", + "identifier": [ + { + "system": "https://fhir.nhs.uk/Id/sds-role-profile-id", + "value": "601986680555" + }, + { + "system": "https://fhir.hl7.org.uk/Id/nhsbsa-spurious-code", + "value": "683458" + } + ], + "practitioner": { + "reference": "urn:uuid:a8c85454-f8cb-498d-9629-78e2cb5fa47a" + }, + "organization": { + "reference": "urn:uuid:3b4b03a5-52ba-4ba6-9b82-70350aa109d8" + }, + "code": [ + { + "coding": [ + { + "system": "https://fhir.nhs.uk/CodeSystem/NHSDigital-SDS-JobRoleCode", + "code": "S8000:G8000:R8000", + "display": "Clinical Practitioner Access Role " + } + ] + } + ], + "telecom": [ + { + "system": "phone", + "value": "01234567890", + "use": "work" + } + ] + } + }, + { + "fullUrl": "urn:uuid:3b4b03a5-52ba-4ba6-9b82-70350aa109d8", + "resource": { + "resourceType": "Organization", + "id": "3b4b03a5-52ba-4ba6-9b82-70350aa109d8", + "identifier": [ + { + "system": "https://fhir.nhs.uk/Id/ods-organization-code", + "value": "A99968" + } + ], + "name": "SOMERSET BOWEL CANCER SCREENING CENTRE", + "address": [ + { + "use": "work", + "line": ["MUSGROVE PARK HOSPITAL"], + "city": "TAUNTON", + "postalCode": "TA1 5DA" + } + ], + "telecom": [ + { + "system": "phone", + "value": "01823 333444", + "use": "work" + } + ], + "partOf": { + "identifier": { + "system": "https://fhir.nhs.uk/Id/ods-organization-code", + "value": "RBA" + }, + "display": "TAUNTON AND SOMERSET NHS FOUNDATION TRUST" + } + } + }, + { + "fullUrl": "urn:uuid:28828c55-8fa7-42d7-916f-fcf076e0c10e", + "resource": { + "resourceType": "Provenance", + "id": "28828c55-8fa7-42d7-916f-fcf076e0c10e", + "target": [ + { + "reference": "urn:uuid:a54219b8-f741-4c47-b662-e4f8dfa49ab6" + } + ], + "recorded": "2021-02-11T16:35:38+00:00", + "agent": [ + { + "who": { + "reference": "urn:uuid:56166769-c1c4-4d07-afa8-132b5dfca666" + } + } + ], + "signature": [ + { + "type": [ + { + "system": "urn:iso-astm:E1762-95:2013", + "code": "1.2.840.10065.1.12.1.1" + } + ], + "when": "2022-03-17T11:59:49+00:00", + "who": { + "reference": "urn:uuid:56166769-c1c4-4d07-afa8-132b5dfca666" + }, + "data": "PFNpZ25hdHVyZSB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC8wOS94bWxkc2lnIyI+CiAgICAgICAgICAgICA8U2lnbmVkSW5mbz48Q2Fub25pY2FsaXphdGlvbk1ldGhvZCBBbGdvcml0aG09Imh0dHA6Ly93d3cudzMub3JnLzIwMDEvMTAveG1sLWV4Yy1jMTRuIyI+PC9DYW5vbmljYWxpemF0aW9uTWV0aG9kPjxTaWduYXR1cmVNZXRob2QgQWxnb3JpdGhtPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwLzA5L3htbGRzaWcjcnNhLXNoYTEiPjwvU2lnbmF0dXJlTWV0aG9kPjxSZWZlcmVuY2U+PFRyYW5zZm9ybXM+PFRyYW5zZm9ybSBBbGdvcml0aG09Imh0dHA6Ly93d3cudzMub3JnLzIwMDEvMTAveG1sLWV4Yy1jMTRuIyI+PC9UcmFuc2Zvcm0+PC9UcmFuc2Zvcm1zPjxEaWdlc3RNZXRob2QgQWxnb3JpdGhtPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwLzA5L3htbGRzaWcjc2hhMSI+PC9EaWdlc3RNZXRob2Q+PERpZ2VzdFZhbHVlPjlLMmRyV3FESjhvMjZRZWZxdXM1UDl5S1QrYz08L0RpZ2VzdFZhbHVlPjwvUmVmZXJlbmNlPjwvU2lnbmVkSW5mbz4KICAgICAgICAgICAgIDxTaWduYXR1cmVWYWx1ZT48L1NpZ25hdHVyZVZhbHVlPgogICAgICAgICAgICAgPEtleUluZm8+PFg1MDlEYXRhPjxYNTA5Q2VydGlmaWNhdGU+PC9YNTA5Q2VydGlmaWNhdGU+PC9YNTA5RGF0YT48L0tleUluZm8+CiAgICAgICAgICAgPC9TaWduYXR1cmU+" + } + ] + } + } + ] +} diff --git a/src/test/resources/examples/full_examples/secondary-care/homecare/acute/nominated-pharmacy/clinical-practitioner/5-Task-Request-Release-200_OK.json b/src/test/resources/examples/full_examples/secondary-care/homecare/acute/nominated-pharmacy/clinical-practitioner/5-Task-Request-Release-200_OK.json new file mode 100644 index 00000000..c2e73d89 --- /dev/null +++ b/src/test/resources/examples/full_examples/secondary-care/homecare/acute/nominated-pharmacy/clinical-practitioner/5-Task-Request-Release-200_OK.json @@ -0,0 +1,99 @@ +{ + "resourceType": "Parameters", + "id": "816111e9-1f4b-4590-b3ea-84c375d89aa5", + "parameter": [ + { + "name": "owner", + "resource": { + "resourceType": "Organization", + "id": "organization", + "identifier": [ + { + "system": "https://fhir.nhs.uk/Id/ods-organization-code", + "value": "VNE51" + } + ], + "address": [ + { + "city": "West Yorkshire", + "use": "work", + "line": [ + "17 Austhorpe Road", + "Crossgates", + "Leeds" + ], + "postalCode": "LS15 8BA" + } + ], + "active": true, + "type": [ + { + "coding": [ + { + "system": "https://fhir.nhs.uk/CodeSystem/organisation-role", + "code": "182", + "display": "PHARMACY" + } + ] + } + ], + "name": "The Simple Pharmacy", + "telecom": [ + { + "system": "phone", + "use": "work", + "value": "0113 3180277" + } + ] + } + }, + { + "name": "status", + "valueCode": "accepted" + }, + { + "name": "agent", + "resource": { + "resourceType": "PractitionerRole", + "telecom": [ + { + "system": "phone", + "value": "02380798431", + "use": "work" + } + ], + "identifier": [ + { + "system": "https://fhir.nhs.uk/Id/sds-role-profile-id", + "value": "555086415105" + } + ], + "practitioner": { + "identifier": { + "system": "https://fhir.nhs.uk/Id/sds-user-id", + "value": "3415870201" + }, + "display": "Jackie Clark" + }, + "code": [ + { + "coding": [ + { + "system": "https://fhir.nhs.uk/CodeSystem/NHSDigital-SDS-JobRoleCode", + "code": "S8000:G8000:R8000", + "display": "Clinical Practitioner Access Role" + } + ] + } + ] + } + }, + { + "name": "group-identifier", + "valueIdentifier": { + "system": "https://fhir.nhs.uk/Id/prescription-order-number", + "value": "5EA56C-Z6EA5E-710A1O" + } + } + ] +} diff --git a/src/test/resources/examples/full_examples/secondary-care/homecare/acute/nominated-pharmacy/clinical-practitioner/6-Claim-Request-200_OK.json b/src/test/resources/examples/full_examples/secondary-care/homecare/acute/nominated-pharmacy/clinical-practitioner/6-Claim-Request-200_OK.json new file mode 100644 index 00000000..dbff1ead --- /dev/null +++ b/src/test/resources/examples/full_examples/secondary-care/homecare/acute/nominated-pharmacy/clinical-practitioner/6-Claim-Request-200_OK.json @@ -0,0 +1,315 @@ +{ + "resourceType": "Claim", + "created": "2022-03-15T13:51:14.477Z", + "contained": [ + { + "resourceType": "PractitionerRole", + "id": "performer", + "identifier": [ + { + "system": "https://fhir.nhs.uk/Id/sds-role-profile-id", + "value": "555086415105" + } + ], + "practitioner": { + "identifier": { + "system": "https://fhir.nhs.uk/Id/sds-user-id", + "value": "3415870201" + }, + "display": "Mr Peter Potion" + }, + "organization": { + "reference": "#organization" + }, + "code": [ + { + "coding": [ + { + "system": "https://fhir.nhs.uk/CodeSystem/NHSDigital-SDS-JobRoleCode", + "code": "S8000:G8000:R8000", + "display": "Clinical Practitioner Access Role" + } + ] + } + ], + "telecom": [ + { + "system": "phone", + "use": "work", + "value": "0532567890" + } + ] + }, + { + "resourceType": "Organization", + "id": "organization", + "identifier": [ + { + "system": "https://fhir.nhs.uk/Id/ods-organization-code", + "value": "VNE51" + } + ], + "address": [ + { + "city": "West Yorkshire", + "use": "work", + "line": [ + "17 Austhorpe Road", + "Crossgates", + "Leeds" + ], + "postalCode": "LS15 8BA" + } + ], + "active": true, + "type": [ + { + "coding": [ + { + "system": "https://fhir.nhs.uk/CodeSystem/organisation-role", + "code": "182", + "display": "PHARMACY" + } + ] + } + ], + "name": "The Simple Pharmacy", + "telecom": [ + { + "system": "phone", + "use": "work", + "value": "0113 3180277" + } + ] + } + ], + "extension": [ + { + "url": "https://fhir.nhs.uk/StructureDefinition/Extension-Provenance-agent", + "valueReference": { + "identifier": { + "system": "https://fhir.nhs.uk/Id/sds-role-profile-id", + "value": "884562163557" + }, + "display": "dummy full name" + } + } + ], + "identifier": [ + { + "system": "https://tools.ietf.org/html/rfc4122", + "value": "2eefcd5d-a734-4366-add1-56a82fa2bd5a" + } + ], + "status": "active", + "type": { + "coding": [ + { + "system": "http://terminology.hl7.org/CodeSystem/claim-type", + "code": "pharmacy", + "display": "Pharmacy" + } + ] + }, + "use": "claim", + "patient": { + "identifier": { + "system": "https://fhir.nhs.uk/Id/nhs-number", + "value": "9990548609" + } + }, + "provider": { + "reference": "#performer" + }, + "priority": { + "coding": [ + { + "system": "http://terminology.hl7.org/CodeSystem/processpriority", + "code": "normal" + } + ] + }, + "insurance": [ + { + "sequence": 1, + "focal": true, + "coverage": { + "identifier": { + "system": "https://fhir.nhs.uk/Id/ods-organization-code", + "value": "T1450" + }, + "display": "NHS BUSINESS SERVICES AUTHORITY" + } + } + ], + "payee": { + "type": { + "coding": [ + { + "system": "http://terminology.hl7.org/CodeSystem/payeetype", + "code": "provider", + "display": "Provider" + } + ] + }, + "party": { + "reference": "#organization" + } + }, + "prescription": { + "extension": [ + { + "url": "https://fhir.nhs.uk/StructureDefinition/Extension-DM-GroupIdentifier", + "extension": [ + { + "url": "shortForm", + "valueIdentifier": { + "system": "https://fhir.nhs.uk/Id/prescription-order-number", + "value": "40E709-A99968-280C0X" + } + }, + { + "url": "UUID", + "valueIdentifier": { + "system": "https://fhir.nhs.uk/Id/prescription", + "value": "410489a5-5316-426c-98f5-af1502d71b39" + } + } + ] + } + ] + }, + "item": [ + { + "extension": [ + { + "url": "https://fhir.nhs.uk/StructureDefinition/Extension-EPS-TaskBusinessStatus", + "valueCoding": { + "code": "0006", + "system": "https://fhir.nhs.uk/CodeSystem/EPS-task-business-status", + "display": "Dispensed" + } + } + ], + "sequence": 1, + "productOrService": { + "coding": [ + { + "system": "http://snomed.info/sct", + "code": "16076005", + "display": "Prescription" + } + ] + }, + "programCode": [ + { + "coding": [ + { + "code": "0001", + "system": "https://fhir.nhs.uk/CodeSystem/prescription-charge-exemption", + "display": "Patient has paid appropriate charges" + } + ] + }, + { + "coding": [ + { + "system": "https://fhir.nhs.uk/CodeSystem/DM-exemption-evidence", + "code": "evidence-seen", + "display": "Evidence Seen" + } + ] + } + ], + "detail": [ + { + "extension": [ + { + "url": "https://fhir.nhs.uk/StructureDefinition/Extension-ClaimSequenceIdentifier", + "valueIdentifier": { + "system": "https://fhir.nhs.uk/Id/claim-sequence-identifier", + "value": "f1026607-b98a-4ab4-a684-c7b3988aab4e" + } + }, + { + "url": "https://fhir.nhs.uk/StructureDefinition/Extension-ClaimMedicationRequestReference", + "valueReference": { + "identifier": { + "system": "https://fhir.nhs.uk/Id/prescription-order-item-number", + "value": "5a82c11e-ea26-4405-aceb-741d8ca68b95" + } + } + } + ], + "sequence": 1, + "productOrService": { + "coding": [ + { + "system": "http://snomed.info/sct", + "code": "15517911000001104", + "display": "Methotrexate 10mg/0.2ml solution for injection pre-filled syringes" + } + ] + }, + "modifier": [ + { + "coding": [ + { + "code": "0001", + "system": "https://fhir.nhs.uk/CodeSystem/medicationdispense-type", + "display": "Item fully dispensed" + } + ] + } + ], + "quantity": { + "value": 1, + "unit": "pre-filled disposable injection", + "system": "http://snomed.info/sct", + "code": "3318611000001103" + }, + "programCode": [ + { + "coding": [ + { + "system": "https://fhir.nhs.uk/CodeSystem/medicationdispense-endorsement", + "code": "NDEC", + "display": "No Dispenser Endorsement Code" + } + ] + }, + { + "coding": [ + { + "system": "https://fhir.nhs.uk/CodeSystem/DM-prescription-charge", + "code": "paid-once", + "display": "Paid Once" + } + ] + } + ], + "subDetail": [ + { + "sequence": 1, + "productOrService": { + "coding": [ + { + "system": "http://snomed.info/sct", + "code": "15517911000001104", + "display": "Methotrexate 10mg/0.2ml solution for injection pre-filled syringes" + } + ] + }, + "quantity": { + "value": 1, + "unit": "pre-filled disposable injection", + "system": "http://snomed.info/sct", + "code": "3318611000001103" + } + } + ] + } + ] + } + ] +} diff --git a/src/test/resources/examples/full_examples/secondary-care/homecare/acute/nominated-pharmacy/clinical-practitioner/6-Claim-Request-Amend-200_OK.json b/src/test/resources/examples/full_examples/secondary-care/homecare/acute/nominated-pharmacy/clinical-practitioner/6-Claim-Request-Amend-200_OK.json new file mode 100644 index 00000000..91389a10 --- /dev/null +++ b/src/test/resources/examples/full_examples/secondary-care/homecare/acute/nominated-pharmacy/clinical-practitioner/6-Claim-Request-Amend-200_OK.json @@ -0,0 +1,323 @@ +{ + "resourceType": "Claim", + "created": "2022-03-15T13:51:43.621Z", + "contained": [ + { + "resourceType": "PractitionerRole", + "id": "performer", + "identifier": [ + { + "system": "https://fhir.nhs.uk/Id/sds-role-profile-id", + "value": "555086415105" + } + ], + "practitioner": { + "identifier": { + "system": "https://fhir.nhs.uk/Id/sds-user-id", + "value": "3415870201" + }, + "display": "Mr Peter Potion" + }, + "organization": { + "reference": "#organization" + }, + "code": [ + { + "coding": [ + { + "system": "https://fhir.nhs.uk/CodeSystem/NHSDigital-SDS-JobRoleCode", + "code": "S8000:G8000:R8000", + "display": "Clinical Practitioner Access Role" + } + ] + } + ], + "telecom": [ + { + "system": "phone", + "use": "work", + "value": "0532567890" + } + ] + }, + { + "resourceType": "Organization", + "id": "organization", + "identifier": [ + { + "system": "https://fhir.nhs.uk/Id/ods-organization-code", + "value": "VNE51" + } + ], + "address": [ + { + "city": "West Yorkshire", + "use": "work", + "line": [ + "17 Austhorpe Road", + "Crossgates", + "Leeds" + ], + "postalCode": "LS15 8BA" + } + ], + "active": true, + "type": [ + { + "coding": [ + { + "system": "https://fhir.nhs.uk/CodeSystem/organisation-role", + "code": "182", + "display": "PHARMACY" + } + ] + } + ], + "name": "The Simple Pharmacy", + "telecom": [ + { + "system": "phone", + "use": "work", + "value": "0113 3180277" + } + ] + } + ], + "extension": [ + { + "url": "https://fhir.nhs.uk/StructureDefinition/Extension-Provenance-agent", + "valueReference": { + "identifier": { + "system": "https://fhir.nhs.uk/Id/sds-role-profile-id", + "value": "884562163557" + }, + "display": "dummy full name" + } + }, + { + "url": "https://fhir.nhs.uk/StructureDefinition/Extension-replacementOf", + "valueIdentifier": { + "value": "2eefcd5d-a734-4366-add1-56a82fa2bd5a", + "system": "https://tools.ietf.org/html/rfc4122" + } + } + ], + "identifier": [ + { + "system": "https://tools.ietf.org/html/rfc4122", + "value": "6f660dae-860b-45ee-bc36-9b3d75e7c237" + } + ], + "status": "active", + "type": { + "coding": [ + { + "system": "http://terminology.hl7.org/CodeSystem/claim-type", + "code": "pharmacy", + "display": "Pharmacy" + } + ] + }, + "use": "claim", + "patient": { + "identifier": { + "system": "https://fhir.nhs.uk/Id/nhs-number", + "value": "9990548609" + } + }, + "provider": { + "reference": "#performer" + }, + "priority": { + "coding": [ + { + "system": "http://terminology.hl7.org/CodeSystem/processpriority", + "code": "normal" + } + ] + }, + "insurance": [ + { + "sequence": 1, + "focal": true, + "coverage": { + "identifier": { + "system": "https://fhir.nhs.uk/Id/ods-organization-code", + "value": "T1450" + }, + "display": "NHS BUSINESS SERVICES AUTHORITY" + } + } + ], + "payee": { + "type": { + "coding": [ + { + "system": "http://terminology.hl7.org/CodeSystem/payeetype", + "code": "provider", + "display": "Provider" + } + ] + }, + "party": { + "reference": "#organization" + } + }, + "prescription": { + "extension": [ + { + "url": "https://fhir.nhs.uk/StructureDefinition/Extension-DM-GroupIdentifier", + "extension": [ + { + "url": "shortForm", + "valueIdentifier": { + "system": "https://fhir.nhs.uk/Id/prescription-order-number", + "value": "40E709-A99968-280C0X" + } + }, + { + "url": "UUID", + "valueIdentifier": { + "system": "https://fhir.nhs.uk/Id/prescription", + "value": "410489a5-5316-426c-98f5-af1502d71b39" + } + } + ] + } + ] + }, + "item": [ + { + "extension": [ + { + "url": "https://fhir.nhs.uk/StructureDefinition/Extension-EPS-TaskBusinessStatus", + "valueCoding": { + "code": "0006", + "system": "https://fhir.nhs.uk/CodeSystem/EPS-task-business-status", + "display": "Dispensed" + } + } + ], + "sequence": 1, + "productOrService": { + "coding": [ + { + "system": "http://snomed.info/sct", + "code": "16076005", + "display": "Prescription" + } + ] + }, + "programCode": [ + { + "coding": [ + { + "code": "0001", + "system": "https://fhir.nhs.uk/CodeSystem/prescription-charge-exemption", + "display": "Patient has paid appropriate charges" + } + ] + }, + { + "coding": [ + { + "system": "https://fhir.nhs.uk/CodeSystem/DM-exemption-evidence", + "code": "evidence-seen", + "display": "Evidence Seen" + } + ] + } + ], + "detail": [ + { + "extension": [ + { + "url": "https://fhir.nhs.uk/StructureDefinition/Extension-ClaimSequenceIdentifier", + "valueIdentifier": { + "system": "https://fhir.nhs.uk/Id/claim-sequence-identifier", + "value": "dd3e5443-ce58-4e83-b201-a81777487e0a" + } + }, + { + "url": "https://fhir.nhs.uk/StructureDefinition/Extension-ClaimMedicationRequestReference", + "valueReference": { + "identifier": { + "system": "https://fhir.nhs.uk/Id/prescription-order-item-number", + "value": "5a82c11e-ea26-4405-aceb-741d8ca68b95" + } + } + } + ], + "sequence": 1, + "productOrService": { + "coding": [ + { + "system": "http://snomed.info/sct", + "code": "15517911000001104", + "display": "Methotrexate 10mg/0.2ml solution for injection pre-filled syringes" + } + ] + }, + "modifier": [ + { + "coding": [ + { + "code": "0001", + "system": "https://fhir.nhs.uk/CodeSystem/medicationdispense-type", + "display": "Item fully dispensed" + } + ] + } + ], + "quantity": { + "value": 1, + "unit": "pre-filled disposable injection", + "system": "http://snomed.info/sct", + "code": "3318611000001103" + }, + "programCode": [ + { + "coding": [ + { + "code": "BB", + "system": "https://fhir.nhs.uk/CodeSystem/medicationdispense-endorsement", + "display": "Broken Bulk" + } + ], + "text": "Supporting Info for Broken Bulk" + }, + { + "coding": [ + { + "system": "https://fhir.nhs.uk/CodeSystem/DM-prescription-charge", + "code": "paid-once", + "display": "Paid Once" + } + ] + } + ], + "subDetail": [ + { + "sequence": 1, + "productOrService": { + "coding": [ + { + "system": "http://snomed.info/sct", + "code": "15517911000001104", + "display": "Methotrexate 10mg/0.2ml solution for injection pre-filled syringes" + } + ] + }, + "quantity": { + "value": 1, + "unit": "pre-filled disposable injection", + "system": "http://snomed.info/sct", + "code": "3318611000001103" + } + } + ] + } + ] + } + ] +} diff --git a/src/test/resources/examples/full_examples/secondary-care/homecare/acute/nominated-pharmacy/clinical-practitioner/6-Prepare-Request-200_OK.json b/src/test/resources/examples/full_examples/secondary-care/homecare/acute/nominated-pharmacy/clinical-practitioner/6-Prepare-Request-200_OK.json new file mode 100644 index 00000000..45965ca7 --- /dev/null +++ b/src/test/resources/examples/full_examples/secondary-care/homecare/acute/nominated-pharmacy/clinical-practitioner/6-Prepare-Request-200_OK.json @@ -0,0 +1,341 @@ +{ + "resourceType": "Bundle", + "id": "0a1fd9ef-a3d5-4e95-84cd-552070a03096", + "identifier": { + "system": "https://tools.ietf.org/html/rfc4122", + "value": "256cb948-c274-436a-8fff-c0f3082ca0e8" + }, + "type": "message", + "entry": [ + { + "fullUrl": "urn:uuid:0a1fd9ef-a3d5-4e95-84cd-552070a03096", + "resource": { + "resourceType": "MessageHeader", + "id": "0a1fd9ef-a3d5-4e95-84cd-552070a03096", + "eventCoding": { + "system": "https://fhir.nhs.uk/CodeSystem/message-event", + "code": "prescription-order", + "display": "Prescription Order" + }, + "sender": { + "identifier": { + "system": "https://fhir.nhs.uk/Id/ods-organization-code", + "value": "RBA" + }, + "reference": "urn:uuid:56166769-c1c4-4d07-afa8-132b5dfca666", + "display": "BOOTH|PHIL" + }, + "source": { + "endpoint": "https://directory.spineservices.nhs.uk/STU3/Organization/RBA" + }, + "destination": [ + { + "endpoint": "https://directory.spineservices.nhs.uk/STU3/Organization/FH542", + "receiver": { + "identifier": { + "system": "https://fhir.nhs.uk/Id/ods-organization-code", + "value": "FL584" + } + } + } + ], + "focus": [ + { + "reference": "urn:uuid:78d3c2eb-009e-4ec8-a358-b042954aa9b2" + }, + { + "reference": "urn:uuid:a54219b8-f741-4c47-b662-e4f8dfa49ab6" + } + ] + } + }, + { + "fullUrl": "urn:uuid:a54219b8-f741-4c47-b662-e4f8dfa49ab6", + "resource": { + "resourceType": "MedicationRequest", + "id": "a54219b8-f741-4c47-b662-e4f8dfa49ab6", + "extension": [ + { + "url": "https://fhir.nhs.uk/StructureDefinition/Extension-DM-PrescriptionType", + "valueCoding": { + "system": "https://fhir.nhs.uk/CodeSystem/prescription-type", + "code": "1001", + "display": "Outpatient Community Prescriber - Medical Prescriber" + } + } + ], + "identifier": [ + { + "system": "https://fhir.nhs.uk/Id/prescription-order-item-number", + "value": "5a82c11e-ea26-4405-aceb-741d8ca68b95" + } + ], + "status": "active", + "intent": "order", + "category": [ + { + "coding": [ + { + "system": "http://terminology.hl7.org/CodeSystem/medicationrequest-category", + "code": "outpatient", + "display": "Outpatient" + } + ] + } + ], + "medicationCodeableConcept": { + "coding": [ + { + "system": "http://snomed.info/sct", + "code": "15517911000001104", + "display": "Methotrexate 10mg/0.2ml solution for injection pre-filled syringes" + } + ] + }, + "subject": { + "reference": "urn:uuid:78d3c2eb-009e-4ec8-a358-b042954aa9b2" + }, + "requester": { + "reference": "urn:uuid:56166769-c1c4-4d07-afa8-132b5dfca666" + }, + "groupIdentifier": { + "extension": [ + { + "url": "https://fhir.nhs.uk/StructureDefinition/Extension-DM-PrescriptionId", + "valueIdentifier": { + "system": "https://fhir.nhs.uk/Id/prescription", + "value": "410489a5-5316-426c-98f5-af1502d71b39" + } + } + ], + "system": "https://fhir.nhs.uk/Id/prescription-order-number", + "value": "40E709-A99968-280C0X" + }, + "courseOfTherapyType": { + "coding": [ + { + "system": "http://terminology.hl7.org/CodeSystem/medicationrequest-course-of-therapy", + "code": "acute", + "display": "Short course (acute) therapy" + } + ] + }, + "dosageInstruction": [ + { + "text": "Inject 10 milligram - 5 times a day - Subcutaneous route - for 10 days", + "timing": { + "repeat": { + "frequency": 5, + "period": 1, + "periodUnit": "d", + "boundsDuration": { + "value": 10, + "unit": "day", + "system": "http://unitsofmeasure.org", + "code": "d" + } + } + }, + "method": { + "coding": [ + { + "system": "http://snomed.info/sct", + "code": "422145002", + "display": "Inject" + } + ] + }, + "route": { + "coding": [ + { + "system": "http://snomed.info/sct", + "code": "34206005", + "display": "Subcutaneous route" + } + ] + }, + "doseAndRate": [ + { + "doseQuantity": { + "value": 10, + "unit": "milligram", + "system": "http://unitsofmeasure.org", + "code": "mg" + } + } + ] + } + ], + "dispenseRequest": { + "extension": [ + { + "url": "https://fhir.nhs.uk/StructureDefinition/Extension-DM-PerformerSiteType", + "valueCoding": { + "system": "https://fhir.nhs.uk/CodeSystem/dispensing-site-preference", + "code": "P1" + } + } + ], + "quantity": { + "value": 1, + "unit": "pre-filled disposable injection", + "system": "http://snomed.info/sct", + "code": "3318611000001103" + }, + "performer": { + "identifier": { + "system": "https://fhir.nhs.uk/Id/ods-organization-code", + "value": "FL584" + } + } + }, + "substitution": { + "allowedBoolean": false + } + } + }, + { + "fullUrl": "urn:uuid:78d3c2eb-009e-4ec8-a358-b042954aa9b2", + "resource": { + "resourceType": "Patient", + "identifier": [ + { + "system": "https://fhir.nhs.uk/Id/nhs-number", + "value": "9990548609" + } + ], + "name": [ + { + "use": "usual", + "family": "XXTESTPATIENT-TGNP", + "given": ["DONOTUSE"], + "prefix": ["MR"] + } + ], + "gender": "male", + "birthDate": "1932-01-06", + "address": [ + { + "use": "home", + "line": [ + "1 Trevelyan Square", + "Boar Lane", + "Leeds", + "West Yorkshire" + ], + "postalCode": "LS1 6AE" + } + ], + "generalPractitioner": [ + { + "identifier": { + "system": "https://fhir.nhs.uk/Id/ods-organization-code", + "value": "B81001" + } + } + ] + } + }, + { + "fullUrl": "urn:uuid:a8c85454-f8cb-498d-9629-78e2cb5fa47a", + "resource": { + "resourceType": "Practitioner", + "id": "a8c85454-f8cb-498d-9629-78e2cb5fa47a", + "identifier": [ + { + "system": "https://fhir.nhs.uk/Id/sds-user-id", + "value": "555086689106" + }, + { + "system": "https://fhir.hl7.org.uk/Id/gmc-number", + "value": "6150129" + } + ], + "name": [ + { + "family": "FIFTYSEVEN", + "given": ["RANDOM"], + "prefix": ["MR"] + } + ] + } + }, + { + "fullUrl": "urn:uuid:56166769-c1c4-4d07-afa8-132b5dfca666", + "resource": { + "resourceType": "PractitionerRole", + "id": "56166769-c1c4-4d07-afa8-132b5dfca666", + "identifier": [ + { + "system": "https://fhir.nhs.uk/Id/sds-role-profile-id", + "value": "601986680555" + }, + { + "system": "https://fhir.hl7.org.uk/Id/nhsbsa-spurious-code", + "value": "683458" + } + ], + "practitioner": { + "reference": "urn:uuid:a8c85454-f8cb-498d-9629-78e2cb5fa47a" + }, + "organization": { + "reference": "urn:uuid:3b4b03a5-52ba-4ba6-9b82-70350aa109d8" + }, + "code": [ + { + "coding": [ + { + "system": "https://fhir.nhs.uk/CodeSystem/NHSDigital-SDS-JobRoleCode", + "code": "S8000:G8000:R8000", + "display": "Clinical Practitioner Access Role " + } + ] + } + ], + "telecom": [ + { + "system": "phone", + "value": "01234567890", + "use": "work" + } + ] + } + }, + { + "fullUrl": "urn:uuid:3b4b03a5-52ba-4ba6-9b82-70350aa109d8", + "resource": { + "resourceType": "Organization", + "id": "3b4b03a5-52ba-4ba6-9b82-70350aa109d8", + "identifier": [ + { + "system": "https://fhir.nhs.uk/Id/ods-organization-code", + "value": "A99968" + } + ], + "name": "SOMERSET BOWEL CANCER SCREENING CENTRE", + "address": [ + { + "use": "work", + "line": ["MUSGROVE PARK HOSPITAL"], + "city": "TAUNTON", + "postalCode": "TA1 5DA" + } + ], + "telecom": [ + { + "system": "phone", + "value": "01823 333444", + "use": "work" + } + ], + "partOf": { + "identifier": { + "system": "https://fhir.nhs.uk/Id/ods-organization-code", + "value": "RBA" + }, + "display": "TAUNTON AND SOMERSET NHS FOUNDATION TRUST" + } + } + } + ] +} diff --git a/src/test/resources/examples/full_examples/secondary-care/homecare/acute/nominated-pharmacy/clinical-practitioner/6-Prepare-Response-200_OK.json b/src/test/resources/examples/full_examples/secondary-care/homecare/acute/nominated-pharmacy/clinical-practitioner/6-Prepare-Response-200_OK.json new file mode 100644 index 00000000..b9849434 --- /dev/null +++ b/src/test/resources/examples/full_examples/secondary-care/homecare/acute/nominated-pharmacy/clinical-practitioner/6-Prepare-Response-200_OK.json @@ -0,0 +1,17 @@ +{ + "resourceType": "Parameters", + "parameter": [ + { + "name": "digest", + "valueString": "PFNpZ25lZEluZm8geG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvMDkveG1sZHNpZyMiPjxDYW5vbmljYWxpemF0aW9uTWV0aG9kIEFsZ29yaXRobT0iaHR0cDovL3d3dy53My5vcmcvMjAwMS8xMC94bWwtZXhjLWMxNG4jIj48L0Nhbm9uaWNhbGl6YXRpb25NZXRob2Q+PFNpZ25hdHVyZU1ldGhvZCBBbGdvcml0aG09Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvMDkveG1sZHNpZyNyc2Etc2hhMSI+PC9TaWduYXR1cmVNZXRob2Q+PFJlZmVyZW5jZT48VHJhbnNmb3Jtcz48VHJhbnNmb3JtIEFsZ29yaXRobT0iaHR0cDovL3d3dy53My5vcmcvMjAwMS8xMC94bWwtZXhjLWMxNG4jIj48L1RyYW5zZm9ybT48L1RyYW5zZm9ybXM+PERpZ2VzdE1ldGhvZCBBbGdvcml0aG09Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvMDkveG1sZHNpZyNzaGExIj48L0RpZ2VzdE1ldGhvZD48RGlnZXN0VmFsdWU+M2FnTUdWT2grZnlubmlrSmV1bi9PWk45Ujk0PTwvRGlnZXN0VmFsdWU+PC9SZWZlcmVuY2U+PC9TaWduZWRJbmZvPg==" + }, + { + "name": "timestamp", + "valueString": "2022-10-25T10:24:34+00:00" + }, + { + "name": "algorithm", + "valueString": "RS1" + } + ] +} diff --git a/src/test/resources/examples/full_examples/secondary-care/homecare/acute/nominated-pharmacy/clinical-practitioner/6-Process-Request-Dispense-200_OK.json b/src/test/resources/examples/full_examples/secondary-care/homecare/acute/nominated-pharmacy/clinical-practitioner/6-Process-Request-Dispense-200_OK.json new file mode 100644 index 00000000..fce3d21f --- /dev/null +++ b/src/test/resources/examples/full_examples/secondary-care/homecare/acute/nominated-pharmacy/clinical-practitioner/6-Process-Request-Dispense-200_OK.json @@ -0,0 +1,383 @@ +{ + "resourceType": "Bundle", + "id": "8de88952-f649-4c4f-a556-e54e7f05cc75", + "identifier": { + "system": "https://tools.ietf.org/html/rfc4122", + "value": "fe64ecaa-61a2-4879-bf45-657075844dde" + }, + "type": "message", + "entry": [ + { + "fullUrl": "urn:uuid:c529f573-64a4-434c-b8f3-22f925c7f9ab", + "resource": { + "resourceType": "MessageHeader", + "id": "c529f573-64a4-434c-b8f3-22f925c7f9ab", + "destination": [ + { + "endpoint": "https://directory.spineservices.nhs.uk/STU3/Organization/FL584", + "receiver": { + "identifier": { + "system": "https://fhir.nhs.uk/Id/ods-organization-code", + "value": "FL584" + } + } + } + ], + "sender": { + "identifier": { + "system": "https://fhir.nhs.uk/Id/ods-organization-code", + "value": "X2601" + }, + "display": "NHS Digital Spine" + }, + "source": { + "name": "NHS Spine", + "endpoint": "https://internal-dev.api.service.nhs.uk/electronic-prescriptions/$process-message" + }, + "response": { + "code": "ok", + "identifier": "ffffffff-ffff-4fff-bfff-ffffffffffff" + }, + "eventCoding": { + "system": "https://fhir.nhs.uk/CodeSystem/message-event", + "code": "dispense-notification", + "display": "Dispense Notification" + }, + "focus": [ + { + "reference": "urn:uuid:0e489d6d-5660-4144-9496-45def8956e16" + }, + { + "reference": "urn:uuid:98ef72de-805f-4cf7-a393-d9be923960bd" + } + ] + } + }, + { + "fullUrl": "urn:uuid:98ef72de-805f-4cf7-a393-d9be923960bd", + "resource": { + "resourceType": "MedicationDispense", + "id": "98ef72de-805f-4cf7-a393-d9be923960bd", + "extension": [ + { + "url": "https://fhir.nhs.uk/StructureDefinition/Extension-EPS-TaskBusinessStatus", + "valueCoding": { + "code": "0006", + "system": "https://fhir.nhs.uk/CodeSystem/EPS-task-business-status", + "display": "Dispensed" + } + } + ], + "identifier": [ + { + "system": "https://fhir.nhs.uk/Id/prescription-dispense-item-number", + "value": "93c2c1b9-747b-493d-a198-1fa5798d4c6b" + } + ], + "contained": [ + { + "resourceType": "PractitionerRole", + "id": "performer", + "identifier": [ + { + "system": "https://fhir.nhs.uk/Id/sds-role-profile-id", + "value": "555086415105" + } + ], + "practitioner": { + "identifier": { + "system": "https://fhir.nhs.uk/Id/sds-user-id", + "value": "3415870201" + }, + "display": "Jackie Clark" + }, + "organization": { + "reference": "urn:uuid:2bf9f37c-d88b-4f86-ad5f-373c1416e04b" + }, + "code": [ + { + "coding": [ + { + "system": "https://fhir.nhs.uk/CodeSystem/NHSDigital-SDS-JobRoleCode", + "code": "S8000:G8000:R8000", + "display": "Clinical Practitioner Access Role" + } + ] + } + ], + "telecom": [ + { + "system": "phone", + "use": "work", + "value": "02380798431" + } + ] + }, + { + "resourceType": "MedicationRequest", + "id": "m1", + "extension": [ + { + "url": "https://fhir.nhs.uk/StructureDefinition/Extension-DM-ResponsiblePractitioner", + "valueReference": { + "reference": "urn:uuid:81fd634d-e9f7-460e-991f-8dc97d18cb8c" + } + }, + { + "url": "https://fhir.nhs.uk/StructureDefinition/Extension-DM-PrescriptionType", + "valueCoding": { + "system": "https://fhir.nhs.uk/CodeSystem/prescription-type", + "code": "1001" + } + } + ], + "identifier": [ + { + "system": "https://fhir.nhs.uk/Id/prescription-order-item-number", + "value": "5a82c11e-ea26-4405-aceb-741d8ca68b95" + } + ], + "status": "active", + "intent": "order", + "medicationCodeableConcept": { + "coding": [ + { + "system": "http://snomed.info/sct", + "code": "15517911000001104", + "display": "Methotrexate 10mg/0.2ml solution for injection pre-filled syringes" + } + ] + }, + "subject": { + "reference": "urn:uuid:fd9384b8-5086-4f2e-a41f-fda2f3259447" + }, + "authoredOn": "2022-03-15T13:45:09+00:00", + "category": [ + { + "coding": [ + { + "system": "http://terminology.hl7.org/CodeSystem/medicationrequest-category", + "code": "outpatient", + "display": "Outpatient" + } + ] + } + ], + "requester": { + "reference": "urn:uuid:81fd634d-e9f7-460e-991f-8dc97d18cb8c" + }, + "groupIdentifier": { + "system": "https://fhir.nhs.uk/Id/prescription-order-number", + "value": "40E709-A99968-280C0X", + "extension": [ + { + "url": "https://fhir.nhs.uk/StructureDefinition/Extension-DM-PrescriptionId", + "valueIdentifier": { + "system": "https://fhir.nhs.uk/Id/prescription", + "value": "410489a5-5316-426c-98f5-af1502d71b39" + } + } + ] + }, + "courseOfTherapyType": { + "coding": [ + { + "system": "http://terminology.hl7.org/CodeSystem/medicationrequest-course-of-therapy", + "code": "acute", + "display": "Short course (acute) therapy" + } + ] + }, + "dosageInstruction": [ + { + "text": "10 milligram, Inject, Subcutaneous route, once weekly" + } + ], + "dispenseRequest": { + "extension": [ + { + "url": "https://fhir.nhs.uk/StructureDefinition/Extension-DM-PerformerSiteType", + "valueCoding": { + "system": "https://fhir.nhs.uk/CodeSystem/dispensing-site-preference", + "code": "P1" + } + } + ], + "numberOfRepeatsAllowed": 0, + "quantity": { + "value": 1, + "unit": "pre-filled disposable injection", + "system": "http://snomed.info/sct", + "code": "3318611000001103" + }, + "performer": { + "identifier": { + "system": "https://fhir.nhs.uk/Id/ods-organization-code", + "value": "FL584" + } + } + }, + "substitution": { + "allowedBoolean": false + } + } + ], + "status": "unknown", + "medicationCodeableConcept": { + "coding": [ + { + "system": "http://snomed.info/sct", + "code": "15517911000001104", + "display": "Methotrexate 10mg/0.2ml solution for injection pre-filled syringes" + } + ] + }, + "subject": { + "reference": "urn:uuid:0e489d6d-5660-4144-9496-45def8956e16", + "identifier": { + "system": "https://fhir.nhs.uk/Id/nhs-number", + "value": "9990548609" + } + }, + "performer": [ + { + "actor": { + "reference": "#performer" + } + } + ], + "authorizingPrescription": [ + { + "reference": "#m1" + } + ], + "type": { + "coding": [ + { + "code": "0001", + "system": "https://fhir.nhs.uk/CodeSystem/medicationdispense-type", + "display": "Item fully dispensed" + } + ] + }, + "quantity": { + "value": 1, + "unit": "pre-filled disposable injection", + "system": "http://snomed.info/sct", + "code": "3318611000001103" + }, + "whenHandedOver": "2022-03-15T13:45:47.719Z", + "dosageInstruction": [ + { + "text": "10 milligram, Inject, Subcutaneous route, once weekly" + } + ] + } + }, + { + "fullUrl": "urn:uuid:0e489d6d-5660-4144-9496-45def8956e16", + "resource": { + "resourceType": "Patient", + "id": "0e489d6d-5660-4144-9496-45def8956e16", + "identifier": [ + { + "system": "https://fhir.nhs.uk/Id/nhs-number", + "value": "9990548609" + } + ], + "name": [ + { + "use": "usual", + "family": "XXTESTPATIENT-TGNP", + "given": [ + "DONOTUSE" + ], + "prefix": [ + "MR" + ] + } + ], + "gender": "male", + "birthDate": "1932-01-06", + "address": [ + { + "use": "home", + "line": [ + "1 Trevelyan Square", + "Boar Lane", + "Leeds", + "West Yorkshire" + ], + "postalCode": "LS1 6AE" + } + ], + "generalPractitioner": [ + { + "identifier": { + "system": "https://fhir.nhs.uk/Id/ods-organization-code", + "value": "B81001" + } + } + ] + } + }, + { + "fullUrl": "urn:uuid:2bf9f37c-d88b-4f86-ad5f-373c1416e04b", + "resource": { + "resourceType": "Organization", + "extension": [ + { + "url": "https://fhir.nhs.uk/StructureDefinition/Extension-ODS-OrganisationRelationships", + "extension": [ + { + "url": "reimbursementAuthority", + "valueIdentifier": { + "system": "https://fhir.nhs.uk/Id/ods-organization-code", + "value": "T1450" + } + } + ] + } + ], + "identifier": [ + { + "system": "https://fhir.nhs.uk/Id/ods-organization-code", + "value": "VNE51" + } + ], + "address": [ + { + "city": "West Yorkshire", + "use": "work", + "line": [ + "17 Austhorpe Road", + "Crossgates", + "Leeds" + ], + "postalCode": "LS15 8BA" + } + ], + "active": true, + "type": [ + { + "coding": [ + { + "system": "https://fhir.nhs.uk/CodeSystem/organisation-role", + "code": "182", + "display": "PHARMACY" + } + ] + } + ], + "name": "The Simple Pharmacy", + "telecom": [ + { + "system": "phone", + "use": "work", + "value": "0113 3180277" + } + ] + } + } + ] +} diff --git a/src/test/resources/examples/full_examples/secondary-care/homecare/acute/nominated-pharmacy/clinical-practitioner/6-Process-Request-Send-200_OK.json b/src/test/resources/examples/full_examples/secondary-care/homecare/acute/nominated-pharmacy/clinical-practitioner/6-Process-Request-Send-200_OK.json new file mode 100644 index 00000000..2b64f9cb --- /dev/null +++ b/src/test/resources/examples/full_examples/secondary-care/homecare/acute/nominated-pharmacy/clinical-practitioner/6-Process-Request-Send-200_OK.json @@ -0,0 +1,376 @@ +{ + "resourceType": "Bundle", + "id": "0a1fd9ef-a3d5-4e95-84cd-552070a03096", + "identifier": { + "system": "https://tools.ietf.org/html/rfc4122", + "value": "256cb948-c274-436a-8fff-c0f3082ca0e8" + }, + "type": "message", + "entry": [ + { + "fullUrl": "urn:uuid:0a1fd9ef-a3d5-4e95-84cd-552070a03096", + "resource": { + "resourceType": "MessageHeader", + "id": "0a1fd9ef-a3d5-4e95-84cd-552070a03096", + "eventCoding": { + "system": "https://fhir.nhs.uk/CodeSystem/message-event", + "code": "prescription-order", + "display": "Prescription Order" + }, + "sender": { + "identifier": { + "system": "https://fhir.nhs.uk/Id/ods-organization-code", + "value": "RBA" + }, + "reference": "urn:uuid:56166769-c1c4-4d07-afa8-132b5dfca666", + "display": "BOOTH|PHIL" + }, + "source": { + "endpoint": "https://directory.spineservices.nhs.uk/STU3/Organization/RBA" + }, + "destination": [ + { + "endpoint": "https://directory.spineservices.nhs.uk/STU3/Organization/FH542", + "receiver": { + "identifier": { + "system": "https://fhir.nhs.uk/Id/ods-organization-code", + "value": "FL584" + } + } + } + ], + "focus": [ + { + "reference": "urn:uuid:78d3c2eb-009e-4ec8-a358-b042954aa9b2" + }, + { + "reference": "urn:uuid:a54219b8-f741-4c47-b662-e4f8dfa49ab6" + } + ] + } + }, + { + "fullUrl": "urn:uuid:a54219b8-f741-4c47-b662-e4f8dfa49ab6", + "resource": { + "resourceType": "MedicationRequest", + "id": "a54219b8-f741-4c47-b662-e4f8dfa49ab6", + "extension": [ + { + "url": "https://fhir.nhs.uk/StructureDefinition/Extension-DM-PrescriptionType", + "valueCoding": { + "system": "https://fhir.nhs.uk/CodeSystem/prescription-type", + "code": "1001", + "display": "Outpatient Community Prescriber - Medical Prescriber" + } + } + ], + "identifier": [ + { + "system": "https://fhir.nhs.uk/Id/prescription-order-item-number", + "value": "5a82c11e-ea26-4405-aceb-741d8ca68b95" + } + ], + "status": "active", + "intent": "order", + "category": [ + { + "coding": [ + { + "system": "http://terminology.hl7.org/CodeSystem/medicationrequest-category", + "code": "outpatient", + "display": "Outpatient" + } + ] + } + ], + "medicationCodeableConcept": { + "coding": [ + { + "system": "http://snomed.info/sct", + "code": "15517911000001104", + "display": "Methotrexate 10mg/0.2ml solution for injection pre-filled syringes" + } + ] + }, + "subject": { + "reference": "urn:uuid:78d3c2eb-009e-4ec8-a358-b042954aa9b2" + }, + "requester": { + "reference": "urn:uuid:56166769-c1c4-4d07-afa8-132b5dfca666" + }, + "groupIdentifier": { + "extension": [ + { + "url": "https://fhir.nhs.uk/StructureDefinition/Extension-DM-PrescriptionId", + "valueIdentifier": { + "system": "https://fhir.nhs.uk/Id/prescription", + "value": "410489a5-5316-426c-98f5-af1502d71b39" + } + } + ], + "system": "https://fhir.nhs.uk/Id/prescription-order-number", + "value": "40E709-A99968-280C0X" + }, + "courseOfTherapyType": { + "coding": [ + { + "system": "http://terminology.hl7.org/CodeSystem/medicationrequest-course-of-therapy", + "code": "acute", + "display": "Short course (acute) therapy" + } + ] + }, + "dosageInstruction": [ + { + "text": "Inject 10 milligram - 5 times a day - Subcutaneous route - for 10 days", + "timing": { + "repeat": { + "frequency": 5, + "period": 1, + "periodUnit": "d", + "boundsDuration": { + "value": 10, + "unit": "day", + "system": "http://unitsofmeasure.org", + "code": "d" + } + } + }, + "method": { + "coding": [ + { + "system": "http://snomed.info/sct", + "code": "422145002", + "display": "Inject" + } + ] + }, + "route": { + "coding": [ + { + "system": "http://snomed.info/sct", + "code": "34206005", + "display": "Subcutaneous route" + } + ] + }, + "doseAndRate": [ + { + "doseQuantity": { + "value": 10, + "unit": "milligram", + "system": "http://unitsofmeasure.org", + "code": "mg" + } + } + ] + } + ], + "dispenseRequest": { + "extension": [ + { + "url": "https://fhir.nhs.uk/StructureDefinition/Extension-DM-PerformerSiteType", + "valueCoding": { + "system": "https://fhir.nhs.uk/CodeSystem/dispensing-site-preference", + "code": "P1" + } + } + ], + "quantity": { + "value": 1, + "unit": "pre-filled disposable injection", + "system": "http://snomed.info/sct", + "code": "3318611000001103" + }, + "performer": { + "identifier": { + "system": "https://fhir.nhs.uk/Id/ods-organization-code", + "value": "FL584" + } + } + }, + "substitution": { + "allowedBoolean": false + } + } + }, + { + "fullUrl": "urn:uuid:78d3c2eb-009e-4ec8-a358-b042954aa9b2", + "resource": { + "resourceType": "Patient", + "identifier": [ + { + "system": "https://fhir.nhs.uk/Id/nhs-number", + "value": "9990548609" + } + ], + "name": [ + { + "use": "usual", + "family": "XXTESTPATIENT-TGNP", + "given": ["DONOTUSE"], + "prefix": ["MR"] + } + ], + "gender": "male", + "birthDate": "1932-01-06", + "address": [ + { + "use": "home", + "line": [ + "1 Trevelyan Square", + "Boar Lane", + "Leeds", + "West Yorkshire" + ], + "postalCode": "LS1 6AE" + } + ], + "generalPractitioner": [ + { + "identifier": { + "system": "https://fhir.nhs.uk/Id/ods-organization-code", + "value": "B81001" + } + } + ] + } + }, + { + "fullUrl": "urn:uuid:a8c85454-f8cb-498d-9629-78e2cb5fa47a", + "resource": { + "resourceType": "Practitioner", + "id": "a8c85454-f8cb-498d-9629-78e2cb5fa47a", + "identifier": [ + { + "system": "https://fhir.nhs.uk/Id/sds-user-id", + "value": "555086689106" + }, + { + "system": "https://fhir.hl7.org.uk/Id/gmc-number", + "value": "6150129" + } + ], + "name": [ + { + "family": "FIFTYSEVEN", + "given": ["RANDOM"], + "prefix": ["MR"] + } + ] + } + }, + { + "fullUrl": "urn:uuid:56166769-c1c4-4d07-afa8-132b5dfca666", + "resource": { + "resourceType": "PractitionerRole", + "id": "56166769-c1c4-4d07-afa8-132b5dfca666", + "identifier": [ + { + "system": "https://fhir.nhs.uk/Id/sds-role-profile-id", + "value": "601986680555" + }, + { + "system": "https://fhir.hl7.org.uk/Id/nhsbsa-spurious-code", + "value": "683458" + } + ], + "practitioner": { + "reference": "urn:uuid:a8c85454-f8cb-498d-9629-78e2cb5fa47a" + }, + "organization": { + "reference": "urn:uuid:3b4b03a5-52ba-4ba6-9b82-70350aa109d8" + }, + "code": [ + { + "coding": [ + { + "system": "https://fhir.nhs.uk/CodeSystem/NHSDigital-SDS-JobRoleCode", + "code": "S8000:G8000:R8000", + "display": "Clinical Practitioner Access Role " + } + ] + } + ], + "telecom": [ + { + "system": "phone", + "value": "01234567890", + "use": "work" + } + ] + } + }, + { + "fullUrl": "urn:uuid:3b4b03a5-52ba-4ba6-9b82-70350aa109d8", + "resource": { + "resourceType": "Organization", + "id": "3b4b03a5-52ba-4ba6-9b82-70350aa109d8", + "identifier": [ + { + "system": "https://fhir.nhs.uk/Id/ods-organization-code", + "value": "A99968" + } + ], + "name": "SOMERSET BOWEL CANCER SCREENING CENTRE", + "address": [ + { + "use": "work", + "line": ["MUSGROVE PARK HOSPITAL"], + "city": "TAUNTON", + "postalCode": "TA1 5DA" + } + ], + "telecom": [ + { + "system": "phone", + "value": "01823 333444", + "use": "work" + } + ], + "partOf": { + "identifier": { + "system": "https://fhir.nhs.uk/Id/ods-organization-code", + "value": "RBA" + }, + "display": "TAUNTON AND SOMERSET NHS FOUNDATION TRUST" + } + } + }, + { + "fullUrl": "urn:uuid:28828c55-8fa7-42d7-916f-fcf076e0c10e", + "resource": { + "resourceType": "Provenance", + "id": "28828c55-8fa7-42d7-916f-fcf076e0c10e", + "target": [ + { + "reference": "urn:uuid:a54219b8-f741-4c47-b662-e4f8dfa49ab6" + } + ], + "recorded": "2021-02-11T16:35:38+00:00", + "agent": [ + { + "who": { + "reference": "urn:uuid:56166769-c1c4-4d07-afa8-132b5dfca666" + } + } + ], + "signature": [ + { + "type": [ + { + "system": "urn:iso-astm:E1762-95:2013", + "code": "1.2.840.10065.1.12.1.1" + } + ], + "when": "2022-03-15T13:45:09+00:00", + "who": { + "reference": "urn:uuid:56166769-c1c4-4d07-afa8-132b5dfca666" + }, + "data": "PFNpZ25hdHVyZSB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC8wOS94bWxkc2lnIyI+CiAgICAgICAgICAgICA8U2lnbmVkSW5mbz48Q2Fub25pY2FsaXphdGlvbk1ldGhvZCBBbGdvcml0aG09Imh0dHA6Ly93d3cudzMub3JnLzIwMDEvMTAveG1sLWV4Yy1jMTRuIyI+PC9DYW5vbmljYWxpemF0aW9uTWV0aG9kPjxTaWduYXR1cmVNZXRob2QgQWxnb3JpdGhtPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwLzA5L3htbGRzaWcjcnNhLXNoYTEiPjwvU2lnbmF0dXJlTWV0aG9kPjxSZWZlcmVuY2U+PFRyYW5zZm9ybXM+PFRyYW5zZm9ybSBBbGdvcml0aG09Imh0dHA6Ly93d3cudzMub3JnLzIwMDEvMTAveG1sLWV4Yy1jMTRuIyI+PC9UcmFuc2Zvcm0+PC9UcmFuc2Zvcm1zPjxEaWdlc3RNZXRob2QgQWxnb3JpdGhtPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwLzA5L3htbGRzaWcjc2hhMSI+PC9EaWdlc3RNZXRob2Q+PERpZ2VzdFZhbHVlPldlOGR6dWNucXJUMlA1QVBZWEtOWWRLNHRkdz08L0RpZ2VzdFZhbHVlPjwvUmVmZXJlbmNlPjwvU2lnbmVkSW5mbz4KICAgICAgICAgICAgIDxTaWduYXR1cmVWYWx1ZT48L1NpZ25hdHVyZVZhbHVlPgogICAgICAgICAgICAgPEtleUluZm8+PFg1MDlEYXRhPjxYNTA5Q2VydGlmaWNhdGU+PC9YNTA5Q2VydGlmaWNhdGU+PC9YNTA5RGF0YT48L0tleUluZm8+CiAgICAgICAgICAgPC9TaWduYXR1cmU+" + } + ] + } + } + ] +} diff --git a/src/test/resources/examples/full_examples/secondary-care/homecare/acute/nominated-pharmacy/clinical-practitioner/6-Task-Request-Release-200_OK.json b/src/test/resources/examples/full_examples/secondary-care/homecare/acute/nominated-pharmacy/clinical-practitioner/6-Task-Request-Release-200_OK.json new file mode 100644 index 00000000..0b3af714 --- /dev/null +++ b/src/test/resources/examples/full_examples/secondary-care/homecare/acute/nominated-pharmacy/clinical-practitioner/6-Task-Request-Release-200_OK.json @@ -0,0 +1,99 @@ +{ + "resourceType": "Parameters", + "id": "c7f92f8d-3065-4c8a-91e0-484fedc63e5e", + "parameter": [ + { + "name": "owner", + "resource": { + "resourceType": "Organization", + "id": "organization", + "identifier": [ + { + "system": "https://fhir.nhs.uk/Id/ods-organization-code", + "value": "VNE51" + } + ], + "address": [ + { + "city": "West Yorkshire", + "use": "work", + "line": [ + "17 Austhorpe Road", + "Crossgates", + "Leeds" + ], + "postalCode": "LS15 8BA" + } + ], + "active": true, + "type": [ + { + "coding": [ + { + "system": "https://fhir.nhs.uk/CodeSystem/organisation-role", + "code": "182", + "display": "PHARMACY" + } + ] + } + ], + "name": "The Simple Pharmacy", + "telecom": [ + { + "system": "phone", + "use": "work", + "value": "0113 3180277" + } + ] + } + }, + { + "name": "status", + "valueCode": "accepted" + }, + { + "name": "agent", + "resource": { + "resourceType": "PractitionerRole", + "telecom": [ + { + "system": "phone", + "value": "02380798431", + "use": "work" + } + ], + "identifier": [ + { + "system": "https://fhir.nhs.uk/Id/sds-role-profile-id", + "value": "555086415105" + } + ], + "practitioner": { + "identifier": { + "system": "https://fhir.nhs.uk/Id/sds-user-id", + "value": "3415870201" + }, + "display": "Jackie Clark" + }, + "code": [ + { + "coding": [ + { + "system": "https://fhir.nhs.uk/CodeSystem/NHSDigital-SDS-JobRoleCode", + "code": "S8000:G8000:R8000", + "display": "Clinical Practitioner Access Role" + } + ] + } + ] + } + }, + { + "name": "group-identifier", + "valueIdentifier": { + "system": "https://fhir.nhs.uk/Id/prescription-order-number", + "value": "40E709-A99968-280C0X" + } + } + ] +} diff --git a/src/test/resources/examples/full_examples/secondary-care/homecare/acute/nominated-pharmacy/clinical-practitioner/7-Claim-Request-200_OK.json b/src/test/resources/examples/full_examples/secondary-care/homecare/acute/nominated-pharmacy/clinical-practitioner/7-Claim-Request-200_OK.json new file mode 100644 index 00000000..7b1ca4b1 --- /dev/null +++ b/src/test/resources/examples/full_examples/secondary-care/homecare/acute/nominated-pharmacy/clinical-practitioner/7-Claim-Request-200_OK.json @@ -0,0 +1,412 @@ +{ + "resourceType": "Claim", + "id": "e8e75676-9d30-45f8-8b09-696818e7f4ca", + "contained": [ + { + "resourceType": "PractitionerRole", + "id": "performer", + "identifier": [ + { + "system": "https://fhir.nhs.uk/Id/sds-role-profile-id", + "value": "555086415105" + } + ], + "practitioner": { + "identifier": { + "system": "https://fhir.nhs.uk/Id/sds-user-id", + "value": "3415870201" + }, + "display": "Mr Peter Potion" + }, + "organization": { + "reference": "#organization" + }, + "code": [ + { + "coding": [ + { + "system": "https://fhir.nhs.uk/CodeSystem/NHSDigital-SDS-JobRoleCode", + "code": "S8000:G8000:R8000", + "display": "Clinical Practitioner Access Role" + } + ] + } + ], + "telecom": [ + { + "system": "phone", + "use": "work", + "value": "0532567890" + } + ] + }, + { + "resourceType": "Organization", + "id": "organization", + "identifier": [ + { + "system": "https://fhir.nhs.uk/Id/ods-organization-code", + "value": "VNE51" + } + ], + "address": [ + { + "city": "West Yorkshire", + "use": "work", + "line": [ + "17 Austhorpe Road", + "Crossgates", + "Leeds" + ], + "postalCode": "LS15 8BA" + } + ], + "active": true, + "type": [ + { + "coding": [ + { + "system": "https://fhir.nhs.uk/CodeSystem/organisation-role", + "code": "182", + "display": "PHARMACY" + } + ] + } + ], + "name": "The Simple Pharmacy", + "telecom": [ + { + "system": "phone", + "use": "work", + "value": "0113 3180277" + } + ] + } + ], + "extension": [ + { + "url": "https://fhir.nhs.uk/StructureDefinition/Extension-Provenance-agent", + "valueReference": { + "identifier": { + "system": "https://fhir.nhs.uk/Id/sds-role-profile-id", + "value": "555253518103" + }, + "display": "Mr User Chris T" + } + } + ], + "identifier": [ + { + "system": "https://tools.ietf.org/html/rfc4122", + "value": "a2c05ec6-4292-4568-8200-bfac8439da04" + } + ], + "status": "active", + "type": { + "coding": [ + { + "system": "http://terminology.hl7.org/CodeSystem/claim-type", + "code": "pharmacy", + "display": "Pharmacy" + } + ] + }, + "use": "claim", + "patient": { + "identifier": { + "system": "https://fhir.nhs.uk/Id/nhs-number", + "value": "9449304106" + } + }, + "created": "2021-09-23T13:09:56+00:00", + "provider": { + "reference": "#performer" + }, + "priority": { + "coding": [ + { + "system": "http://terminology.hl7.org/CodeSystem/processpriority", + "code": "normal" + } + ] + }, + "prescription": { + "extension": [ + { + "url": "https://fhir.nhs.uk/StructureDefinition/Extension-DM-GroupIdentifier", + "extension": [ + { + "url": "shortForm", + "valueIdentifier": { + "system": "https://fhir.nhs.uk/Id/prescription-order-number", + "value": "D7A21F-A83008-F1762A" + } + }, + { + "url": "UUID", + "valueIdentifier": { + "system": "https://fhir.nhs.uk/Id/prescription", + "value": "a5b9dc81-ccf4-4dab-b887-3d88e557febb" + } + } + ] + } + ] + }, + "payee": { + "type": { + "coding": [ + { + "system": "http://terminology.hl7.org/CodeSystem/payeetype", + "code": "provider", + "display": "Provider" + } + ] + }, + "party": { + "reference": "#organization" + } + }, + "insurance": [ + { + "sequence": 1, + "focal": true, + "coverage": { + "identifier": { + "system": "https://fhir.nhs.uk/Id/ods-organization-code", + "value": "T1450" + }, + "display": "NHS BUSINESS SERVICES AUTHORITY" + } + } + ], + "item": [ + { + "sequence": 1, + "extension": [ + { + "url": "https://fhir.nhs.uk/StructureDefinition/Extension-EPS-TaskBusinessStatus", + "valueCoding": { + "system": "https://fhir.nhs.uk/CodeSystem/EPS-task-business-status", + "code": "0006", + "display": "Dispensed" + } + }, + { + "url": "https://fhir.nhs.uk/StructureDefinition/Extension-DM-SuppliedItemIdentifier", + "valueIdentifier": { + "value": "This extension shouldn't be here - ask Kevin to remove from the profile" + } + } + ], + "productOrService": { + "coding": [ + { + "system": "http://snomed.info/sct", + "code": "16076005", + "display": "Prescription" + } + ] + }, + "modifier": [ + { + "text": "This modifier shouldn't be here - ask Kevin to remove from the profile", + "coding": [ + { + "system": "https://fhir.nhs.uk/CodeSystem/medicationdispense-type", + "code": "0001", + "display": "Item fully dispensed" + } + ] + } + ], + "programCode": [ + { + "coding": [ + { + "system": "https://fhir.nhs.uk/CodeSystem/prescription-charge-exemption", + "code": "9182", + "display": "Medical exemption certificate" + } + ] + } + ], + "detail": [ + { + "extension": [ + { + "url": "https://fhir.nhs.uk/StructureDefinition/Extension-ClaimSequenceIdentifier", + "valueIdentifier": { + "system": "https://fhir.nhs.uk/Id/claim-sequence-identifier", + "value": "a54219b8-f741-4c47-b662-e4f8dfa49ab6" + } + }, + { + "url": "https://fhir.nhs.uk/StructureDefinition/Extension-ClaimMedicationRequestReference", + "valueReference": { + "identifier": { + "system": "https://fhir.nhs.uk/Id/prescription-order-item-number", + "value": "a54219b8-f741-4c47-b662-e4f8dfa49ab6" + } + } + } + ], + "sequence": 1, + "productOrService": { + "coding": [ + { + "system": "http://snomed.info/sct", + "code": "13892511000001100", + "display": "Amlodipine 5mg/5ml oral solution" + } + ] + }, + "modifier": [ + { + "coding": [ + { + "system": "https://fhir.nhs.uk/CodeSystem/medicationdispense-type", + "code": "0001", + "display": "Item fully dispensed" + } + ] + } + ], + "quantity": { + "value": 5, + "unit": "ml", + "system": "http://snomed.info/sct", + "code": "385024007" + }, + "programCode": [ + { + "coding": [ + { + "system": "https://fhir.nhs.uk/CodeSystem/medicationdispense-endorsement", + "code": "NDEC", + "display": "No Dispenser Endorsement Code" + } + ] + }, + { + "coding": [ + { + "system": "https://fhir.nhs.uk/CodeSystem/DM-prescription-charge", + "code": "not-paid", + "display": "Not Paid" + } + ] + } + ], + "subDetail": [ + { + "sequence": 1, + "productOrService": { + "coding": [ + { + "system": "http://snomed.info/sct", + "code": "13892511000001100", + "display": "Amlodipine 5mg/5ml oral solution" + } + ] + }, + "quantity": { + "value": 5, + "unit": "ml", + "system": "http://snomed.info/sct", + "code": "385024007" + } + } + ] + }, + { + "extension": [ + { + "url": "https://fhir.nhs.uk/StructureDefinition/Extension-ClaimSequenceIdentifier", + "valueIdentifier": { + "system": "https://fhir.nhs.uk/Id/claim-sequence-identifier", + "value": "a54219b8-f741-4c47-b662-e4f8dfa49ab7" + } + }, + { + "url": "https://fhir.nhs.uk/StructureDefinition/Extension-ClaimMedicationRequestReference", + "valueReference": { + "identifier": { + "system": "https://fhir.nhs.uk/Id/prescription-order-item-number", + "value": "a54219b8-f741-4c47-b662-e4f8dfa49ab7" + } + } + } + ], + "sequence": 1, + "productOrService": { + "coding": [ + { + "system": "http://snomed.info/sct", + "code": "317972000", + "display": "Furosemide 40mg tablets" + } + ] + }, + "modifier": [ + { + "coding": [ + { + "system": "https://fhir.nhs.uk/CodeSystem/medicationdispense-type", + "code": "0001", + "display": "Item fully dispensed" + } + ] + } + ], + "quantity": { + "value": 28, + "unit": "tablet", + "system": "http://snomed.info/sct", + "code": "428673006" + }, + "programCode": [ + { + "coding": [ + { + "system": "https://fhir.nhs.uk/CodeSystem/medicationdispense-endorsement", + "code": "NDEC", + "display": "No Dispenser Endorsement Code" + } + ] + }, + { + "coding": [ + { + "system": "https://fhir.nhs.uk/CodeSystem/DM-prescription-charge", + "code": "not-paid", + "display": "Not Paid" + } + ] + } + ], + "subDetail": [ + { + "sequence": 1, + "productOrService": { + "coding": [ + { + "system": "http://snomed.info/sct", + "code": "317972000", + "display": "Furosemide 40mg tablets" + } + ] + }, + "quantity": { + "value": 28, + "unit": "tablet", + "system": "http://snomed.info/sct", + "code": "428673006" + } + } + ] + } + ] + } + ] +} diff --git a/src/test/resources/examples/full_examples/secondary-care/homecare/acute/nominated-pharmacy/clinical-practitioner/7-Prepare-Request-200_OK.json b/src/test/resources/examples/full_examples/secondary-care/homecare/acute/nominated-pharmacy/clinical-practitioner/7-Prepare-Request-200_OK.json new file mode 100644 index 00000000..74cb19fa --- /dev/null +++ b/src/test/resources/examples/full_examples/secondary-care/homecare/acute/nominated-pharmacy/clinical-practitioner/7-Prepare-Request-200_OK.json @@ -0,0 +1,527 @@ +{ + "resourceType": "Bundle", + "id": "aef77afb-7e3c-427a-8657-2c427f71a272", + "identifier": { + "system": "https://tools.ietf.org/html/rfc4122", + "value": "ea66ee9d-a981-432f-8c27-6907cbd99219" + }, + "type": "message", + "entry": [ + { + "fullUrl": "urn:uuid:aef77afb-7e3c-427a-8657-2c427f71a272", + "resource": { + "resourceType": "MessageHeader", + "id": "3599c0e9-9292-413e-9270-9a1ef1ead99c", + "eventCoding": { + "system": "https://fhir.nhs.uk/CodeSystem/message-event", + "code": "prescription-order", + "display": "Prescription Order" + }, + "sender": { + "identifier": { + "system": "https://fhir.nhs.uk/Id/ods-organization-code", + "value": "RBA" + }, + "reference": "urn:uuid:56166769-c1c4-4d07-afa8-132b5dfca666", + "display": "RAZIA|ALI" + }, + "source": { + "endpoint": "https://directory.spineservices.nhs.uk/STU3/Organization/RBA" + }, + "destination": [ + { + "endpoint": "https://sandbox.api.service.nhs.uk/electronic-prescriptions/$post-message", + "receiver": { + "identifier": { + "system": "https://fhir.nhs.uk/Id/ods-organization-code", + "value": "X26" + } + } + } + ], + "focus": [ + { + "reference": "urn:uuid:78d3c2eb-009e-4ec8-a358-b042954aa9b2" + }, + { + "reference": "urn:uuid:a54219b8-f741-4c47-b662-e4f8dfa49ab6" + }, + { + "reference": "urn:uuid:51793ac0-112f-46c7-a891-9af8cefb206e" + } + ] + } + }, + { + "fullUrl": "urn:uuid:a54219b8-f741-4c47-b662-e4f8dfa49ab6", + "resource": { + "resourceType": "MedicationRequest", + "id": "a54219b8-f741-4c47-b662-e4f8dfa49ab6", + "extension": [ + { + "url": "https://fhir.nhs.uk/StructureDefinition/Extension-DM-PrescriptionType", + "valueCoding": { + "system": "https://fhir.nhs.uk/CodeSystem/prescription-type", + "code": "1201", + "display": "Outpatient Homecare Prescriber - Medical Prescriber" + } + } + ], + "identifier": [ + { + "system": "https://fhir.nhs.uk/Id/prescription-order-item-number", + "value": "a54219b8-f741-4c47-b662-e4f8dfa49ab6" + } + ], + "status": "active", + "intent": "order", + "category": [ + { + "coding": [ + { + "system": "http://terminology.hl7.org/CodeSystem/medicationrequest-category", + "code": "outpatient", + "display": "Outpatient" + } + ] + } + ], + "medicationCodeableConcept": { + "coding": [ + { + "system": "http://snomed.info/sct", + "code": "13892511000001100", + "display": "Amlodipine 5mg/5ml oral solution" + } + ] + }, + "subject": { + "reference": "urn:uuid:78d3c2eb-009e-4ec8-a358-b042954aa9b2" + }, + "requester": { + "reference": "urn:uuid:56166769-c1c4-4d07-afa8-132b5dfca666" + }, + "groupIdentifier": { + "extension": [ + { + "url": "https://fhir.nhs.uk/StructureDefinition/Extension-DM-PrescriptionId", + "valueIdentifier": { + "system": "https://fhir.nhs.uk/Id/prescription", + "value": "a5b9dc81-ccf4-4dab-b887-3d88e557febb" + } + } + ], + "system": "https://fhir.nhs.uk/Id/prescription-order-number", + "value": "D7A21F-A83008-F1762A" + }, + "courseOfTherapyType": { + "coding": [ + { + "system": "http://terminology.hl7.org/CodeSystem/medicationrequest-course-of-therapy", + "code": "acute", + "display": "Short course (acute) therapy" + } + ] + }, + "dosageInstruction": [ + { + "text": "5 milligram - 5 times a day - Oral - for 10 days", + "timing": { + "repeat": { + "frequency": 5, + "period": 1, + "periodUnit": "d", + "boundsDuration": { + "value": 10, + "unit": "day", + "system": "http://unitsofmeasure.org", + "code": "d" + } + } + }, + "route": { + "coding": [ + { + "system": "http://snomed.info/sct", + "code": "26643006", + "display": "Oral" + } + ] + }, + "doseAndRate": [ + { + "doseQuantity": { + "value": 5, + "unit": "milligram", + "system": "http://unitsofmeasure.org", + "code": "mg" + } + } + ] + } + ], + "dispenseRequest": { + "extension": [ + { + "url": "https://fhir.nhs.uk/StructureDefinition/Extension-DM-PerformerSiteType", + "valueCoding": { + "system": "https://fhir.nhs.uk/CodeSystem/dispensing-site-preference", + "code": "P1" + } + } + ], + "performer": { + "identifier": { + "system": "https://fhir.nhs.uk/Id/ods-organization-code", + "value": "VNCEL" + } + }, + "quantity": { + "value": 5, + "unit": "ml", + "system": "http://snomed.info/sct", + "code": "385024007" + } + }, + "substitution": { + "allowedBoolean": false + } + } + }, + { + "fullUrl": "urn:uuid:a54219b8-f741-4c47-b662-e4f8dfa49ab7", + "resource": { + "resourceType": "MedicationRequest", + "id": "a54219b8-f741-4c47-b662-e4f8dfa49ab7", + "extension": [ + { + "url": "https://fhir.nhs.uk/StructureDefinition/Extension-DM-PrescriptionType", + "valueCoding": { + "system": "https://fhir.nhs.uk/CodeSystem/prescription-type", + "code": "1201", + "display": "Outpatient Homecare Prescriber - Medical Prescriber" + } + } + ], + "identifier": [ + { + "system": "https://fhir.nhs.uk/Id/prescription-order-item-number", + "value": "a54219b8-f741-4c47-b662-e4f8dfa49ab7" + } + ], + "status": "active", + "intent": "order", + "category": [ + { + "coding": [ + { + "system": "http://terminology.hl7.org/CodeSystem/medicationrequest-category", + "code": "outpatient", + "display": "Outpatient" + } + ] + } + ], + "medicationCodeableConcept": { + "coding": [ + { + "system": "http://snomed.info/sct", + "code": "317972000", + "display": "Furosemide 40mg tablets" + } + ] + }, + "subject": { + "reference": "urn:uuid:78d3c2eb-009e-4ec8-a358-b042954aa9b2" + }, + "requester": { + "reference": "urn:uuid:56166769-c1c4-4d07-afa8-132b5dfca666" + }, + "groupIdentifier": { + "extension": [ + { + "url": "https://fhir.nhs.uk/StructureDefinition/Extension-DM-PrescriptionId", + "valueIdentifier": { + "system": "https://fhir.nhs.uk/Id/prescription", + "value": "a5b9dc81-ccf4-4dab-b887-3d88e557febb" + } + } + ], + "system": "https://fhir.nhs.uk/Id/prescription-order-number", + "value": "D7A21F-A83008-F1762A" + }, + "courseOfTherapyType": { + "coding": [ + { + "system": "http://terminology.hl7.org/CodeSystem/medicationrequest-course-of-therapy", + "code": "acute", + "display": "Short course (acute) therapy" + } + ] + }, + "dosageInstruction": [ + { + "text": "5 times a day - Oral - for 10 days", + "timing": { + "repeat": { + "frequency": 5, + "period": 1, + "periodUnit": "d", + "boundsDuration": { + "value": 10, + "unit": "day", + "system": "http://unitsofmeasure.org", + "code": "d" + } + } + }, + "route": { + "coding": [ + { + "system": "http://snomed.info/sct", + "code": "26643006", + "display": "Oral" + } + ] + } + } + ], + "dispenseRequest": { + "extension": [ + { + "url": "https://fhir.nhs.uk/StructureDefinition/Extension-DM-PerformerSiteType", + "valueCoding": { + "system": "https://fhir.nhs.uk/CodeSystem/dispensing-site-preference", + "code": "P1" + } + } + ], + "performer": { + "identifier": { + "system": "https://fhir.nhs.uk/Id/ods-organization-code", + "value": "VNCEL" + } + }, + "quantity": { + "value": 28, + "unit": "tablet", + "system": "http://snomed.info/sct", + "code": "428673006" + } + }, + "substitution": { + "allowedBoolean": false + } + } + }, + { + "fullUrl": "urn:uuid:78d3c2eb-009e-4ec8-a358-b042954aa9b2", + "resource": { + "resourceType": "Patient", + "identifier": [ + { + "system": "https://fhir.nhs.uk/Id/nhs-number", + "value": "9449304106" + } + ], + "name": [ + { + "use": "usual", + "family": "LEGASSICK", + "given": ["NICODEMUS", "ZACKERY"], + "prefix": ["MR"] + } + ], + "gender": "male", + "birthDate": "1994-03-19", + "address": [ + { + "use": "home", + "line": ["11 LITTLEHEATH LANE", "COBHAM", "SURREY"], + "postalCode": "KT11 2QG" + } + ], + "generalPractitioner": [ + { + "identifier": { + "system": "https://fhir.nhs.uk/Id/ods-organization-code", + "value": "B81001" + } + } + ] + } + }, + { + "fullUrl": "urn:uuid:56166769-c1c4-4d07-afa8-132b5dfca666", + "resource": { + "resourceType": "PractitionerRole", + "id": "56166769-c1c4-4d07-afa8-132b5dfca666", + "identifier": [ + { + "system": "https://fhir.nhs.uk/Id/sds-role-profile-id", + "value": "100102238986" + } + ], + "practitioner": { + "reference": "urn:uuid:a8c85454-f8cb-498d-9629-78e2cb5fa47a" + }, + "organization": { + "reference": "urn:uuid:3b4b03a5-52ba-4ba6-9b82-70350aa109d8" + }, + "code": [ + { + "coding": [ + { + "system": "https://fhir.nhs.uk/CodeSystem/NHSDigital-SDS-JobRoleCode", + "code": "S8000:G8000:R8000", + "display": "Clinical Practitioner Access Role" + } + ] + } + ], + "telecom": [ + { + "system": "phone", + "value": "01234567890", + "use": "work" + } + ] + } + }, + { + "fullUrl": "urn:uuid:a8c85454-f8cb-498d-9629-78e2cb5fa47a", + "resource": { + "resourceType": "Practitioner", + "id": "a8c85454-f8cb-498d-9629-78e2cb5fa47a", + "identifier": [ + { + "system": "https://fhir.nhs.uk/Id/sds-user-id", + "value": "7020134158" + }, + { + "system": "https://fhir.hl7.org.uk/Id/gmc-number", + "value": "G9999999" + }, + { + "system": "https://fhir.hl7.org.uk/Id/din-number", + "value": "70201123456" + } + ], + "name": [ + { + "family": "Edwards", + "given": ["Thomas"], + "prefix": ["DR"] + } + ] + } + }, + { + "fullUrl": "urn:uuid:3b4b03a5-52ba-4ba6-9b82-70350aa109d8", + "resource": { + "resourceType": "Organization", + "id": "3b4b03a5-52ba-4ba6-9b82-70350aa109d8", + "identifier": [ + { + "system": "https://fhir.nhs.uk/Id/ods-organization-code", + "value": "A99968" + } + ], + "name": "SOMERSET BOWEL CANCER SCREENING CENTRE", + "address": [ + { + "use": "work", + "line": ["MUSGROVE PARK HOSPITAL"], + "city": "TAUNTON", + "postalCode": "TA1 5DA" + } + ], + "telecom": [ + { + "system": "phone", + "value": "01823 333444", + "use": "work" + } + ], + "partOf": { + "identifier": { + "system": "https://fhir.nhs.uk/Id/ods-organization-code", + "value": "RBA" + }, + "display": "TAUNTON AND SOMERSET NHS FOUNDATION TRUST" + } + } + }, + { + "fullUrl": "urn:uuid:51793ac0-112f-46c7-a891-9af8cefb206e", + "resource": { + "resourceType": "CommunicationRequest", + "status": "unknown", + "subject": { + "reference": "urn:uuid:78d3c2eb-009e-4ec8-a358-b042954aa9b2" + }, + "payload": [ + { + "contentReference": { + "reference": "urn:uuid:d0f003a0-8763-43d5-a264-ce52a38901c9", + "display": "List of Repeat Medications for re-ordering" + } + } + ], + "requester": { + "type": "Organization", + "identifier": { + "system": "https://fhir.nhs.uk/Id/ods-organization-code", + "value": "RBA" + }, + "display": "TAUNTON AND SOMERSET NHS FOUNDATION TRUST" + }, + "recipient": [ + { + "type": "Patient", + "identifier": { + "system": "https://fhir.nhs.uk/Id/nhs-number", + "value": "9453740519" + } + } + ] + } + }, + { + "fullUrl": "urn:uuid:d0f003a0-8763-43d5-a264-ce52a38901c9", + "resource": { + "resourceType": "List", + "status": "current", + "mode": "snapshot", + "code": { + "text": "Repeat Medications" + }, + "subject": { + "reference": "urn:uuid:78d3c2eb-009e-4ec8-a358-b042954aa9b2" + }, + "entry": [ + { + "item": { + "display": "Metformin 500mg tablets" + } + }, + { + "item": { + "display": "Aspirin 75mg dispersible tablets" + } + }, + { + "item": { + "display": "Simvastatin 40mg tablets" + } + }, + { + "item": { + "display": "Chloramphenicol 0.5% eye drops" + } + } + ] + } + } + ] +} diff --git a/src/test/resources/examples/full_examples/secondary-care/homecare/acute/nominated-pharmacy/clinical-practitioner/7-Prepare-Response-200_OK.json b/src/test/resources/examples/full_examples/secondary-care/homecare/acute/nominated-pharmacy/clinical-practitioner/7-Prepare-Response-200_OK.json new file mode 100644 index 00000000..430e9bcb --- /dev/null +++ b/src/test/resources/examples/full_examples/secondary-care/homecare/acute/nominated-pharmacy/clinical-practitioner/7-Prepare-Response-200_OK.json @@ -0,0 +1,17 @@ +{ + "resourceType": "Parameters", + "parameter": [ + { + "name": "digest", + "valueString": "PFNpZ25lZEluZm8geG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvMDkveG1sZHNpZyMiPjxDYW5vbmljYWxpemF0aW9uTWV0aG9kIEFsZ29yaXRobT0iaHR0cDovL3d3dy53My5vcmcvMjAwMS8xMC94bWwtZXhjLWMxNG4jIj48L0Nhbm9uaWNhbGl6YXRpb25NZXRob2Q+PFNpZ25hdHVyZU1ldGhvZCBBbGdvcml0aG09Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvMDkveG1sZHNpZyNyc2Etc2hhMSI+PC9TaWduYXR1cmVNZXRob2Q+PFJlZmVyZW5jZT48VHJhbnNmb3Jtcz48VHJhbnNmb3JtIEFsZ29yaXRobT0iaHR0cDovL3d3dy53My5vcmcvMjAwMS8xMC94bWwtZXhjLWMxNG4jIj48L1RyYW5zZm9ybT48L1RyYW5zZm9ybXM+PERpZ2VzdE1ldGhvZCBBbGdvcml0aG09Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvMDkveG1sZHNpZyNzaGExIj48L0RpZ2VzdE1ldGhvZD48RGlnZXN0VmFsdWU+SFkrMTNqZUt6Sm1nMlpHMjA2VDhteG1DMk1ZPTwvRGlnZXN0VmFsdWU+PC9SZWZlcmVuY2U+PC9TaWduZWRJbmZvPg==" + }, + { + "name": "timestamp", + "valueString": "2022-10-25T10:24:34+00:00" + }, + { + "name": "algorithm", + "valueString": "RS1" + } + ] +} diff --git a/src/test/resources/examples/full_examples/secondary-care/homecare/acute/nominated-pharmacy/clinical-practitioner/7-Process-Request-Dispense-200_OK.json b/src/test/resources/examples/full_examples/secondary-care/homecare/acute/nominated-pharmacy/clinical-practitioner/7-Process-Request-Dispense-200_OK.json new file mode 100644 index 00000000..307ce77c --- /dev/null +++ b/src/test/resources/examples/full_examples/secondary-care/homecare/acute/nominated-pharmacy/clinical-practitioner/7-Process-Request-Dispense-200_OK.json @@ -0,0 +1,842 @@ +{ + "resourceType": "Bundle", + "id": "166f1103-3r67-73dw-7364-s395c4itv284", + "identifier": { + "system": "https://tools.ietf.org/html/rfc4122", + "value": "a22ad970-417c-4b0d-9c18-19a54761b478" + }, + "type": "message", + "entry": [ + { + "fullUrl": "urn:uuid:be807dac-9dcf-45cf-91d6-70d9d58dcf34", + "resource": { + "resourceType": "MessageHeader", + "eventCoding": { + "system": "https://fhir.nhs.uk/CodeSystem/message-event", + "code": "dispense-notification", + "display": "Dispense Notification" + }, + "destination": [ + { + "endpoint": "https://sandbox.api.service.nhs.uk/electronic-prescriptions/$post-message", + "receiver": { + "identifier": { + "system": "https://fhir.nhs.uk/Id/ods-organization-code", + "value": "T1450" + }, + "display": "NHS BUSINESS SERVICES AUTHORITY" + } + } + ], + "sender": { + "identifier": { + "system": "https://fhir.nhs.uk/Id/ods-organization-code", + "value": "VNCEL" + }, + "display": "YORKSHIRE HOMECARE LIMITED" + }, + "source": { + "name": "YORKSHIRE HOMECARE LIMITED", + "endpoint": "https://directory.spineservices.nhs.uk/STU3/Organization/VNCEL" + }, + "reason": { + "coding": [ + { + "system": "https://fhir.nhs.uk/CodeSystem/message-reason-prescription", + "code": "notification", + "display": "Notification" + } + ] + }, + "response": { + "identifier": "999f9999-9999-9999-9ff9-f9fff9999999", + "code": "ok" + }, + "focus": [ + { + "reference": "urn:uuid:4509b70d-d8b8-ea03-1105-64557cb54a29" + } + ] + } + }, + { + "fullUrl": "urn:uuid:4509b70d-d8b8-ea03-1105-64557cb54a29", + "resource": { + "resourceType": "MedicationDispense", + "contained": [ + { + "resourceType": "PractitionerRole", + "id": "performer", + "identifier": [ + { + "system": "https://fhir.nhs.uk/Id/sds-role-profile-id", + "value": "555086415105" + } + ], + "practitioner": { + "identifier": { + "system": "https://fhir.nhs.uk/Id/sds-user-id", + "value": "3415870201" + }, + "display": "Jackie Clark" + }, + "organization": { + "reference": "urn:uuid:2bf9f37c-d88b-4f86-ad5f-373c1416e04b" + }, + "code": [ + { + "coding": [ + { + "system": "https://fhir.nhs.uk/CodeSystem/NHSDigital-SDS-JobRoleCode", + "code": "S8000:G8000:R8000", + "display": "Clinical Practitioner Access Role" + } + ] + } + ], + "telecom": [ + { + "system": "phone", + "use": "work", + "value": "02380798431" + } + ] + }, + { + "resourceType": "MedicationRequest", + "id": "m1", + "extension": [ + { + "url": "https://fhir.nhs.uk/StructureDefinition/Extension-DM-PrescriptionType", + "valueCoding": { + "system": "https://fhir.nhs.uk/CodeSystem/prescription-type", + "code": "1201", + "display": "Outpatient Homecare Prescriber - Medical Prescriber" + } + } + ], + "identifier": [ + { + "system": "https://fhir.nhs.uk/Id/prescription-order-item-number", + "value": "a54219b8-f741-4c47-b662-e4f8dfa49ab6" + } + ], + "status": "active", + "intent": "order", + "category": [ + { + "coding": [ + { + "system": "http://terminology.hl7.org/CodeSystem/medicationrequest-category", + "code": "outpatient", + "display": "Outpatient" + } + ] + } + ], + "medicationCodeableConcept": { + "coding": [ + { + "system": "http://snomed.info/sct", + "code": "13892511000001100", + "display": "Amlodipine 5mg/5ml oral solution" + } + ] + }, + "subject": { + "reference": "urn:uuid:78d3c2eb-009e-4ec8-a358-b042954aa9b2" + }, + "authoredOn": "2021-05-07T14:47:29+00:00", + "requester": { + "reference": "urn:uuid:56166769-c1c4-4d07-afa8-132b5dfca666" + }, + "groupIdentifier": { + "extension": [ + { + "url": "https://fhir.nhs.uk/StructureDefinition/Extension-DM-PrescriptionId", + "valueIdentifier": { + "system": "https://fhir.nhs.uk/Id/prescription", + "value": "a5b9dc81-ccf4-4dab-b887-3d88e557febb" + } + } + ], + "system": "https://fhir.nhs.uk/Id/prescription-order-number", + "value": "D7A21F-A83008-F1762A" + }, + "courseOfTherapyType": { + "coding": [ + { + "system": "http://terminology.hl7.org/CodeSystem/medicationrequest-course-of-therapy", + "code": "acute", + "display": "Short course (acute) therapy" + } + ] + }, + "dosageInstruction": [ + { + "text": "Once daily", + "timing": { + "repeat": { + "frequency": 5, + "period": 1, + "periodUnit": "d", + "boundsDuration": { + "value": 10, + "unit": "day", + "system": "http://unitsofmeasure.org", + "code": "d" + } + } + }, + "route": { + "coding": [ + { + "system": "http://snomed.info/sct", + "code": "26643006", + "display": "Oral" + } + ] + }, + "doseAndRate": [ + { + "doseQuantity": { + "value": 5, + "unit": "milligram", + "system": "http://unitsofmeasure.org", + "code": "mg" + } + } + ] + } + ], + "dispenseRequest": { + "extension": [ + { + "url": "https://fhir.nhs.uk/StructureDefinition/Extension-DM-PerformerSiteType", + "valueCoding": { + "system": "https://fhir.nhs.uk/CodeSystem/dispensing-site-preference", + "code": "P1" + } + } + ], + "performer": { + "identifier": { + "system": "https://fhir.nhs.uk/Id/ods-organization-code", + "value": "VNCEL" + } + }, + "quantity": { + "value": 5, + "unit": "ml", + "system": "http://snomed.info/sct", + "code": "385024007" + } + }, + "substitution": { + "allowedBoolean": false + } + } + ], + "extension": [ + { + "url": "https://fhir.nhs.uk/StructureDefinition/Extension-EPS-TaskBusinessStatus", + "valueCoding": { + "system": "https://fhir.nhs.uk/CodeSystem/EPS-task-business-status", + "code": "0006", + "display": "Dispensed" + } + } + ], + "identifier": [ + { + "system": "https://fhir.nhs.uk/Id/prescription-dispense-item-number", + "value": "a54219b8-f741-4c47-b662-e4f8dfa49ab6" + } + ], + "status": "completed", + "medicationCodeableConcept": { + "coding": [ + { + "system": "http://snomed.info/sct", + "code": "13892511000001100", + "display": "Amlodipine 5mg/5ml oral solution" + } + ] + }, + "subject": { + "type": "Patient", + "identifier": { + "system": "https://fhir.nhs.uk/Id/nhs-number", + "value": "9449304106" + }, + "display": "MR ZACKERY NICODEMUS LEGASSICK" + }, + "performer": [ + { + "actor": { + "reference": "#performer" + } + } + ], + "authorizingPrescription": [ + { + "reference": "#m1" + } + ], + "type": { + "coding": [ + { + "system": "https://fhir.nhs.uk/CodeSystem/medicationdispense-type", + "code": "0001", + "display": "Item fully dispensed" + } + ] + }, + "quantity": { + "value": 5, + "unit": "ml", + "system": "http://snomed.info/sct", + "code": "385024007" + }, + "whenHandedOver": "2021-05-07T14:47:29+00:00", + "dosageInstruction": [ + { + "text": "80mg at 8am and 40mg at 2pm for 5 days. Then 40mg tablet - oral- daily at 8am" + } + ] + } + }, + { + "fullUrl": "urn:uuid:4509b70d-d8b8-ea03-1105-64557cb54a28", + "resource": { + "resourceType": "MedicationDispense", + "contained": [ + { + "resourceType": "PractitionerRole", + "id": "performer", + "identifier": [ + { + "system": "https://fhir.nhs.uk/Id/sds-role-profile-id", + "value": "555086415105" + } + ], + "practitioner": { + "identifier": { + "system": "https://fhir.nhs.uk/Id/sds-user-id", + "value": "3415870201" + }, + "display": "Jackie Clark" + }, + "organization": { + "reference": "urn:uuid:2bf9f37c-d88b-4f86-ad5f-373c1416e04b" + }, + "code": [ + { + "coding": [ + { + "system": "https://fhir.nhs.uk/CodeSystem/NHSDigital-SDS-JobRoleCode", + "code": "S8000:G8000:R8000", + "display": "Clinical Practitioner Access Role" + } + ] + } + ], + "telecom": [ + { + "system": "phone", + "use": "work", + "value": "02380798431" + } + ] + }, + { + "resourceType": "MedicationRequest", + "id": "m1", + "extension": [ + { + "url": "https://fhir.nhs.uk/StructureDefinition/Extension-DM-PrescriptionType", + "valueCoding": { + "system": "https://fhir.nhs.uk/CodeSystem/prescription-type", + "code": "1201", + "display": "Outpatient Homecare Prescriber - Medical Prescriber" + } + } + ], + "identifier": [ + { + "system": "https://fhir.nhs.uk/Id/prescription-order-item-number", + "value": "a54219b8-f741-4c47-b662-e4f8dfa49ab7" + } + ], + "status": "active", + "intent": "order", + "category": [ + { + "coding": [ + { + "system": "http://terminology.hl7.org/CodeSystem/medicationrequest-category", + "code": "outpatient", + "display": "Outpatient" + } + ] + } + ], + "medicationCodeableConcept": { + "coding": [ + { + "system": "http://snomed.info/sct", + "code": "317972000", + "display": "Furosemide 40mg tablets" + } + ] + }, + "subject": { + "reference": "urn:uuid:78d3c2eb-009e-4ec8-a358-b042954aa9b2" + }, + "authoredOn": "2021-05-07T14:47:29+00:00", + "requester": { + "reference": "urn:uuid:56166769-c1c4-4d07-afa8-132b5dfca666" + }, + "groupIdentifier": { + "extension": [ + { + "url": "https://fhir.nhs.uk/StructureDefinition/Extension-DM-PrescriptionId", + "valueIdentifier": { + "system": "https://fhir.nhs.uk/Id/prescription", + "value": "a5b9dc81-ccf4-4dab-b887-3d88e557febb" + } + } + ], + "system": "https://fhir.nhs.uk/Id/prescription-order-number", + "value": "D7A21F-A83008-F1762A" + }, + "courseOfTherapyType": { + "coding": [ + { + "system": "http://terminology.hl7.org/CodeSystem/medicationrequest-course-of-therapy", + "code": "acute", + "display": "Short course (acute) therapy" + } + ] + }, + "dosageInstruction": [ + { + "text": "80mg at 8am and 40mg at 2pm for 5 days. Then 40mg tablet - oral- daily at 8am", + "timing": { + "repeat": { + "frequency": 5, + "period": 1, + "periodUnit": "d", + "boundsDuration": { + "value": 10, + "unit": "day", + "system": "http://unitsofmeasure.org", + "code": "d" + } + } + }, + "route": { + "coding": [ + { + "system": "http://snomed.info/sct", + "code": "26643006", + "display": "Oral" + } + ] + } + } + ], + "dispenseRequest": { + "extension": [ + { + "url": "https://fhir.nhs.uk/StructureDefinition/Extension-DM-PerformerSiteType", + "valueCoding": { + "system": "https://fhir.nhs.uk/CodeSystem/dispensing-site-preference", + "code": "P1" + } + } + ], + "performer": { + "identifier": { + "system": "https://fhir.nhs.uk/Id/ods-organization-code", + "value": "VNCEL" + } + }, + "quantity": { + "value": 28, + "unit": "tablet", + "system": "http://snomed.info/sct", + "code": "428673006" + } + }, + "substitution": { + "allowedBoolean": false + } + } + ], + "extension": [ + { + "url": "https://fhir.nhs.uk/StructureDefinition/Extension-EPS-TaskBusinessStatus", + "valueCoding": { + "system": "https://fhir.nhs.uk/CodeSystem/EPS-task-business-status", + "code": "0006", + "display": "Dispensed" + } + } + ], + "identifier": [ + { + "system": "https://fhir.nhs.uk/Id/prescription-dispense-item-number", + "value": "a54219b8-f741-4c47-b662-e4f8dfa49ab7" + } + ], + "status": "completed", + "medicationCodeableConcept": { + "coding": [ + { + "system": "http://snomed.info/sct", + "code": "317972000", + "display": "Furosemide 40mg tablets (Manufacturer A)" + } + ] + }, + "subject": { + "type": "Patient", + "identifier": { + "system": "https://fhir.nhs.uk/Id/nhs-number", + "value": "9449304106" + }, + "display": "MR ZACKERY NICODEMUS LEGASSICK" + }, + "performer": [ + { + "actor": { + "reference": "#performer" + } + } + ], + "authorizingPrescription": [ + { + "reference": "#m1" + } + ], + "type": { + "coding": [ + { + "system": "https://fhir.nhs.uk/CodeSystem/medicationdispense-type", + "code": "0001", + "display": "Item fully dispensed" + } + ] + }, + "quantity": { + "value": 13, + "unit": "tablet", + "system": "http://snomed.info/sct", + "code": "428673006" + }, + "whenHandedOver": "2021-05-07T14:47:29+00:00", + "dosageInstruction": [ + { + "text": "80mg at 8am and 40mg at 2pm for 5 days. Then 40mg tablet - oral- daily at 8am" + } + ] + } + }, + { + "fullUrl": "urn:uuid:322b989d-3334-485b-9966-d59350cee160", + "resource": { + "resourceType": "MedicationDispense", + "contained": [ + { + "resourceType": "PractitionerRole", + "id": "performer", + "identifier": [ + { + "system": "https://fhir.nhs.uk/Id/sds-role-profile-id", + "value": "555086415105" + } + ], + "practitioner": { + "identifier": { + "system": "https://fhir.nhs.uk/Id/sds-user-id", + "value": "3415870201" + }, + "display": "Jackie Clark" + }, + "organization": { + "reference": "urn:uuid:2bf9f37c-d88b-4f86-ad5f-373c1416e04b" + }, + "code": [ + { + "coding": [ + { + "system": "https://fhir.nhs.uk/CodeSystem/NHSDigital-SDS-JobRoleCode", + "code": "S8000:G8000:R8000", + "display": "Clinical Practitioner Access Role" + } + ] + } + ], + "telecom": [ + { + "system": "phone", + "use": "work", + "value": "02380798431" + } + ] + }, + { + "resourceType": "MedicationRequest", + "id": "m1", + "extension": [ + { + "url": "https://fhir.nhs.uk/StructureDefinition/Extension-DM-PrescriptionType", + "valueCoding": { + "system": "https://fhir.nhs.uk/CodeSystem/prescription-type", + "code": "1201", + "display": "Outpatient Homecare Prescriber - Medical Prescriber" + } + } + ], + "identifier": [ + { + "system": "https://fhir.nhs.uk/Id/prescription-order-item-number", + "value": "a54219b8-f741-4c47-b662-e4f8dfa49ab7" + } + ], + "status": "active", + "intent": "order", + "category": [ + { + "coding": [ + { + "system": "http://terminology.hl7.org/CodeSystem/medicationrequest-category", + "code": "outpatient", + "display": "Outpatient" + } + ] + } + ], + "medicationCodeableConcept": { + "coding": [ + { + "system": "http://snomed.info/sct", + "code": "317972000", + "display": "Furosemide 40mg tablets" + } + ] + }, + "subject": { + "reference": "urn:uuid:78d3c2eb-009e-4ec8-a358-b042954aa9b2" + }, + "authoredOn": "2021-05-07T14:47:29+00:00", + "requester": { + "reference": "urn:uuid:56166769-c1c4-4d07-afa8-132b5dfca666" + }, + "groupIdentifier": { + "extension": [ + { + "url": "https://fhir.nhs.uk/StructureDefinition/Extension-DM-PrescriptionId", + "valueIdentifier": { + "system": "https://fhir.nhs.uk/Id/prescription", + "value": "a5b9dc81-ccf4-4dab-b887-3d88e557febb" + } + } + ], + "system": "https://fhir.nhs.uk/Id/prescription-order-number", + "value": "D7A21F-A83008-F1762A" + }, + "courseOfTherapyType": { + "coding": [ + { + "system": "http://terminology.hl7.org/CodeSystem/medicationrequest-course-of-therapy", + "code": "acute", + "display": "Short course (acute) therapy" + } + ] + }, + "dosageInstruction": [ + { + "text": "80mg at 8am and 40mg at 2pm for 5 days. Then 40mg tablet - oral- daily at 8am", + "timing": { + "repeat": { + "frequency": 5, + "period": 1, + "periodUnit": "d", + "boundsDuration": { + "value": 10, + "unit": "day", + "system": "http://unitsofmeasure.org", + "code": "d" + } + } + }, + "route": { + "coding": [ + { + "system": "http://snomed.info/sct", + "code": "26643006", + "display": "Oral" + } + ] + } + } + ], + "dispenseRequest": { + "extension": [ + { + "url": "https://fhir.nhs.uk/StructureDefinition/Extension-DM-PerformerSiteType", + "valueCoding": { + "system": "https://fhir.nhs.uk/CodeSystem/dispensing-site-preference", + "code": "P1" + } + } + ], + "performer": { + "identifier": { + "system": "https://fhir.nhs.uk/Id/ods-organization-code", + "value": "VNCEL" + } + }, + "quantity": { + "value": 28, + "unit": "tablet", + "system": "http://snomed.info/sct", + "code": "428673006" + } + }, + "substitution": { + "allowedBoolean": false + } + } + ], + "extension": [ + { + "url": "https://fhir.nhs.uk/StructureDefinition/Extension-EPS-TaskBusinessStatus", + "valueCoding": { + "system": "https://fhir.nhs.uk/CodeSystem/EPS-task-business-status", + "code": "0006", + "display": "Dispensed" + } + } + ], + "identifier": [ + { + "system": "https://fhir.nhs.uk/Id/prescription-dispense-item-number", + "value": "a54219b8-f741-4c47-b662-e4f8dfa49ab7" + } + ], + "status": "completed", + "medicationCodeableConcept": { + "coding": [ + { + "system": "http://snomed.info/sct", + "code": "317972000", + "display": "Furosemide 40mg tablets (Manufacturer B)" + } + ] + }, + "subject": { + "type": "Patient", + "identifier": { + "system": "https://fhir.nhs.uk/Id/nhs-number", + "value": "9449304106" + }, + "display": "MR ZACKERY NICODEMUS LEGASSICK" + }, + "performer": [ + { + "actor": { + "reference": "#performer" + } + } + ], + "authorizingPrescription": [ + { + "reference": "#m1" + } + ], + "type": { + "coding": [ + { + "system": "https://fhir.nhs.uk/CodeSystem/medicationdispense-type", + "code": "0001", + "display": "Item fully dispensed" + } + ] + }, + "quantity": { + "value": 15, + "unit": "tablet", + "system": "http://snomed.info/sct", + "code": "428673006" + }, + "whenHandedOver": "2021-05-07T14:47:29+00:00", + "dosageInstruction": [ + { + "text": "80mg at 8am and 40mg at 2pm for 5 days. Then 40mg tablet - oral- daily at 8am" + } + ] + } + }, + { + "fullUrl": "urn:uuid:2bf9f37c-d88b-4f86-ad5f-373c1416e04b", + "resource": { + "resourceType": "Organization", + "extension": [ + { + "url": "https://fhir.nhs.uk/StructureDefinition/Extension-ODS-OrganisationRelationships", + "extension": [ + { + "url": "reimbursementAuthority", + "valueIdentifier": { + "system": "https://fhir.nhs.uk/Id/ods-organization-code", + "value": "T1450" + } + } + ] + } + ], + "identifier": [ + { + "system": "https://fhir.nhs.uk/Id/ods-organization-code", + "value": "VNE51" + } + ], + "address": [ + { + "city": "West Yorkshire", + "use": "work", + "line": [ + "17 Austhorpe Road", + "Crossgates", + "Leeds" + ], + "postalCode": "LS15 8BA" + } + ], + "active": true, + "type": [ + { + "coding": [ + { + "system": "https://fhir.nhs.uk/CodeSystem/organisation-role", + "code": "182", + "display": "PHARMACY" + } + ] + } + ], + "name": "The Simple Pharmacy", + "telecom": [ + { + "system": "phone", + "use": "work", + "value": "0113 3180277" + } + ] + } + } + ] +} diff --git a/src/test/resources/examples/full_examples/secondary-care/homecare/acute/nominated-pharmacy/clinical-practitioner/7-Process-Request-Send-200_OK.json b/src/test/resources/examples/full_examples/secondary-care/homecare/acute/nominated-pharmacy/clinical-practitioner/7-Process-Request-Send-200_OK.json new file mode 100644 index 00000000..ac9ed90b --- /dev/null +++ b/src/test/resources/examples/full_examples/secondary-care/homecare/acute/nominated-pharmacy/clinical-practitioner/7-Process-Request-Send-200_OK.json @@ -0,0 +1,562 @@ +{ + "resourceType": "Bundle", + "id": "aef77afb-7e3c-427a-8657-2c427f71a272", + "identifier": { + "system": "https://tools.ietf.org/html/rfc4122", + "value": "4bbc97c0-f16d-4d82-85c8-c3cc62f8bd78" + }, + "type": "message", + "entry": [ + { + "fullUrl": "urn:uuid:aef77afb-7e3c-427a-8657-2c427f71a272", + "resource": { + "resourceType": "MessageHeader", + "id": "3599c0e9-9292-413e-9270-9a1ef1ead99c", + "eventCoding": { + "system": "https://fhir.nhs.uk/CodeSystem/message-event", + "code": "prescription-order", + "display": "Prescription Order" + }, + "sender": { + "identifier": { + "system": "https://fhir.nhs.uk/Id/ods-organization-code", + "value": "RBA" + }, + "reference": "urn:uuid:56166769-c1c4-4d07-afa8-132b5dfca666", + "display": "RAZIA|ALI" + }, + "source": { + "endpoint": "https://directory.spineservices.nhs.uk/STU3/Organization/RBA" + }, + "destination": [ + { + "endpoint": "https://sandbox.api.service.nhs.uk/electronic-prescriptions/$post-message", + "receiver": { + "identifier": { + "system": "https://fhir.nhs.uk/Id/ods-organization-code", + "value": "X26" + } + } + } + ], + "focus": [ + { + "reference": "urn:uuid:78d3c2eb-009e-4ec8-a358-b042954aa9b2" + }, + { + "reference": "urn:uuid:a54219b8-f741-4c47-b662-e4f8dfa49ab6" + }, + { + "reference": "urn:uuid:51793ac0-112f-46c7-a891-9af8cefb206e" + } + ] + } + }, + { + "fullUrl": "urn:uuid:a54219b8-f741-4c47-b662-e4f8dfa49ab6", + "resource": { + "resourceType": "MedicationRequest", + "id": "a54219b8-f741-4c47-b662-e4f8dfa49ab6", + "extension": [ + { + "url": "https://fhir.nhs.uk/StructureDefinition/Extension-DM-PrescriptionType", + "valueCoding": { + "system": "https://fhir.nhs.uk/CodeSystem/prescription-type", + "code": "1201", + "display": "Outpatient Homecare Prescriber - Medical Prescriber" + } + } + ], + "identifier": [ + { + "system": "https://fhir.nhs.uk/Id/prescription-order-item-number", + "value": "a54219b8-f741-4c47-b662-e4f8dfa49ab6" + } + ], + "status": "active", + "intent": "order", + "category": [ + { + "coding": [ + { + "system": "http://terminology.hl7.org/CodeSystem/medicationrequest-category", + "code": "outpatient", + "display": "Outpatient" + } + ] + } + ], + "medicationCodeableConcept": { + "coding": [ + { + "system": "http://snomed.info/sct", + "code": "13892511000001100", + "display": "Amlodipine 5mg/5ml oral solution" + } + ] + }, + "subject": { + "reference": "urn:uuid:78d3c2eb-009e-4ec8-a358-b042954aa9b2" + }, + "requester": { + "reference": "urn:uuid:56166769-c1c4-4d07-afa8-132b5dfca666" + }, + "groupIdentifier": { + "extension": [ + { + "url": "https://fhir.nhs.uk/StructureDefinition/Extension-DM-PrescriptionId", + "valueIdentifier": { + "system": "https://fhir.nhs.uk/Id/prescription", + "value": "a5b9dc81-ccf4-4dab-b887-3d88e557febb" + } + } + ], + "system": "https://fhir.nhs.uk/Id/prescription-order-number", + "value": "D7A21F-A83008-F1762A" + }, + "courseOfTherapyType": { + "coding": [ + { + "system": "http://terminology.hl7.org/CodeSystem/medicationrequest-course-of-therapy", + "code": "acute", + "display": "Short course (acute) therapy" + } + ] + }, + "dosageInstruction": [ + { + "text": "5 milligram - 5 times a day - Oral - for 10 days", + "timing": { + "repeat": { + "frequency": 5, + "period": 1, + "periodUnit": "d", + "boundsDuration": { + "value": 10, + "unit": "day", + "system": "http://unitsofmeasure.org", + "code": "d" + } + } + }, + "route": { + "coding": [ + { + "system": "http://snomed.info/sct", + "code": "26643006", + "display": "Oral" + } + ] + }, + "doseAndRate": [ + { + "doseQuantity": { + "value": 5, + "unit": "milligram", + "system": "http://unitsofmeasure.org", + "code": "mg" + } + } + ] + } + ], + "dispenseRequest": { + "extension": [ + { + "url": "https://fhir.nhs.uk/StructureDefinition/Extension-DM-PerformerSiteType", + "valueCoding": { + "system": "https://fhir.nhs.uk/CodeSystem/dispensing-site-preference", + "code": "P1" + } + } + ], + "performer": { + "identifier": { + "system": "https://fhir.nhs.uk/Id/ods-organization-code", + "value": "VNCEL" + } + }, + "quantity": { + "value": 5, + "unit": "ml", + "system": "http://snomed.info/sct", + "code": "385024007" + } + }, + "substitution": { + "allowedBoolean": false + } + } + }, + { + "fullUrl": "urn:uuid:a54219b8-f741-4c47-b662-e4f8dfa49ab7", + "resource": { + "resourceType": "MedicationRequest", + "id": "a54219b8-f741-4c47-b662-e4f8dfa49ab7", + "extension": [ + { + "url": "https://fhir.nhs.uk/StructureDefinition/Extension-DM-PrescriptionType", + "valueCoding": { + "system": "https://fhir.nhs.uk/CodeSystem/prescription-type", + "code": "1201", + "display": "Outpatient Homecare Prescriber - Medical Prescriber" + } + } + ], + "identifier": [ + { + "system": "https://fhir.nhs.uk/Id/prescription-order-item-number", + "value": "a54219b8-f741-4c47-b662-e4f8dfa49ab7" + } + ], + "status": "active", + "intent": "order", + "category": [ + { + "coding": [ + { + "system": "http://terminology.hl7.org/CodeSystem/medicationrequest-category", + "code": "outpatient", + "display": "Outpatient" + } + ] + } + ], + "medicationCodeableConcept": { + "coding": [ + { + "system": "http://snomed.info/sct", + "code": "317972000", + "display": "Furosemide 40mg tablets" + } + ] + }, + "subject": { + "reference": "urn:uuid:78d3c2eb-009e-4ec8-a358-b042954aa9b2" + }, + "requester": { + "reference": "urn:uuid:56166769-c1c4-4d07-afa8-132b5dfca666" + }, + "groupIdentifier": { + "extension": [ + { + "url": "https://fhir.nhs.uk/StructureDefinition/Extension-DM-PrescriptionId", + "valueIdentifier": { + "system": "https://fhir.nhs.uk/Id/prescription", + "value": "a5b9dc81-ccf4-4dab-b887-3d88e557febb" + } + } + ], + "system": "https://fhir.nhs.uk/Id/prescription-order-number", + "value": "D7A21F-A83008-F1762A" + }, + "courseOfTherapyType": { + "coding": [ + { + "system": "http://terminology.hl7.org/CodeSystem/medicationrequest-course-of-therapy", + "code": "acute", + "display": "Short course (acute) therapy" + } + ] + }, + "dosageInstruction": [ + { + "text": "5 times a day - Oral - for 10 days", + "timing": { + "repeat": { + "frequency": 5, + "period": 1, + "periodUnit": "d", + "boundsDuration": { + "value": 10, + "unit": "day", + "system": "http://unitsofmeasure.org", + "code": "d" + } + } + }, + "route": { + "coding": [ + { + "system": "http://snomed.info/sct", + "code": "26643006", + "display": "Oral" + } + ] + } + } + ], + "dispenseRequest": { + "extension": [ + { + "url": "https://fhir.nhs.uk/StructureDefinition/Extension-DM-PerformerSiteType", + "valueCoding": { + "system": "https://fhir.nhs.uk/CodeSystem/dispensing-site-preference", + "code": "P1" + } + } + ], + "performer": { + "identifier": { + "system": "https://fhir.nhs.uk/Id/ods-organization-code", + "value": "VNCEL" + } + }, + "quantity": { + "value": 28, + "unit": "tablet", + "system": "http://snomed.info/sct", + "code": "428673006" + } + }, + "substitution": { + "allowedBoolean": false + } + } + }, + { + "fullUrl": "urn:uuid:78d3c2eb-009e-4ec8-a358-b042954aa9b2", + "resource": { + "resourceType": "Patient", + "identifier": [ + { + "system": "https://fhir.nhs.uk/Id/nhs-number", + "value": "9449304106" + } + ], + "name": [ + { + "use": "usual", + "family": "LEGASSICK", + "given": ["NICODEMUS", "ZACKERY"], + "prefix": ["MR"] + } + ], + "gender": "male", + "birthDate": "1994-03-19", + "address": [ + { + "use": "home", + "line": ["11 LITTLEHEATH LANE", "COBHAM", "SURREY"], + "postalCode": "KT11 2QG" + } + ], + "generalPractitioner": [ + { + "identifier": { + "system": "https://fhir.nhs.uk/Id/ods-organization-code", + "value": "B81001" + } + } + ] + } + }, + { + "fullUrl": "urn:uuid:56166769-c1c4-4d07-afa8-132b5dfca666", + "resource": { + "resourceType": "PractitionerRole", + "id": "56166769-c1c4-4d07-afa8-132b5dfca666", + "identifier": [ + { + "system": "https://fhir.nhs.uk/Id/sds-role-profile-id", + "value": "100102238986" + } + ], + "practitioner": { + "reference": "urn:uuid:a8c85454-f8cb-498d-9629-78e2cb5fa47a" + }, + "organization": { + "reference": "urn:uuid:3b4b03a5-52ba-4ba6-9b82-70350aa109d8" + }, + "code": [ + { + "coding": [ + { + "system": "https://fhir.nhs.uk/CodeSystem/NHSDigital-SDS-JobRoleCode", + "code": "S8000:G8000:R8000", + "display": "Clinical Practitioner Access Role" + } + ] + } + ], + "telecom": [ + { + "system": "phone", + "value": "01234567890", + "use": "work" + } + ] + } + }, + { + "fullUrl": "urn:uuid:a8c85454-f8cb-498d-9629-78e2cb5fa47a", + "resource": { + "resourceType": "Practitioner", + "id": "a8c85454-f8cb-498d-9629-78e2cb5fa47a", + "identifier": [ + { + "system": "https://fhir.nhs.uk/Id/sds-user-id", + "value": "7020134158" + }, + { + "system": "https://fhir.hl7.org.uk/Id/gmc-number", + "value": "G9999999" + }, + { + "system": "https://fhir.hl7.org.uk/Id/din-number", + "value": "70201123456" + } + ], + "name": [ + { + "family": "Edwards", + "given": ["Thomas"], + "prefix": ["DR"] + } + ] + } + }, + { + "fullUrl": "urn:uuid:3b4b03a5-52ba-4ba6-9b82-70350aa109d8", + "resource": { + "resourceType": "Organization", + "id": "3b4b03a5-52ba-4ba6-9b82-70350aa109d8", + "identifier": [ + { + "system": "https://fhir.nhs.uk/Id/ods-organization-code", + "value": "A99968" + } + ], + "name": "SOMERSET BOWEL CANCER SCREENING CENTRE", + "address": [ + { + "use": "work", + "line": ["MUSGROVE PARK HOSPITAL"], + "city": "TAUNTON", + "postalCode": "TA1 5DA" + } + ], + "telecom": [ + { + "system": "phone", + "value": "01823 333444", + "use": "work" + } + ], + "partOf": { + "identifier": { + "system": "https://fhir.nhs.uk/Id/ods-organization-code", + "value": "RBA" + }, + "display": "TAUNTON AND SOMERSET NHS FOUNDATION TRUST" + } + } + }, + { + "fullUrl": "urn:uuid:51793ac0-112f-46c7-a891-9af8cefb206e", + "resource": { + "resourceType": "CommunicationRequest", + "status": "unknown", + "subject": { + "reference": "urn:uuid:78d3c2eb-009e-4ec8-a358-b042954aa9b2" + }, + "payload": [ + { + "contentReference": { + "reference": "urn:uuid:d0f003a0-8763-43d5-a264-ce52a38901c9", + "display": "List of Repeat Medications for re-ordering" + } + } + ], + "requester": { + "type": "Organization", + "identifier": { + "system": "https://fhir.nhs.uk/Id/ods-organization-code", + "value": "RBA" + }, + "display": "TAUNTON AND SOMERSET NHS FOUNDATION TRUST" + }, + "recipient": [ + { + "type": "Patient", + "identifier": { + "system": "https://fhir.nhs.uk/Id/nhs-number", + "value": "9453740519" + } + } + ] + } + }, + { + "fullUrl": "urn:uuid:d0f003a0-8763-43d5-a264-ce52a38901c9", + "resource": { + "resourceType": "List", + "status": "current", + "mode": "snapshot", + "code": { + "text": "Repeat Medications" + }, + "subject": { + "reference": "urn:uuid:78d3c2eb-009e-4ec8-a358-b042954aa9b2" + }, + "entry": [ + { + "item": { + "display": "Metformin 500mg tablets" + } + }, + { + "item": { + "display": "Aspirin 75mg dispersible tablets" + } + }, + { + "item": { + "display": "Simvastatin 40mg tablets" + } + }, + { + "item": { + "display": "Chloramphenicol 0.5% eye drops" + } + } + ] + } + }, + { + "fullUrl": "urn:uuid:28828c55-8fa7-42d7-916f-fcf076e0c10e", + "resource": { + "resourceType": "Provenance", + "id": "28828c55-8fa7-42d7-916f-fcf076e0c10e", + "target": [ + { + "reference": "urn:uuid:a54219b8-f741-4c47-b662-e4f8dfa49ab6" + } + ], + "recorded": "2008-02-27T11:38:00+00:00", + "agent": [ + { + "who": { + "reference": "urn:uuid:56166769-c1c4-4d07-afa8-132b5dfca666" + } + } + ], + "signature": [ + { + "type": [ + { + "system": "urn:iso-astm:E1762-95:2013", + "code": "1.2.840.10065.1.12.1.1" + } + ], + "when": "2021-05-07T14:47:30+00:00", + "who": { + "reference": "urn:uuid:56166769-c1c4-4d07-afa8-132b5dfca666" + }, + "data": "DQo8U2lnbmF0dXJlIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwLzA5L3htbGRzaWcjIj4NCiAgICA8U2lnbmVkSW5mbz48Q2Fub25pY2FsaXphdGlvbk1ldGhvZCBBbGdvcml0aG09Imh0dHA6Ly93d3cudzMub3JnLzIwMDEvMTAveG1sLWV4Yy1jMTRuIyI+PC9DYW5vbmljYWxpemF0aW9uTWV0aG9kPjxTaWduYXR1cmVNZXRob2QgQWxnb3JpdGhtPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwLzA5L3htbGRzaWcjcnNhLXNoYTEiPjwvU2lnbmF0dXJlTWV0aG9kPjxSZWZlcmVuY2U+PFRyYW5zZm9ybXM+PFRyYW5zZm9ybSBBbGdvcml0aG09Imh0dHA6Ly93d3cudzMub3JnLzIwMDEvMTAveG1sLWV4Yy1jMTRuIyI+PC9UcmFuc2Zvcm0+PC9UcmFuc2Zvcm1zPjxEaWdlc3RNZXRob2QgQWxnb3JpdGhtPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwLzA5L3htbGRzaWcjc2hhMSI+PC9EaWdlc3RNZXRob2Q+PERpZ2VzdFZhbHVlPjhIeUJwQnhPN1U3M2QrVlBUTHFSNnBrK2xRbz08L0RpZ2VzdFZhbHVlPjwvUmVmZXJlbmNlPjwvU2lnbmVkSW5mbz4NCiAgICA8U2lnbmF0dXJlVmFsdWU+cUhQcnVBbnpYUlRGNzB1NU9Xd2xOaVhmN3JaYUlUMjdCTTNZaEZJRkRZUFFydUtOTzhEakxrbWpUbENpRWxXTU1HWXFUT1U0S2REcE1rS2JrOU51TnFvTTNBWitCcVo4OGhOTUxlTlQ1ZktpK0dMK1RUWU9hclVVZEpGMEUxZmtERS9nbDJob1lXK29OM29VUEtJVU9mZkNSVXYycEVHaEg3Y0drT0Jvc3ZjPTwvU2lnbmF0dXJlVmFsdWU+DQogICAgPEtleUluZm8+DQogICAgICAgIDxYNTA5RGF0YT4NCiAgICAgICAgICAgIDxYNTA5Q2VydGlmaWNhdGU+TUlJRHVEQ0NBcUNnQXdJQkFnSUVYY210SHpBTkJna3Foa2lHOXcwQkFRc0ZBREEyTVF3d0NnWURWUVFLRXdOdWFITXhDekFKQmdOVkJBc1RBa05CTVJrd0Z3WURWUVFERXhCT1NGTWdTVTVVSUV4bGRtVnNJREZFTUI0WERUSXdNVEF5TWpFd01qRTFOVm9YRFRJeU1UQXlNakV3TlRFMU5Wb3dRekVNTUFvR0ExVUVDaE1EYm1oek1ROHdEUVlEVlFRTEV3WlFaVzl3YkdVeElqQWdCZ05WQkFNTUdUVTFOVEkxTXpVeU1URXdPRjlTUVU1RVQwMWZWVk5GVWxFd2daOHdEUVlKS29aSWh2Y05BUUVCQlFBRGdZMEFNSUdKQW9HQkFLdDRzek53N09BSDdBUVJyRGUveEJJbXNNbU1pUzlFc3JUM2EzcC9MaDNicmR6STlhYWpUVVoyYi9jdmJPYTdQZVlkN3UrSzRhMlpkMFhrKzBHRm1ZR3pTVlg2aVlqYmx3cjB2YWkzMXpWN0crbEd2SHhINnBTb0xDd0lDYVpBRndhYmVENU96OTQreUEzYVdOV3RHVjBEZmg5cXdIM1pGQ0lNUnN2ZXJOMXBBZ01CQUFHamdnRkRNSUlCUHpBT0JnTlZIUThCQWY4RUJBTUNCa0F3WlFZRFZSMGdBUUgvQkZzd1dUQlhCZ3NxaGpvQWlYdG1BQU1DQURCSU1FWUdDQ3NHQVFVRkJ3SUJGanBvZEhSd2N6b3ZMM0JyYVM1dWFITXVkV3N2WTJWeWRHbG1hV05oZEdWZmNHOXNhV05wWlhNdlkyOXVkR1Z1ZEY5amIyMXRhWFJ0Wlc1ME1ETUdBMVVkSHdRc01Db3dLS0Ftb0NTR0ltaDBkSEE2THk5amNtd3VibWh6TG5WckwybHVkQzh4WkM5amNteGpNeTVqY213d0t3WURWUjBRQkNRd0lvQVBNakF5TURFd01qSXhNREl4TlRWYWdROHlNREl5TURNeE56RXdOVEUxTlZvd0h3WURWUjBqQkJnd0ZvQVVvSllmZ1lUTlBkNkVVS0w2UUxJekh4WTVQRkl3SFFZRFZSME9CQllFRkx0eXZZU3lhcWc2MEFFVVpneGswd3JqUkpjK01Ba0dBMVVkRXdRQ01BQXdHUVlKS29aSWh2WjlCMEVBQkF3d0Noc0VWamd1TXdNQ0JMQXdEUVlKS29aSWh2Y05BUUVMQlFBRGdnRUJBQmN6eThCOGp1UHBJZmFUTkZjeHJDMjJhQ1gveFlabWhyTC9OdklCQWFYMUc1aGppd21rR0tFMmhSVElyNjdQeFp4bVhzSnhpZ1JCTUhQbEkrbFkvK29rekgwR2k3YjVicWx3N3B4R0lnSk8wMDB3OHBGc3ZvOXc0MklZaEhvZHN2bkRWU3hoTVQwSjQ2UWhrOXNvRTBMam9FVUxLUVBQbFlHa2UvR2wzbTE3SXRGWXdPYlFIMGZNRXdtaXFCeWVJZno3Z1NjY096TDVjSXA2UGNaVE9qbzJJcVFwZ0VtaGpPY1JJbkVxQU5pdFNkam9pSkFKenBhYVpqWVRSZEhVWDdpN2FqRWlING05MW5GVys0QXFrTnR0bGI0V2NHS3NTbVdnZktLaGVGNElvWktNRTgweGVyU2dNeTh2dGpMT0JKQ0dYejB3TEdtUXVSbXhNVHE4OHE0PTwvWDUwOUNlcnRpZmljYXRlPg0KICAgICAgICA8L1g1MDlEYXRhPg0KICAgIDwvS2V5SW5mbz4NCjwvU2lnbmF0dXJlPg0K" + } + ] + } + } + ] +} diff --git a/src/test/resources/examples/full_examples/secondary-care/homecare/acute/nominated-pharmacy/clinical-practitioner/7-Task-Request-Release-200_OK.json b/src/test/resources/examples/full_examples/secondary-care/homecare/acute/nominated-pharmacy/clinical-practitioner/7-Task-Request-Release-200_OK.json new file mode 100644 index 00000000..6ac7e2b6 --- /dev/null +++ b/src/test/resources/examples/full_examples/secondary-care/homecare/acute/nominated-pharmacy/clinical-practitioner/7-Task-Request-Release-200_OK.json @@ -0,0 +1,100 @@ +{ + "resourceType": "Parameters", + "id": "nominatedPharmacyReleaseRequest", + "parameter": [ + { + "name": "owner", + "resource": { + "resourceType": "Organization", + "id": "organization", + "identifier": [ + { + "system": "https://fhir.nhs.uk/Id/ods-organization-code", + "value": "VNE51" + } + ], + "address": [ + { + "city": "West Yorkshire", + "use": "work", + "line": [ + "17 Austhorpe Road", + "Crossgates", + "Leeds" + ], + "postalCode": "LS15 8BA" + } + ], + "active": true, + "type": [ + { + "coding": [ + { + "system": "https://fhir.nhs.uk/CodeSystem/organisation-role", + "code": "182", + "display": "PHARMACY" + } + ] + } + ], + "name": "The Simple Pharmacy", + "telecom": [ + { + "system": "phone", + "use": "work", + "value": "0113 3180277" + } + ] + } + }, + { + "name": "status", + "valueCode": "accepted" + }, + { + "name": "agent", + "resource": { + "resourceType": "PractitionerRole", + "id": "16708936-6397-4e03-b84f-4aaa790633e0", + "identifier": [ + { + "system": "https://fhir.nhs.uk/Id/sds-role-profile-id", + "value": "555086415105" + } + ], + "practitioner": { + "identifier": { + "system": "https://fhir.nhs.uk/Id/sds-user-id", + "value": "3415870201" + }, + "display": "Jackie Clark" + }, + "code": [ + { + "coding": [ + { + "system": "https://fhir.nhs.uk/CodeSystem/NHSDigital-SDS-JobRoleCode", + "code": "S8000:G8000:R8000", + "display": "Clinical Practitioner Access Role" + } + ] + } + ], + "telecom": [ + { + "system": "phone", + "value": "02380798431", + "use": "work" + } + ] + } + }, + { + "name": "group-identifier", + "valueIdentifier": { + "system": "https://fhir.nhs.uk/Id/prescription-order-number", + "value": "D7A21F-A83008-F1762A" + } + } + ] +} diff --git a/src/test/resources/examples/full_examples/secondary-care/homecare/acute/nominated-pharmacy/concurrent-dosage-instructions/1-Prepare-Request-200_OK.json b/src/test/resources/examples/full_examples/secondary-care/homecare/acute/nominated-pharmacy/concurrent-dosage-instructions/1-Prepare-Request-200_OK.json new file mode 100644 index 00000000..ef5db111 --- /dev/null +++ b/src/test/resources/examples/full_examples/secondary-care/homecare/acute/nominated-pharmacy/concurrent-dosage-instructions/1-Prepare-Request-200_OK.json @@ -0,0 +1,547 @@ +{ + "resourceType": "Bundle", + "id": "a54219b8-f741-4c47-b662-e4f8dfa49ab5", + "identifier": { + "system": "https://tools.ietf.org/html/rfc4122", + "value": "ea66ee9d-a981-432f-8c27-6907cbd99219" + }, + "type": "message", + "entry": [ + { + "fullUrl": "urn:uuid:a54219b8-f741-4c47-b662-e4f8dfa49ab5", + "resource": { + "resourceType": "MessageHeader", + "id": "3599c0e9-9292-413e-9270-9a1ef1ead99c", + "eventCoding": { + "system": "https://fhir.nhs.uk/CodeSystem/message-event", + "code": "prescription-order", + "display": "Prescription Order" + }, + "sender": { + "identifier": { + "system": "https://fhir.nhs.uk/Id/ods-organization-code", + "value": "RBA" + }, + "reference": "urn:uuid:56166769-c1c4-4d07-afa8-132b5dfca666", + "display": "RAZIA|ALI" + }, + "source": { + "endpoint": "https://directory.spineservices.nhs.uk/STU3/Organization/RBA" + }, + "destination": [ + { + "endpoint": "https://sandbox.api.service.nhs.uk/electronic-prescriptions/$post-message", + "receiver": { + "identifier": { + "system": "https://fhir.nhs.uk/Id/ods-organization-code", + "value": "X26" + } + } + } + ], + "focus": [ + { + "reference": "urn:uuid:78d3c2eb-009e-4ec8-a358-b042954aa9b2" + }, + { + "reference": "urn:uuid:fa3037a0-1862-4d4b-8564-2472b5e398f2" + }, + { + "reference": "urn:uuid:51793ac0-112f-46c7-a891-9af8cefb206e" + } + ] + } + }, + { + "fullUrl": "urn:uuid:fa3037a0-1862-4d4b-8564-2472b5e398f2", + "resource": { + "resourceType": "MedicationRequest", + "medicationCodeableConcept": { + "coding": [ + { + "system": "http://snomed.info/sct", + "code": "325427002", + "display": "Prednisolone 5mg tablets" + } + ] + }, + "extension": [ + { + "url": "https://fhir.nhs.uk/StructureDefinition/Extension-DM-PrescriptionType", + "valueCoding": { + "system": "https://fhir.nhs.uk/CodeSystem/prescription-type", + "code": "0101", + "display": "Primary Care Prescriber - Medical Prescriber" + } + } + ], + "identifier": [ + { + "system": "https://fhir.nhs.uk/Id/prescription-order-item-number", + "value": "04f9fde8-c218-4e7f-a97c-079187038485" + } + ], + "status": "active", + "intent": "order", + "subject": { + "reference": "urn:uuid:78d3c2eb-009e-4ec8-a358-b042954aa9b2" + }, + "category": [ + { + "coding": [ + { + "system": "http://terminology.hl7.org/CodeSystem/medicationrequest-category", + "code": "community", + "display": "Community" + } + ] + } + ], + "requester": { + "reference": "urn:uuid:56166769-c1c4-4d07-afa8-132b5dfca666" + }, + "groupIdentifier": { + "system": "https://fhir.nhs.uk/Id/prescription-order-number", + "value": "561479-395879-521272", + "extension": [ + { + "url": "https://fhir.nhs.uk/StructureDefinition/Extension-DM-PrescriptionId", + "valueIdentifier": { + "system": "https://fhir.nhs.uk/Id/prescription", + "value": "9ee331b3-7f67-4120-9421-49369424fc6a" + } + } + ] + }, + "courseOfTherapyType": { + "coding": [ + { + "system": "http://terminology.hl7.org/CodeSystem/medicationrequest-course-of-therapy", + "code": "acute", + "display": "Short course (acute) therapy" + } + ] + }, + "dosageInstruction": [ + { + "sequence": 1, + "text": "2 tablets to be taken at 08:00 for two days. Take these tablets with or after food.", + "timing": { + "repeat": { + "boundsDuration": { + "value": 2, + "unit": "day", + "system": "http://unitsofmeasure.org", + "code": "d" + }, + "frequency": 1, + "period": 1, + "periodUnit": "d", + "timeOfDay": [ + "08:00:00" + ] + } + }, + "doseAndRate": [ + { + "doseQuantity": { + "value": 5, + "unit": "milligram", + "system": "http://unitsofmeasure.org", + "code": "mg" + } + } + ] + }, + { + "sequence": 1, + "text": "1 tablet to be taken at 17:00 for two days. Take these tablets with or after food.", + "timing": { + "repeat": { + "boundsDuration": { + "value": 2, + "unit": "day", + "system": "http://unitsofmeasure.org", + "code": "d" + }, + "frequency": 1, + "period": 1, + "periodUnit": "d", + "timeOfDay": [ + "17:00:00" + ] + } + }, + "doseAndRate": [ + { + "doseQuantity": { + "value": 5, + "unit": "milligram", + "system": "http://unitsofmeasure.org", + "code": "mg" + } + } + ] + }, + { + "sequence": 1, + "text": "1 tablet to be taken at 20:00 for two days. Take these tablets with or after food.", + "timing": { + "repeat": { + "boundsDuration": { + "value": 2, + "unit": "day", + "system": "http://unitsofmeasure.org", + "code": "d" + }, + "frequency": 1, + "period": 1, + "periodUnit": "d", + "timeOfDay": [ + "20:00:00" + ] + } + }, + "doseAndRate": [ + { + "doseQuantity": { + "value": 5, + "unit": "milligram", + "system": "http://unitsofmeasure.org", + "code": "mg" + } + } + ] + } + ], + "dispenseRequest": { + "extension": [ + { + "url": "https://fhir.nhs.uk/StructureDefinition/Extension-DM-PerformerSiteType", + "valueCoding": { + "system": "https://fhir.nhs.uk/CodeSystem/dispensing-site-preference", + "code": "P1" + } + } + ], + "quantity": { + "value": 8, + "unit": "tablet", + "system": "http://snomed.info/sct", + "code": "428673006" + }, + "validityPeriod": { + "start": "2022-10-20", + "end": "2023-03-20" + }, + "expectedSupplyDuration": { + "value": 30, + "unit": "day", + "system": "http://unitsofmeasure.org", + "code": "d" + }, + "performer": { + "identifier": { + "system": "https://fhir.nhs.uk/Id/ods-organization-code", + "value": "FK994" + } + } + }, + "substitution": { + "allowedBoolean": false + } + } + }, + { + "fullUrl": "urn:uuid:78d3c2eb-009e-4ec8-a358-b042954aa9b2", + "resource": { + "resourceType": "Patient", + "identifier": [ + { + "system": "https://fhir.nhs.uk/Id/nhs-number", + "value": "9449304106" + } + ], + "name": [ + { + "use": "usual", + "family": "LEGASSICK", + "given": [ + "NICODEMUS", + "ZACKERY" + ], + "prefix": [ + "MR" + ] + } + ], + "gender": "male", + "birthDate": "1994-03-19", + "address": [ + { + "use": "home", + "line": [ + "11 LITTLEHEATH LANE", + "COBHAM", + "SURREY" + ], + "postalCode": "KT11 2QG" + } + ], + "generalPractitioner": [ + { + "identifier": { + "system": "https://fhir.nhs.uk/Id/ods-organization-code", + "value": "B81001" + } + } + ] + } + }, + { + "fullUrl": "urn:uuid:56166769-c1c4-4d07-afa8-132b5dfca666", + "resource": { + "resourceType": "PractitionerRole", + "id": "56166769-c1c4-4d07-afa8-132b5dfca666", + "identifier": [ + { + "system": "https://fhir.nhs.uk/Id/sds-role-profile-id", + "value": "100102238986" + } + ], + "practitioner": { + "reference": "urn:uuid:a8c85454-f8cb-498d-9629-78e2cb5fa47a" + }, + "organization": { + "reference": "urn:uuid:3b4b03a5-52ba-4ba6-9b82-70350aa109d8" + }, + "code": [ + { + "coding": [ + { + "system": "https://fhir.nhs.uk/CodeSystem/NHSDigital-SDS-JobRoleCode", + "code": "S8000:G8000:R8000", + "display": "Clinical Practitioner Access Role" + } + ] + } + ], + "telecom": [ + { + "system": "phone", + "value": "01234567890", + "use": "work" + } + ] + } + }, + { + "fullUrl": "urn:uuid:a8c85454-f8cb-498d-9629-78e2cb5fa47a", + "resource": { + "resourceType": "Practitioner", + "id": "a8c85454-f8cb-498d-9629-78e2cb5fa47a", + "identifier": [ + { + "system": "https://fhir.nhs.uk/Id/sds-user-id", + "value": "7020134158" + }, + { + "system": "https://fhir.hl7.org.uk/Id/gmc-number", + "value": "G9999999" + }, + { + "system": "https://fhir.hl7.org.uk/Id/din-number", + "value": "70201123456" + } + ], + "name": [ + { + "family": "Edwards", + "given": [ + "Thomas" + ], + "prefix": [ + "DR" + ] + } + ] + } + }, + { + "fullUrl": "urn:uuid:3b4b03a5-52ba-4ba6-9b82-70350aa109d8", + "resource": { + "resourceType": "Organization", + "id": "3b4b03a5-52ba-4ba6-9b82-70350aa109d8", + "identifier": [ + { + "system": "https://fhir.nhs.uk/Id/ods-organization-code", + "value": "RBA" + } + ], + "type": [ + { + "coding": [ + { + "system": "https://fhir.nhs.uk/CodeSystem/organisation-role", + "code": "197", + "display": "NHS TRUST" + } + ] + } + ], + "name": "TAUNTON AND SOMERSET NHS FOUNDATION TRUST", + "address": [ + { + "line": [ + "MUSGROVE PARK HOSPITAL", + "PARKFIELD DRIVE", + "TAUNTON" + ], + "postalCode": "TA1 5DA" + } + ], + "telecom": [ + { + "system": "phone", + "value": "01823333444", + "use": "work" + } + ], + "partOf": { + "identifier": { + "system": "https://fhir.nhs.uk/Id/ods-organization-code", + "value": "RBA" + }, + "display": "TAUNTON AND SOMERSET NHS FOUNDATION TRUST" + } + } + }, + { + "fullUrl": "urn:uuid:54b0506d-49af-4245-9d40-d7d64902055e", + "resource": { + "resourceType": "HealthcareService", + "id": "54b0506d-49af-4245-9d40-d7d64902055e", + "identifier": [ + { + "use": "usual", + "system": "https://fhir.nhs.uk/Id/ods-organization-code", + "value": "A99968" + } + ], + "active": true, + "providedBy": { + "identifier": { + "system": "https://fhir.nhs.uk/Id/ods-organization-code", + "value": "RBA" + } + }, + "location": [ + { + "reference": "urn:uuid:8a5d7d67-64fb-44ec-9802-2dc214bb3dcb" + } + ], + "name": "SOMERSET BOWEL CANCER SCREENING CENTRE", + "telecom": [ + { + "system": "phone", + "value": "01823 333444", + "use": "work" + } + ] + } + }, + { + "fullUrl": "urn:uuid:8a5d7d67-64fb-44ec-9802-2dc214bb3dcb", + "resource": { + "resourceType": "Location", + "id": "8a5d7d67-64fb-44ec-9802-2dc214bb3dcb", + "identifier": [ + { + "value": "10008800708" + } + ], + "status": "active", + "mode": "instance", + "address": { + "use": "work", + "line": [ + "MUSGROVE PARK HOSPITAL" + ], + "city": "TAUNTON", + "postalCode": "TA1 5DA" + } + } + }, + { + "fullUrl": "urn:uuid:51793ac0-112f-46c7-a891-9af8cefb206e", + "resource": { + "resourceType": "CommunicationRequest", + "status": "unknown", + "subject": { + "reference": "urn:uuid:78d3c2eb-009e-4ec8-a358-b042954aa9b2" + }, + "payload": [ + { + "contentReference": { + "reference": "urn:uuid:d0f003a0-8763-43d5-a264-ce52a38901c9", + "display": "List of Repeat Medications for re-ordering" + } + } + ], + "requester": { + "type": "Organization", + "identifier": { + "system": "https://fhir.nhs.uk/Id/ods-organization-code", + "value": "RBA" + }, + "display": "TAUNTON AND SOMERSET NHS FOUNDATION TRUST" + }, + "recipient": [ + { + "type": "Patient", + "identifier": { + "system": "https://fhir.nhs.uk/Id/nhs-number", + "value": "9453740519" + } + } + ] + } + }, + { + "fullUrl": "urn:uuid:d0f003a0-8763-43d5-a264-ce52a38901c9", + "resource": { + "resourceType": "List", + "status": "current", + "mode": "snapshot", + "code": { + "text": "Repeat Medications" + }, + "subject": { + "reference": "urn:uuid:78d3c2eb-009e-4ec8-a358-b042954aa9b2" + }, + "entry": [ + { + "item": { + "display": "Metformin 500mg tablets" + } + }, + { + "item": { + "display": "Aspirin 75mg dispersible tablets" + } + }, + { + "item": { + "display": "Simvastatin 40mg tablets" + } + }, + { + "item": { + "display": "Chloramphenicol 0.5% eye drops" + } + } + ] + } + } + ] +} diff --git a/src/test/resources/examples/full_examples/secondary-care/homecare/acute/nominated-pharmacy/concurrent-dosage-instructions/1-Prepare-Response-200_OK.json b/src/test/resources/examples/full_examples/secondary-care/homecare/acute/nominated-pharmacy/concurrent-dosage-instructions/1-Prepare-Response-200_OK.json new file mode 100644 index 00000000..a3863e23 --- /dev/null +++ b/src/test/resources/examples/full_examples/secondary-care/homecare/acute/nominated-pharmacy/concurrent-dosage-instructions/1-Prepare-Response-200_OK.json @@ -0,0 +1,17 @@ +{ + "resourceType": "Parameters", + "parameter": [ + { + "name": "digest", + "valueString": "PFNpZ25lZEluZm8geG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvMDkveG1sZHNpZyMiPjxDYW5vbmljYWxpemF0aW9uTWV0aG9kIEFsZ29yaXRobT0iaHR0cDovL3d3dy53My5vcmcvMjAwMS8xMC94bWwtZXhjLWMxNG4jIj48L0Nhbm9uaWNhbGl6YXRpb25NZXRob2Q+PFNpZ25hdHVyZU1ldGhvZCBBbGdvcml0aG09Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvMDkveG1sZHNpZyNyc2Etc2hhMSI+PC9TaWduYXR1cmVNZXRob2Q+PFJlZmVyZW5jZT48VHJhbnNmb3Jtcz48VHJhbnNmb3JtIEFsZ29yaXRobT0iaHR0cDovL3d3dy53My5vcmcvMjAwMS8xMC94bWwtZXhjLWMxNG4jIj48L1RyYW5zZm9ybT48L1RyYW5zZm9ybXM+PERpZ2VzdE1ldGhvZCBBbGdvcml0aG09Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvMDkveG1sZHNpZyNzaGExIj48L0RpZ2VzdE1ldGhvZD48RGlnZXN0VmFsdWU+SG1OSlJIOGhPbFhNNDU0MmtOVzF3M1pnQUtFPTwvRGlnZXN0VmFsdWU+PC9SZWZlcmVuY2U+PC9TaWduZWRJbmZvPg==" + }, + { + "name": "timestamp", + "valueString": "2023-04-12T15:52:10+00:00" + }, + { + "name": "algorithm", + "valueString": "RS1" + } + ] +} diff --git a/src/test/resources/examples/full_examples/secondary-care/homecare/acute/nominated-pharmacy/concurrent-dosage-instructions/1-Process-Request-Dispense-200_OK.json b/src/test/resources/examples/full_examples/secondary-care/homecare/acute/nominated-pharmacy/concurrent-dosage-instructions/1-Process-Request-Dispense-200_OK.json new file mode 100644 index 00000000..151ee3b9 --- /dev/null +++ b/src/test/resources/examples/full_examples/secondary-care/homecare/acute/nominated-pharmacy/concurrent-dosage-instructions/1-Process-Request-Dispense-200_OK.json @@ -0,0 +1,520 @@ +{ + "resourceType": "Bundle", + "id": "166f1103-3r67-73dw-7364-s395c4itv284", + "identifier": { + "system": "https://tools.ietf.org/html/rfc4122", + "value": "a22ad970-417c-4b0d-9c18-19a54761b478" + }, + "type": "message", + "entry": [ + { + "fullUrl": "urn:uuid:be807dac-9dcf-45cf-91d6-70d9d58dcf34", + "resource": { + "resourceType": "MessageHeader", + "eventCoding": { + "system": "https://fhir.nhs.uk/CodeSystem/message-event", + "code": "dispense-notification", + "display": "Dispense Notification" + }, + "destination": [ + { + "endpoint": "https://sandbox.api.service.nhs.uk/electronic-prescriptions/$post-message", + "receiver": { + "identifier": { + "system": "https://fhir.nhs.uk/Id/ods-organization-code", + "value": "T1450" + }, + "display": "NHS BUSINESS SERVICES AUTHORITY" + } + } + ], + "sender": { + "identifier": { + "system": "https://fhir.nhs.uk/Id/ods-organization-code", + "value": "VNCEL" + }, + "display": "YORKSHIRE HOMECARE LIMITED" + }, + "source": { + "name": "YORKSHIRE HOMECARE LIMITED", + "endpoint": "https://directory.spineservices.nhs.uk/STU3/Organization/VNCEL" + }, + "reason": { + "coding": [ + { + "system": "https://fhir.nhs.uk/CodeSystem/message-reason-prescription", + "code": "notification", + "display": "Notification" + } + ] + }, + "response": { + "identifier": "999f9999-9999-9999-9ff9-f9fff9999999", + "code": "ok" + }, + "focus": [ + { + "reference": "urn:uuid:4509b70d-d8b8-ea03-1105-64557cb54a29" + } + ] + } + }, + { + "fullUrl": "urn:uuid:4509b70d-d8b8-ea03-1105-64557cb54a29", + "resource": { + "resourceType": "MedicationDispense", + "contained": [ + { + "resourceType": "PractitionerRole", + "id": "performer", + "identifier": [ + { + "system": "https://fhir.nhs.uk/Id/sds-role-profile-id", + "value": "555086415105" + } + ], + "practitioner": { + "identifier": { + "system": "https://fhir.nhs.uk/Id/sds-user-id", + "value": "3415870201" + }, + "display": "Jackie Clark" + }, + "organization": { + "reference": "urn:uuid:2bf9f37c-d88b-4f86-ad5f-373c1416e04b" + }, + "code": [ + { + "coding": [ + { + "system": "https://fhir.nhs.uk/CodeSystem/NHSDigital-SDS-JobRoleCode", + "code": "S8000:G8000:R8000", + "display": "Clinical Practitioner Access Role" + } + ] + } + ], + "telecom": [ + { + "system": "phone", + "use": "work", + "value": "02380798431" + } + ] + }, + { + "resourceType": "MedicationRequest", + "id": "m1", + "extension": [ + { + "url": "https://fhir.nhs.uk/StructureDefinition/Extension-DM-PrescriptionType", + "valueCoding": { + "system": "https://fhir.nhs.uk/CodeSystem/prescription-type", + "code": "0101", + "display": "Primary Care Prescriber - Medical Prescriber" + } + } + ], + "identifier": [ + { + "system": "https://fhir.nhs.uk/Id/prescription-order-item-number", + "value": "04f9fde8-c218-4e7f-a97c-079187038485" + } + ], + "status": "active", + "intent": "order", + "category": [ + { + "coding": [ + { + "system": "http://terminology.hl7.org/CodeSystem/medicationrequest-category", + "code": "community", + "display": "Community" + } + ] + } + ], + "medicationCodeableConcept": { + "coding": [ + { + "system": "http://snomed.info/sct", + "code": "325427002", + "display": "Prednisolone 5mg tablets" + } + ] + }, + "subject": { + "reference": "urn:uuid:78d3c2eb-009e-4ec8-a358-b042954aa9b2" + }, + "authoredOn": "2022-11-21T11:37:15.572Z", + "requester": { + "reference": "urn:uuid:56166769-c1c4-4d07-afa8-132b5dfca666" + }, + "groupIdentifier": { + "system": "https://fhir.nhs.uk/Id/prescription-order-number", + "value": "561479-395879-521272", + "extension": [ + { + "url": "https://fhir.nhs.uk/StructureDefinition/Extension-DM-PrescriptionId", + "valueIdentifier": { + "system": "https://fhir.nhs.uk/Id/prescription", + "value": "9ee331b3-7f67-4120-9421-49369424fc6a" + } + } + ] + }, + "courseOfTherapyType": { + "coding": [ + { + "system": "http://terminology.hl7.org/CodeSystem/medicationrequest-course-of-therapy", + "code": "acute", + "display": "Short course (acute) therapy" + } + ] + }, + "dosageInstruction": [ + { + "sequence": 1, + "text": "2 tablets to be taken at 08:00 for two days. Take these tablets with or after food.", + "timing": { + "repeat": { + "boundsDuration": { + "value": 2, + "unit": "day", + "system": "http://unitsofmeasure.org", + "code": "d" + }, + "frequency": 1, + "period": 1, + "periodUnit": "d", + "timeOfDay": [ + "08:00:00" + ] + } + }, + "doseAndRate": [ + { + "doseQuantity": { + "value": 5, + "unit": "milligram", + "system": "http://unitsofmeasure.org", + "code": "mg" + } + } + ] + }, + { + "sequence": 1, + "text": "1 tablet to be taken at 17:00 for two days. Take these tablets with or after food.", + "timing": { + "repeat": { + "boundsDuration": { + "value": 2, + "unit": "day", + "system": "http://unitsofmeasure.org", + "code": "d" + }, + "frequency": 1, + "period": 1, + "periodUnit": "d", + "timeOfDay": [ + "17:00:00" + ] + } + }, + "doseAndRate": [ + { + "doseQuantity": { + "value": 5, + "unit": "milligram", + "system": "http://unitsofmeasure.org", + "code": "mg" + } + } + ] + }, + { + "sequence": 1, + "text": "1 tablet to be taken at 20:00 for two days. Take these tablets with or after food.", + "timing": { + "repeat": { + "boundsDuration": { + "value": 2, + "unit": "day", + "system": "http://unitsofmeasure.org", + "code": "d" + }, + "frequency": 1, + "period": 1, + "periodUnit": "d", + "timeOfDay": [ + "20:00:00" + ] + } + }, + "doseAndRate": [ + { + "doseQuantity": { + "value": 5, + "unit": "milligram", + "system": "http://unitsofmeasure.org", + "code": "mg" + } + } + ] + } + ], + "dispenseRequest": { + "extension": [ + { + "url": "https://fhir.nhs.uk/StructureDefinition/Extension-DM-PerformerSiteType", + "valueCoding": { + "system": "https://fhir.nhs.uk/CodeSystem/dispensing-site-preference", + "code": "P1" + } + } + ], + "quantity": { + "value": 8, + "unit": "tablet", + "system": "http://snomed.info/sct", + "code": "428673006" + }, + "validityPeriod": { + "start": "2022-10-20", + "end": "2023-03-20" + }, + "expectedSupplyDuration": { + "value": 30, + "unit": "day", + "system": "http://unitsofmeasure.org", + "code": "d" + }, + "performer": { + "identifier": { + "system": "https://fhir.nhs.uk/Id/ods-organization-code", + "value": "FK994" + } + } + }, + "substitution": { + "allowedBoolean": false + } + } + ], + "extension": [ + { + "url": "https://fhir.nhs.uk/StructureDefinition/Extension-EPS-TaskBusinessStatus", + "valueCoding": { + "system": "https://fhir.nhs.uk/CodeSystem/EPS-task-business-status", + "code": "0006", + "display": "Dispensed" + } + } + ], + "identifier": [ + { + "system": "https://fhir.nhs.uk/Id/prescription-dispense-item-number", + "value": "04f9fde8-c218-4e7f-a97c-079187038485" + } + ], + "status": "completed", + "medicationCodeableConcept": { + "coding": [ + { + "system": "http://snomed.info/sct", + "code": "325427002", + "display": "Prednisolone 5mg tablets" + } + ] + }, + "subject": { + "type": "Patient", + "identifier": { + "system": "https://fhir.nhs.uk/Id/nhs-number", + "value": "9449304106" + }, + "display": "MR ZACKERY NICODEMUS LEGASSICK" + }, + "performer": [ + { + "actor": { + "reference": "#performer" + } + } + ], + "authorizingPrescription": [ + { + "reference": "#m1" + } + ], + "type": { + "coding": [ + { + "system": "https://fhir.nhs.uk/CodeSystem/medicationdispense-type", + "code": "0001", + "display": "Item fully dispensed" + } + ] + }, + "quantity": { + "value": 8, + "unit": "tablets", + "system": "http://snomed.info/sct", + "code": "428673006" + }, + "whenHandedOver": "2021-05-07T14:47:29+00:00", + "dosageInstruction": [ + { + "sequence": 1, + "text": "2 tablets to be taken at 08:00 for two days. Take these tablets with or after food.", + "timing": { + "repeat": { + "boundsDuration": { + "value": 2, + "unit": "day", + "system": "http://unitsofmeasure.org", + "code": "d" + }, + "frequency": 1, + "period": 1, + "periodUnit": "d", + "timeOfDay": [ + "08:00:00" + ] + } + }, + "doseAndRate": [ + { + "doseQuantity": { + "value": 5, + "unit": "milligram", + "system": "http://unitsofmeasure.org", + "code": "mg" + } + } + ] + }, + { + "sequence": 1, + "text": "1 tablet to be taken at 17:00 for two days. Take these tablets with or after food.", + "timing": { + "repeat": { + "boundsDuration": { + "value": 2, + "unit": "day", + "system": "http://unitsofmeasure.org", + "code": "d" + }, + "frequency": 1, + "period": 1, + "periodUnit": "d", + "timeOfDay": [ + "17:00:00" + ] + } + }, + "doseAndRate": [ + { + "doseQuantity": { + "value": 5, + "unit": "milligram", + "system": "http://unitsofmeasure.org", + "code": "mg" + } + } + ] + }, + { + "sequence": 1, + "text": "1 tablet to be taken at 20:00 for two days. Take these tablets with or after food.", + "timing": { + "repeat": { + "boundsDuration": { + "value": 2, + "unit": "day", + "system": "http://unitsofmeasure.org", + "code": "d" + }, + "frequency": 1, + "period": 1, + "periodUnit": "d", + "timeOfDay": [ + "20:00:00" + ] + } + }, + "doseAndRate": [ + { + "doseQuantity": { + "value": 5, + "unit": "milligram", + "system": "http://unitsofmeasure.org", + "code": "mg" + } + } + ] + } + ] + } + }, + { + "fullUrl": "urn:uuid:2bf9f37c-d88b-4f86-ad5f-373c1416e04b", + "resource": { + "resourceType": "Organization", + "extension": [ + { + "url": "https://fhir.nhs.uk/StructureDefinition/Extension-ODS-OrganisationRelationships", + "extension": [ + { + "url": "reimbursementAuthority", + "valueIdentifier": { + "system": "https://fhir.nhs.uk/Id/ods-organization-code", + "value": "T1450" + } + } + ] + } + ], + "identifier": [ + { + "system": "https://fhir.nhs.uk/Id/ods-organization-code", + "value": "VNE51" + } + ], + "address": [ + { + "city": "West Yorkshire", + "use": "work", + "line": [ + "17 Austhorpe Road", + "Crossgates", + "Leeds" + ], + "postalCode": "LS15 8BA" + } + ], + "active": true, + "type": [ + { + "coding": [ + { + "system": "https://fhir.nhs.uk/CodeSystem/organisation-role", + "code": "182", + "display": "PHARMACY" + } + ] + } + ], + "name": "The Simple Pharmacy", + "telecom": [ + { + "system": "phone", + "use": "work", + "value": "0113 3180277" + } + ] + } + } + ] +} diff --git a/src/test/resources/examples/full_examples/secondary-care/homecare/acute/nominated-pharmacy/concurrent-dosage-instructions/1-Process-Request-Send-200_OK.json b/src/test/resources/examples/full_examples/secondary-care/homecare/acute/nominated-pharmacy/concurrent-dosage-instructions/1-Process-Request-Send-200_OK.json new file mode 100644 index 00000000..0ae5ddd5 --- /dev/null +++ b/src/test/resources/examples/full_examples/secondary-care/homecare/acute/nominated-pharmacy/concurrent-dosage-instructions/1-Process-Request-Send-200_OK.json @@ -0,0 +1,582 @@ +{ + "resourceType": "Bundle", + "id": "a54219b8-f741-4c47-b662-e4f8dfa49ab5", + "identifier": { + "system": "https://tools.ietf.org/html/rfc4122", + "value": "ea66ee9d-a981-432f-8c27-6907cbd99219" + }, + "type": "message", + "entry": [ + { + "fullUrl": "urn:uuid:a54219b8-f741-4c47-b662-e4f8dfa49ab5", + "resource": { + "resourceType": "MessageHeader", + "id": "3599c0e9-9292-413e-9270-9a1ef1ead99c", + "eventCoding": { + "system": "https://fhir.nhs.uk/CodeSystem/message-event", + "code": "prescription-order", + "display": "Prescription Order" + }, + "sender": { + "identifier": { + "system": "https://fhir.nhs.uk/Id/ods-organization-code", + "value": "RBA" + }, + "reference": "urn:uuid:56166769-c1c4-4d07-afa8-132b5dfca666", + "display": "RAZIA|ALI" + }, + "source": { + "endpoint": "https://directory.spineservices.nhs.uk/STU3/Organization/RBA" + }, + "destination": [ + { + "endpoint": "https://sandbox.api.service.nhs.uk/electronic-prescriptions/$post-message", + "receiver": { + "identifier": { + "system": "https://fhir.nhs.uk/Id/ods-organization-code", + "value": "X26" + } + } + } + ], + "focus": [ + { + "reference": "urn:uuid:78d3c2eb-009e-4ec8-a358-b042954aa9b2" + }, + { + "reference": "urn:uuid:fa3037a0-1862-4d4b-8564-2472b5e398f2" + }, + { + "reference": "urn:uuid:51793ac0-112f-46c7-a891-9af8cefb206e" + } + ] + } + }, + { + "fullUrl": "urn:uuid:fa3037a0-1862-4d4b-8564-2472b5e398f2", + "resource": { + "resourceType": "MedicationRequest", + "medicationCodeableConcept": { + "coding": [ + { + "system": "http://snomed.info/sct", + "code": "325427002", + "display": "Prednisolone 5mg tablets" + } + ] + }, + "extension": [ + { + "url": "https://fhir.nhs.uk/StructureDefinition/Extension-DM-PrescriptionType", + "valueCoding": { + "system": "https://fhir.nhs.uk/CodeSystem/prescription-type", + "code": "0101", + "display": "Primary Care Prescriber - Medical Prescriber" + } + } + ], + "identifier": [ + { + "system": "https://fhir.nhs.uk/Id/prescription-order-item-number", + "value": "04f9fde8-c218-4e7f-a97c-079187038485" + } + ], + "status": "active", + "intent": "order", + "subject": { + "reference": "urn:uuid:78d3c2eb-009e-4ec8-a358-b042954aa9b2" + }, + "category": [ + { + "coding": [ + { + "system": "http://terminology.hl7.org/CodeSystem/medicationrequest-category", + "code": "community", + "display": "Community" + } + ] + } + ], + "requester": { + "reference": "urn:uuid:56166769-c1c4-4d07-afa8-132b5dfca666" + }, + "groupIdentifier": { + "system": "https://fhir.nhs.uk/Id/prescription-order-number", + "value": "561479-395879-521272", + "extension": [ + { + "url": "https://fhir.nhs.uk/StructureDefinition/Extension-DM-PrescriptionId", + "valueIdentifier": { + "system": "https://fhir.nhs.uk/Id/prescription", + "value": "9ee331b3-7f67-4120-9421-49369424fc6a" + } + } + ] + }, + "courseOfTherapyType": { + "coding": [ + { + "system": "http://terminology.hl7.org/CodeSystem/medicationrequest-course-of-therapy", + "code": "acute", + "display": "Short course (acute) therapy" + } + ] + }, + "dosageInstruction": [ + { + "sequence": 1, + "text": "2 tablets to be taken at 08:00 for two days. Take these tablets with or after food.", + "timing": { + "repeat": { + "boundsDuration": { + "value": 2, + "unit": "day", + "system": "http://unitsofmeasure.org", + "code": "d" + }, + "frequency": 1, + "period": 1, + "periodUnit": "d", + "timeOfDay": [ + "08:00:00" + ] + } + }, + "doseAndRate": [ + { + "doseQuantity": { + "value": 5, + "unit": "milligram", + "system": "http://unitsofmeasure.org", + "code": "mg" + } + } + ] + }, + { + "sequence": 1, + "text": "1 tablet to be taken at 17:00 for two days. Take these tablets with or after food.", + "timing": { + "repeat": { + "boundsDuration": { + "value": 2, + "unit": "day", + "system": "http://unitsofmeasure.org", + "code": "d" + }, + "frequency": 1, + "period": 1, + "periodUnit": "d", + "timeOfDay": [ + "17:00:00" + ] + } + }, + "doseAndRate": [ + { + "doseQuantity": { + "value": 5, + "unit": "milligram", + "system": "http://unitsofmeasure.org", + "code": "mg" + } + } + ] + }, + { + "sequence": 1, + "text": "1 tablet to be taken at 20:00 for two days. Take these tablets with or after food.", + "timing": { + "repeat": { + "boundsDuration": { + "value": 2, + "unit": "day", + "system": "http://unitsofmeasure.org", + "code": "d" + }, + "frequency": 1, + "period": 1, + "periodUnit": "d", + "timeOfDay": [ + "20:00:00" + ] + } + }, + "doseAndRate": [ + { + "doseQuantity": { + "value": 5, + "unit": "milligram", + "system": "http://unitsofmeasure.org", + "code": "mg" + } + } + ] + } + ], + "dispenseRequest": { + "extension": [ + { + "url": "https://fhir.nhs.uk/StructureDefinition/Extension-DM-PerformerSiteType", + "valueCoding": { + "system": "https://fhir.nhs.uk/CodeSystem/dispensing-site-preference", + "code": "P1" + } + } + ], + "quantity": { + "value": 8, + "unit": "tablet", + "system": "http://snomed.info/sct", + "code": "428673006" + }, + "validityPeriod": { + "start": "2022-10-20", + "end": "2023-03-20" + }, + "expectedSupplyDuration": { + "value": 30, + "unit": "day", + "system": "http://unitsofmeasure.org", + "code": "d" + }, + "performer": { + "identifier": { + "system": "https://fhir.nhs.uk/Id/ods-organization-code", + "value": "FK994" + } + } + }, + "substitution": { + "allowedBoolean": false + } + } + }, + { + "fullUrl": "urn:uuid:78d3c2eb-009e-4ec8-a358-b042954aa9b2", + "resource": { + "resourceType": "Patient", + "identifier": [ + { + "system": "https://fhir.nhs.uk/Id/nhs-number", + "value": "9449304106" + } + ], + "name": [ + { + "use": "usual", + "family": "LEGASSICK", + "given": [ + "NICODEMUS", + "ZACKERY" + ], + "prefix": [ + "MR" + ] + } + ], + "gender": "male", + "birthDate": "1994-03-19", + "address": [ + { + "use": "home", + "line": [ + "11 LITTLEHEATH LANE", + "COBHAM", + "SURREY" + ], + "postalCode": "KT11 2QG" + } + ], + "generalPractitioner": [ + { + "identifier": { + "system": "https://fhir.nhs.uk/Id/ods-organization-code", + "value": "B81001" + } + } + ] + } + }, + { + "fullUrl": "urn:uuid:56166769-c1c4-4d07-afa8-132b5dfca666", + "resource": { + "resourceType": "PractitionerRole", + "id": "56166769-c1c4-4d07-afa8-132b5dfca666", + "identifier": [ + { + "system": "https://fhir.nhs.uk/Id/sds-role-profile-id", + "value": "100102238986" + } + ], + "practitioner": { + "reference": "urn:uuid:a8c85454-f8cb-498d-9629-78e2cb5fa47a" + }, + "organization": { + "reference": "urn:uuid:3b4b03a5-52ba-4ba6-9b82-70350aa109d8" + }, + "code": [ + { + "coding": [ + { + "system": "https://fhir.nhs.uk/CodeSystem/NHSDigital-SDS-JobRoleCode", + "code": "S8000:G8000:R8000", + "display": "Clinical Practitioner Access Role" + } + ] + } + ], + "telecom": [ + { + "system": "phone", + "value": "01234567890", + "use": "work" + } + ] + } + }, + { + "fullUrl": "urn:uuid:a8c85454-f8cb-498d-9629-78e2cb5fa47a", + "resource": { + "resourceType": "Practitioner", + "id": "a8c85454-f8cb-498d-9629-78e2cb5fa47a", + "identifier": [ + { + "system": "https://fhir.nhs.uk/Id/sds-user-id", + "value": "7020134158" + }, + { + "system": "https://fhir.hl7.org.uk/Id/gmc-number", + "value": "G9999999" + }, + { + "system": "https://fhir.hl7.org.uk/Id/din-number", + "value": "70201123456" + } + ], + "name": [ + { + "family": "Edwards", + "given": [ + "Thomas" + ], + "prefix": [ + "DR" + ] + } + ] + } + }, + { + "fullUrl": "urn:uuid:3b4b03a5-52ba-4ba6-9b82-70350aa109d8", + "resource": { + "resourceType": "Organization", + "id": "3b4b03a5-52ba-4ba6-9b82-70350aa109d8", + "identifier": [ + { + "system": "https://fhir.nhs.uk/Id/ods-organization-code", + "value": "RBA" + } + ], + "type": [ + { + "coding": [ + { + "system": "https://fhir.nhs.uk/CodeSystem/organisation-role", + "code": "197", + "display": "NHS TRUST" + } + ] + } + ], + "name": "TAUNTON AND SOMERSET NHS FOUNDATION TRUST", + "address": [ + { + "line": [ + "MUSGROVE PARK HOSPITAL", + "PARKFIELD DRIVE", + "TAUNTON" + ], + "postalCode": "TA1 5DA" + } + ], + "telecom": [ + { + "system": "phone", + "value": "01823333444", + "use": "work" + } + ], + "partOf": { + "identifier": { + "system": "https://fhir.nhs.uk/Id/ods-organization-code", + "value": "RBA" + }, + "display": "TAUNTON AND SOMERSET NHS FOUNDATION TRUST" + } + } + }, + { + "fullUrl": "urn:uuid:54b0506d-49af-4245-9d40-d7d64902055e", + "resource": { + "resourceType": "HealthcareService", + "id": "54b0506d-49af-4245-9d40-d7d64902055e", + "identifier": [ + { + "use": "usual", + "system": "https://fhir.nhs.uk/Id/ods-organization-code", + "value": "A99968" + } + ], + "active": true, + "providedBy": { + "identifier": { + "system": "https://fhir.nhs.uk/Id/ods-organization-code", + "value": "RBA" + } + }, + "location": [ + { + "reference": "urn:uuid:8a5d7d67-64fb-44ec-9802-2dc214bb3dcb" + } + ], + "name": "SOMERSET BOWEL CANCER SCREENING CENTRE", + "telecom": [ + { + "system": "phone", + "value": "01823 333444", + "use": "work" + } + ] + } + }, + { + "fullUrl": "urn:uuid:8a5d7d67-64fb-44ec-9802-2dc214bb3dcb", + "resource": { + "resourceType": "Location", + "id": "8a5d7d67-64fb-44ec-9802-2dc214bb3dcb", + "identifier": [ + { + "value": "10008800708" + } + ], + "status": "active", + "mode": "instance", + "address": { + "use": "work", + "line": [ + "MUSGROVE PARK HOSPITAL" + ], + "city": "TAUNTON", + "postalCode": "TA1 5DA" + } + } + }, + { + "fullUrl": "urn:uuid:51793ac0-112f-46c7-a891-9af8cefb206e", + "resource": { + "resourceType": "CommunicationRequest", + "status": "unknown", + "subject": { + "reference": "urn:uuid:78d3c2eb-009e-4ec8-a358-b042954aa9b2" + }, + "payload": [ + { + "contentReference": { + "reference": "urn:uuid:d0f003a0-8763-43d5-a264-ce52a38901c9", + "display": "List of Repeat Medications for re-ordering" + } + } + ], + "requester": { + "type": "Organization", + "identifier": { + "system": "https://fhir.nhs.uk/Id/ods-organization-code", + "value": "RBA" + }, + "display": "TAUNTON AND SOMERSET NHS FOUNDATION TRUST" + }, + "recipient": [ + { + "type": "Patient", + "identifier": { + "system": "https://fhir.nhs.uk/Id/nhs-number", + "value": "9453740519" + } + } + ] + } + }, + { + "fullUrl": "urn:uuid:d0f003a0-8763-43d5-a264-ce52a38901c9", + "resource": { + "resourceType": "List", + "status": "current", + "mode": "snapshot", + "code": { + "text": "Repeat Medications" + }, + "subject": { + "reference": "urn:uuid:78d3c2eb-009e-4ec8-a358-b042954aa9b2" + }, + "entry": [ + { + "item": { + "display": "Metformin 500mg tablets" + } + }, + { + "item": { + "display": "Aspirin 75mg dispersible tablets" + } + }, + { + "item": { + "display": "Simvastatin 40mg tablets" + } + }, + { + "item": { + "display": "Chloramphenicol 0.5% eye drops" + } + } + ] + } + }, + { + "fullUrl": "urn:uuid:28828c55-8fa7-42d7-916f-fcf076e0c10e", + "resource": { + "resourceType": "Provenance", + "id": "28828c55-8fa7-42d7-916f-fcf076e0c10e", + "target": [ + { + "reference": "urn:uuid:fa3037a0-1862-4d4b-8564-2472b5e398f2" + } + ], + "recorded": "2008-02-27T11:38:00+00:00", + "agent": [ + { + "who": { + "reference": "urn:uuid:56166769-c1c4-4d07-afa8-132b5dfca666" + } + } + ], + "signature": [ + { + "type": [ + { + "system": "urn:iso-astm:E1762-95:2013", + "code": "1.2.840.10065.1.12.1.1" + } + ], + "when": "2021-05-07T14:47:30+00:00", + "who": { + "reference": "urn:uuid:56166769-c1c4-4d07-afa8-132b5dfca666" + }, + "data": "PFNpZ25lZEluZm8geG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvMDkveG1sZHNpZyMiPjxDYW5vbmljYWxpemF0aW9uTWV0aG9kIEFsZ29yaXRobT0iaHR0cDovL3d3dy53My5vcmcvMjAwMS8xMC94bWwtZXhjLWMxNG4jIj48L0Nhbm9uaWNhbGl6YXRpb25NZXRob2Q+PFNpZ25hdHVyZU1ldGhvZCBBbGdvcml0aG09Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvMDkveG1sZHNpZyNyc2Etc2hhMSI+PC9TaWduYXR1cmVNZXRob2Q+PFJlZmVyZW5jZT48VHJhbnNmb3Jtcz48VHJhbnNmb3JtIEFsZ29yaXRobT0iaHR0cDovL3d3dy53My5vcmcvMjAwMS8xMC94bWwtZXhjLWMxNG4jIj48L1RyYW5zZm9ybT48L1RyYW5zZm9ybXM+PERpZ2VzdE1ldGhvZCBBbGdvcml0aG09Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvMDkveG1sZHNpZyNzaGExIj48L0RpZ2VzdE1ldGhvZD48RGlnZXN0VmFsdWU+cVluQlRMSC8zWTFqbk04K2tmcEdrT1l5WUJvPTwvRGlnZXN0VmFsdWU+PC9SZWZlcmVuY2U+PC9TaWduZWRJbmZvPg==" + } + ] + } + } + ] +} diff --git a/src/test/resources/examples/full_examples/secondary-care/homecare/acute/nominated-pharmacy/concurrent-dosage-instructions/1-Task-Request-Release-200_OK.json b/src/test/resources/examples/full_examples/secondary-care/homecare/acute/nominated-pharmacy/concurrent-dosage-instructions/1-Task-Request-Release-200_OK.json new file mode 100644 index 00000000..f7db4a56 --- /dev/null +++ b/src/test/resources/examples/full_examples/secondary-care/homecare/acute/nominated-pharmacy/concurrent-dosage-instructions/1-Task-Request-Release-200_OK.json @@ -0,0 +1,100 @@ +{ + "resourceType": "Parameters", + "id": "626f5d75-4f56-438a-b13d-656f1030bcd7", + "parameter": [ + { + "name": "owner", + "resource": { + "resourceType": "Organization", + "id": "organization", + "identifier": [ + { + "system": "https://fhir.nhs.uk/Id/ods-organization-code", + "value": "VNE51" + } + ], + "address": [ + { + "city": "West Yorkshire", + "use": "work", + "line": [ + "17 Austhorpe Road", + "Crossgates", + "Leeds" + ], + "postalCode": "LS15 8BA" + } + ], + "active": true, + "type": [ + { + "coding": [ + { + "system": "https://fhir.nhs.uk/CodeSystem/organisation-role", + "code": "182", + "display": "PHARMACY" + } + ] + } + ], + "name": "The Simple Pharmacy", + "telecom": [ + { + "system": "phone", + "use": "work", + "value": "0113 3180277" + } + ] + } + }, + { + "name": "status", + "valueCode": "accepted" + }, + { + "name": "agent", + "resource": { + "resourceType": "PractitionerRole", + "id": "16708936-6397-4e03-b84f-4aaa790633e0", + "identifier": [ + { + "system": "https://fhir.nhs.uk/Id/sds-role-profile-id", + "value": "555086415105" + } + ], + "practitioner": { + "identifier": { + "system": "https://fhir.nhs.uk/Id/sds-user-id", + "value": "3415870201" + }, + "display": "Jackie Clark" + }, + "code": [ + { + "coding": [ + { + "system": "https://fhir.nhs.uk/CodeSystem/NHSDigital-SDS-JobRoleCode", + "code": "S8000:G8000:R8000", + "display": "Clinical Practitioner Access Role" + } + ] + } + ], + "telecom": [ + { + "system": "phone", + "value": "02380798431", + "use": "work" + } + ] + } + }, + { + "name": "group-identifier", + "valueIdentifier": { + "system": "https://fhir.nhs.uk/Id/prescription-order-number", + "value": "561479-395879-521272" + } + } + ] +} diff --git a/src/test/resources/examples/full_examples/secondary-care/homecare/acute/nominated-pharmacy/consecutive-and-concurrent-dosage-instructions/1-Prepare-Request-200_OK.json b/src/test/resources/examples/full_examples/secondary-care/homecare/acute/nominated-pharmacy/consecutive-and-concurrent-dosage-instructions/1-Prepare-Request-200_OK.json new file mode 100644 index 00000000..ae16391b --- /dev/null +++ b/src/test/resources/examples/full_examples/secondary-care/homecare/acute/nominated-pharmacy/consecutive-and-concurrent-dosage-instructions/1-Prepare-Request-200_OK.json @@ -0,0 +1,545 @@ +{ + "resourceType": "Bundle", + "id": "ecb29fe1-d2bc-40e3-9279-702c210c3c51", + "identifier": { + "system": "https://tools.ietf.org/html/rfc4122", + "value": "28efc4e6-73e7-4f91-bc9f-ac587dbd3ec5" + }, + "type": "message", + "entry": [ + { + "fullUrl": "urn:uuid:ecb29fe1-d2bc-40e3-9279-702c210c3c51", + "resource": { + "resourceType": "MessageHeader", + "id": "98a36144-f781-4ed0-bae7-34ef58ccce15", + "eventCoding": { + "system": "https://fhir.nhs.uk/CodeSystem/message-event", + "code": "prescription-order", + "display": "Prescription Order" + }, + "sender": { + "identifier": { + "system": "https://fhir.nhs.uk/Id/ods-organization-code", + "value": "RBA" + }, + "reference": "urn:uuid:56166769-c1c4-4d07-afa8-132b5dfca666", + "display": "RAZIA|ALI" + }, + "source": { + "endpoint": "https://directory.spineservices.nhs.uk/STU3/Organization/RBA" + }, + "destination": [ + { + "endpoint": "https://sandbox.api.service.nhs.uk/electronic-prescriptions/$post-message", + "receiver": { + "identifier": { + "system": "https://fhir.nhs.uk/Id/ods-organization-code", + "value": "X26" + } + } + } + ], + "focus": [ + { + "reference": "urn:uuid:78d3c2eb-009e-4ec8-a358-b042954aa9b2" + }, + { + "reference": "urn:uuid:b3edb17a-1fb6-4c47-af0d-459d6d6d3896" + }, + { + "reference": "urn:uuid:51793ac0-112f-46c7-a891-9af8cefb206e" + } + ] + } + }, + { + "fullUrl": "urn:uuid:b3edb17a-1fb6-4c47-af0d-459d6d6d3896", + "resource": { + "resourceType": "MedicationRequest", + "id": "b3edb17a-1fb6-4c47-af0d-459d6d6d3896", + "medicationCodeableConcept": { + "coding": [ + { + "system": "http://snomed.info/sct", + "code": "325427002", + "display": "Prednisolone 5mg tablets" + } + ] + }, + "extension": [ + { + "url": "https://fhir.nhs.uk/StructureDefinition/Extension-DM-PrescriptionType", + "valueCoding": { + "system": "https://fhir.nhs.uk/CodeSystem/prescription-type", + "code": "0101", + "display": "Primary Care Prescriber - Medical Prescriber" + } + } + ], + "identifier": [ + { + "system": "https://fhir.nhs.uk/Id/prescription-order-item-number", + "value": "b3edb17a-1fb6-4c47-af0d-459d6d6d3896" + } + ], + "status": "active", + "intent": "order", + "subject": { + "reference": "urn:uuid:78d3c2eb-009e-4ec8-a358-b042954aa9b2" + }, + "category": [ + { + "coding": [ + { + "system": "http://terminology.hl7.org/CodeSystem/medicationrequest-category", + "code": "community", + "display": "Community" + } + ] + } + ], + "requester": { + "reference": "urn:uuid:56166769-c1c4-4d07-afa8-132b5dfca666" + }, + "groupIdentifier": { + "system": "https://fhir.nhs.uk/Id/prescription-order-number", + "value": "887228-510420-124913", + "extension": [ + { + "url": "https://fhir.nhs.uk/StructureDefinition/Extension-DM-PrescriptionId", + "valueIdentifier": { + "system": "https://fhir.nhs.uk/Id/prescription", + "value": "40A4D7A0-1FC1-4004-97E5-A0985F8E8F4C" + } + } + ] + }, + "courseOfTherapyType": { + "coding": [ + { + "system": "http://terminology.hl7.org/CodeSystem/medicationrequest-course-of-therapy", + "code": "acute", + "display": "Short course (acute) therapy" + } + ] + }, + "dosageInstruction": [ + { + "sequence": 1, + "text": "2 tablets to be taken at 08:00 for two days. Take these tablets with or after food.", + "timing": { + "repeat": { + "boundsDuration": { + "value": 2, + "unit": "day", + "system": "http://unitsofmeasure.org", + "code": "d" + }, + "frequency": 1, + "period": 1, + "periodUnit": "d", + "timeOfDay": [ + "08:00:00" + ] + } + }, + "doseAndRate": [ + { + "doseQuantity": { + "value": 5, + "unit": "milligram", + "system": "http://unitsofmeasure.org", + "code": "mg" + } + } + ] + }, + { + "sequence": 1, + "text": "1 tablet to be taken at 17:00 for two days. Take these tablets with or after food.", + "timing": { + "repeat": { + "boundsDuration": { + "value": 2, + "unit": "day", + "system": "http://unitsofmeasure.org", + "code": "d" + }, + "frequency": 1, + "period": 1, + "periodUnit": "d", + "timeOfDay": [ + "17:00:00" + ] + } + }, + "doseAndRate": [ + { + "doseQuantity": { + "value": 5, + "unit": "milligram", + "system": "http://unitsofmeasure.org", + "code": "mg" + } + } + ] + }, + { + "sequence": 2, + "text": "1 tablet to be taken DAILY for two days. Take these tablets with or after food.", + "timing": { + "repeat": { + "boundsDuration": { + "value": 2, + "unit": "day", + "system": "http://unitsofmeasure.org", + "code": "d" + }, + "frequency": 1, + "period": 1, + "periodUnit": "d" + } + }, + "doseAndRate": [ + { + "doseQuantity": { + "value": 5, + "unit": "milligram", + "system": "http://unitsofmeasure.org", + "code": "mg" + } + } + ] + } + ], + "dispenseRequest": { + "extension": [ + { + "url": "https://fhir.nhs.uk/StructureDefinition/Extension-DM-PerformerSiteType", + "valueCoding": { + "system": "https://fhir.nhs.uk/CodeSystem/dispensing-site-preference", + "code": "P1" + } + } + ], + "quantity": { + "value": 8, + "unit": "tablet", + "system": "http://snomed.info/sct", + "code": "428673006" + }, + "validityPeriod": { + "start": "2022-10-20", + "end": "2023-03-20" + }, + "expectedSupplyDuration": { + "value": 30, + "unit": "day", + "system": "http://unitsofmeasure.org", + "code": "d" + }, + "performer": { + "identifier": { + "system": "https://fhir.nhs.uk/Id/ods-organization-code", + "value": "FK994" + } + } + }, + "substitution": { + "allowedBoolean": false + } + } + }, + { + "fullUrl": "urn:uuid:78d3c2eb-009e-4ec8-a358-b042954aa9b2", + "resource": { + "resourceType": "Patient", + "identifier": [ + { + "system": "https://fhir.nhs.uk/Id/nhs-number", + "value": "9449304106" + } + ], + "name": [ + { + "use": "usual", + "family": "LEGASSICK", + "given": [ + "NICODEMUS", + "ZACKERY" + ], + "prefix": [ + "MR" + ] + } + ], + "gender": "male", + "birthDate": "1994-03-19", + "address": [ + { + "use": "home", + "line": [ + "11 LITTLEHEATH LANE", + "COBHAM", + "SURREY" + ], + "postalCode": "KT11 2QG" + } + ], + "generalPractitioner": [ + { + "identifier": { + "system": "https://fhir.nhs.uk/Id/ods-organization-code", + "value": "B81001" + } + } + ] + } + }, + { + "fullUrl": "urn:uuid:56166769-c1c4-4d07-afa8-132b5dfca666", + "resource": { + "resourceType": "PractitionerRole", + "id": "56166769-c1c4-4d07-afa8-132b5dfca666", + "identifier": [ + { + "system": "https://fhir.nhs.uk/Id/sds-role-profile-id", + "value": "100102238986" + } + ], + "practitioner": { + "reference": "urn:uuid:a8c85454-f8cb-498d-9629-78e2cb5fa47a" + }, + "organization": { + "reference": "urn:uuid:3b4b03a5-52ba-4ba6-9b82-70350aa109d8" + }, + "code": [ + { + "coding": [ + { + "system": "https://fhir.nhs.uk/CodeSystem/NHSDigital-SDS-JobRoleCode", + "code": "S8000:G8000:R8000", + "display": "Clinical Practitioner Access Role" + } + ] + } + ], + "telecom": [ + { + "system": "phone", + "value": "01234567890", + "use": "work" + } + ] + } + }, + { + "fullUrl": "urn:uuid:a8c85454-f8cb-498d-9629-78e2cb5fa47a", + "resource": { + "resourceType": "Practitioner", + "id": "a8c85454-f8cb-498d-9629-78e2cb5fa47a", + "identifier": [ + { + "system": "https://fhir.nhs.uk/Id/sds-user-id", + "value": "7020134158" + }, + { + "system": "https://fhir.hl7.org.uk/Id/gmc-number", + "value": "G9999999" + }, + { + "system": "https://fhir.hl7.org.uk/Id/din-number", + "value": "70201123456" + } + ], + "name": [ + { + "family": "Edwards", + "given": [ + "Thomas" + ], + "prefix": [ + "DR" + ] + } + ] + } + }, + { + "fullUrl": "urn:uuid:3b4b03a5-52ba-4ba6-9b82-70350aa109d8", + "resource": { + "resourceType": "Organization", + "id": "3b4b03a5-52ba-4ba6-9b82-70350aa109d8", + "identifier": [ + { + "system": "https://fhir.nhs.uk/Id/ods-organization-code", + "value": "RBA" + } + ], + "type": [ + { + "coding": [ + { + "system": "https://fhir.nhs.uk/CodeSystem/organisation-role", + "code": "197", + "display": "NHS TRUST" + } + ] + } + ], + "name": "TAUNTON AND SOMERSET NHS FOUNDATION TRUST", + "address": [ + { + "line": [ + "MUSGROVE PARK HOSPITAL", + "PARKFIELD DRIVE", + "TAUNTON" + ], + "postalCode": "TA1 5DA" + } + ], + "telecom": [ + { + "system": "phone", + "value": "01823333444", + "use": "work" + } + ], + "partOf": { + "identifier": { + "system": "https://fhir.nhs.uk/Id/ods-organization-code", + "value": "RBA" + }, + "display": "TAUNTON AND SOMERSET NHS FOUNDATION TRUST" + } + } + }, + { + "fullUrl": "urn:uuid:54b0506d-49af-4245-9d40-d7d64902055e", + "resource": { + "resourceType": "HealthcareService", + "id": "54b0506d-49af-4245-9d40-d7d64902055e", + "identifier": [ + { + "use": "usual", + "system": "https://fhir.nhs.uk/Id/ods-organization-code", + "value": "A99968" + } + ], + "active": true, + "providedBy": { + "identifier": { + "system": "https://fhir.nhs.uk/Id/ods-organization-code", + "value": "RBA" + } + }, + "location": [ + { + "reference": "urn:uuid:8a5d7d67-64fb-44ec-9802-2dc214bb3dcb" + } + ], + "name": "SOMERSET BOWEL CANCER SCREENING CENTRE", + "telecom": [ + { + "system": "phone", + "value": "01823 333444", + "use": "work" + } + ] + } + }, + { + "fullUrl": "urn:uuid:8a5d7d67-64fb-44ec-9802-2dc214bb3dcb", + "resource": { + "resourceType": "Location", + "id": "8a5d7d67-64fb-44ec-9802-2dc214bb3dcb", + "identifier": [ + { + "value": "10008800708" + } + ], + "status": "active", + "mode": "instance", + "address": { + "use": "work", + "line": [ + "MUSGROVE PARK HOSPITAL" + ], + "city": "TAUNTON", + "postalCode": "TA1 5DA" + } + } + }, + { + "fullUrl": "urn:uuid:51793ac0-112f-46c7-a891-9af8cefb206e", + "resource": { + "resourceType": "CommunicationRequest", + "status": "unknown", + "subject": { + "reference": "urn:uuid:78d3c2eb-009e-4ec8-a358-b042954aa9b2" + }, + "payload": [ + { + "contentReference": { + "reference": "urn:uuid:d0f003a0-8763-43d5-a264-ce52a38901c9", + "display": "List of Repeat Medications for re-ordering" + } + } + ], + "requester": { + "type": "Organization", + "identifier": { + "system": "https://fhir.nhs.uk/Id/ods-organization-code", + "value": "RBA" + }, + "display": "TAUNTON AND SOMERSET NHS FOUNDATION TRUST" + }, + "recipient": [ + { + "type": "Patient", + "identifier": { + "system": "https://fhir.nhs.uk/Id/nhs-number", + "value": "9453740519" + } + } + ] + } + }, + { + "fullUrl": "urn:uuid:d0f003a0-8763-43d5-a264-ce52a38901c9", + "resource": { + "resourceType": "List", + "status": "current", + "mode": "snapshot", + "code": { + "text": "Repeat Medications" + }, + "subject": { + "reference": "urn:uuid:78d3c2eb-009e-4ec8-a358-b042954aa9b2" + }, + "entry": [ + { + "item": { + "display": "Metformin 500mg tablets" + } + }, + { + "item": { + "display": "Aspirin 75mg dispersible tablets" + } + }, + { + "item": { + "display": "Simvastatin 40mg tablets" + } + }, + { + "item": { + "display": "Chloramphenicol 0.5% eye drops" + } + } + ] + } + } + ] +} diff --git a/src/test/resources/examples/full_examples/secondary-care/homecare/acute/nominated-pharmacy/consecutive-and-concurrent-dosage-instructions/1-Prepare-Response-200_OK.json b/src/test/resources/examples/full_examples/secondary-care/homecare/acute/nominated-pharmacy/consecutive-and-concurrent-dosage-instructions/1-Prepare-Response-200_OK.json new file mode 100644 index 00000000..8a322579 --- /dev/null +++ b/src/test/resources/examples/full_examples/secondary-care/homecare/acute/nominated-pharmacy/consecutive-and-concurrent-dosage-instructions/1-Prepare-Response-200_OK.json @@ -0,0 +1,17 @@ +{ + "resourceType": "Parameters", + "parameter": [ + { + "name": "digest", + "valueString": "PFNpZ25lZEluZm8geG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvMDkveG1sZHNpZyMiPjxDYW5vbmljYWxpemF0aW9uTWV0aG9kIEFsZ29yaXRobT0iaHR0cDovL3d3dy53My5vcmcvMjAwMS8xMC94bWwtZXhjLWMxNG4jIj48L0Nhbm9uaWNhbGl6YXRpb25NZXRob2Q+PFNpZ25hdHVyZU1ldGhvZCBBbGdvcml0aG09Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvMDkveG1sZHNpZyNyc2Etc2hhMSI+PC9TaWduYXR1cmVNZXRob2Q+PFJlZmVyZW5jZT48VHJhbnNmb3Jtcz48VHJhbnNmb3JtIEFsZ29yaXRobT0iaHR0cDovL3d3dy53My5vcmcvMjAwMS8xMC94bWwtZXhjLWMxNG4jIj48L1RyYW5zZm9ybT48L1RyYW5zZm9ybXM+PERpZ2VzdE1ldGhvZCBBbGdvcml0aG09Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvMDkveG1sZHNpZyNzaGExIj48L0RpZ2VzdE1ldGhvZD48RGlnZXN0VmFsdWU+YzZGdXdhaEJKVGVsUkhzSEZiVVl2YS90WXpVPTwvRGlnZXN0VmFsdWU+PC9SZWZlcmVuY2U+PC9TaWduZWRJbmZvPg==" + }, + { + "name": "timestamp", + "valueString": "2023-04-12T15:52:10+00:00" + }, + { + "name": "algorithm", + "valueString": "RS1" + } + ] +} diff --git a/src/test/resources/examples/full_examples/secondary-care/homecare/acute/nominated-pharmacy/consecutive-and-concurrent-dosage-instructions/1-Process-Request-Dispense-200_OK.json b/src/test/resources/examples/full_examples/secondary-care/homecare/acute/nominated-pharmacy/consecutive-and-concurrent-dosage-instructions/1-Process-Request-Dispense-200_OK.json new file mode 100644 index 00000000..30f3455c --- /dev/null +++ b/src/test/resources/examples/full_examples/secondary-care/homecare/acute/nominated-pharmacy/consecutive-and-concurrent-dosage-instructions/1-Process-Request-Dispense-200_OK.json @@ -0,0 +1,514 @@ +{ + "resourceType": "Bundle", + "id": "166f1103-3r67-73dw-7364-s395c4itv284", + "identifier": { + "system": "https://tools.ietf.org/html/rfc4122", + "value": "a22ad970-417c-4b0d-9c18-19a54761b478" + }, + "type": "message", + "entry": [ + { + "fullUrl": "urn:uuid:be807dac-9dcf-45cf-91d6-70d9d58dcf34", + "resource": { + "resourceType": "MessageHeader", + "eventCoding": { + "system": "https://fhir.nhs.uk/CodeSystem/message-event", + "code": "dispense-notification", + "display": "Dispense Notification" + }, + "destination": [ + { + "endpoint": "https://sandbox.api.service.nhs.uk/electronic-prescriptions/$post-message", + "receiver": { + "identifier": { + "system": "https://fhir.nhs.uk/Id/ods-organization-code", + "value": "T1450" + }, + "display": "NHS BUSINESS SERVICES AUTHORITY" + } + } + ], + "sender": { + "identifier": { + "system": "https://fhir.nhs.uk/Id/ods-organization-code", + "value": "VNCEL" + }, + "display": "YORKSHIRE HOMECARE LIMITED" + }, + "source": { + "name": "YORKSHIRE HOMECARE LIMITED", + "endpoint": "https://directory.spineservices.nhs.uk/STU3/Organization/VNCEL" + }, + "reason": { + "coding": [ + { + "system": "https://fhir.nhs.uk/CodeSystem/message-reason-prescription", + "code": "notification", + "display": "Notification" + } + ] + }, + "response": { + "identifier": "999f9999-9999-9999-9ff9-f9fff9999999", + "code": "ok" + }, + "focus": [ + { + "reference": "urn:uuid:4509b70d-d8b8-ea03-1105-64557cb54a29" + } + ] + } + }, + { + "fullUrl": "urn:uuid:4509b70d-d8b8-ea03-1105-64557cb54a29", + "resource": { + "resourceType": "MedicationDispense", + "contained": [ + { + "resourceType": "PractitionerRole", + "id": "performer", + "identifier": [ + { + "system": "https://fhir.nhs.uk/Id/sds-role-profile-id", + "value": "555086415105" + } + ], + "practitioner": { + "identifier": { + "system": "https://fhir.nhs.uk/Id/sds-user-id", + "value": "3415870201" + }, + "display": "Jackie Clark" + }, + "organization": { + "reference": "urn:uuid:2bf9f37c-d88b-4f86-ad5f-373c1416e04b" + }, + "code": [ + { + "coding": [ + { + "system": "https://fhir.nhs.uk/CodeSystem/NHSDigital-SDS-JobRoleCode", + "code": "S8000:G8000:R8000", + "display": "Clinical Practitioner Access Role" + } + ] + } + ], + "telecom": [ + { + "system": "phone", + "use": "work", + "value": "02380798431" + } + ] + }, + { + "resourceType": "MedicationRequest", + "id": "m1", + "extension": [ + { + "url": "https://fhir.nhs.uk/StructureDefinition/Extension-DM-PrescriptionType", + "valueCoding": { + "system": "https://fhir.nhs.uk/CodeSystem/prescription-type", + "code": "0101", + "display": "Primary Care Prescriber - Medical Prescriber" + } + } + ], + "identifier": [ + { + "system": "https://fhir.nhs.uk/Id/prescription-order-item-number", + "value": "b3edb17a-1fb6-4c47-af0d-459d6d6d3896" + } + ], + "status": "active", + "intent": "order", + "category": [ + { + "coding": [ + { + "system": "http://terminology.hl7.org/CodeSystem/medicationrequest-category", + "code": "community", + "display": "Community" + } + ] + } + ], + "medicationCodeableConcept": { + "coding": [ + { + "system": "http://snomed.info/sct", + "code": "325427002", + "display": "Prednisolone 5mg tablets" + } + ] + }, + "subject": { + "reference": "urn:uuid:78d3c2eb-009e-4ec8-a358-b042954aa9b2" + }, + "authoredOn": "2022-11-21T11:37:15.572Z", + "requester": { + "reference": "urn:uuid:56166769-c1c4-4d07-afa8-132b5dfca666" + }, + "groupIdentifier": { + "system": "https://fhir.nhs.uk/Id/prescription-order-number", + "value": "887228-510420-124913", + "extension": [ + { + "url": "https://fhir.nhs.uk/StructureDefinition/Extension-DM-PrescriptionId", + "valueIdentifier": { + "system": "https://fhir.nhs.uk/Id/prescription", + "value": "40A4D7A0-1FC1-4004-97E5-A0985F8E8F4C" + } + } + ] + }, + "courseOfTherapyType": { + "coding": [ + { + "system": "http://terminology.hl7.org/CodeSystem/medicationrequest-course-of-therapy", + "code": "acute", + "display": "Short course (acute) therapy" + } + ] + }, + "dosageInstruction": [ + { + "sequence": 1, + "text": "2 tablets to be taken at 08:00 for two days. Take these tablets with or after food.", + "timing": { + "repeat": { + "boundsDuration": { + "value": 2, + "unit": "day", + "system": "http://unitsofmeasure.org", + "code": "d" + }, + "frequency": 1, + "period": 1, + "periodUnit": "d", + "timeOfDay": [ + "08:00:00" + ] + } + }, + "doseAndRate": [ + { + "doseQuantity": { + "value": 5, + "unit": "milligram", + "system": "http://unitsofmeasure.org", + "code": "mg" + } + } + ] + }, + { + "sequence": 1, + "text": "1 tablet to be taken at 17:00 for two days. Take these tablets with or after food.", + "timing": { + "repeat": { + "boundsDuration": { + "value": 2, + "unit": "day", + "system": "http://unitsofmeasure.org", + "code": "d" + }, + "frequency": 1, + "period": 1, + "periodUnit": "d", + "timeOfDay": [ + "17:00:00" + ] + } + }, + "doseAndRate": [ + { + "doseQuantity": { + "value": 5, + "unit": "milligram", + "system": "http://unitsofmeasure.org", + "code": "mg" + } + } + ] + }, + { + "sequence": 2, + "text": "1 tablet to be taken DAILY for two days. Take these tablets with or after food.", + "timing": { + "repeat": { + "boundsDuration": { + "value": 2, + "unit": "day", + "system": "http://unitsofmeasure.org", + "code": "d" + }, + "frequency": 1, + "period": 1, + "periodUnit": "d" + } + }, + "doseAndRate": [ + { + "doseQuantity": { + "value": 5, + "unit": "milligram", + "system": "http://unitsofmeasure.org", + "code": "mg" + } + } + ] + } + ], + "dispenseRequest": { + "extension": [ + { + "url": "https://fhir.nhs.uk/StructureDefinition/Extension-DM-PerformerSiteType", + "valueCoding": { + "system": "https://fhir.nhs.uk/CodeSystem/dispensing-site-preference", + "code": "P1" + } + } + ], + "quantity": { + "value": 8, + "unit": "tablet", + "system": "http://snomed.info/sct", + "code": "428673006" + }, + "validityPeriod": { + "start": "2022-10-20", + "end": "2023-03-20" + }, + "expectedSupplyDuration": { + "value": 30, + "unit": "day", + "system": "http://unitsofmeasure.org", + "code": "d" + }, + "performer": { + "identifier": { + "system": "https://fhir.nhs.uk/Id/ods-organization-code", + "value": "FK994" + } + } + }, + "substitution": { + "allowedBoolean": false + } + } + ], + "extension": [ + { + "url": "https://fhir.nhs.uk/StructureDefinition/Extension-EPS-TaskBusinessStatus", + "valueCoding": { + "system": "https://fhir.nhs.uk/CodeSystem/EPS-task-business-status", + "code": "0006", + "display": "Dispensed" + } + } + ], + "identifier": [ + { + "system": "https://fhir.nhs.uk/Id/prescription-dispense-item-number", + "value": "b3edb17a-1fb6-4c47-af0d-459d6d6d3896" + } + ], + "status": "completed", + "medicationCodeableConcept": { + "coding": [ + { + "system": "http://snomed.info/sct", + "code": "325427002", + "display": "Prednisolone 5mg tablets" + } + ] + }, + "subject": { + "type": "Patient", + "identifier": { + "system": "https://fhir.nhs.uk/Id/nhs-number", + "value": "9449304106" + }, + "display": "MR ZACKERY NICODEMUS LEGASSICK" + }, + "performer": [ + { + "actor": { + "reference": "#performer" + } + } + ], + "authorizingPrescription": [ + { + "reference": "#m1" + } + ], + "type": { + "coding": [ + { + "system": "https://fhir.nhs.uk/CodeSystem/medicationdispense-type", + "code": "0001", + "display": "Item fully dispensed" + } + ] + }, + "quantity": { + "value": 8, + "unit": "tablets", + "system": "http://snomed.info/sct", + "code": "428673006" + }, + "whenHandedOver": "2021-05-07T14:47:29+00:00", + "dosageInstruction": [ + { + "sequence": 1, + "text": "2 tablets to be taken at 08:00 for two days. Take these tablets with or after food.", + "timing": { + "repeat": { + "boundsDuration": { + "value": 2, + "unit": "day", + "system": "http://unitsofmeasure.org", + "code": "d" + }, + "frequency": 1, + "period": 1, + "periodUnit": "d", + "timeOfDay": [ + "08:00:00" + ] + } + }, + "doseAndRate": [ + { + "doseQuantity": { + "value": 5, + "unit": "milligram", + "system": "http://unitsofmeasure.org", + "code": "mg" + } + } + ] + }, + { + "sequence": 1, + "text": "1 tablet to be taken at 17:00 for two days. Take these tablets with or after food.", + "timing": { + "repeat": { + "boundsDuration": { + "value": 2, + "unit": "day", + "system": "http://unitsofmeasure.org", + "code": "d" + }, + "frequency": 1, + "period": 1, + "periodUnit": "d", + "timeOfDay": [ + "17:00:00" + ] + } + }, + "doseAndRate": [ + { + "doseQuantity": { + "value": 5, + "unit": "milligram", + "system": "http://unitsofmeasure.org", + "code": "mg" + } + } + ] + }, + { + "sequence": 2, + "text": "1 tablet to be taken DAILY for two days. Take these tablets with or after food.", + "timing": { + "repeat": { + "boundsDuration": { + "value": 2, + "unit": "day", + "system": "http://unitsofmeasure.org", + "code": "d" + }, + "frequency": 1, + "period": 1, + "periodUnit": "d" + } + }, + "doseAndRate": [ + { + "doseQuantity": { + "value": 5, + "unit": "milligram", + "system": "http://unitsofmeasure.org", + "code": "mg" + } + } + ] + } + ] + } + }, + { + "fullUrl": "urn:uuid:2bf9f37c-d88b-4f86-ad5f-373c1416e04b", + "resource": { + "resourceType": "Organization", + "extension": [ + { + "url": "https://fhir.nhs.uk/StructureDefinition/Extension-ODS-OrganisationRelationships", + "extension": [ + { + "url": "reimbursementAuthority", + "valueIdentifier": { + "system": "https://fhir.nhs.uk/Id/ods-organization-code", + "value": "T1450" + } + } + ] + } + ], + "identifier": [ + { + "system": "https://fhir.nhs.uk/Id/ods-organization-code", + "value": "VNE51" + } + ], + "address": [ + { + "city": "West Yorkshire", + "use": "work", + "line": [ + "17 Austhorpe Road", + "Crossgates", + "Leeds" + ], + "postalCode": "LS15 8BA" + } + ], + "active": true, + "type": [ + { + "coding": [ + { + "system": "https://fhir.nhs.uk/CodeSystem/organisation-role", + "code": "182", + "display": "PHARMACY" + } + ] + } + ], + "name": "The Simple Pharmacy", + "telecom": [ + { + "system": "phone", + "use": "work", + "value": "0113 3180277" + } + ] + } + } + ] +} diff --git a/src/test/resources/examples/full_examples/secondary-care/homecare/acute/nominated-pharmacy/consecutive-and-concurrent-dosage-instructions/1-Process-Request-Send-200_OK.json b/src/test/resources/examples/full_examples/secondary-care/homecare/acute/nominated-pharmacy/consecutive-and-concurrent-dosage-instructions/1-Process-Request-Send-200_OK.json new file mode 100644 index 00000000..46c7d8ac --- /dev/null +++ b/src/test/resources/examples/full_examples/secondary-care/homecare/acute/nominated-pharmacy/consecutive-and-concurrent-dosage-instructions/1-Process-Request-Send-200_OK.json @@ -0,0 +1,580 @@ +{ + "resourceType": "Bundle", + "id": "ecb29fe1-d2bc-40e3-9279-702c210c3c51", + "identifier": { + "system": "https://tools.ietf.org/html/rfc4122", + "value": "28efc4e6-73e7-4f91-bc9f-ac587dbd3ec5" + }, + "type": "message", + "entry": [ + { + "fullUrl": "urn:uuid:ecb29fe1-d2bc-40e3-9279-702c210c3c51", + "resource": { + "resourceType": "MessageHeader", + "id": "98a36144-f781-4ed0-bae7-34ef58ccce15", + "eventCoding": { + "system": "https://fhir.nhs.uk/CodeSystem/message-event", + "code": "prescription-order", + "display": "Prescription Order" + }, + "sender": { + "identifier": { + "system": "https://fhir.nhs.uk/Id/ods-organization-code", + "value": "RBA" + }, + "reference": "urn:uuid:56166769-c1c4-4d07-afa8-132b5dfca666", + "display": "RAZIA|ALI" + }, + "source": { + "endpoint": "https://directory.spineservices.nhs.uk/STU3/Organization/RBA" + }, + "destination": [ + { + "endpoint": "https://sandbox.api.service.nhs.uk/electronic-prescriptions/$post-message", + "receiver": { + "identifier": { + "system": "https://fhir.nhs.uk/Id/ods-organization-code", + "value": "X26" + } + } + } + ], + "focus": [ + { + "reference": "urn:uuid:78d3c2eb-009e-4ec8-a358-b042954aa9b2" + }, + { + "reference": "urn:uuid:b3edb17a-1fb6-4c47-af0d-459d6d6d3896" + }, + { + "reference": "urn:uuid:51793ac0-112f-46c7-a891-9af8cefb206e" + } + ] + } + }, + { + "fullUrl": "urn:uuid:b3edb17a-1fb6-4c47-af0d-459d6d6d3896", + "resource": { + "resourceType": "MedicationRequest", + "id": "b3edb17a-1fb6-4c47-af0d-459d6d6d3896", + "medicationCodeableConcept": { + "coding": [ + { + "system": "http://snomed.info/sct", + "code": "325427002", + "display": "Prednisolone 5mg tablets" + } + ] + }, + "extension": [ + { + "url": "https://fhir.nhs.uk/StructureDefinition/Extension-DM-PrescriptionType", + "valueCoding": { + "system": "https://fhir.nhs.uk/CodeSystem/prescription-type", + "code": "0101", + "display": "Primary Care Prescriber - Medical Prescriber" + } + } + ], + "identifier": [ + { + "system": "https://fhir.nhs.uk/Id/prescription-order-item-number", + "value": "b3edb17a-1fb6-4c47-af0d-459d6d6d3896" + } + ], + "status": "active", + "intent": "order", + "subject": { + "reference": "urn:uuid:78d3c2eb-009e-4ec8-a358-b042954aa9b2" + }, + "category": [ + { + "coding": [ + { + "system": "http://terminology.hl7.org/CodeSystem/medicationrequest-category", + "code": "community", + "display": "Community" + } + ] + } + ], + "requester": { + "reference": "urn:uuid:56166769-c1c4-4d07-afa8-132b5dfca666" + }, + "groupIdentifier": { + "system": "https://fhir.nhs.uk/Id/prescription-order-number", + "value": "887228-510420-124913", + "extension": [ + { + "url": "https://fhir.nhs.uk/StructureDefinition/Extension-DM-PrescriptionId", + "valueIdentifier": { + "system": "https://fhir.nhs.uk/Id/prescription", + "value": "40A4D7A0-1FC1-4004-97E5-A0985F8E8F4C" + } + } + ] + }, + "courseOfTherapyType": { + "coding": [ + { + "system": "http://terminology.hl7.org/CodeSystem/medicationrequest-course-of-therapy", + "code": "acute", + "display": "Short course (acute) therapy" + } + ] + }, + "dosageInstruction": [ + { + "sequence": 1, + "text": "2 tablets to be taken at 08:00 for two days. Take these tablets with or after food.", + "timing": { + "repeat": { + "boundsDuration": { + "value": 2, + "unit": "day", + "system": "http://unitsofmeasure.org", + "code": "d" + }, + "frequency": 1, + "period": 1, + "periodUnit": "d", + "timeOfDay": [ + "08:00:00" + ] + } + }, + "doseAndRate": [ + { + "doseQuantity": { + "value": 5, + "unit": "milligram", + "system": "http://unitsofmeasure.org", + "code": "mg" + } + } + ] + }, + { + "sequence": 1, + "text": "1 tablet to be taken at 17:00 for two days. Take these tablets with or after food.", + "timing": { + "repeat": { + "boundsDuration": { + "value": 2, + "unit": "day", + "system": "http://unitsofmeasure.org", + "code": "d" + }, + "frequency": 1, + "period": 1, + "periodUnit": "d", + "timeOfDay": [ + "17:00:00" + ] + } + }, + "doseAndRate": [ + { + "doseQuantity": { + "value": 5, + "unit": "milligram", + "system": "http://unitsofmeasure.org", + "code": "mg" + } + } + ] + }, + { + "sequence": 2, + "text": "1 tablet to be taken DAILY for two days. Take these tablets with or after food.", + "timing": { + "repeat": { + "boundsDuration": { + "value": 2, + "unit": "day", + "system": "http://unitsofmeasure.org", + "code": "d" + }, + "frequency": 1, + "period": 1, + "periodUnit": "d" + } + }, + "doseAndRate": [ + { + "doseQuantity": { + "value": 5, + "unit": "milligram", + "system": "http://unitsofmeasure.org", + "code": "mg" + } + } + ] + } + ], + "dispenseRequest": { + "extension": [ + { + "url": "https://fhir.nhs.uk/StructureDefinition/Extension-DM-PerformerSiteType", + "valueCoding": { + "system": "https://fhir.nhs.uk/CodeSystem/dispensing-site-preference", + "code": "P1" + } + } + ], + "quantity": { + "value": 8, + "unit": "tablet", + "system": "http://snomed.info/sct", + "code": "428673006" + }, + "validityPeriod": { + "start": "2022-10-20", + "end": "2023-03-20" + }, + "expectedSupplyDuration": { + "value": 30, + "unit": "day", + "system": "http://unitsofmeasure.org", + "code": "d" + }, + "performer": { + "identifier": { + "system": "https://fhir.nhs.uk/Id/ods-organization-code", + "value": "FK994" + } + } + }, + "substitution": { + "allowedBoolean": false + } + } + }, + { + "fullUrl": "urn:uuid:78d3c2eb-009e-4ec8-a358-b042954aa9b2", + "resource": { + "resourceType": "Patient", + "identifier": [ + { + "system": "https://fhir.nhs.uk/Id/nhs-number", + "value": "9449304106" + } + ], + "name": [ + { + "use": "usual", + "family": "LEGASSICK", + "given": [ + "NICODEMUS", + "ZACKERY" + ], + "prefix": [ + "MR" + ] + } + ], + "gender": "male", + "birthDate": "1994-03-19", + "address": [ + { + "use": "home", + "line": [ + "11 LITTLEHEATH LANE", + "COBHAM", + "SURREY" + ], + "postalCode": "KT11 2QG" + } + ], + "generalPractitioner": [ + { + "identifier": { + "system": "https://fhir.nhs.uk/Id/ods-organization-code", + "value": "B81001" + } + } + ] + } + }, + { + "fullUrl": "urn:uuid:56166769-c1c4-4d07-afa8-132b5dfca666", + "resource": { + "resourceType": "PractitionerRole", + "id": "56166769-c1c4-4d07-afa8-132b5dfca666", + "identifier": [ + { + "system": "https://fhir.nhs.uk/Id/sds-role-profile-id", + "value": "100102238986" + } + ], + "practitioner": { + "reference": "urn:uuid:a8c85454-f8cb-498d-9629-78e2cb5fa47a" + }, + "organization": { + "reference": "urn:uuid:3b4b03a5-52ba-4ba6-9b82-70350aa109d8" + }, + "code": [ + { + "coding": [ + { + "system": "https://fhir.nhs.uk/CodeSystem/NHSDigital-SDS-JobRoleCode", + "code": "S8000:G8000:R8000", + "display": "Clinical Practitioner Access Role" + } + ] + } + ], + "telecom": [ + { + "system": "phone", + "value": "01234567890", + "use": "work" + } + ] + } + }, + { + "fullUrl": "urn:uuid:a8c85454-f8cb-498d-9629-78e2cb5fa47a", + "resource": { + "resourceType": "Practitioner", + "id": "a8c85454-f8cb-498d-9629-78e2cb5fa47a", + "identifier": [ + { + "system": "https://fhir.nhs.uk/Id/sds-user-id", + "value": "7020134158" + }, + { + "system": "https://fhir.hl7.org.uk/Id/gmc-number", + "value": "G9999999" + }, + { + "system": "https://fhir.hl7.org.uk/Id/din-number", + "value": "70201123456" + } + ], + "name": [ + { + "family": "Edwards", + "given": [ + "Thomas" + ], + "prefix": [ + "DR" + ] + } + ] + } + }, + { + "fullUrl": "urn:uuid:3b4b03a5-52ba-4ba6-9b82-70350aa109d8", + "resource": { + "resourceType": "Organization", + "id": "3b4b03a5-52ba-4ba6-9b82-70350aa109d8", + "identifier": [ + { + "system": "https://fhir.nhs.uk/Id/ods-organization-code", + "value": "RBA" + } + ], + "type": [ + { + "coding": [ + { + "system": "https://fhir.nhs.uk/CodeSystem/organisation-role", + "code": "197", + "display": "NHS TRUST" + } + ] + } + ], + "name": "TAUNTON AND SOMERSET NHS FOUNDATION TRUST", + "address": [ + { + "line": [ + "MUSGROVE PARK HOSPITAL", + "PARKFIELD DRIVE", + "TAUNTON" + ], + "postalCode": "TA1 5DA" + } + ], + "telecom": [ + { + "system": "phone", + "value": "01823333444", + "use": "work" + } + ], + "partOf": { + "identifier": { + "system": "https://fhir.nhs.uk/Id/ods-organization-code", + "value": "RBA" + }, + "display": "TAUNTON AND SOMERSET NHS FOUNDATION TRUST" + } + } + }, + { + "fullUrl": "urn:uuid:54b0506d-49af-4245-9d40-d7d64902055e", + "resource": { + "resourceType": "HealthcareService", + "id": "54b0506d-49af-4245-9d40-d7d64902055e", + "identifier": [ + { + "use": "usual", + "system": "https://fhir.nhs.uk/Id/ods-organization-code", + "value": "A99968" + } + ], + "active": true, + "providedBy": { + "identifier": { + "system": "https://fhir.nhs.uk/Id/ods-organization-code", + "value": "RBA" + } + }, + "location": [ + { + "reference": "urn:uuid:8a5d7d67-64fb-44ec-9802-2dc214bb3dcb" + } + ], + "name": "SOMERSET BOWEL CANCER SCREENING CENTRE", + "telecom": [ + { + "system": "phone", + "value": "01823 333444", + "use": "work" + } + ] + } + }, + { + "fullUrl": "urn:uuid:8a5d7d67-64fb-44ec-9802-2dc214bb3dcb", + "resource": { + "resourceType": "Location", + "id": "8a5d7d67-64fb-44ec-9802-2dc214bb3dcb", + "identifier": [ + { + "value": "10008800708" + } + ], + "status": "active", + "mode": "instance", + "address": { + "use": "work", + "line": [ + "MUSGROVE PARK HOSPITAL" + ], + "city": "TAUNTON", + "postalCode": "TA1 5DA" + } + } + }, + { + "fullUrl": "urn:uuid:51793ac0-112f-46c7-a891-9af8cefb206e", + "resource": { + "resourceType": "CommunicationRequest", + "status": "unknown", + "subject": { + "reference": "urn:uuid:78d3c2eb-009e-4ec8-a358-b042954aa9b2" + }, + "payload": [ + { + "contentReference": { + "reference": "urn:uuid:d0f003a0-8763-43d5-a264-ce52a38901c9", + "display": "List of Repeat Medications for re-ordering" + } + } + ], + "requester": { + "type": "Organization", + "identifier": { + "system": "https://fhir.nhs.uk/Id/ods-organization-code", + "value": "RBA" + }, + "display": "TAUNTON AND SOMERSET NHS FOUNDATION TRUST" + }, + "recipient": [ + { + "type": "Patient", + "identifier": { + "system": "https://fhir.nhs.uk/Id/nhs-number", + "value": "9453740519" + } + } + ] + } + }, + { + "fullUrl": "urn:uuid:d0f003a0-8763-43d5-a264-ce52a38901c9", + "resource": { + "resourceType": "List", + "status": "current", + "mode": "snapshot", + "code": { + "text": "Repeat Medications" + }, + "subject": { + "reference": "urn:uuid:78d3c2eb-009e-4ec8-a358-b042954aa9b2" + }, + "entry": [ + { + "item": { + "display": "Metformin 500mg tablets" + } + }, + { + "item": { + "display": "Aspirin 75mg dispersible tablets" + } + }, + { + "item": { + "display": "Simvastatin 40mg tablets" + } + }, + { + "item": { + "display": "Chloramphenicol 0.5% eye drops" + } + } + ] + } + }, + { + "fullUrl": "urn:uuid:28828c55-8fa7-42d7-916f-fcf076e0c10e", + "resource": { + "resourceType": "Provenance", + "id": "28828c55-8fa7-42d7-916f-fcf076e0c10e", + "target": [ + { + "reference": "urn:uuid:a54219b8-f741-4c47-b662-e4f8dfa49ab6" + } + ], + "recorded": "2008-02-27T11:38:00+00:00", + "agent": [ + { + "who": { + "reference": "urn:uuid:56166769-c1c4-4d07-afa8-132b5dfca666" + } + } + ], + "signature": [ + { + "type": [ + { + "system": "urn:iso-astm:E1762-95:2013", + "code": "1.2.840.10065.1.12.1.1" + } + ], + "when": "2021-05-07T14:47:30+00:00", + "who": { + "reference": "urn:uuid:56166769-c1c4-4d07-afa8-132b5dfca666" + }, + "data": "PFNpZ25lZEluZm8geG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvMDkveG1sZHNpZyMiPjxDYW5vbmljYWxpemF0aW9uTWV0aG9kIEFsZ29yaXRobT0iaHR0cDovL3d3dy53My5vcmcvMjAwMS8xMC94bWwtZXhjLWMxNG4jIj48L0Nhbm9uaWNhbGl6YXRpb25NZXRob2Q+PFNpZ25hdHVyZU1ldGhvZCBBbGdvcml0aG09Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvMDkveG1sZHNpZyNyc2Etc2hhMSI+PC9TaWduYXR1cmVNZXRob2Q+PFJlZmVyZW5jZT48VHJhbnNmb3Jtcz48VHJhbnNmb3JtIEFsZ29yaXRobT0iaHR0cDovL3d3dy53My5vcmcvMjAwMS8xMC94bWwtZXhjLWMxNG4jIj48L1RyYW5zZm9ybT48L1RyYW5zZm9ybXM+PERpZ2VzdE1ldGhvZCBBbGdvcml0aG09Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvMDkveG1sZHNpZyNzaGExIj48L0RpZ2VzdE1ldGhvZD48RGlnZXN0VmFsdWU+cTltTE1HMkFER1pGc2cxT0wzR0lKeWVYbTRVPTwvRGlnZXN0VmFsdWU+PC9SZWZlcmVuY2U+PC9TaWduZWRJbmZvPg==" + } + ] + } + } + ] +} diff --git a/src/test/resources/examples/full_examples/secondary-care/homecare/acute/nominated-pharmacy/consecutive-and-concurrent-dosage-instructions/1-Task-Request-Release-200_OK.json b/src/test/resources/examples/full_examples/secondary-care/homecare/acute/nominated-pharmacy/consecutive-and-concurrent-dosage-instructions/1-Task-Request-Release-200_OK.json new file mode 100644 index 00000000..88b05ff2 --- /dev/null +++ b/src/test/resources/examples/full_examples/secondary-care/homecare/acute/nominated-pharmacy/consecutive-and-concurrent-dosage-instructions/1-Task-Request-Release-200_OK.json @@ -0,0 +1,100 @@ +{ + "resourceType": "Parameters", + "id": "d362a2c5-d982-4de0-84a2-2eaf9ea20d00", + "parameter": [ + { + "name": "owner", + "resource": { + "resourceType": "Organization", + "id": "organization", + "identifier": [ + { + "system": "https://fhir.nhs.uk/Id/ods-organization-code", + "value": "VNE51" + } + ], + "address": [ + { + "city": "West Yorkshire", + "use": "work", + "line": [ + "17 Austhorpe Road", + "Crossgates", + "Leeds" + ], + "postalCode": "LS15 8BA" + } + ], + "active": true, + "type": [ + { + "coding": [ + { + "system": "https://fhir.nhs.uk/CodeSystem/organisation-role", + "code": "182", + "display": "PHARMACY" + } + ] + } + ], + "name": "The Simple Pharmacy", + "telecom": [ + { + "system": "phone", + "use": "work", + "value": "0113 3180277" + } + ] + } + }, + { + "name": "status", + "valueCode": "accepted" + }, + { + "name": "agent", + "resource": { + "resourceType": "PractitionerRole", + "id": "16708936-6397-4e03-b84f-4aaa790633e0", + "identifier": [ + { + "system": "https://fhir.nhs.uk/Id/sds-role-profile-id", + "value": "555086415105" + } + ], + "practitioner": { + "identifier": { + "system": "https://fhir.nhs.uk/Id/sds-user-id", + "value": "3415870201" + }, + "display": "Jackie Clark" + }, + "code": [ + { + "coding": [ + { + "system": "https://fhir.nhs.uk/CodeSystem/NHSDigital-SDS-JobRoleCode", + "code": "S8000:G8000:R8000", + "display": "Clinical Practitioner Access Role" + } + ] + } + ], + "telecom": [ + { + "system": "phone", + "value": "02380798431", + "use": "work" + } + ] + } + }, + { + "name": "group-identifier", + "valueIdentifier": { + "system": "https://fhir.nhs.uk/Id/prescription-order-number", + "value": "887228-510420-124913" + } + } + ] +} diff --git a/src/test/resources/examples/full_examples/secondary-care/homecare/acute/nominated-pharmacy/consecutive-dosage-instructions/1-Prepare-Request-200_OK.json b/src/test/resources/examples/full_examples/secondary-care/homecare/acute/nominated-pharmacy/consecutive-dosage-instructions/1-Prepare-Request-200_OK.json new file mode 100644 index 00000000..384649a0 --- /dev/null +++ b/src/test/resources/examples/full_examples/secondary-care/homecare/acute/nominated-pharmacy/consecutive-dosage-instructions/1-Prepare-Request-200_OK.json @@ -0,0 +1,647 @@ +{ + "resourceType": "Bundle", + "id": "aef77afb-7e3c-427a-8657-2c427f71a272", + "identifier": { + "system": "https://tools.ietf.org/html/rfc4122", + "value": "4bbc97c0-f16d-4d82-85c8-c3cc62f8bd78" + }, + "type": "message", + "entry": [ + { + "fullUrl": "urn:uuid:aef77afb-7e3c-427a-8657-2c427f71a272", + "resource": { + "resourceType": "MessageHeader", + "id": "0fca2887-7235-4ea2-a82e-4c3007357a3f", + "eventCoding": { + "system": "https://fhir.nhs.uk/CodeSystem/message-event", + "code": "prescription-order", + "display": "Prescription Order" + }, + "sender": { + "identifier": { + "system": "https://fhir.nhs.uk/Id/ods-organization-code", + "value": "RBA" + }, + "reference": "urn:uuid:56166769-c1c4-4d07-afa8-132b5dfca666", + "display": "RAZIA|ALI" + }, + "source": { + "endpoint": "https://directory.spineservices.nhs.uk/STU3/Organization/RBA" + }, + "destination": [ + { + "endpoint": "https://sandbox.api.service.nhs.uk/electronic-prescriptions/$post-message", + "receiver": { + "identifier": { + "system": "https://fhir.nhs.uk/Id/ods-organization-code", + "value": "X26" + } + } + } + ], + "focus": [ + { + "reference": "urn:uuid:78d3c2eb-009e-4ec8-a358-b042954aa9b2" + }, + { + "reference": "urn:uuid:f0521c5e-c946-4db4-bf80-dd82fc1fc90d" + }, + { + "reference": "urn:uuid:51793ac0-112f-46c7-a891-9af8cefb206e" + } + ] + } + }, + { + "fullUrl": "urn:uuid:f0521c5e-c946-4db4-bf80-dd82fc1fc90d", + "resource": { + "resourceType": "MedicationRequest", + "id": "f0521c5e-c946-4db4-bf80-dd82fc1fc90d", + "extension": [ + { + "url": "https://fhir.nhs.uk/StructureDefinition/Extension-DM-PrescriptionType", + "valueCoding": { + "system": "https://fhir.nhs.uk/CodeSystem/prescription-type", + "code": "0101", + "display": "Primary Care Prescriber - Medical Prescriber" + } + } + ], + "identifier": [ + { + "system": "https://fhir.nhs.uk/Id/prescription-order-item-number", + "value": "f0521c5e-c946-4db4-bf80-dd82fc1fc90d" + } + ], + "medicationCodeableConcept": { + "coding": [ + { + "system": "http://snomed.info/sct", + "code": "325427002", + "display": "Prednisolone 5mg tablets" + } + ] + }, + "status": "active", + "intent": "order", + "subject": { + "reference": "urn:uuid:78d3c2eb-009e-4ec8-a358-b042954aa9b2" + }, + "category": [ + { + "coding": [ + { + "system": "http://terminology.hl7.org/CodeSystem/medicationrequest-category", + "code": "community", + "display": "Community" + } + ] + } + ], + "requester": { + "reference": "urn:uuid:56166769-c1c4-4d07-afa8-132b5dfca666" + }, + "groupIdentifier": { + "system": "https://fhir.nhs.uk/Id/prescription-order-number", + "value": "628738-A83008-7EFE6P", + "extension": [ + { + "url": "https://fhir.nhs.uk/StructureDefinition/Extension-DM-PrescriptionId", + "valueIdentifier": { + "system": "https://fhir.nhs.uk/Id/prescription", + "value": "5b6a427a-c24c-4b16-9d3f-59a794280dc3" + } + } + ] + }, + "courseOfTherapyType": { + "coding": [ + { + "system": "http://terminology.hl7.org/CodeSystem/medicationrequest-course-of-therapy", + "code": "acute", + "display": "Short course (acute) therapy" + } + ] + }, + "dosageInstruction": [ + { + "sequence": 1, + "text": "EIGHT (8) tablets to be taken DAILY for two days. Take these tablets with or after food.", + "timing": { + "repeat": { + "boundsDuration": { + "value": 2, + "unit": "day", + "system": "http://unitsofmeasure.org", + "code": "d" + }, + "frequency": 8, + "period": 1, + "periodUnit": "d" + } + }, + "doseAndRate": [ + { + "doseQuantity": { + "value": 5, + "unit": "milligram", + "system": "http://unitsofmeasure.org", + "code": "mg" + } + } + ] + }, + { + "sequence": 2, + "text": "SEVEN (7) tablets to be taken DAILY for two days. Take these tablets with or after food.", + "timing": { + "repeat": { + "boundsDuration": { + "value": 2, + "unit": "day", + "system": "http://unitsofmeasure.org", + "code": "d" + }, + "frequency": 7, + "period": 1, + "periodUnit": "d" + } + }, + "doseAndRate": [ + { + "doseQuantity": { + "value": 5, + "unit": "milligram", + "system": "http://unitsofmeasure.org", + "code": "mg" + } + } + ] + }, + { + "sequence": 3, + "text": "SIX (6) tablets to be taken DAILY for two days. Take these tablets with or after food.", + "timing": { + "repeat": { + "boundsDuration": { + "value": 2, + "unit": "day", + "system": "http://unitsofmeasure.org", + "code": "d" + }, + "frequency": 6, + "period": 1, + "periodUnit": "d" + } + }, + "doseAndRate": [ + { + "doseQuantity": { + "value": 5, + "unit": "milligram", + "system": "http://unitsofmeasure.org", + "code": "mg" + } + } + ] + }, + { + "sequence": 4, + "text": "FIVE (5) tablets to be taken DAILY for two days. Take these tablets with or after food.", + "timing": { + "repeat": { + "boundsDuration": { + "value": 2, + "unit": "day", + "system": "http://unitsofmeasure.org", + "code": "d" + }, + "frequency": 5, + "period": 1, + "periodUnit": "d" + } + }, + "doseAndRate": [ + { + "doseQuantity": { + "value": 5, + "unit": "milligram", + "system": "http://unitsofmeasure.org", + "code": "mg" + } + } + ] + }, + { + "sequence": 5, + "text": "FOUR (4) tablets to be taken DAILY for two days. Take these tablets with or after food.", + "timing": { + "repeat": { + "boundsDuration": { + "value": 2, + "unit": "day", + "system": "http://unitsofmeasure.org", + "code": "d" + }, + "frequency": 4, + "period": 1, + "periodUnit": "d" + } + }, + "doseAndRate": [ + { + "doseQuantity": { + "value": 5, + "unit": "milligram", + "system": "http://unitsofmeasure.org", + "code": "mg" + } + } + ] + }, + { + "sequence": 6, + "text": "THREE (3) tablets to be taken DAILY for two days. Take these tablets with or after food.", + "timing": { + "repeat": { + "boundsDuration": { + "value": 2, + "unit": "day", + "system": "http://unitsofmeasure.org", + "code": "d" + }, + "frequency": 3, + "period": 1, + "periodUnit": "d" + } + }, + "doseAndRate": [ + { + "doseQuantity": { + "value": 5, + "unit": "milligram", + "system": "http://unitsofmeasure.org", + "code": "mg" + } + } + ] + }, + { + "sequence": 7, + "text": "TWO (2) tablets to be taken DAILY for two days. Take these tablets with or after food.", + "timing": { + "repeat": { + "boundsDuration": { + "value": 2, + "unit": "day", + "system": "http://unitsofmeasure.org", + "code": "d" + }, + "frequency": 2, + "period": 1, + "periodUnit": "d" + } + }, + "doseAndRate": [ + { + "doseQuantity": { + "value": 5, + "unit": "milligram", + "system": "http://unitsofmeasure.org", + "code": "mg" + } + } + ] + } + ], + "dispenseRequest": { + "extension": [ + { + "url": "https://fhir.nhs.uk/StructureDefinition/Extension-DM-PerformerSiteType", + "valueCoding": { + "system": "https://fhir.nhs.uk/CodeSystem/dispensing-site-preference", + "code": "P1" + } + } + ], + "quantity": { + "value": 72, + "unit": "tablet", + "system": "http://snomed.info/sct", + "code": "428673006" + }, + "validityPeriod": { + "start": "2022-10-20", + "end": "2023-03-20" + }, + "expectedSupplyDuration": { + "value": 30, + "unit": "day", + "system": "http://unitsofmeasure.org", + "code": "d" + }, + "performer": { + "identifier": { + "system": "https://fhir.nhs.uk/Id/ods-organization-code", + "value": "FK994" + } + } + }, + "substitution": { + "allowedBoolean": false + } + } + }, + { + "fullUrl": "urn:uuid:78d3c2eb-009e-4ec8-a358-b042954aa9b2", + "resource": { + "resourceType": "Patient", + "identifier": [ + { + "system": "https://fhir.nhs.uk/Id/nhs-number", + "value": "9449304106" + } + ], + "name": [ + { + "use": "usual", + "family": "LEGASSICK", + "given": [ + "NICODEMUS", + "ZACKERY" + ], + "prefix": [ + "MR" + ] + } + ], + "gender": "male", + "birthDate": "1994-03-19", + "address": [ + { + "use": "home", + "line": [ + "11 LITTLEHEATH LANE", + "COBHAM", + "SURREY" + ], + "postalCode": "KT11 2QG" + } + ], + "generalPractitioner": [ + { + "identifier": { + "system": "https://fhir.nhs.uk/Id/ods-organization-code", + "value": "B81001" + } + } + ] + } + }, + { + "fullUrl": "urn:uuid:56166769-c1c4-4d07-afa8-132b5dfca666", + "resource": { + "resourceType": "PractitionerRole", + "id": "56166769-c1c4-4d07-afa8-132b5dfca666", + "identifier": [ + { + "system": "https://fhir.nhs.uk/Id/sds-role-profile-id", + "value": "100102238986" + } + ], + "practitioner": { + "reference": "urn:uuid:a8c85454-f8cb-498d-9629-78e2cb5fa47a" + }, + "organization": { + "reference": "urn:uuid:3b4b03a5-52ba-4ba6-9b82-70350aa109d8" + }, + "code": [ + { + "coding": [ + { + "system": "https://fhir.nhs.uk/CodeSystem/NHSDigital-SDS-JobRoleCode", + "code": "S8000:G8000:R8000", + "display": "Clinical Practitioner Access Role" + } + ] + } + ], + "telecom": [ + { + "system": "phone", + "value": "01234567890", + "use": "work" + } + ] + } + }, + { + "fullUrl": "urn:uuid:a8c85454-f8cb-498d-9629-78e2cb5fa47a", + "resource": { + "resourceType": "Practitioner", + "id": "a8c85454-f8cb-498d-9629-78e2cb5fa47a", + "identifier": [ + { + "system": "https://fhir.nhs.uk/Id/sds-user-id", + "value": "7020134158" + }, + { + "system": "https://fhir.hl7.org.uk/Id/gmc-number", + "value": "G9999999" + }, + { + "system": "https://fhir.hl7.org.uk/Id/din-number", + "value": "70201123456" + } + ], + "name": [ + { + "family": "Edwards", + "given": [ + "Thomas" + ], + "prefix": [ + "DR" + ] + } + ] + } + }, + { + "fullUrl": "urn:uuid:3b4b03a5-52ba-4ba6-9b82-70350aa109d8", + "resource": { + "resourceType": "Organization", + "id": "3b4b03a5-52ba-4ba6-9b82-70350aa109d8", + "identifier": [ + { + "system": "https://fhir.nhs.uk/Id/ods-organization-code", + "value": "RBA" + } + ], + "type": [ + { + "coding": [ + { + "system": "https://fhir.nhs.uk/CodeSystem/organisation-role", + "code": "197", + "display": "NHS TRUST" + } + ] + } + ], + "name": "TAUNTON AND SOMERSET NHS FOUNDATION TRUST", + "address": [ + { + "line": [ + "MUSGROVE PARK HOSPITAL", + "PARKFIELD DRIVE", + "TAUNTON" + ], + "postalCode": "TA1 5DA" + } + ], + "telecom": [ + { + "system": "phone", + "value": "01823333444", + "use": "work" + } + ], + "partOf": { + "identifier": { + "system": "https://fhir.nhs.uk/Id/ods-organization-code", + "value": "RBA" + }, + "display": "TAUNTON AND SOMERSET NHS FOUNDATION TRUST" + } + } + }, + { + "fullUrl": "urn:uuid:54b0506d-49af-4245-9d40-d7d64902055e", + "resource": { + "resourceType": "HealthcareService", + "id": "54b0506d-49af-4245-9d40-d7d64902055e", + "identifier": [ + { + "use": "usual", + "system": "https://fhir.nhs.uk/Id/ods-organization-code", + "value": "A99968" + } + ], + "active": true, + "providedBy": { + "identifier": { + "system": "https://fhir.nhs.uk/Id/ods-organization-code", + "value": "RBA" + } + }, + "location": [ + { + "reference": "urn:uuid:8a5d7d67-64fb-44ec-9802-2dc214bb3dcb" + } + ], + "name": "SOMERSET BOWEL CANCER SCREENING CENTRE", + "telecom": [ + { + "system": "phone", + "value": "01823 333444", + "use": "work" + } + ] + } + }, + { + "fullUrl": "urn:uuid:8a5d7d67-64fb-44ec-9802-2dc214bb3dcb", + "resource": { + "resourceType": "Location", + "id": "8a5d7d67-64fb-44ec-9802-2dc214bb3dcb", + "identifier": [ + { + "value": "10008800708" + } + ], + "status": "active", + "mode": "instance", + "address": { + "use": "work", + "line": [ + "MUSGROVE PARK HOSPITAL" + ], + "city": "TAUNTON", + "postalCode": "TA1 5DA" + } + } + }, + { + "fullUrl": "urn:uuid:51793ac0-112f-46c7-a891-9af8cefb206e", + "resource": { + "resourceType": "CommunicationRequest", + "status": "unknown", + "subject": { + "reference": "urn:uuid:78d3c2eb-009e-4ec8-a358-b042954aa9b2" + }, + "payload": [ + { + "contentReference": { + "reference": "urn:uuid:d0f003a0-8763-43d5-a264-ce52a38901c9", + "display": "List of Repeat Medications for re-ordering" + } + } + ], + "requester": { + "type": "Organization", + "identifier": { + "system": "https://fhir.nhs.uk/Id/ods-organization-code", + "value": "RBA" + }, + "display": "TAUNTON AND SOMERSET NHS FOUNDATION TRUST" + }, + "recipient": [ + { + "type": "Patient", + "identifier": { + "system": "https://fhir.nhs.uk/Id/nhs-number", + "value": "9453740519" + } + } + ] + } + }, + { + "fullUrl": "urn:uuid:d0f003a0-8763-43d5-a264-ce52a38901c9", + "resource": { + "resourceType": "List", + "status": "current", + "mode": "snapshot", + "code": { + "text": "Repeat Medications" + }, + "subject": { + "reference": "urn:uuid:78d3c2eb-009e-4ec8-a358-b042954aa9b2" + }, + "entry": [ + { + "item": { + "display": "Metformin 500mg tablets" + } + }, + { + "item": { + "display": "Aspirin 75mg dispersible tablets" + } + }, + { + "item": { + "display": "Simvastatin 40mg tablets" + } + }, + { + "item": { + "display": "Chloramphenicol 0.5% eye drops" + } + } + ] + } + } + ] +} diff --git a/src/test/resources/examples/full_examples/secondary-care/homecare/acute/nominated-pharmacy/consecutive-dosage-instructions/1-Prepare-Response-200_OK.json b/src/test/resources/examples/full_examples/secondary-care/homecare/acute/nominated-pharmacy/consecutive-dosage-instructions/1-Prepare-Response-200_OK.json new file mode 100644 index 00000000..496c0360 --- /dev/null +++ b/src/test/resources/examples/full_examples/secondary-care/homecare/acute/nominated-pharmacy/consecutive-dosage-instructions/1-Prepare-Response-200_OK.json @@ -0,0 +1,17 @@ +{ + "resourceType": "Parameters", + "parameter": [ + { + "name": "digest", + "valueString": "PFNpZ25lZEluZm8geG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvMDkveG1sZHNpZyMiPjxDYW5vbmljYWxpemF0aW9uTWV0aG9kIEFsZ29yaXRobT0iaHR0cDovL3d3dy53My5vcmcvMjAwMS8xMC94bWwtZXhjLWMxNG4jIj48L0Nhbm9uaWNhbGl6YXRpb25NZXRob2Q+PFNpZ25hdHVyZU1ldGhvZCBBbGdvcml0aG09Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvMDkveG1sZHNpZyNyc2Etc2hhMSI+PC9TaWduYXR1cmVNZXRob2Q+PFJlZmVyZW5jZT48VHJhbnNmb3Jtcz48VHJhbnNmb3JtIEFsZ29yaXRobT0iaHR0cDovL3d3dy53My5vcmcvMjAwMS8xMC94bWwtZXhjLWMxNG4jIj48L1RyYW5zZm9ybT48L1RyYW5zZm9ybXM+PERpZ2VzdE1ldGhvZCBBbGdvcml0aG09Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvMDkveG1sZHNpZyNzaGExIj48L0RpZ2VzdE1ldGhvZD48RGlnZXN0VmFsdWU+M3dYMFd6dXhxK3pPMkFtZ2R4Mk1tSDRKeVRBPTwvRGlnZXN0VmFsdWU+PC9SZWZlcmVuY2U+PC9TaWduZWRJbmZvPg==" + }, + { + "name": "timestamp", + "valueString": "2023-04-12T15:52:10+00:00" + }, + { + "name": "algorithm", + "valueString": "RS1" + } + ] +} diff --git a/src/test/resources/examples/full_examples/secondary-care/homecare/acute/nominated-pharmacy/consecutive-dosage-instructions/1-Process-Request-Dispense-200_OK.json b/src/test/resources/examples/full_examples/secondary-care/homecare/acute/nominated-pharmacy/consecutive-dosage-instructions/1-Process-Request-Dispense-200_OK.json new file mode 100644 index 00000000..898a0898 --- /dev/null +++ b/src/test/resources/examples/full_examples/secondary-care/homecare/acute/nominated-pharmacy/consecutive-dosage-instructions/1-Process-Request-Dispense-200_OK.json @@ -0,0 +1,745 @@ +{ + "resourceType": "Bundle", + "id": "166f1103-3r67-73dw-7364-s395c4itv284", + "identifier": { + "system": "https://tools.ietf.org/html/rfc4122", + "value": "a22ad970-417c-4b0d-9c18-19a54761b478" + }, + "type": "message", + "entry": [ + { + "fullUrl": "urn:uuid:be807dac-9dcf-45cf-91d6-70d9d58dcf34", + "resource": { + "resourceType": "MessageHeader", + "eventCoding": { + "system": "https://fhir.nhs.uk/CodeSystem/message-event", + "code": "dispense-notification", + "display": "Dispense Notification" + }, + "destination": [ + { + "endpoint": "https://sandbox.api.service.nhs.uk/electronic-prescriptions/$post-message", + "receiver": { + "identifier": { + "system": "https://fhir.nhs.uk/Id/ods-organization-code", + "value": "T1450" + }, + "display": "NHS BUSINESS SERVICES AUTHORITY" + } + } + ], + "sender": { + "identifier": { + "system": "https://fhir.nhs.uk/Id/ods-organization-code", + "value": "VNCEL" + }, + "display": "YORKSHIRE HOMECARE LIMITED" + }, + "source": { + "name": "YORKSHIRE HOMECARE LIMITED", + "endpoint": "https://directory.spineservices.nhs.uk/STU3/Organization/VNCEL" + }, + "reason": { + "coding": [ + { + "system": "https://fhir.nhs.uk/CodeSystem/message-reason-prescription", + "code": "notification", + "display": "Notification" + } + ] + }, + "response": { + "identifier": "999f9999-9999-9999-9ff9-f9fff9999999", + "code": "ok" + }, + "focus": [ + { + "reference": "urn:uuid:4509b70d-d8b8-ea03-1105-64557cb54a29" + } + ] + } + }, + { + "fullUrl": "urn:uuid:4509b70d-d8b8-ea03-1105-64557cb54a29", + "resource": { + "resourceType": "MedicationDispense", + "contained": [ + { + "resourceType": "PractitionerRole", + "id": "performer", + "identifier": [ + { + "system": "https://fhir.nhs.uk/Id/sds-role-profile-id", + "value": "555086415105" + } + ], + "practitioner": { + "identifier": { + "system": "https://fhir.nhs.uk/Id/sds-user-id", + "value": "3415870201" + }, + "display": "Jackie Clark" + }, + "organization": { + "reference": "urn:uuid:2bf9f37c-d88b-4f86-ad5f-373c1416e04b" + }, + "code": [ + { + "coding": [ + { + "system": "https://fhir.nhs.uk/CodeSystem/NHSDigital-SDS-JobRoleCode", + "code": "S8000:G8000:R8000", + "display": "Clinical Practitioner Access Role" + } + ] + } + ], + "telecom": [ + { + "system": "phone", + "use": "work", + "value": "02380798431" + } + ] + }, + { + "resourceType": "MedicationRequest", + "id": "m1", + "extension": [ + { + "url": "https://fhir.nhs.uk/StructureDefinition/Extension-DM-PrescriptionType", + "valueCoding": { + "system": "https://fhir.nhs.uk/CodeSystem/prescription-type", + "code": "0101", + "display": "Primary Care Prescriber - Medical Prescriber" + } + } + ], + "identifier": [ + { + "system": "https://fhir.nhs.uk/Id/prescription-order-item-number", + "value": "f0521c5e-c946-4db4-bf80-dd82fc1fc90d" + } + ], + "status": "active", + "intent": "order", + "category": [ + { + "coding": [ + { + "system": "http://terminology.hl7.org/CodeSystem/medicationrequest-category", + "code": "community", + "display": "Community" + } + ] + } + ], + "medicationCodeableConcept": { + "coding": [ + { + "system": "http://snomed.info/sct", + "code": "325427002", + "display": "Prednisolone 5mg tablets" + } + ] + }, + "subject": { + "reference": "urn:uuid:78d3c2eb-009e-4ec8-a358-b042954aa9b2" + }, + "authoredOn": "2022-11-21T11:37:15.572Z", + "requester": { + "reference": "urn:uuid:56166769-c1c4-4d07-afa8-132b5dfca666" + }, + "groupIdentifier": { + "system": "https://fhir.nhs.uk/Id/prescription-order-number", + "value": "628738-A83008-7EFE6P", + "extension": [ + { + "url": "https://fhir.nhs.uk/StructureDefinition/Extension-DM-PrescriptionId", + "valueIdentifier": { + "system": "https://fhir.nhs.uk/Id/prescription", + "value": "5b6a427a-c24c-4b16-9d3f-59a794280dc3" + } + } + ] + }, + "courseOfTherapyType": { + "coding": [ + { + "system": "http://terminology.hl7.org/CodeSystem/medicationrequest-course-of-therapy", + "code": "acute", + "display": "Short course (acute) therapy" + } + ] + }, + "dosageInstruction": [ + { + "sequence": 1, + "text": "EIGHT (8) tablets to be taken DAILY for two days. Take these tablets with or after food.", + "timing": { + "repeat": { + "boundsDuration": { + "value": 2, + "unit": "day", + "system": "http://unitsofmeasure.org", + "code": "d" + }, + "frequency": 8, + "period": 1, + "periodUnit": "d" + } + }, + "doseAndRate": [ + { + "doseQuantity": { + "value": 5, + "unit": "milligram", + "system": "http://unitsofmeasure.org", + "code": "mg" + } + } + ] + }, + { + "sequence": 2, + "text": "SEVEN (7) tablets to be taken DAILY for two days. Take these tablets with or after food.", + "timing": { + "repeat": { + "boundsDuration": { + "value": 2, + "unit": "day", + "system": "http://unitsofmeasure.org", + "code": "d" + }, + "frequency": 7, + "period": 1, + "periodUnit": "d" + } + }, + "doseAndRate": [ + { + "doseQuantity": { + "value": 5, + "unit": "milligram", + "system": "http://unitsofmeasure.org", + "code": "mg" + } + } + ] + }, + { + "sequence": 3, + "text": "SIX (6) tablets to be taken DAILY for two days. Take these tablets with or after food.", + "timing": { + "repeat": { + "boundsDuration": { + "value": 2, + "unit": "day", + "system": "http://unitsofmeasure.org", + "code": "d" + }, + "frequency": 6, + "period": 1, + "periodUnit": "d" + } + }, + "doseAndRate": [ + { + "doseQuantity": { + "value": 5, + "unit": "milligram", + "system": "http://unitsofmeasure.org", + "code": "mg" + } + } + ] + }, + { + "sequence": 4, + "text": "FIVE (5) tablets to be taken DAILY for two days. Take these tablets with or after food.", + "timing": { + "repeat": { + "boundsDuration": { + "value": 2, + "unit": "day", + "system": "http://unitsofmeasure.org", + "code": "d" + }, + "frequency": 5, + "period": 1, + "periodUnit": "d" + } + }, + "doseAndRate": [ + { + "doseQuantity": { + "value": 5, + "unit": "milligram", + "system": "http://unitsofmeasure.org", + "code": "mg" + } + } + ] + }, + { + "sequence": 5, + "text": "FOUR (4) tablets to be taken DAILY for two days. Take these tablets with or after food.", + "timing": { + "repeat": { + "boundsDuration": { + "value": 2, + "unit": "day", + "system": "http://unitsofmeasure.org", + "code": "d" + }, + "frequency": 4, + "period": 1, + "periodUnit": "d" + } + }, + "doseAndRate": [ + { + "doseQuantity": { + "value": 5, + "unit": "milligram", + "system": "http://unitsofmeasure.org", + "code": "mg" + } + } + ] + }, + { + "sequence": 6, + "text": "THREE (3) tablets to be taken DAILY for two days. Take these tablets with or after food.", + "timing": { + "repeat": { + "boundsDuration": { + "value": 2, + "unit": "day", + "system": "http://unitsofmeasure.org", + "code": "d" + }, + "frequency": 3, + "period": 1, + "periodUnit": "d" + } + }, + "doseAndRate": [ + { + "doseQuantity": { + "value": 5, + "unit": "milligram", + "system": "http://unitsofmeasure.org", + "code": "mg" + } + } + ] + }, + { + "sequence": 7, + "text": "TWO (2) tablets to be taken DAILY for two days. Take these tablets with or after food.", + "timing": { + "repeat": { + "boundsDuration": { + "value": 2, + "unit": "day", + "system": "http://unitsofmeasure.org", + "code": "d" + }, + "frequency": 2, + "period": 1, + "periodUnit": "d" + } + }, + "doseAndRate": [ + { + "doseQuantity": { + "value": 5, + "unit": "milligram", + "system": "http://unitsofmeasure.org", + "code": "mg" + } + } + ] + } + ], + "dispenseRequest": { + "extension": [ + { + "url": "https://fhir.nhs.uk/StructureDefinition/Extension-DM-PerformerSiteType", + "valueCoding": { + "system": "https://fhir.nhs.uk/CodeSystem/dispensing-site-preference", + "code": "P1" + } + } + ], + "quantity": { + "value": 72, + "unit": "tablet", + "system": "http://snomed.info/sct", + "code": "428673006" + }, + "validityPeriod": { + "start": "2022-10-20", + "end": "2023-03-20" + }, + "expectedSupplyDuration": { + "value": 30, + "unit": "day", + "system": "http://unitsofmeasure.org", + "code": "d" + }, + "performer": { + "identifier": { + "system": "https://fhir.nhs.uk/Id/ods-organization-code", + "value": "FK994" + } + } + }, + "substitution": { + "allowedBoolean": false + } + } + ], + "extension": [ + { + "url": "https://fhir.nhs.uk/StructureDefinition/Extension-EPS-TaskBusinessStatus", + "valueCoding": { + "system": "https://fhir.nhs.uk/CodeSystem/EPS-task-business-status", + "code": "0006", + "display": "Dispensed" + } + } + ], + "identifier": [ + { + "system": "https://fhir.nhs.uk/Id/prescription-dispense-item-number", + "value": "f0521c5e-c946-4db4-bf80-dd82fc1fc90d" + } + ], + "status": "completed", + "medicationCodeableConcept": { + "coding": [ + { + "system": "http://snomed.info/sct", + "code": "325427002", + "display": "Prednisolone 5mg tablets" + } + ] + }, + "subject": { + "type": "Patient", + "identifier": { + "system": "https://fhir.nhs.uk/Id/nhs-number", + "value": "9449304106" + }, + "display": "MR ZACKERY NICODEMUS LEGASSICK" + }, + "performer": [ + { + "actor": { + "reference": "#performer" + } + } + ], + "authorizingPrescription": [ + { + "reference": "#m1" + } + ], + "type": { + "coding": [ + { + "system": "https://fhir.nhs.uk/CodeSystem/medicationdispense-type", + "code": "0001", + "display": "Item fully dispensed" + } + ] + }, + "quantity": { + "value": 72, + "unit": "tablets", + "system": "http://snomed.info/sct", + "code": "428673006" + }, + "whenHandedOver": "2021-05-07T14:47:29+00:00", + "dosageInstruction": [ + { + "sequence": 1, + "text": "EIGHT (8) tablets to be taken DAILY for two days. Take these tablets with or after food.", + "timing": { + "repeat": { + "boundsDuration": { + "value": 2, + "unit": "day", + "system": "http://unitsofmeasure.org", + "code": "d" + }, + "frequency": 8, + "period": 1, + "periodUnit": "d" + } + }, + "doseAndRate": [ + { + "doseQuantity": { + "value": 5, + "unit": "milligram", + "system": "http://unitsofmeasure.org", + "code": "mg" + } + } + ] + }, + { + "sequence": 2, + "text": "SEVEN (7) tablets to be taken DAILY for two days. Take these tablets with or after food.", + "timing": { + "repeat": { + "boundsDuration": { + "value": 2, + "unit": "day", + "system": "http://unitsofmeasure.org", + "code": "d" + }, + "frequency": 7, + "period": 1, + "periodUnit": "d" + } + }, + "doseAndRate": [ + { + "doseQuantity": { + "value": 5, + "unit": "milligram", + "system": "http://unitsofmeasure.org", + "code": "mg" + } + } + ] + }, + { + "sequence": 3, + "text": "SIX (6) tablets to be taken DAILY for two days. Take these tablets with or after food.", + "timing": { + "repeat": { + "boundsDuration": { + "value": 2, + "unit": "day", + "system": "http://unitsofmeasure.org", + "code": "d" + }, + "frequency": 6, + "period": 1, + "periodUnit": "d" + } + }, + "doseAndRate": [ + { + "doseQuantity": { + "value": 5, + "unit": "milligram", + "system": "http://unitsofmeasure.org", + "code": "mg" + } + } + ] + }, + { + "sequence": 4, + "text": "FIVE (5) tablets to be taken DAILY for two days. Take these tablets with or after food.", + "timing": { + "repeat": { + "boundsDuration": { + "value": 2, + "unit": "day", + "system": "http://unitsofmeasure.org", + "code": "d" + }, + "frequency": 5, + "period": 1, + "periodUnit": "d" + } + }, + "doseAndRate": [ + { + "doseQuantity": { + "value": 5, + "unit": "milligram", + "system": "http://unitsofmeasure.org", + "code": "mg" + } + } + ] + }, + { + "sequence": 5, + "text": "FOUR (4) tablets to be taken DAILY for two days. Take these tablets with or after food.", + "timing": { + "repeat": { + "boundsDuration": { + "value": 2, + "unit": "day", + "system": "http://unitsofmeasure.org", + "code": "d" + }, + "frequency": 4, + "period": 1, + "periodUnit": "d" + } + }, + "doseAndRate": [ + { + "doseQuantity": { + "value": 5, + "unit": "milligram", + "system": "http://unitsofmeasure.org", + "code": "mg" + } + } + ] + }, + { + "sequence": 6, + "text": "THREE (3) tablets to be taken DAILY for two days. Take these tablets with or after food.", + "timing": { + "repeat": { + "boundsDuration": { + "value": 2, + "unit": "day", + "system": "http://unitsofmeasure.org", + "code": "d" + }, + "frequency": 3, + "period": 1, + "periodUnit": "d" + } + }, + "doseAndRate": [ + { + "doseQuantity": { + "value": 5, + "unit": "milligram", + "system": "http://unitsofmeasure.org", + "code": "mg" + } + } + ] + }, + { + "sequence": 7, + "text": "TWO (2) tablets to be taken DAILY for two days. Take these tablets with or after food.", + "timing": { + "repeat": { + "boundsDuration": { + "value": 2, + "unit": "day", + "system": "http://unitsofmeasure.org", + "code": "d" + }, + "frequency": 2, + "period": 1, + "periodUnit": "d" + } + }, + "doseAndRate": [ + { + "doseQuantity": { + "value": 5, + "unit": "milligram", + "system": "http://unitsofmeasure.org", + "code": "mg" + } + } + ] + }, + { + "sequence": 8, + "text": "ONE (1) tablet to be taken DAILY for two days. Take these tablets with or after food.", + "timing": { + "repeat": { + "boundsDuration": { + "value": 2, + "unit": "day", + "system": "http://unitsofmeasure.org", + "code": "d" + }, + "frequency": 1, + "period": 1, + "periodUnit": "d" + } + }, + "doseAndRate": [ + { + "doseQuantity": { + "value": 5, + "unit": "milligram", + "system": "http://unitsofmeasure.org", + "code": "mg" + } + } + ] + } + ] + } + }, + { + "fullUrl": "urn:uuid:2bf9f37c-d88b-4f86-ad5f-373c1416e04b", + "resource": { + "resourceType": "Organization", + "extension": [ + { + "url": "https://fhir.nhs.uk/StructureDefinition/Extension-ODS-OrganisationRelationships", + "extension": [ + { + "url": "reimbursementAuthority", + "valueIdentifier": { + "system": "https://fhir.nhs.uk/Id/ods-organization-code", + "value": "T1450" + } + } + ] + } + ], + "identifier": [ + { + "system": "https://fhir.nhs.uk/Id/ods-organization-code", + "value": "VNE51" + } + ], + "address": [ + { + "city": "West Yorkshire", + "use": "work", + "line": [ + "17 Austhorpe Road", + "Crossgates", + "Leeds" + ], + "postalCode": "LS15 8BA" + } + ], + "active": true, + "type": [ + { + "coding": [ + { + "system": "https://fhir.nhs.uk/CodeSystem/organisation-role", + "code": "182", + "display": "PHARMACY" + } + ] + } + ], + "name": "The Simple Pharmacy", + "telecom": [ + { + "system": "phone", + "use": "work", + "value": "0113 3180277" + } + ] + } + } + ] +} diff --git a/src/test/resources/examples/full_examples/secondary-care/homecare/acute/nominated-pharmacy/consecutive-dosage-instructions/1-Process-Request-Send-200_OK.json b/src/test/resources/examples/full_examples/secondary-care/homecare/acute/nominated-pharmacy/consecutive-dosage-instructions/1-Process-Request-Send-200_OK.json new file mode 100644 index 00000000..f02b25b3 --- /dev/null +++ b/src/test/resources/examples/full_examples/secondary-care/homecare/acute/nominated-pharmacy/consecutive-dosage-instructions/1-Process-Request-Send-200_OK.json @@ -0,0 +1,682 @@ +{ + "resourceType": "Bundle", + "id": "aef77afb-7e3c-427a-8657-2c427f71a272", + "identifier": { + "system": "https://tools.ietf.org/html/rfc4122", + "value": "4bbc97c0-f16d-4d82-85c8-c3cc62f8bd78" + }, + "type": "message", + "entry": [ + { + "fullUrl": "urn:uuid:aef77afb-7e3c-427a-8657-2c427f71a272", + "resource": { + "resourceType": "MessageHeader", + "id": "0fca2887-7235-4ea2-a82e-4c3007357a3f", + "eventCoding": { + "system": "https://fhir.nhs.uk/CodeSystem/message-event", + "code": "prescription-order", + "display": "Prescription Order" + }, + "sender": { + "identifier": { + "system": "https://fhir.nhs.uk/Id/ods-organization-code", + "value": "RBA" + }, + "reference": "urn:uuid:56166769-c1c4-4d07-afa8-132b5dfca666", + "display": "RAZIA|ALI" + }, + "source": { + "endpoint": "https://directory.spineservices.nhs.uk/STU3/Organization/RBA" + }, + "destination": [ + { + "endpoint": "https://sandbox.api.service.nhs.uk/electronic-prescriptions/$post-message", + "receiver": { + "identifier": { + "system": "https://fhir.nhs.uk/Id/ods-organization-code", + "value": "X26" + } + } + } + ], + "focus": [ + { + "reference": "urn:uuid:78d3c2eb-009e-4ec8-a358-b042954aa9b2" + }, + { + "reference": "urn:uuid:f0521c5e-c946-4db4-bf80-dd82fc1fc90d" + }, + { + "reference": "urn:uuid:51793ac0-112f-46c7-a891-9af8cefb206e" + } + ] + } + }, + { + "fullUrl": "urn:uuid:f0521c5e-c946-4db4-bf80-dd82fc1fc90d", + "resource": { + "resourceType": "MedicationRequest", + "id": "f0521c5e-c946-4db4-bf80-dd82fc1fc90d", + "extension": [ + { + "url": "https://fhir.nhs.uk/StructureDefinition/Extension-DM-PrescriptionType", + "valueCoding": { + "system": "https://fhir.nhs.uk/CodeSystem/prescription-type", + "code": "0101", + "display": "Primary Care Prescriber - Medical Prescriber" + } + } + ], + "identifier": [ + { + "system": "https://fhir.nhs.uk/Id/prescription-order-item-number", + "value": "f0521c5e-c946-4db4-bf80-dd82fc1fc90d" + } + ], + "medicationCodeableConcept": { + "coding": [ + { + "system": "http://snomed.info/sct", + "code": "325427002", + "display": "Prednisolone 5mg tablets" + } + ] + }, + "status": "active", + "intent": "order", + "subject": { + "reference": "urn:uuid:78d3c2eb-009e-4ec8-a358-b042954aa9b2" + }, + "category": [ + { + "coding": [ + { + "system": "http://terminology.hl7.org/CodeSystem/medicationrequest-category", + "code": "community", + "display": "Community" + } + ] + } + ], + "requester": { + "reference": "urn:uuid:56166769-c1c4-4d07-afa8-132b5dfca666" + }, + "groupIdentifier": { + "system": "https://fhir.nhs.uk/Id/prescription-order-number", + "value": "628738-A83008-7EFE6P", + "extension": [ + { + "url": "https://fhir.nhs.uk/StructureDefinition/Extension-DM-PrescriptionId", + "valueIdentifier": { + "system": "https://fhir.nhs.uk/Id/prescription", + "value": "5b6a427a-c24c-4b16-9d3f-59a794280dc3" + } + } + ] + }, + "courseOfTherapyType": { + "coding": [ + { + "system": "http://terminology.hl7.org/CodeSystem/medicationrequest-course-of-therapy", + "code": "acute", + "display": "Short course (acute) therapy" + } + ] + }, + "dosageInstruction": [ + { + "sequence": 1, + "text": "EIGHT (8) tablets to be taken DAILY for two days. Take these tablets with or after food.", + "timing": { + "repeat": { + "boundsDuration": { + "value": 2, + "unit": "day", + "system": "http://unitsofmeasure.org", + "code": "d" + }, + "frequency": 8, + "period": 1, + "periodUnit": "d" + } + }, + "doseAndRate": [ + { + "doseQuantity": { + "value": 5, + "unit": "milligram", + "system": "http://unitsofmeasure.org", + "code": "mg" + } + } + ] + }, + { + "sequence": 2, + "text": "SEVEN (7) tablets to be taken DAILY for two days. Take these tablets with or after food.", + "timing": { + "repeat": { + "boundsDuration": { + "value": 2, + "unit": "day", + "system": "http://unitsofmeasure.org", + "code": "d" + }, + "frequency": 7, + "period": 1, + "periodUnit": "d" + } + }, + "doseAndRate": [ + { + "doseQuantity": { + "value": 5, + "unit": "milligram", + "system": "http://unitsofmeasure.org", + "code": "mg" + } + } + ] + }, + { + "sequence": 3, + "text": "SIX (6) tablets to be taken DAILY for two days. Take these tablets with or after food.", + "timing": { + "repeat": { + "boundsDuration": { + "value": 2, + "unit": "day", + "system": "http://unitsofmeasure.org", + "code": "d" + }, + "frequency": 6, + "period": 1, + "periodUnit": "d" + } + }, + "doseAndRate": [ + { + "doseQuantity": { + "value": 5, + "unit": "milligram", + "system": "http://unitsofmeasure.org", + "code": "mg" + } + } + ] + }, + { + "sequence": 4, + "text": "FIVE (5) tablets to be taken DAILY for two days. Take these tablets with or after food.", + "timing": { + "repeat": { + "boundsDuration": { + "value": 2, + "unit": "day", + "system": "http://unitsofmeasure.org", + "code": "d" + }, + "frequency": 5, + "period": 1, + "periodUnit": "d" + } + }, + "doseAndRate": [ + { + "doseQuantity": { + "value": 5, + "unit": "milligram", + "system": "http://unitsofmeasure.org", + "code": "mg" + } + } + ] + }, + { + "sequence": 5, + "text": "FOUR (4) tablets to be taken DAILY for two days. Take these tablets with or after food.", + "timing": { + "repeat": { + "boundsDuration": { + "value": 2, + "unit": "day", + "system": "http://unitsofmeasure.org", + "code": "d" + }, + "frequency": 4, + "period": 1, + "periodUnit": "d" + } + }, + "doseAndRate": [ + { + "doseQuantity": { + "value": 5, + "unit": "milligram", + "system": "http://unitsofmeasure.org", + "code": "mg" + } + } + ] + }, + { + "sequence": 6, + "text": "THREE (3) tablets to be taken DAILY for two days. Take these tablets with or after food.", + "timing": { + "repeat": { + "boundsDuration": { + "value": 2, + "unit": "day", + "system": "http://unitsofmeasure.org", + "code": "d" + }, + "frequency": 3, + "period": 1, + "periodUnit": "d" + } + }, + "doseAndRate": [ + { + "doseQuantity": { + "value": 5, + "unit": "milligram", + "system": "http://unitsofmeasure.org", + "code": "mg" + } + } + ] + }, + { + "sequence": 7, + "text": "TWO (2) tablets to be taken DAILY for two days. Take these tablets with or after food.", + "timing": { + "repeat": { + "boundsDuration": { + "value": 2, + "unit": "day", + "system": "http://unitsofmeasure.org", + "code": "d" + }, + "frequency": 2, + "period": 1, + "periodUnit": "d" + } + }, + "doseAndRate": [ + { + "doseQuantity": { + "value": 5, + "unit": "milligram", + "system": "http://unitsofmeasure.org", + "code": "mg" + } + } + ] + } + ], + "dispenseRequest": { + "extension": [ + { + "url": "https://fhir.nhs.uk/StructureDefinition/Extension-DM-PerformerSiteType", + "valueCoding": { + "system": "https://fhir.nhs.uk/CodeSystem/dispensing-site-preference", + "code": "P1" + } + } + ], + "quantity": { + "value": 72, + "unit": "tablet", + "system": "http://snomed.info/sct", + "code": "428673006" + }, + "validityPeriod": { + "start": "2022-10-20", + "end": "2023-03-20" + }, + "expectedSupplyDuration": { + "value": 30, + "unit": "day", + "system": "http://unitsofmeasure.org", + "code": "d" + }, + "performer": { + "identifier": { + "system": "https://fhir.nhs.uk/Id/ods-organization-code", + "value": "FK994" + } + } + }, + "substitution": { + "allowedBoolean": false + } + } + }, + { + "fullUrl": "urn:uuid:78d3c2eb-009e-4ec8-a358-b042954aa9b2", + "resource": { + "resourceType": "Patient", + "identifier": [ + { + "system": "https://fhir.nhs.uk/Id/nhs-number", + "value": "9449304106" + } + ], + "name": [ + { + "use": "usual", + "family": "LEGASSICK", + "given": [ + "NICODEMUS", + "ZACKERY" + ], + "prefix": [ + "MR" + ] + } + ], + "gender": "male", + "birthDate": "1994-03-19", + "address": [ + { + "use": "home", + "line": [ + "11 LITTLEHEATH LANE", + "COBHAM", + "SURREY" + ], + "postalCode": "KT11 2QG" + } + ], + "generalPractitioner": [ + { + "identifier": { + "system": "https://fhir.nhs.uk/Id/ods-organization-code", + "value": "B81001" + } + } + ] + } + }, + { + "fullUrl": "urn:uuid:56166769-c1c4-4d07-afa8-132b5dfca666", + "resource": { + "resourceType": "PractitionerRole", + "id": "56166769-c1c4-4d07-afa8-132b5dfca666", + "identifier": [ + { + "system": "https://fhir.nhs.uk/Id/sds-role-profile-id", + "value": "100102238986" + } + ], + "practitioner": { + "reference": "urn:uuid:a8c85454-f8cb-498d-9629-78e2cb5fa47a" + }, + "organization": { + "reference": "urn:uuid:3b4b03a5-52ba-4ba6-9b82-70350aa109d8" + }, + "code": [ + { + "coding": [ + { + "system": "https://fhir.nhs.uk/CodeSystem/NHSDigital-SDS-JobRoleCode", + "code": "S8000:G8000:R8000", + "display": "Clinical Practitioner Access Role" + } + ] + } + ], + "telecom": [ + { + "system": "phone", + "value": "01234567890", + "use": "work" + } + ] + } + }, + { + "fullUrl": "urn:uuid:a8c85454-f8cb-498d-9629-78e2cb5fa47a", + "resource": { + "resourceType": "Practitioner", + "id": "a8c85454-f8cb-498d-9629-78e2cb5fa47a", + "identifier": [ + { + "system": "https://fhir.nhs.uk/Id/sds-user-id", + "value": "7020134158" + }, + { + "system": "https://fhir.hl7.org.uk/Id/gmc-number", + "value": "G9999999" + }, + { + "system": "https://fhir.hl7.org.uk/Id/din-number", + "value": "70201123456" + } + ], + "name": [ + { + "family": "Edwards", + "given": [ + "Thomas" + ], + "prefix": [ + "DR" + ] + } + ] + } + }, + { + "fullUrl": "urn:uuid:3b4b03a5-52ba-4ba6-9b82-70350aa109d8", + "resource": { + "resourceType": "Organization", + "id": "3b4b03a5-52ba-4ba6-9b82-70350aa109d8", + "identifier": [ + { + "system": "https://fhir.nhs.uk/Id/ods-organization-code", + "value": "RBA" + } + ], + "type": [ + { + "coding": [ + { + "system": "https://fhir.nhs.uk/CodeSystem/organisation-role", + "code": "197", + "display": "NHS TRUST" + } + ] + } + ], + "name": "TAUNTON AND SOMERSET NHS FOUNDATION TRUST", + "address": [ + { + "line": [ + "MUSGROVE PARK HOSPITAL", + "PARKFIELD DRIVE", + "TAUNTON" + ], + "postalCode": "TA1 5DA" + } + ], + "telecom": [ + { + "system": "phone", + "value": "01823333444", + "use": "work" + } + ], + "partOf": { + "identifier": { + "system": "https://fhir.nhs.uk/Id/ods-organization-code", + "value": "RBA" + }, + "display": "TAUNTON AND SOMERSET NHS FOUNDATION TRUST" + } + } + }, + { + "fullUrl": "urn:uuid:54b0506d-49af-4245-9d40-d7d64902055e", + "resource": { + "resourceType": "HealthcareService", + "id": "54b0506d-49af-4245-9d40-d7d64902055e", + "identifier": [ + { + "use": "usual", + "system": "https://fhir.nhs.uk/Id/ods-organization-code", + "value": "A99968" + } + ], + "active": true, + "providedBy": { + "identifier": { + "system": "https://fhir.nhs.uk/Id/ods-organization-code", + "value": "RBA" + } + }, + "location": [ + { + "reference": "urn:uuid:8a5d7d67-64fb-44ec-9802-2dc214bb3dcb" + } + ], + "name": "SOMERSET BOWEL CANCER SCREENING CENTRE", + "telecom": [ + { + "system": "phone", + "value": "01823 333444", + "use": "work" + } + ] + } + }, + { + "fullUrl": "urn:uuid:8a5d7d67-64fb-44ec-9802-2dc214bb3dcb", + "resource": { + "resourceType": "Location", + "id": "8a5d7d67-64fb-44ec-9802-2dc214bb3dcb", + "identifier": [ + { + "value": "10008800708" + } + ], + "status": "active", + "mode": "instance", + "address": { + "use": "work", + "line": [ + "MUSGROVE PARK HOSPITAL" + ], + "city": "TAUNTON", + "postalCode": "TA1 5DA" + } + } + }, + { + "fullUrl": "urn:uuid:51793ac0-112f-46c7-a891-9af8cefb206e", + "resource": { + "resourceType": "CommunicationRequest", + "status": "unknown", + "subject": { + "reference": "urn:uuid:78d3c2eb-009e-4ec8-a358-b042954aa9b2" + }, + "payload": [ + { + "contentReference": { + "reference": "urn:uuid:d0f003a0-8763-43d5-a264-ce52a38901c9", + "display": "List of Repeat Medications for re-ordering" + } + } + ], + "requester": { + "type": "Organization", + "identifier": { + "system": "https://fhir.nhs.uk/Id/ods-organization-code", + "value": "RBA" + }, + "display": "TAUNTON AND SOMERSET NHS FOUNDATION TRUST" + }, + "recipient": [ + { + "type": "Patient", + "identifier": { + "system": "https://fhir.nhs.uk/Id/nhs-number", + "value": "9453740519" + } + } + ] + } + }, + { + "fullUrl": "urn:uuid:d0f003a0-8763-43d5-a264-ce52a38901c9", + "resource": { + "resourceType": "List", + "status": "current", + "mode": "snapshot", + "code": { + "text": "Repeat Medications" + }, + "subject": { + "reference": "urn:uuid:78d3c2eb-009e-4ec8-a358-b042954aa9b2" + }, + "entry": [ + { + "item": { + "display": "Metformin 500mg tablets" + } + }, + { + "item": { + "display": "Aspirin 75mg dispersible tablets" + } + }, + { + "item": { + "display": "Simvastatin 40mg tablets" + } + }, + { + "item": { + "display": "Chloramphenicol 0.5% eye drops" + } + } + ] + } + }, + { + "fullUrl": "urn:uuid:28828c55-8fa7-42d7-916f-fcf076e0c10e", + "resource": { + "resourceType": "Provenance", + "id": "28828c55-8fa7-42d7-916f-fcf076e0c10e", + "target": [ + { + "reference": "urn:uuid:a54219b8-f741-4c47-b662-e4f8dfa49ab6" + } + ], + "recorded": "2008-02-27T11:38:00+00:00", + "agent": [ + { + "who": { + "reference": "urn:uuid:56166769-c1c4-4d07-afa8-132b5dfca666" + } + } + ], + "signature": [ + { + "type": [ + { + "system": "urn:iso-astm:E1762-95:2013", + "code": "1.2.840.10065.1.12.1.1" + } + ], + "when": "2021-05-07T14:47:30+00:00", + "who": { + "reference": "urn:uuid:56166769-c1c4-4d07-afa8-132b5dfca666" + }, + "data": "PFNpZ25lZEluZm8geG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvMDkveG1sZHNpZyMiPjxDYW5vbmljYWxpemF0aW9uTWV0aG9kIEFsZ29yaXRobT0iaHR0cDovL3d3dy53My5vcmcvMjAwMS8xMC94bWwtZXhjLWMxNG4jIj48L0Nhbm9uaWNhbGl6YXRpb25NZXRob2Q+PFNpZ25hdHVyZU1ldGhvZCBBbGdvcml0aG09Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvMDkveG1sZHNpZyNyc2Etc2hhMSI+PC9TaWduYXR1cmVNZXRob2Q+PFJlZmVyZW5jZT48VHJhbnNmb3Jtcz48VHJhbnNmb3JtIEFsZ29yaXRobT0iaHR0cDovL3d3dy53My5vcmcvMjAwMS8xMC94bWwtZXhjLWMxNG4jIj48L1RyYW5zZm9ybT48L1RyYW5zZm9ybXM+PERpZ2VzdE1ldGhvZCBBbGdvcml0aG09Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvMDkveG1sZHNpZyNzaGExIj48L0RpZ2VzdE1ldGhvZD48RGlnZXN0VmFsdWU+cTltTE1HMkFER1pGc2cxT0wzR0lKeWVYbTRVPTwvRGlnZXN0VmFsdWU+PC9SZWZlcmVuY2U+PC9TaWduZWRJbmZvPg==" + } + ] + } + } + ] +} diff --git a/src/test/resources/examples/full_examples/secondary-care/homecare/acute/nominated-pharmacy/consecutive-dosage-instructions/1-Task-Request-Release-200_OK.json b/src/test/resources/examples/full_examples/secondary-care/homecare/acute/nominated-pharmacy/consecutive-dosage-instructions/1-Task-Request-Release-200_OK.json new file mode 100644 index 00000000..d8b5695b --- /dev/null +++ b/src/test/resources/examples/full_examples/secondary-care/homecare/acute/nominated-pharmacy/consecutive-dosage-instructions/1-Task-Request-Release-200_OK.json @@ -0,0 +1,100 @@ +{ + "resourceType": "Parameters", + "id": "fe8bb8a3-9989-45d5-8764-2bac1f1ad409", + "parameter": [ + { + "name": "owner", + "resource": { + "resourceType": "Organization", + "id": "organization", + "identifier": [ + { + "system": "https://fhir.nhs.uk/Id/ods-organization-code", + "value": "VNE51" + } + ], + "address": [ + { + "city": "West Yorkshire", + "use": "work", + "line": [ + "17 Austhorpe Road", + "Crossgates", + "Leeds" + ], + "postalCode": "LS15 8BA" + } + ], + "active": true, + "type": [ + { + "coding": [ + { + "system": "https://fhir.nhs.uk/CodeSystem/organisation-role", + "code": "182", + "display": "PHARMACY" + } + ] + } + ], + "name": "The Simple Pharmacy", + "telecom": [ + { + "system": "phone", + "use": "work", + "value": "0113 3180277" + } + ] + } + }, + { + "name": "status", + "valueCode": "accepted" + }, + { + "name": "agent", + "resource": { + "resourceType": "PractitionerRole", + "id": "16708936-6397-4e03-b84f-4aaa790633e0", + "identifier": [ + { + "system": "https://fhir.nhs.uk/Id/sds-role-profile-id", + "value": "555086415105" + } + ], + "practitioner": { + "identifier": { + "system": "https://fhir.nhs.uk/Id/sds-user-id", + "value": "3415870201" + }, + "display": "Jackie Clark" + }, + "code": [ + { + "coding": [ + { + "system": "https://fhir.nhs.uk/CodeSystem/NHSDigital-SDS-JobRoleCode", + "code": "S8000:G8000:R8000", + "display": "Clinical Practitioner Access Role" + } + ] + } + ], + "telecom": [ + { + "system": "phone", + "value": "02380798431", + "use": "work" + } + ] + } + }, + { + "name": "group-identifier", + "valueIdentifier": { + "system": "https://fhir.nhs.uk/Id/prescription-order-number", + "value": "628738-A83008-7EFE6P" + } + } + ] +} diff --git a/src/test/resources/examples/invalidBundle.json b/src/test/resources/examples/invalidBundle.json index 5dad6349..0d8d7427 100644 --- a/src/test/resources/examples/invalidBundle.json +++ b/src/test/resources/examples/invalidBundle.json @@ -373,4 +373,4 @@ } } ] -} \ No newline at end of file +} diff --git a/src/test/resources/examples/invalidOperationOutcome.json b/src/test/resources/examples/invalidOperationOutcome.json index 417929f4..26800155 100644 --- a/src/test/resources/examples/invalidOperationOutcome.json +++ b/src/test/resources/examples/invalidOperationOutcome.json @@ -3,4 +3,4 @@ "meta": { "lastUpdated": "2022-10-21T13:47:00+00:00" } -} \ No newline at end of file +} diff --git a/src/test/resources/examples/invalidParameters.json b/src/test/resources/examples/invalidParameters.json index 752d9d30..a7a447b2 100644 --- a/src/test/resources/examples/invalidParameters.json +++ b/src/test/resources/examples/invalidParameters.json @@ -5,4 +5,4 @@ "name": "timestamp" } ] -} \ No newline at end of file +} diff --git a/src/test/resources/examples/validOperationOutcome.json b/src/test/resources/examples/validOperationOutcome.json index 1384ac80..4d90c94d 100644 --- a/src/test/resources/examples/validOperationOutcome.json +++ b/src/test/resources/examples/validOperationOutcome.json @@ -9,4 +9,4 @@ "code": "informational" } ] -} \ No newline at end of file +} diff --git a/src/test/resources/examples/validParameters.json b/src/test/resources/examples/validParameters.json index f03f3803..4e86b816 100644 --- a/src/test/resources/examples/validParameters.json +++ b/src/test/resources/examples/validParameters.json @@ -6,4 +6,4 @@ "valueString": "2022-10-25T10:24:34+00:00" } ] -} \ No newline at end of file +} diff --git a/src/test/resources/results/5.4.2/array.json b/src/test/resources/results/5.4.2/array.json new file mode 100644 index 00000000..5bc1f266 --- /dev/null +++ b/src/test/resources/results/5.4.2/array.json @@ -0,0 +1,10 @@ +{ + "resourceType": "OperationOutcome", + "issue": [ + { + "severity": "error", + "code": "processing", + "diagnostics": "Failed to parse JSON encoded FHIR content: Content does not appear to be FHIR JSON, first non-whitespace character was: '[' (must be '{')" + } + ] +} diff --git a/src/test/resources/results/5.4.2/bad_json.json b/src/test/resources/results/5.4.2/bad_json.json new file mode 100644 index 00000000..a92fc075 --- /dev/null +++ b/src/test/resources/results/5.4.2/bad_json.json @@ -0,0 +1,10 @@ +{ + "resourceType": "OperationOutcome", + "issue": [ + { + "severity": "error", + "code": "processing", + "diagnostics": "Failed to parse JSON encoded FHIR content: Unexpected character ('a' (code 97)): was expecting double-quote to start field name\n at [Source: REDACTED (`StreamReadFeature.INCLUDE_SOURCE_IN_LOCATION` disabled); line: 1, column: 2]" + } + ] +} diff --git a/src/test/resources/results/5.4.2/boolean_json.json b/src/test/resources/results/5.4.2/boolean_json.json new file mode 100644 index 00000000..21d1142f --- /dev/null +++ b/src/test/resources/results/5.4.2/boolean_json.json @@ -0,0 +1,10 @@ +{ + "resourceType": "OperationOutcome", + "issue": [ + { + "severity": "error", + "code": "processing", + "diagnostics": "Failed to parse JSON encoded FHIR content: Content does not appear to be FHIR JSON, first non-whitespace character was: 't' (must be '{')" + } + ] +} diff --git a/src/test/resources/results/5.4.2/empty.json b/src/test/resources/results/5.4.2/empty.json new file mode 100644 index 00000000..ec7791e6 --- /dev/null +++ b/src/test/resources/results/5.4.2/empty.json @@ -0,0 +1,10 @@ +{ + "resourceType": "OperationOutcome", + "issue": [ + { + "severity": "error", + "code": "processing", + "diagnostics": "Failed to parse JSON encoded FHIR content: Did not find any content to parse" + } + ] +} diff --git a/src/test/resources/results/5.4.2/invalidBundle.json b/src/test/resources/results/5.4.2/invalidBundle.json new file mode 100644 index 00000000..fd403310 --- /dev/null +++ b/src/test/resources/results/5.4.2/invalidBundle.json @@ -0,0 +1,68 @@ +{ + "resourceType": "OperationOutcome", + "issue": [ + { + "severity": "error", + "code": "processing", + "diagnostics": "Bundle entry missing fullUrl", + "location": [ + "Bundle.entry[0]", + "Line 1, Col 360" + ] + }, + { + "severity": "warning", + "code": "processing", + "diagnostics": "None of the codings provided are in the value set https://fhir.nhs.uk/ValueSet/NHSDigital-MedicationCode (https://fhir.nhs.uk/ValueSet/NHSDigital-MedicationCode), and a coding should come from this value set unless it has no suitable code (note that the validator cannot judge what is suitable) (codes = http://snomed.info/sct#15517911000001104)", + "location": [ + "Bundle.entry[1].resource.ofType(MedicationRequest).medication.ofType(CodeableConcept)", + "Line 1, Col 2505" + ] + }, + { + "severity": "error", + "code": "processing", + "diagnostics": "Unable to find a match for profile urn:uuid:56166769-c1c4-4d07-afa8-132b5dfca666 among choices: https://fhir.nhs.uk/StructureDefinition/NHSDigital-PractitionerRole-EPSLegal", + "location": [ + "Bundle.entry[1].resource.ofType(MedicationRequest).requester", + "Line 1, Col 2838" + ] + }, + { + "severity": "information", + "code": "processing", + "diagnostics": "Details for urn:uuid:56166769-c1c4-4d07-afa8-132b5dfca666 matching against Profilehttps://fhir.nhs.uk/StructureDefinition/NHSDigital-PractitionerRole-EPSLegal", + "location": [ + "Bundle.entry[1].resource.ofType(MedicationRequest).requester", + "Line 1, Col 2838" + ] + }, + { + "severity": "warning", + "code": "processing", + "diagnostics": "prac-gmc: 'GMC must be of the format CNNNNNNN' Rule 'GMC must be of the format CNNNNNNN' Failed", + "location": [ + "Bundle.entry[3].resource.ofType(Practitioner)", + "Line 1, Col 1" + ] + }, + { + "severity": "warning", + "code": "processing", + "diagnostics": "role-spurious: 'Spurious Code format must be G6NNNNNN or G7NNNNNN' Rule 'Spurious Code format must be G6NNNNNN or G7NNNNNN' Failed", + "location": [ + "Bundle.entry[4].resource.ofType(PractitionerRole)", + "Line 1, Col 1" + ] + }, + { + "severity": "error", + "code": "processing", + "diagnostics": "Except for transactions and batches, each entry in a Bundle must have a fullUrl which is the identity of the resource in the entry ", + "location": [ + "Bundle.entry[0]", + "Line 1, Col 360" + ] + } + ] +} diff --git a/src/test/resources/results/5.4.2/invalidOperationOutcome.json b/src/test/resources/results/5.4.2/invalidOperationOutcome.json new file mode 100644 index 00000000..a546e765 --- /dev/null +++ b/src/test/resources/results/5.4.2/invalidOperationOutcome.json @@ -0,0 +1,14 @@ +{ + "resourceType": "OperationOutcome", + "issue": [ + { + "severity": "error", + "code": "processing", + "diagnostics": "OperationOutcome.issue: minimum required = 1, but only found 0 (from https://fhir.nhs.uk/StructureDefinition/NHSDigital-OperationOutcome)", + "location": [ + "OperationOutcome", + "Line 1, Col 47" + ] + } + ] +} diff --git a/src/test/resources/results/5.4.2/invalidParameters.json b/src/test/resources/results/5.4.2/invalidParameters.json new file mode 100644 index 00000000..4b4952af --- /dev/null +++ b/src/test/resources/results/5.4.2/invalidParameters.json @@ -0,0 +1,14 @@ +{ + "resourceType": "OperationOutcome", + "issue": [ + { + "severity": "error", + "code": "processing", + "diagnostics": "inv-1: 'A parameter must have one and only one of (value, resource, part)' Rule 'A parameter must have one and only one of (value, resource, part)' Failed", + "location": [ + "Parameters.parameter[0]", + "Line 1, Col 52" + ] + } + ] +} diff --git a/src/test/resources/results/missingHeader.json b/src/test/resources/results/5.4.2/missingHeader.json similarity index 100% rename from src/test/resources/results/missingHeader.json rename to src/test/resources/results/5.4.2/missingHeader.json diff --git a/src/test/resources/results/null_java.json b/src/test/resources/results/5.4.2/null_java.json similarity index 100% rename from src/test/resources/results/null_java.json rename to src/test/resources/results/5.4.2/null_java.json diff --git a/src/test/resources/results/5.4.2/null_json.json b/src/test/resources/results/5.4.2/null_json.json new file mode 100644 index 00000000..a2179dc3 --- /dev/null +++ b/src/test/resources/results/5.4.2/null_json.json @@ -0,0 +1,10 @@ +{ + "resourceType": "OperationOutcome", + "issue": [ + { + "severity": "error", + "code": "processing", + "diagnostics": "Failed to parse JSON encoded FHIR content: Content does not appear to be FHIR JSON, first non-whitespace character was: 'n' (must be '{')" + } + ] +} diff --git a/src/test/resources/results/5.4.2/number_json.json b/src/test/resources/results/5.4.2/number_json.json new file mode 100644 index 00000000..b7e587a0 --- /dev/null +++ b/src/test/resources/results/5.4.2/number_json.json @@ -0,0 +1,10 @@ +{ + "resourceType": "OperationOutcome", + "issue": [ + { + "severity": "error", + "code": "processing", + "diagnostics": "Failed to parse JSON encoded FHIR content: Content does not appear to be FHIR JSON, first non-whitespace character was: '1' (must be '{')" + } + ] +} diff --git a/src/test/resources/results/5.4.2/psu_nhs_digital.json b/src/test/resources/results/5.4.2/psu_nhs_digital.json new file mode 100644 index 00000000..14b78e97 --- /dev/null +++ b/src/test/resources/results/5.4.2/psu_nhs_digital.json @@ -0,0 +1,68 @@ +{ + "resourceType": "OperationOutcome", + "issue": [ + { + "severity": "information", + "code": "processing", + "diagnostics": "Binding for path Bundle.entry[0].resource.ofType(Task).businessStatus has no source, so can't be checked", + "location": [ + "Bundle.entry[0].resource.ofType(Task).businessStatus", + "Line 1, Col 668" + ] + }, + { + "severity": "error", + "code": "processing", + "diagnostics": "Task.identifier: minimum required = 1, but only found 0 (from https://fhir.nhs.uk/StructureDefinition/NHSDigital-Task-EPS)", + "location": [ + "Bundle.entry[0].resource.ofType(Task)", + "Line 1, Col 267" + ] + }, + { + "severity": "error", + "code": "processing", + "diagnostics": "Task.code: minimum required = 1, but only found 0 (from https://fhir.nhs.uk/StructureDefinition/NHSDigital-Task-EPS)", + "location": [ + "Bundle.entry[0].resource.ofType(Task)", + "Line 1, Col 267" + ] + }, + { + "severity": "error", + "code": "processing", + "diagnostics": "Task.authoredOn: minimum required = 1, but only found 0 (from https://fhir.nhs.uk/StructureDefinition/NHSDigital-Task-EPS)", + "location": [ + "Bundle.entry[0].resource.ofType(Task)", + "Line 1, Col 267" + ] + }, + { + "severity": "error", + "code": "processing", + "diagnostics": "Task.requester: minimum required = 1, but only found 0 (from https://fhir.nhs.uk/StructureDefinition/NHSDigital-Task-EPS)", + "location": [ + "Bundle.entry[0].resource.ofType(Task)", + "Line 1, Col 267" + ] + }, + { + "severity": "error", + "code": "processing", + "diagnostics": "None of the codings provided are in the value set https://fhir.nhs.uk/ValueSet/DM-task-business-status (https://fhir.nhs.uk/ValueSet/DM-task-business-status), and a coding from this value set is required) (codes = https://fhir.nhs.uk/CodeSystem/task-businessStatus-nppt#Dispatched)", + "location": [ + "Bundle.entry[0].resource.ofType(Task).businessStatus", + "Line 1, Col 668" + ] + }, + { + "severity": "error", + "code": "processing", + "diagnostics": "Task.businessStatus.coding.display: minimum required = 1, but only found 0 (from https://fhir.nhs.uk/StructureDefinition/NHSDigital-Task-EPS)", + "location": [ + "Bundle.entry[0].resource.ofType(Task).businessStatus.coding[0]", + "Line 1, Col 676" + ] + } + ] +} diff --git a/src/test/resources/results/5.4.2/psu_update.json b/src/test/resources/results/5.4.2/psu_update.json new file mode 100644 index 00000000..dd94150d --- /dev/null +++ b/src/test/resources/results/5.4.2/psu_update.json @@ -0,0 +1,14 @@ +{ + "resourceType": "OperationOutcome", + "issue": [ + { + "severity": "information", + "code": "processing", + "diagnostics": "Binding for path Bundle.entry[0].resource.ofType(Task).businessStatus has no source, so can't be checked", + "location": [ + "Bundle.entry[0].resource.ofType(Task).businessStatus", + "Line 1, Col 481" + ] + } + ] +} diff --git a/src/test/resources/results/5.4.2/searchSet.json b/src/test/resources/results/5.4.2/searchSet.json new file mode 100644 index 00000000..3f3c62bf --- /dev/null +++ b/src/test/resources/results/5.4.2/searchSet.json @@ -0,0 +1,607 @@ +{ + "resourceType": "OperationOutcome", + "issue": [ + { + "severity": "error", + "code": "processing", + "diagnostics": "MedicationRequest.identifier: minimum required = 1, but only found 0 (from https://fhir.nhs.uk/StructureDefinition/NHSDigital-MedicationRequest)", + "location": [ + "Bundle.entry[0].resource.ofType(MedicationRequest)", + "Line 1, Col 246" + ] + }, + { + "severity": "error", + "code": "processing", + "diagnostics": "MedicationRequest.identifier:prescriptionOrderItem: minimum required = 1, but only found 0 (from https://fhir.nhs.uk/StructureDefinition/NHSDigital-MedicationRequest)", + "location": [ + "Bundle.entry[0].resource.ofType(MedicationRequest)", + "Line 1, Col 246" + ] + }, + { + "severity": "error", + "code": "processing", + "diagnostics": "MedicationRequest.dosageInstruction: minimum required = 1, but only found 0 (from https://fhir.nhs.uk/StructureDefinition/NHSDigital-MedicationRequest)", + "location": [ + "Bundle.entry[0].resource.ofType(MedicationRequest)", + "Line 1, Col 246" + ] + }, + { + "severity": "warning", + "code": "processing", + "diagnostics": "None of the codings provided are in the value set https://fhir.nhs.uk/ValueSet/NHSDigital-MedicationCode (https://fhir.nhs.uk/ValueSet/NHSDigital-MedicationCode), and a coding should come from this value set unless it has no suitable code (note that the validator cannot judge what is suitable) (codes = https://snomed.info/sct#39732311000001104)", + "location": [ + "Bundle.entry[0].resource.ofType(MedicationRequest).medication.ofType(CodeableConcept)", + "Line 1, Col 492" + ] + }, + { + "severity": "information", + "code": "processing", + "diagnostics": "This element does not match any known slice defined in the profile https://fhir.nhs.uk/StructureDefinition/NHSDigital-MedicationRequest-CodeableConcept", + "location": [ + "Bundle.entry[0].resource.ofType(MedicationRequest).medication.ofType(CodeableConcept).coding[0]", + "Line 1, Col 500" + ] + }, + { + "severity": "error", + "code": "processing", + "diagnostics": "CodeableConcept.coding:SNOMED: minimum required = 1, but only found 0 (from https://fhir.nhs.uk/StructureDefinition/NHSDigital-MedicationRequest-CodeableConcept)", + "location": [ + "Bundle.entry[0].resource.ofType(MedicationRequest).medication.ofType(CodeableConcept)", + "Line 1, Col 492" + ] + }, + { + "severity": "error", + "code": "processing", + "diagnostics": "MedicationRequest.groupIdentifier.extension: minimum required = 1, but only found 0 (from https://fhir.nhs.uk/StructureDefinition/NHSDigital-MedicationRequest)", + "location": [ + "Bundle.entry[0].resource.ofType(MedicationRequest).groupIdentifier", + "Line 1, Col 933" + ] + }, + { + "severity": "error", + "code": "processing", + "diagnostics": "MedicationRequest.groupIdentifier.extension:PrescriptionOrderUUID: minimum required = 1, but only found 0 (from https://fhir.nhs.uk/StructureDefinition/NHSDigital-MedicationRequest)", + "location": [ + "Bundle.entry[0].resource.ofType(MedicationRequest).groupIdentifier", + "Line 1, Col 933" + ] + }, + { + "severity": "error", + "code": "processing", + "diagnostics": "None of the codings provided are in the value set https://fhir.nhs.uk/ValueSet/DM-medicationrequest-course-of-therapy (https://fhir.nhs.uk/ValueSet/DM-medicationrequest-course-of-therapy), and a coding from this value set is required) (codes = https://terminology.hl7.org/CodeSystem/medicationrequest-course-of-therapy#acute)", + "location": [ + "Bundle.entry[0].resource.ofType(MedicationRequest).courseOfTherapyType", + "Line 1, Col 1090" + ] + }, + { + "severity": "error", + "code": "processing", + "diagnostics": "MedicationRequest.dispenseRequest.extension: minimum required = 1, but only found 0 (from https://fhir.nhs.uk/StructureDefinition/NHSDigital-MedicationRequest)", + "location": [ + "Bundle.entry[0].resource.ofType(MedicationRequest).dispenseRequest", + "Line 1, Col 1329" + ] + }, + { + "severity": "error", + "code": "processing", + "diagnostics": "MedicationRequest.dispenseRequest.extension:performerSiteType: minimum required = 1, but only found 0 (from https://fhir.nhs.uk/StructureDefinition/NHSDigital-MedicationRequest)", + "location": [ + "Bundle.entry[0].resource.ofType(MedicationRequest).dispenseRequest", + "Line 1, Col 1329" + ] + }, + { + "severity": "error", + "code": "processing", + "diagnostics": "MedicationRequest.identifier: minimum required = 1, but only found 0 (from https://fhir.nhs.uk/StructureDefinition/NHSDigital-MedicationRequest)", + "location": [ + "Bundle.entry[1].resource.ofType(MedicationRequest)", + "Line 1, Col 1874" + ] + }, + { + "severity": "error", + "code": "processing", + "diagnostics": "MedicationRequest.identifier:prescriptionOrderItem: minimum required = 1, but only found 0 (from https://fhir.nhs.uk/StructureDefinition/NHSDigital-MedicationRequest)", + "location": [ + "Bundle.entry[1].resource.ofType(MedicationRequest)", + "Line 1, Col 1874" + ] + }, + { + "severity": "error", + "code": "processing", + "diagnostics": "MedicationRequest.dosageInstruction: minimum required = 1, but only found 0 (from https://fhir.nhs.uk/StructureDefinition/NHSDigital-MedicationRequest)", + "location": [ + "Bundle.entry[1].resource.ofType(MedicationRequest)", + "Line 1, Col 1874" + ] + }, + { + "severity": "warning", + "code": "processing", + "diagnostics": "None of the codings provided are in the value set https://fhir.nhs.uk/ValueSet/NHSDigital-MedicationCode (https://fhir.nhs.uk/ValueSet/NHSDigital-MedicationCode), and a coding should come from this value set unless it has no suitable code (note that the validator cannot judge what is suitable) (codes = https://snomed.info/sct#322341003)", + "location": [ + "Bundle.entry[1].resource.ofType(MedicationRequest).medication.ofType(CodeableConcept)", + "Line 1, Col 2120" + ] + }, + { + "severity": "information", + "code": "processing", + "diagnostics": "This element does not match any known slice defined in the profile https://fhir.nhs.uk/StructureDefinition/NHSDigital-MedicationRequest-CodeableConcept", + "location": [ + "Bundle.entry[1].resource.ofType(MedicationRequest).medication.ofType(CodeableConcept).coding[0]", + "Line 1, Col 2128" + ] + }, + { + "severity": "error", + "code": "processing", + "diagnostics": "CodeableConcept.coding:SNOMED: minimum required = 1, but only found 0 (from https://fhir.nhs.uk/StructureDefinition/NHSDigital-MedicationRequest-CodeableConcept)", + "location": [ + "Bundle.entry[1].resource.ofType(MedicationRequest).medication.ofType(CodeableConcept)", + "Line 1, Col 2120" + ] + }, + { + "severity": "error", + "code": "processing", + "diagnostics": "MedicationRequest.groupIdentifier.extension: minimum required = 1, but only found 0 (from https://fhir.nhs.uk/StructureDefinition/NHSDigital-MedicationRequest)", + "location": [ + "Bundle.entry[1].resource.ofType(MedicationRequest).groupIdentifier", + "Line 1, Col 2556" + ] + }, + { + "severity": "error", + "code": "processing", + "diagnostics": "MedicationRequest.groupIdentifier.extension:PrescriptionOrderUUID: minimum required = 1, but only found 0 (from https://fhir.nhs.uk/StructureDefinition/NHSDigital-MedicationRequest)", + "location": [ + "Bundle.entry[1].resource.ofType(MedicationRequest).groupIdentifier", + "Line 1, Col 2556" + ] + }, + { + "severity": "error", + "code": "processing", + "diagnostics": "None of the codings provided are in the value set https://fhir.nhs.uk/ValueSet/DM-medicationrequest-course-of-therapy (https://fhir.nhs.uk/ValueSet/DM-medicationrequest-course-of-therapy), and a coding from this value set is required) (codes = https://terminology.hl7.org/CodeSystem/medicationrequest-course-of-therapy#acute)", + "location": [ + "Bundle.entry[1].resource.ofType(MedicationRequest).courseOfTherapyType", + "Line 1, Col 2713" + ] + }, + { + "severity": "error", + "code": "processing", + "diagnostics": "MedicationRequest.dispenseRequest.extension: minimum required = 1, but only found 0 (from https://fhir.nhs.uk/StructureDefinition/NHSDigital-MedicationRequest)", + "location": [ + "Bundle.entry[1].resource.ofType(MedicationRequest).dispenseRequest", + "Line 1, Col 2952" + ] + }, + { + "severity": "error", + "code": "processing", + "diagnostics": "MedicationRequest.dispenseRequest.extension:performerSiteType: minimum required = 1, but only found 0 (from https://fhir.nhs.uk/StructureDefinition/NHSDigital-MedicationRequest)", + "location": [ + "Bundle.entry[1].resource.ofType(MedicationRequest).dispenseRequest", + "Line 1, Col 2952" + ] + }, + { + "severity": "error", + "code": "processing", + "diagnostics": "MedicationRequest.identifier: minimum required = 1, but only found 0 (from https://fhir.nhs.uk/StructureDefinition/NHSDigital-MedicationRequest)", + "location": [ + "Bundle.entry[2].resource.ofType(MedicationRequest)", + "Line 1, Col 3497" + ] + }, + { + "severity": "error", + "code": "processing", + "diagnostics": "MedicationRequest.identifier:prescriptionOrderItem: minimum required = 1, but only found 0 (from https://fhir.nhs.uk/StructureDefinition/NHSDigital-MedicationRequest)", + "location": [ + "Bundle.entry[2].resource.ofType(MedicationRequest)", + "Line 1, Col 3497" + ] + }, + { + "severity": "error", + "code": "processing", + "diagnostics": "MedicationRequest.dosageInstruction: minimum required = 1, but only found 0 (from https://fhir.nhs.uk/StructureDefinition/NHSDigital-MedicationRequest)", + "location": [ + "Bundle.entry[2].resource.ofType(MedicationRequest)", + "Line 1, Col 3497" + ] + }, + { + "severity": "warning", + "code": "processing", + "diagnostics": "None of the codings provided are in the value set https://fhir.nhs.uk/ValueSet/NHSDigital-MedicationCode (https://fhir.nhs.uk/ValueSet/NHSDigital-MedicationCode), and a coding should come from this value set unless it has no suitable code (note that the validator cannot judge what is suitable) (codes = https://snomed.info/sct#321080004)", + "location": [ + "Bundle.entry[2].resource.ofType(MedicationRequest).medication.ofType(CodeableConcept)", + "Line 1, Col 3743" + ] + }, + { + "severity": "information", + "code": "processing", + "diagnostics": "This element does not match any known slice defined in the profile https://fhir.nhs.uk/StructureDefinition/NHSDigital-MedicationRequest-CodeableConcept", + "location": [ + "Bundle.entry[2].resource.ofType(MedicationRequest).medication.ofType(CodeableConcept).coding[0]", + "Line 1, Col 3751" + ] + }, + { + "severity": "error", + "code": "processing", + "diagnostics": "CodeableConcept.coding:SNOMED: minimum required = 1, but only found 0 (from https://fhir.nhs.uk/StructureDefinition/NHSDigital-MedicationRequest-CodeableConcept)", + "location": [ + "Bundle.entry[2].resource.ofType(MedicationRequest).medication.ofType(CodeableConcept)", + "Line 1, Col 3743" + ] + }, + { + "severity": "error", + "code": "processing", + "diagnostics": "MedicationRequest.groupIdentifier.extension: minimum required = 1, but only found 0 (from https://fhir.nhs.uk/StructureDefinition/NHSDigital-MedicationRequest)", + "location": [ + "Bundle.entry[2].resource.ofType(MedicationRequest).groupIdentifier", + "Line 1, Col 4192" + ] + }, + { + "severity": "error", + "code": "processing", + "diagnostics": "MedicationRequest.groupIdentifier.extension:PrescriptionOrderUUID: minimum required = 1, but only found 0 (from https://fhir.nhs.uk/StructureDefinition/NHSDigital-MedicationRequest)", + "location": [ + "Bundle.entry[2].resource.ofType(MedicationRequest).groupIdentifier", + "Line 1, Col 4192" + ] + }, + { + "severity": "error", + "code": "processing", + "diagnostics": "None of the codings provided are in the value set https://fhir.nhs.uk/ValueSet/DM-medicationrequest-course-of-therapy (https://fhir.nhs.uk/ValueSet/DM-medicationrequest-course-of-therapy), and a coding from this value set is required) (codes = https://terminology.hl7.org/CodeSystem/medicationrequest-course-of-therapy#acute)", + "location": [ + "Bundle.entry[2].resource.ofType(MedicationRequest).courseOfTherapyType", + "Line 1, Col 4349" + ] + }, + { + "severity": "error", + "code": "processing", + "diagnostics": "MedicationRequest.dispenseRequest.extension: minimum required = 1, but only found 0 (from https://fhir.nhs.uk/StructureDefinition/NHSDigital-MedicationRequest)", + "location": [ + "Bundle.entry[2].resource.ofType(MedicationRequest).dispenseRequest", + "Line 1, Col 4588" + ] + }, + { + "severity": "error", + "code": "processing", + "diagnostics": "MedicationRequest.dispenseRequest.extension:performerSiteType: minimum required = 1, but only found 0 (from https://fhir.nhs.uk/StructureDefinition/NHSDigital-MedicationRequest)", + "location": [ + "Bundle.entry[2].resource.ofType(MedicationRequest).dispenseRequest", + "Line 1, Col 4588" + ] + }, + { + "severity": "error", + "code": "processing", + "diagnostics": "MedicationRequest.identifier: minimum required = 1, but only found 0 (from https://fhir.nhs.uk/StructureDefinition/NHSDigital-MedicationRequest)", + "location": [ + "Bundle.entry[3].resource.ofType(MedicationRequest)", + "Line 1, Col 5133" + ] + }, + { + "severity": "error", + "code": "processing", + "diagnostics": "MedicationRequest.identifier:prescriptionOrderItem: minimum required = 1, but only found 0 (from https://fhir.nhs.uk/StructureDefinition/NHSDigital-MedicationRequest)", + "location": [ + "Bundle.entry[3].resource.ofType(MedicationRequest)", + "Line 1, Col 5133" + ] + }, + { + "severity": "error", + "code": "processing", + "diagnostics": "MedicationRequest.dosageInstruction: minimum required = 1, but only found 0 (from https://fhir.nhs.uk/StructureDefinition/NHSDigital-MedicationRequest)", + "location": [ + "Bundle.entry[3].resource.ofType(MedicationRequest)", + "Line 1, Col 5133" + ] + }, + { + "severity": "warning", + "code": "processing", + "diagnostics": "None of the codings provided are in the value set https://fhir.nhs.uk/ValueSet/NHSDigital-MedicationCode (https://fhir.nhs.uk/ValueSet/NHSDigital-MedicationCode), and a coding should come from this value set unless it has no suitable code (note that the validator cannot judge what is suitable) (codes = https://snomed.info/sct#324252006)", + "location": [ + "Bundle.entry[3].resource.ofType(MedicationRequest).medication.ofType(CodeableConcept)", + "Line 1, Col 5382" + ] + }, + { + "severity": "information", + "code": "processing", + "diagnostics": "This element does not match any known slice defined in the profile https://fhir.nhs.uk/StructureDefinition/NHSDigital-MedicationRequest-CodeableConcept", + "location": [ + "Bundle.entry[3].resource.ofType(MedicationRequest).medication.ofType(CodeableConcept).coding[0]", + "Line 1, Col 5390" + ] + }, + { + "severity": "error", + "code": "processing", + "diagnostics": "CodeableConcept.coding:SNOMED: minimum required = 1, but only found 0 (from https://fhir.nhs.uk/StructureDefinition/NHSDigital-MedicationRequest-CodeableConcept)", + "location": [ + "Bundle.entry[3].resource.ofType(MedicationRequest).medication.ofType(CodeableConcept)", + "Line 1, Col 5382" + ] + }, + { + "severity": "error", + "code": "processing", + "diagnostics": "MedicationRequest.groupIdentifier.extension: minimum required = 1, but only found 0 (from https://fhir.nhs.uk/StructureDefinition/NHSDigital-MedicationRequest)", + "location": [ + "Bundle.entry[3].resource.ofType(MedicationRequest).groupIdentifier", + "Line 1, Col 5816" + ] + }, + { + "severity": "error", + "code": "processing", + "diagnostics": "MedicationRequest.groupIdentifier.extension:PrescriptionOrderUUID: minimum required = 1, but only found 0 (from https://fhir.nhs.uk/StructureDefinition/NHSDigital-MedicationRequest)", + "location": [ + "Bundle.entry[3].resource.ofType(MedicationRequest).groupIdentifier", + "Line 1, Col 5816" + ] + }, + { + "severity": "error", + "code": "processing", + "diagnostics": "None of the codings provided are in the value set https://fhir.nhs.uk/ValueSet/DM-medicationrequest-course-of-therapy (https://fhir.nhs.uk/ValueSet/DM-medicationrequest-course-of-therapy), and a coding from this value set is required) (codes = https://terminology.hl7.org/CodeSystem/medicationrequest-course-of-therapy#acute)", + "location": [ + "Bundle.entry[3].resource.ofType(MedicationRequest).courseOfTherapyType", + "Line 1, Col 5973" + ] + }, + { + "severity": "error", + "code": "processing", + "diagnostics": "MedicationRequest.dispenseRequest.extension: minimum required = 1, but only found 0 (from https://fhir.nhs.uk/StructureDefinition/NHSDigital-MedicationRequest)", + "location": [ + "Bundle.entry[3].resource.ofType(MedicationRequest).dispenseRequest", + "Line 1, Col 6212" + ] + }, + { + "severity": "error", + "code": "processing", + "diagnostics": "MedicationRequest.dispenseRequest.extension:performerSiteType: minimum required = 1, but only found 0 (from https://fhir.nhs.uk/StructureDefinition/NHSDigital-MedicationRequest)", + "location": [ + "Bundle.entry[3].resource.ofType(MedicationRequest).dispenseRequest", + "Line 1, Col 6212" + ] + }, + { + "severity": "error", + "code": "processing", + "diagnostics": "MedicationRequest.identifier: minimum required = 1, but only found 0 (from https://fhir.nhs.uk/StructureDefinition/NHSDigital-MedicationRequest)", + "location": [ + "Bundle.entry[0].resource.ofType(MedicationRequest)", + "Line 1, Col 246" + ] + }, + { + "severity": "error", + "code": "processing", + "diagnostics": "MedicationRequest.identifier:prescriptionOrderItem: minimum required = 1, but only found 0 (from https://fhir.nhs.uk/StructureDefinition/NHSDigital-MedicationRequest)", + "location": [ + "Bundle.entry[0].resource.ofType(MedicationRequest)", + "Line 1, Col 246" + ] + }, + { + "severity": "error", + "code": "processing", + "diagnostics": "MedicationRequest.dosageInstruction: minimum required = 1, but only found 0 (from https://fhir.nhs.uk/StructureDefinition/NHSDigital-MedicationRequest)", + "location": [ + "Bundle.entry[0].resource.ofType(MedicationRequest)", + "Line 1, Col 246" + ] + }, + { + "severity": "warning", + "code": "processing", + "diagnostics": "None of the codings provided are in the value set https://fhir.nhs.uk/ValueSet/NHSDigital-MedicationCode (https://fhir.nhs.uk/ValueSet/NHSDigital-MedicationCode), and a coding should come from this value set unless it has no suitable code (note that the validator cannot judge what is suitable) (codes = https://snomed.info/sct#324252006)", + "location": [ + "Bundle.entry[0].resource.ofType(MedicationRequest).medication.ofType(CodeableConcept)", + "Line 1, Col 495" + ] + }, + { + "severity": "information", + "code": "processing", + "diagnostics": "This element does not match any known slice defined in the profile https://fhir.nhs.uk/StructureDefinition/NHSDigital-MedicationRequest-CodeableConcept", + "location": [ + "Bundle.entry[0].resource.ofType(MedicationRequest).medication.ofType(CodeableConcept).coding[0]", + "Line 1, Col 503" + ] + }, + { + "severity": "error", + "code": "processing", + "diagnostics": "CodeableConcept.coding:SNOMED: minimum required = 1, but only found 0 (from https://fhir.nhs.uk/StructureDefinition/NHSDigital-MedicationRequest-CodeableConcept)", + "location": [ + "Bundle.entry[0].resource.ofType(MedicationRequest).medication.ofType(CodeableConcept)", + "Line 1, Col 495" + ] + }, + { + "severity": "error", + "code": "processing", + "diagnostics": "MedicationRequest.groupIdentifier.extension: minimum required = 1, but only found 0 (from https://fhir.nhs.uk/StructureDefinition/NHSDigital-MedicationRequest)", + "location": [ + "Bundle.entry[0].resource.ofType(MedicationRequest).groupIdentifier", + "Line 1, Col 929" + ] + }, + { + "severity": "error", + "code": "processing", + "diagnostics": "MedicationRequest.groupIdentifier.extension:PrescriptionOrderUUID: minimum required = 1, but only found 0 (from https://fhir.nhs.uk/StructureDefinition/NHSDigital-MedicationRequest)", + "location": [ + "Bundle.entry[0].resource.ofType(MedicationRequest).groupIdentifier", + "Line 1, Col 929" + ] + }, + { + "severity": "error", + "code": "processing", + "diagnostics": "None of the codings provided are in the value set https://fhir.nhs.uk/ValueSet/DM-medicationrequest-course-of-therapy (https://fhir.nhs.uk/ValueSet/DM-medicationrequest-course-of-therapy), and a coding from this value set is required) (codes = https://terminology.hl7.org/CodeSystem/medicationrequest-course-of-therapy#acute)", + "location": [ + "Bundle.entry[0].resource.ofType(MedicationRequest).courseOfTherapyType", + "Line 1, Col 1086" + ] + }, + { + "severity": "error", + "code": "processing", + "diagnostics": "MedicationRequest.dispenseRequest.extension: minimum required = 1, but only found 0 (from https://fhir.nhs.uk/StructureDefinition/NHSDigital-MedicationRequest)", + "location": [ + "Bundle.entry[0].resource.ofType(MedicationRequest).dispenseRequest", + "Line 1, Col 1325" + ] + }, + { + "severity": "error", + "code": "processing", + "diagnostics": "MedicationRequest.dispenseRequest.extension:performerSiteType: minimum required = 1, but only found 0 (from https://fhir.nhs.uk/StructureDefinition/NHSDigital-MedicationRequest)", + "location": [ + "Bundle.entry[0].resource.ofType(MedicationRequest).dispenseRequest", + "Line 1, Col 1325" + ] + }, + { + "severity": "warning", + "code": "processing", + "diagnostics": "URN reference is not locally contained within the bundle urn:uuid:56166769-c1c4-4d07-afa8-132b5dfca666", + "location": [ + "Bundle.entry[0].resource.ofType(MedicationRequest).requester" + ] + }, + { + "severity": "error", + "code": "processing", + "diagnostics": "MedicationRequest.identifier: minimum required = 1, but only found 0 (from https://fhir.nhs.uk/StructureDefinition/NHSDigital-MedicationRequest)", + "location": [ + "Bundle.entry[0].resource.ofType(MedicationRequest)", + "Line 1, Col 246" + ] + }, + { + "severity": "error", + "code": "processing", + "diagnostics": "MedicationRequest.identifier:prescriptionOrderItem: minimum required = 1, but only found 0 (from https://fhir.nhs.uk/StructureDefinition/NHSDigital-MedicationRequest)", + "location": [ + "Bundle.entry[0].resource.ofType(MedicationRequest)", + "Line 1, Col 246" + ] + }, + { + "severity": "error", + "code": "processing", + "diagnostics": "MedicationRequest.dosageInstruction: minimum required = 1, but only found 0 (from https://fhir.nhs.uk/StructureDefinition/NHSDigital-MedicationRequest)", + "location": [ + "Bundle.entry[0].resource.ofType(MedicationRequest)", + "Line 1, Col 246" + ] + }, + { + "severity": "warning", + "code": "processing", + "diagnostics": "None of the codings provided are in the value set https://fhir.nhs.uk/ValueSet/NHSDigital-MedicationCode (https://fhir.nhs.uk/ValueSet/NHSDigital-MedicationCode), and a coding should come from this value set unless it has no suitable code (note that the validator cannot judge what is suitable) (codes = https://snomed.info/sct#39732311000001104)", + "location": [ + "Bundle.entry[0].resource.ofType(MedicationRequest).medication.ofType(CodeableConcept)", + "Line 1, Col 492" + ] + }, + { + "severity": "information", + "code": "processing", + "diagnostics": "This element does not match any known slice defined in the profile https://fhir.nhs.uk/StructureDefinition/NHSDigital-MedicationRequest-CodeableConcept", + "location": [ + "Bundle.entry[0].resource.ofType(MedicationRequest).medication.ofType(CodeableConcept).coding[0]", + "Line 1, Col 500" + ] + }, + { + "severity": "error", + "code": "processing", + "diagnostics": "CodeableConcept.coding:SNOMED: minimum required = 1, but only found 0 (from https://fhir.nhs.uk/StructureDefinition/NHSDigital-MedicationRequest-CodeableConcept)", + "location": [ + "Bundle.entry[0].resource.ofType(MedicationRequest).medication.ofType(CodeableConcept)", + "Line 1, Col 492" + ] + }, + { + "severity": "error", + "code": "processing", + "diagnostics": "MedicationRequest.groupIdentifier.extension: minimum required = 1, but only found 0 (from https://fhir.nhs.uk/StructureDefinition/NHSDigital-MedicationRequest)", + "location": [ + "Bundle.entry[0].resource.ofType(MedicationRequest).groupIdentifier", + "Line 1, Col 933" + ] + }, + { + "severity": "error", + "code": "processing", + "diagnostics": "MedicationRequest.groupIdentifier.extension:PrescriptionOrderUUID: minimum required = 1, but only found 0 (from https://fhir.nhs.uk/StructureDefinition/NHSDigital-MedicationRequest)", + "location": [ + "Bundle.entry[0].resource.ofType(MedicationRequest).groupIdentifier", + "Line 1, Col 933" + ] + }, + { + "severity": "error", + "code": "processing", + "diagnostics": "None of the codings provided are in the value set https://fhir.nhs.uk/ValueSet/DM-medicationrequest-course-of-therapy (https://fhir.nhs.uk/ValueSet/DM-medicationrequest-course-of-therapy), and a coding from this value set is required) (codes = https://terminology.hl7.org/CodeSystem/medicationrequest-course-of-therapy#acute)", + "location": [ + "Bundle.entry[0].resource.ofType(MedicationRequest).courseOfTherapyType", + "Line 1, Col 1090" + ] + }, + { + "severity": "error", + "code": "processing", + "diagnostics": "MedicationRequest.dispenseRequest.extension: minimum required = 1, but only found 0 (from https://fhir.nhs.uk/StructureDefinition/NHSDigital-MedicationRequest)", + "location": [ + "Bundle.entry[0].resource.ofType(MedicationRequest).dispenseRequest", + "Line 1, Col 1329" + ] + }, + { + "severity": "error", + "code": "processing", + "diagnostics": "MedicationRequest.dispenseRequest.extension:performerSiteType: minimum required = 1, but only found 0 (from https://fhir.nhs.uk/StructureDefinition/NHSDigital-MedicationRequest)", + "location": [ + "Bundle.entry[0].resource.ofType(MedicationRequest).dispenseRequest", + "Line 1, Col 1329" + ] + } + ] +} diff --git a/src/test/resources/results/5.4.2/stepFunctionResult.json b/src/test/resources/results/5.4.2/stepFunctionResult.json new file mode 100644 index 00000000..4877d336 --- /dev/null +++ b/src/test/resources/results/5.4.2/stepFunctionResult.json @@ -0,0 +1,14 @@ +{ + "resourceType": "OperationOutcome", + "issue": [ + { + "severity": "information", + "code": "processing", + "diagnostics": "Binding for path Bundle.entry[0].resource.ofType(Task).businessStatus has no source, so can't be checked", + "location": [ + "Bundle.entry[0].resource.ofType(Task).businessStatus", + "Line 1, Col 407" + ] + } + ] +} diff --git a/src/test/resources/results/validParameters.json b/src/test/resources/results/5.4.2/successfulOperationOutcome.json similarity index 100% rename from src/test/resources/results/validParameters.json rename to src/test/resources/results/5.4.2/successfulOperationOutcome.json diff --git a/src/test/resources/results/5.4.2/validBundle.json b/src/test/resources/results/5.4.2/validBundle.json new file mode 100644 index 00000000..b437772d --- /dev/null +++ b/src/test/resources/results/5.4.2/validBundle.json @@ -0,0 +1,59 @@ +{ + "resourceType": "OperationOutcome", + "issue": [ + { + "severity": "warning", + "code": "processing", + "diagnostics": "None of the codings provided are in the value set https://fhir.nhs.uk/ValueSet/NHSDigital-MedicationCode (https://fhir.nhs.uk/ValueSet/NHSDigital-MedicationCode), and a coding should come from this value set unless it has no suitable code (note that the validator cannot judge what is suitable) (codes = http://snomed.info/sct#39732311000001104)", + "location": [ + "Bundle.entry[1].resource.ofType(MedicationRequest).medication.ofType(CodeableConcept)", + "Line 1, Col 2877" + ] + }, + { + "severity": "warning", + "code": "processing", + "diagnostics": "None of the codings provided are in the value set https://fhir.nhs.uk/ValueSet/NHSDigital-MedicationCode (https://fhir.nhs.uk/ValueSet/NHSDigital-MedicationCode), and a coding should come from this value set unless it has no suitable code (note that the validator cannot judge what is suitable) (codes = http://snomed.info/sct#322341003)", + "location": [ + "Bundle.entry[2].resource.ofType(MedicationRequest).medication.ofType(CodeableConcept)", + "Line 1, Col 6222" + ] + }, + { + "severity": "warning", + "code": "processing", + "diagnostics": "None of the codings provided are in the value set https://fhir.nhs.uk/ValueSet/NHSDigital-MedicationCode (https://fhir.nhs.uk/ValueSet/NHSDigital-MedicationCode), and a coding should come from this value set unless it has no suitable code (note that the validator cannot judge what is suitable) (codes = http://snomed.info/sct#321080004)", + "location": [ + "Bundle.entry[3].resource.ofType(MedicationRequest).medication.ofType(CodeableConcept)", + "Line 1, Col 9562" + ] + }, + { + "severity": "warning", + "code": "processing", + "diagnostics": "None of the codings provided are in the value set https://fhir.nhs.uk/ValueSet/NHSDigital-MedicationCode (https://fhir.nhs.uk/ValueSet/NHSDigital-MedicationCode), and a coding should come from this value set unless it has no suitable code (note that the validator cannot judge what is suitable) (codes = http://snomed.info/sct#324252006)", + "location": [ + "Bundle.entry[4].resource.ofType(MedicationRequest).medication.ofType(CodeableConcept)", + "Line 1, Col 12915" + ] + }, + { + "severity": "warning", + "code": "processing", + "diagnostics": "Unknown code in fragment CodeSystem 'https://fhir.nhs.uk/CodeSystem/NHSDigital-SDS-JobRoleCode#R8000' for 'https://fhir.nhs.uk/CodeSystem/NHSDigital-SDS-JobRoleCode#R8000'", + "location": [ + "Bundle.entry[6].resource.ofType(PractitionerRole).code[0].coding[0]", + "Line 1, Col 16802" + ] + }, + { + "severity": "warning", + "code": "processing", + "diagnostics": "prac-gmc: 'GMC must be of the format CNNNNNNN' Rule 'GMC must be of the format CNNNNNNN' Failed", + "location": [ + "Bundle.entry[7].resource.ofType(Practitioner)", + "Line 1, Col 1" + ] + } + ] +} diff --git a/src/test/resources/results/validSimpleBundle.json b/src/test/resources/results/5.4.2/validParameters.json similarity index 100% rename from src/test/resources/results/validSimpleBundle.json rename to src/test/resources/results/5.4.2/validParameters.json diff --git a/src/test/resources/results/5.4.2/validSimpleBundle.json b/src/test/resources/results/5.4.2/validSimpleBundle.json new file mode 100644 index 00000000..08a3fa46 --- /dev/null +++ b/src/test/resources/results/5.4.2/validSimpleBundle.json @@ -0,0 +1,10 @@ +{ + "resourceType": "OperationOutcome", + "issue": [ + { + "severity": "information", + "code": "informational", + "diagnostics": "No issues detected during validation" + } + ] +} diff --git a/src/test/resources/results/array.json b/src/test/resources/results/7.6.1/array.json similarity index 100% rename from src/test/resources/results/array.json rename to src/test/resources/results/7.6.1/array.json diff --git a/src/test/resources/results/bad_json.json b/src/test/resources/results/7.6.1/bad_json.json similarity index 100% rename from src/test/resources/results/bad_json.json rename to src/test/resources/results/7.6.1/bad_json.json diff --git a/src/test/resources/results/boolean_json.json b/src/test/resources/results/7.6.1/boolean_json.json similarity index 100% rename from src/test/resources/results/boolean_json.json rename to src/test/resources/results/7.6.1/boolean_json.json diff --git a/src/test/resources/results/empty.json b/src/test/resources/results/7.6.1/empty.json similarity index 100% rename from src/test/resources/results/empty.json rename to src/test/resources/results/7.6.1/empty.json diff --git a/src/test/resources/results/invalidBundle.json b/src/test/resources/results/7.6.1/invalidBundle.json similarity index 100% rename from src/test/resources/results/invalidBundle.json rename to src/test/resources/results/7.6.1/invalidBundle.json diff --git a/src/test/resources/results/invalidOperationOutcome.json b/src/test/resources/results/7.6.1/invalidOperationOutcome.json similarity index 100% rename from src/test/resources/results/invalidOperationOutcome.json rename to src/test/resources/results/7.6.1/invalidOperationOutcome.json diff --git a/src/test/resources/results/invalidParameters.json b/src/test/resources/results/7.6.1/invalidParameters.json similarity index 100% rename from src/test/resources/results/invalidParameters.json rename to src/test/resources/results/7.6.1/invalidParameters.json diff --git a/src/test/resources/results/7.6.1/missingHeader.json b/src/test/resources/results/7.6.1/missingHeader.json new file mode 100644 index 00000000..f59f1f0c --- /dev/null +++ b/src/test/resources/results/7.6.1/missingHeader.json @@ -0,0 +1,13 @@ +{ + "resourceType": "OperationOutcome", + "issue": [ + { + "severity": "error", + "code": "processing", + "diagnostics": "No MessageHeader found.", + "expression": [ + "Bundle.entry" + ] + } + ] +} diff --git a/src/test/resources/results/7.6.1/null_java.json b/src/test/resources/results/7.6.1/null_java.json new file mode 100644 index 00000000..27be4901 --- /dev/null +++ b/src/test/resources/results/7.6.1/null_java.json @@ -0,0 +1,10 @@ +{ + "resourceType": "OperationOutcome", + "issue": [ + { + "severity": "error", + "code": "processing", + "diagnostics": "Cannot invoke \"String.length()\" because \"s\" is null" + } + ] +} diff --git a/src/test/resources/results/null_json.json b/src/test/resources/results/7.6.1/null_json.json similarity index 100% rename from src/test/resources/results/null_json.json rename to src/test/resources/results/7.6.1/null_json.json diff --git a/src/test/resources/results/number_json.json b/src/test/resources/results/7.6.1/number_json.json similarity index 100% rename from src/test/resources/results/number_json.json rename to src/test/resources/results/7.6.1/number_json.json diff --git a/src/test/resources/results/psu_nhs_digital.json b/src/test/resources/results/7.6.1/psu_nhs_digital.json similarity index 100% rename from src/test/resources/results/psu_nhs_digital.json rename to src/test/resources/results/7.6.1/psu_nhs_digital.json diff --git a/src/test/resources/results/psu_update.json b/src/test/resources/results/7.6.1/psu_update.json similarity index 100% rename from src/test/resources/results/psu_update.json rename to src/test/resources/results/7.6.1/psu_update.json diff --git a/src/test/resources/results/searchSet.json b/src/test/resources/results/7.6.1/searchSet.json similarity index 96% rename from src/test/resources/results/searchSet.json rename to src/test/resources/results/7.6.1/searchSet.json index 2e53ede9..c14ceb1d 100644 --- a/src/test/resources/results/searchSet.json +++ b/src/test/resources/results/7.6.1/searchSet.json @@ -45,7 +45,7 @@ } ] }, - "diagnostics": "MedicationRequest.identifier: minimum required = 1, but only found 0 (from https://fhir.nhs.uk/StructureDefinition/NHSDigital-MedicationRequest)", + "diagnostics": "MedicationRequest.identifier: minimum required = 1, but only found 0 (from https://fhir.nhs.uk/StructureDefinition/NHSDigital-MedicationRequest|1.0.1)", "location": [ "Bundle.entry[0].resource/*MedicationRequest/null*/", "Line[1] Col[1227]" @@ -76,7 +76,7 @@ } ] }, - "diagnostics": "Slice 'MedicationRequest.identifier:prescriptionOrderItem': a matching slice is required, but not found (from https://fhir.nhs.uk/StructureDefinition/NHSDigital-MedicationRequest). Note that other slices are allowed in addition to this required slice", + "diagnostics": "Slice 'MedicationRequest.identifier:prescriptionOrderItem': a matching slice is required, but not found (from https://fhir.nhs.uk/StructureDefinition/NHSDigital-MedicationRequest|1.0.1). Note that other slices are allowed in addition to this required slice", "location": [ "Bundle.entry[0].resource/*MedicationRequest/null*/", "Line[1] Col[1227]" @@ -107,7 +107,7 @@ } ] }, - "diagnostics": "MedicationRequest.dosageInstruction: minimum required = 1, but only found 0 (from https://fhir.nhs.uk/StructureDefinition/NHSDigital-MedicationRequest)", + "diagnostics": "MedicationRequest.dosageInstruction: minimum required = 1, but only found 0 (from https://fhir.nhs.uk/StructureDefinition/NHSDigital-MedicationRequest|1.0.1)", "location": [ "Bundle.entry[0].resource/*MedicationRequest/null*/", "Line[1] Col[1227]" @@ -231,7 +231,7 @@ } ] }, - "diagnostics": "MedicationRequest.groupIdentifier.extension: minimum required = 1, but only found 0 (from https://fhir.nhs.uk/StructureDefinition/NHSDigital-MedicationRequest)", + "diagnostics": "MedicationRequest.groupIdentifier.extension: minimum required = 1, but only found 0 (from https://fhir.nhs.uk/StructureDefinition/NHSDigital-MedicationRequest|1.0.1)", "location": [ "Bundle.entry[0].resource/*MedicationRequest/null*/.groupIdentifier", "Line[1] Col[779]" @@ -262,7 +262,7 @@ } ] }, - "diagnostics": "Slice 'MedicationRequest.groupIdentifier.extension:PrescriptionOrderUUID': a matching slice is required, but not found (from https://fhir.nhs.uk/StructureDefinition/NHSDigital-MedicationRequest). Note that other slices are allowed in addition to this required slice", + "diagnostics": "Slice 'MedicationRequest.groupIdentifier.extension:PrescriptionOrderUUID': a matching slice is required, but not found (from https://fhir.nhs.uk/StructureDefinition/NHSDigital-MedicationRequest|1.0.1). Note that other slices are allowed in addition to this required slice", "location": [ "Bundle.entry[0].resource/*MedicationRequest/null*/.groupIdentifier", "Line[1] Col[779]" @@ -324,7 +324,7 @@ } ] }, - "diagnostics": "MedicationRequest.dispenseRequest.extension: minimum required = 1, but only found 0 (from https://fhir.nhs.uk/StructureDefinition/NHSDigital-MedicationRequest)", + "diagnostics": "MedicationRequest.dispenseRequest.extension: minimum required = 1, but only found 0 (from https://fhir.nhs.uk/StructureDefinition/NHSDigital-MedicationRequest|1.0.1)", "location": [ "Bundle.entry[0].resource/*MedicationRequest/null*/.dispenseRequest", "Line[1] Col[1186]" @@ -355,7 +355,7 @@ } ] }, - "diagnostics": "Slice 'MedicationRequest.dispenseRequest.extension:performerSiteType': a matching slice is required, but not found (from https://fhir.nhs.uk/StructureDefinition/NHSDigital-MedicationRequest). Note that other slices are allowed in addition to this required slice", + "diagnostics": "Slice 'MedicationRequest.dispenseRequest.extension:performerSiteType': a matching slice is required, but not found (from https://fhir.nhs.uk/StructureDefinition/NHSDigital-MedicationRequest|1.0.1). Note that other slices are allowed in addition to this required slice", "location": [ "Bundle.entry[0].resource/*MedicationRequest/null*/.dispenseRequest", "Line[1] Col[1186]" @@ -405,7 +405,7 @@ } ] }, - "diagnostics": "MedicationRequest.identifier: minimum required = 1, but only found 0 (from https://fhir.nhs.uk/StructureDefinition/NHSDigital-MedicationRequest)", + "diagnostics": "MedicationRequest.identifier: minimum required = 1, but only found 0 (from https://fhir.nhs.uk/StructureDefinition/NHSDigital-MedicationRequest|1.0.1)", "location": [ "Bundle.entry[1].resource/*MedicationRequest/null*/", "Line[1] Col[2326]" @@ -436,7 +436,7 @@ } ] }, - "diagnostics": "Slice 'MedicationRequest.identifier:prescriptionOrderItem': a matching slice is required, but not found (from https://fhir.nhs.uk/StructureDefinition/NHSDigital-MedicationRequest). Note that other slices are allowed in addition to this required slice", + "diagnostics": "Slice 'MedicationRequest.identifier:prescriptionOrderItem': a matching slice is required, but not found (from https://fhir.nhs.uk/StructureDefinition/NHSDigital-MedicationRequest|1.0.1). Note that other slices are allowed in addition to this required slice", "location": [ "Bundle.entry[1].resource/*MedicationRequest/null*/", "Line[1] Col[2326]" @@ -467,7 +467,7 @@ } ] }, - "diagnostics": "MedicationRequest.dosageInstruction: minimum required = 1, but only found 0 (from https://fhir.nhs.uk/StructureDefinition/NHSDigital-MedicationRequest)", + "diagnostics": "MedicationRequest.dosageInstruction: minimum required = 1, but only found 0 (from https://fhir.nhs.uk/StructureDefinition/NHSDigital-MedicationRequest|1.0.1)", "location": [ "Bundle.entry[1].resource/*MedicationRequest/null*/", "Line[1] Col[2326]" @@ -591,7 +591,7 @@ } ] }, - "diagnostics": "MedicationRequest.groupIdentifier.extension: minimum required = 1, but only found 0 (from https://fhir.nhs.uk/StructureDefinition/NHSDigital-MedicationRequest)", + "diagnostics": "MedicationRequest.groupIdentifier.extension: minimum required = 1, but only found 0 (from https://fhir.nhs.uk/StructureDefinition/NHSDigital-MedicationRequest|1.0.1)", "location": [ "Bundle.entry[1].resource/*MedicationRequest/null*/.groupIdentifier", "Line[1] Col[1878]" @@ -622,7 +622,7 @@ } ] }, - "diagnostics": "Slice 'MedicationRequest.groupIdentifier.extension:PrescriptionOrderUUID': a matching slice is required, but not found (from https://fhir.nhs.uk/StructureDefinition/NHSDigital-MedicationRequest). Note that other slices are allowed in addition to this required slice", + "diagnostics": "Slice 'MedicationRequest.groupIdentifier.extension:PrescriptionOrderUUID': a matching slice is required, but not found (from https://fhir.nhs.uk/StructureDefinition/NHSDigital-MedicationRequest|1.0.1). Note that other slices are allowed in addition to this required slice", "location": [ "Bundle.entry[1].resource/*MedicationRequest/null*/.groupIdentifier", "Line[1] Col[1878]" @@ -684,7 +684,7 @@ } ] }, - "diagnostics": "MedicationRequest.dispenseRequest.extension: minimum required = 1, but only found 0 (from https://fhir.nhs.uk/StructureDefinition/NHSDigital-MedicationRequest)", + "diagnostics": "MedicationRequest.dispenseRequest.extension: minimum required = 1, but only found 0 (from https://fhir.nhs.uk/StructureDefinition/NHSDigital-MedicationRequest|1.0.1)", "location": [ "Bundle.entry[1].resource/*MedicationRequest/null*/.dispenseRequest", "Line[1] Col[2285]" @@ -715,7 +715,7 @@ } ] }, - "diagnostics": "Slice 'MedicationRequest.dispenseRequest.extension:performerSiteType': a matching slice is required, but not found (from https://fhir.nhs.uk/StructureDefinition/NHSDigital-MedicationRequest). Note that other slices are allowed in addition to this required slice", + "diagnostics": "Slice 'MedicationRequest.dispenseRequest.extension:performerSiteType': a matching slice is required, but not found (from https://fhir.nhs.uk/StructureDefinition/NHSDigital-MedicationRequest|1.0.1). Note that other slices are allowed in addition to this required slice", "location": [ "Bundle.entry[1].resource/*MedicationRequest/null*/.dispenseRequest", "Line[1] Col[2285]" @@ -765,7 +765,7 @@ } ] }, - "diagnostics": "MedicationRequest.identifier: minimum required = 1, but only found 0 (from https://fhir.nhs.uk/StructureDefinition/NHSDigital-MedicationRequest)", + "diagnostics": "MedicationRequest.identifier: minimum required = 1, but only found 0 (from https://fhir.nhs.uk/StructureDefinition/NHSDigital-MedicationRequest|1.0.1)", "location": [ "Bundle.entry[2].resource/*MedicationRequest/null*/", "Line[1] Col[3438]" @@ -796,7 +796,7 @@ } ] }, - "diagnostics": "Slice 'MedicationRequest.identifier:prescriptionOrderItem': a matching slice is required, but not found (from https://fhir.nhs.uk/StructureDefinition/NHSDigital-MedicationRequest). Note that other slices are allowed in addition to this required slice", + "diagnostics": "Slice 'MedicationRequest.identifier:prescriptionOrderItem': a matching slice is required, but not found (from https://fhir.nhs.uk/StructureDefinition/NHSDigital-MedicationRequest|1.0.1). Note that other slices are allowed in addition to this required slice", "location": [ "Bundle.entry[2].resource/*MedicationRequest/null*/", "Line[1] Col[3438]" @@ -827,7 +827,7 @@ } ] }, - "diagnostics": "MedicationRequest.dosageInstruction: minimum required = 1, but only found 0 (from https://fhir.nhs.uk/StructureDefinition/NHSDigital-MedicationRequest)", + "diagnostics": "MedicationRequest.dosageInstruction: minimum required = 1, but only found 0 (from https://fhir.nhs.uk/StructureDefinition/NHSDigital-MedicationRequest|1.0.1)", "location": [ "Bundle.entry[2].resource/*MedicationRequest/null*/", "Line[1] Col[3438]" @@ -951,7 +951,7 @@ } ] }, - "diagnostics": "MedicationRequest.groupIdentifier.extension: minimum required = 1, but only found 0 (from https://fhir.nhs.uk/StructureDefinition/NHSDigital-MedicationRequest)", + "diagnostics": "MedicationRequest.groupIdentifier.extension: minimum required = 1, but only found 0 (from https://fhir.nhs.uk/StructureDefinition/NHSDigital-MedicationRequest|1.0.1)", "location": [ "Bundle.entry[2].resource/*MedicationRequest/null*/.groupIdentifier", "Line[1] Col[2990]" @@ -982,7 +982,7 @@ } ] }, - "diagnostics": "Slice 'MedicationRequest.groupIdentifier.extension:PrescriptionOrderUUID': a matching slice is required, but not found (from https://fhir.nhs.uk/StructureDefinition/NHSDigital-MedicationRequest). Note that other slices are allowed in addition to this required slice", + "diagnostics": "Slice 'MedicationRequest.groupIdentifier.extension:PrescriptionOrderUUID': a matching slice is required, but not found (from https://fhir.nhs.uk/StructureDefinition/NHSDigital-MedicationRequest|1.0.1). Note that other slices are allowed in addition to this required slice", "location": [ "Bundle.entry[2].resource/*MedicationRequest/null*/.groupIdentifier", "Line[1] Col[2990]" @@ -1044,7 +1044,7 @@ } ] }, - "diagnostics": "MedicationRequest.dispenseRequest.extension: minimum required = 1, but only found 0 (from https://fhir.nhs.uk/StructureDefinition/NHSDigital-MedicationRequest)", + "diagnostics": "MedicationRequest.dispenseRequest.extension: minimum required = 1, but only found 0 (from https://fhir.nhs.uk/StructureDefinition/NHSDigital-MedicationRequest|1.0.1)", "location": [ "Bundle.entry[2].resource/*MedicationRequest/null*/.dispenseRequest", "Line[1] Col[3397]" @@ -1075,7 +1075,7 @@ } ] }, - "diagnostics": "Slice 'MedicationRequest.dispenseRequest.extension:performerSiteType': a matching slice is required, but not found (from https://fhir.nhs.uk/StructureDefinition/NHSDigital-MedicationRequest). Note that other slices are allowed in addition to this required slice", + "diagnostics": "Slice 'MedicationRequest.dispenseRequest.extension:performerSiteType': a matching slice is required, but not found (from https://fhir.nhs.uk/StructureDefinition/NHSDigital-MedicationRequest|1.0.1). Note that other slices are allowed in addition to this required slice", "location": [ "Bundle.entry[2].resource/*MedicationRequest/null*/.dispenseRequest", "Line[1] Col[3397]" @@ -1125,7 +1125,7 @@ } ] }, - "diagnostics": "MedicationRequest.identifier: minimum required = 1, but only found 0 (from https://fhir.nhs.uk/StructureDefinition/NHSDigital-MedicationRequest)", + "diagnostics": "MedicationRequest.identifier: minimum required = 1, but only found 0 (from https://fhir.nhs.uk/StructureDefinition/NHSDigital-MedicationRequest|1.0.1)", "location": [ "Bundle.entry[3].resource/*MedicationRequest/null*/", "Line[1] Col[4538]" @@ -1156,7 +1156,7 @@ } ] }, - "diagnostics": "Slice 'MedicationRequest.identifier:prescriptionOrderItem': a matching slice is required, but not found (from https://fhir.nhs.uk/StructureDefinition/NHSDigital-MedicationRequest). Note that other slices are allowed in addition to this required slice", + "diagnostics": "Slice 'MedicationRequest.identifier:prescriptionOrderItem': a matching slice is required, but not found (from https://fhir.nhs.uk/StructureDefinition/NHSDigital-MedicationRequest|1.0.1). Note that other slices are allowed in addition to this required slice", "location": [ "Bundle.entry[3].resource/*MedicationRequest/null*/", "Line[1] Col[4538]" @@ -1187,7 +1187,7 @@ } ] }, - "diagnostics": "MedicationRequest.dosageInstruction: minimum required = 1, but only found 0 (from https://fhir.nhs.uk/StructureDefinition/NHSDigital-MedicationRequest)", + "diagnostics": "MedicationRequest.dosageInstruction: minimum required = 1, but only found 0 (from https://fhir.nhs.uk/StructureDefinition/NHSDigital-MedicationRequest|1.0.1)", "location": [ "Bundle.entry[3].resource/*MedicationRequest/null*/", "Line[1] Col[4538]" @@ -1311,7 +1311,7 @@ } ] }, - "diagnostics": "MedicationRequest.groupIdentifier.extension: minimum required = 1, but only found 0 (from https://fhir.nhs.uk/StructureDefinition/NHSDigital-MedicationRequest)", + "diagnostics": "MedicationRequest.groupIdentifier.extension: minimum required = 1, but only found 0 (from https://fhir.nhs.uk/StructureDefinition/NHSDigital-MedicationRequest|1.0.1)", "location": [ "Bundle.entry[3].resource/*MedicationRequest/null*/.groupIdentifier", "Line[1] Col[4090]" @@ -1342,7 +1342,7 @@ } ] }, - "diagnostics": "Slice 'MedicationRequest.groupIdentifier.extension:PrescriptionOrderUUID': a matching slice is required, but not found (from https://fhir.nhs.uk/StructureDefinition/NHSDigital-MedicationRequest). Note that other slices are allowed in addition to this required slice", + "diagnostics": "Slice 'MedicationRequest.groupIdentifier.extension:PrescriptionOrderUUID': a matching slice is required, but not found (from https://fhir.nhs.uk/StructureDefinition/NHSDigital-MedicationRequest|1.0.1). Note that other slices are allowed in addition to this required slice", "location": [ "Bundle.entry[3].resource/*MedicationRequest/null*/.groupIdentifier", "Line[1] Col[4090]" @@ -1404,7 +1404,7 @@ } ] }, - "diagnostics": "MedicationRequest.dispenseRequest.extension: minimum required = 1, but only found 0 (from https://fhir.nhs.uk/StructureDefinition/NHSDigital-MedicationRequest)", + "diagnostics": "MedicationRequest.dispenseRequest.extension: minimum required = 1, but only found 0 (from https://fhir.nhs.uk/StructureDefinition/NHSDigital-MedicationRequest|1.0.1)", "location": [ "Bundle.entry[3].resource/*MedicationRequest/null*/.dispenseRequest", "Line[1] Col[4497]" @@ -1435,7 +1435,7 @@ } ] }, - "diagnostics": "Slice 'MedicationRequest.dispenseRequest.extension:performerSiteType': a matching slice is required, but not found (from https://fhir.nhs.uk/StructureDefinition/NHSDigital-MedicationRequest). Note that other slices are allowed in addition to this required slice", + "diagnostics": "Slice 'MedicationRequest.dispenseRequest.extension:performerSiteType': a matching slice is required, but not found (from https://fhir.nhs.uk/StructureDefinition/NHSDigital-MedicationRequest|1.0.1). Note that other slices are allowed in addition to this required slice", "location": [ "Bundle.entry[3].resource/*MedicationRequest/null*/.dispenseRequest", "Line[1] Col[4497]" @@ -1561,7 +1561,7 @@ } ] }, - "diagnostics": "MedicationRequest.identifier: minimum required = 1, but only found 0 (from https://fhir.nhs.uk/StructureDefinition/NHSDigital-MedicationRequest)", + "diagnostics": "MedicationRequest.identifier: minimum required = 1, but only found 0 (from https://fhir.nhs.uk/StructureDefinition/NHSDigital-MedicationRequest|1.0.1)", "location": [ "Bundle.entry[0].resource/*MedicationRequest/null*/", "Line[1] Col[1149]" @@ -1592,7 +1592,7 @@ } ] }, - "diagnostics": "Slice 'MedicationRequest.identifier:prescriptionOrderItem': a matching slice is required, but not found (from https://fhir.nhs.uk/StructureDefinition/NHSDigital-MedicationRequest). Note that other slices are allowed in addition to this required slice", + "diagnostics": "Slice 'MedicationRequest.identifier:prescriptionOrderItem': a matching slice is required, but not found (from https://fhir.nhs.uk/StructureDefinition/NHSDigital-MedicationRequest|1.0.1). Note that other slices are allowed in addition to this required slice", "location": [ "Bundle.entry[0].resource/*MedicationRequest/null*/", "Line[1] Col[1149]" @@ -1623,7 +1623,7 @@ } ] }, - "diagnostics": "MedicationRequest.dosageInstruction: minimum required = 1, but only found 0 (from https://fhir.nhs.uk/StructureDefinition/NHSDigital-MedicationRequest)", + "diagnostics": "MedicationRequest.dosageInstruction: minimum required = 1, but only found 0 (from https://fhir.nhs.uk/StructureDefinition/NHSDigital-MedicationRequest|1.0.1)", "location": [ "Bundle.entry[0].resource/*MedicationRequest/null*/", "Line[1] Col[1149]" @@ -1747,7 +1747,7 @@ } ] }, - "diagnostics": "MedicationRequest.groupIdentifier.extension: minimum required = 1, but only found 0 (from https://fhir.nhs.uk/StructureDefinition/NHSDigital-MedicationRequest)", + "diagnostics": "MedicationRequest.groupIdentifier.extension: minimum required = 1, but only found 0 (from https://fhir.nhs.uk/StructureDefinition/NHSDigital-MedicationRequest|1.0.1)", "location": [ "Bundle.entry[0].resource/*MedicationRequest/null*/.groupIdentifier", "Line[1] Col[775]" @@ -1778,7 +1778,7 @@ } ] }, - "diagnostics": "Slice 'MedicationRequest.groupIdentifier.extension:PrescriptionOrderUUID': a matching slice is required, but not found (from https://fhir.nhs.uk/StructureDefinition/NHSDigital-MedicationRequest). Note that other slices are allowed in addition to this required slice", + "diagnostics": "Slice 'MedicationRequest.groupIdentifier.extension:PrescriptionOrderUUID': a matching slice is required, but not found (from https://fhir.nhs.uk/StructureDefinition/NHSDigital-MedicationRequest|1.0.1). Note that other slices are allowed in addition to this required slice", "location": [ "Bundle.entry[0].resource/*MedicationRequest/null*/.groupIdentifier", "Line[1] Col[775]" @@ -1840,7 +1840,7 @@ } ] }, - "diagnostics": "MedicationRequest.dispenseRequest.extension: minimum required = 1, but only found 0 (from https://fhir.nhs.uk/StructureDefinition/NHSDigital-MedicationRequest)", + "diagnostics": "MedicationRequest.dispenseRequest.extension: minimum required = 1, but only found 0 (from https://fhir.nhs.uk/StructureDefinition/NHSDigital-MedicationRequest|1.0.1)", "location": [ "Bundle.entry[0].resource/*MedicationRequest/null*/.dispenseRequest", "Line[1] Col[1108]" @@ -1871,7 +1871,7 @@ } ] }, - "diagnostics": "Slice 'MedicationRequest.dispenseRequest.extension:performerSiteType': a matching slice is required, but not found (from https://fhir.nhs.uk/StructureDefinition/NHSDigital-MedicationRequest). Note that other slices are allowed in addition to this required slice", + "diagnostics": "Slice 'MedicationRequest.dispenseRequest.extension:performerSiteType': a matching slice is required, but not found (from https://fhir.nhs.uk/StructureDefinition/NHSDigital-MedicationRequest|1.0.1). Note that other slices are allowed in addition to this required slice", "location": [ "Bundle.entry[0].resource/*MedicationRequest/null*/.dispenseRequest", "Line[1] Col[1108]" @@ -2000,7 +2000,7 @@ } ] }, - "diagnostics": "MedicationRequest.identifier: minimum required = 1, but only found 0 (from https://fhir.nhs.uk/StructureDefinition/NHSDigital-MedicationRequest)", + "diagnostics": "MedicationRequest.identifier: minimum required = 1, but only found 0 (from https://fhir.nhs.uk/StructureDefinition/NHSDigital-MedicationRequest|1.0.1)", "location": [ "Bundle.entry[0].resource/*MedicationRequest/null*/", "Line[1] Col[1227]" @@ -2031,7 +2031,7 @@ } ] }, - "diagnostics": "Slice 'MedicationRequest.identifier:prescriptionOrderItem': a matching slice is required, but not found (from https://fhir.nhs.uk/StructureDefinition/NHSDigital-MedicationRequest). Note that other slices are allowed in addition to this required slice", + "diagnostics": "Slice 'MedicationRequest.identifier:prescriptionOrderItem': a matching slice is required, but not found (from https://fhir.nhs.uk/StructureDefinition/NHSDigital-MedicationRequest|1.0.1). Note that other slices are allowed in addition to this required slice", "location": [ "Bundle.entry[0].resource/*MedicationRequest/null*/", "Line[1] Col[1227]" @@ -2062,7 +2062,7 @@ } ] }, - "diagnostics": "MedicationRequest.dosageInstruction: minimum required = 1, but only found 0 (from https://fhir.nhs.uk/StructureDefinition/NHSDigital-MedicationRequest)", + "diagnostics": "MedicationRequest.dosageInstruction: minimum required = 1, but only found 0 (from https://fhir.nhs.uk/StructureDefinition/NHSDigital-MedicationRequest|1.0.1)", "location": [ "Bundle.entry[0].resource/*MedicationRequest/null*/", "Line[1] Col[1227]" @@ -2186,7 +2186,7 @@ } ] }, - "diagnostics": "MedicationRequest.groupIdentifier.extension: minimum required = 1, but only found 0 (from https://fhir.nhs.uk/StructureDefinition/NHSDigital-MedicationRequest)", + "diagnostics": "MedicationRequest.groupIdentifier.extension: minimum required = 1, but only found 0 (from https://fhir.nhs.uk/StructureDefinition/NHSDigital-MedicationRequest|1.0.1)", "location": [ "Bundle.entry[0].resource/*MedicationRequest/null*/.groupIdentifier", "Line[1] Col[779]" @@ -2217,7 +2217,7 @@ } ] }, - "diagnostics": "Slice 'MedicationRequest.groupIdentifier.extension:PrescriptionOrderUUID': a matching slice is required, but not found (from https://fhir.nhs.uk/StructureDefinition/NHSDigital-MedicationRequest). Note that other slices are allowed in addition to this required slice", + "diagnostics": "Slice 'MedicationRequest.groupIdentifier.extension:PrescriptionOrderUUID': a matching slice is required, but not found (from https://fhir.nhs.uk/StructureDefinition/NHSDigital-MedicationRequest|1.0.1). Note that other slices are allowed in addition to this required slice", "location": [ "Bundle.entry[0].resource/*MedicationRequest/null*/.groupIdentifier", "Line[1] Col[779]" @@ -2279,7 +2279,7 @@ } ] }, - "diagnostics": "MedicationRequest.dispenseRequest.extension: minimum required = 1, but only found 0 (from https://fhir.nhs.uk/StructureDefinition/NHSDigital-MedicationRequest)", + "diagnostics": "MedicationRequest.dispenseRequest.extension: minimum required = 1, but only found 0 (from https://fhir.nhs.uk/StructureDefinition/NHSDigital-MedicationRequest|1.0.1)", "location": [ "Bundle.entry[0].resource/*MedicationRequest/null*/.dispenseRequest", "Line[1] Col[1186]" @@ -2310,7 +2310,7 @@ } ] }, - "diagnostics": "Slice 'MedicationRequest.dispenseRequest.extension:performerSiteType': a matching slice is required, but not found (from https://fhir.nhs.uk/StructureDefinition/NHSDigital-MedicationRequest). Note that other slices are allowed in addition to this required slice", + "diagnostics": "Slice 'MedicationRequest.dispenseRequest.extension:performerSiteType': a matching slice is required, but not found (from https://fhir.nhs.uk/StructureDefinition/NHSDigital-MedicationRequest|1.0.1). Note that other slices are allowed in addition to this required slice", "location": [ "Bundle.entry[0].resource/*MedicationRequest/null*/.dispenseRequest", "Line[1] Col[1186]" diff --git a/src/test/resources/results/stepFunctionResult.json b/src/test/resources/results/7.6.1/stepFunctionResult.json similarity index 100% rename from src/test/resources/results/stepFunctionResult.json rename to src/test/resources/results/7.6.1/stepFunctionResult.json diff --git a/src/test/resources/results/successfulOperationOutcome.json b/src/test/resources/results/7.6.1/successfulOperationOutcome.json similarity index 100% rename from src/test/resources/results/successfulOperationOutcome.json rename to src/test/resources/results/7.6.1/successfulOperationOutcome.json diff --git a/src/test/resources/results/validBundle.json b/src/test/resources/results/7.6.1/validBundle.json similarity index 100% rename from src/test/resources/results/validBundle.json rename to src/test/resources/results/7.6.1/validBundle.json diff --git a/src/test/resources/results/7.6.1/validParameters.json b/src/test/resources/results/7.6.1/validParameters.json new file mode 100644 index 00000000..08a3fa46 --- /dev/null +++ b/src/test/resources/results/7.6.1/validParameters.json @@ -0,0 +1,10 @@ +{ + "resourceType": "OperationOutcome", + "issue": [ + { + "severity": "information", + "code": "informational", + "diagnostics": "No issues detected during validation" + } + ] +} diff --git a/src/test/resources/results/7.6.1/validSimpleBundle.json b/src/test/resources/results/7.6.1/validSimpleBundle.json new file mode 100644 index 00000000..08a3fa46 --- /dev/null +++ b/src/test/resources/results/7.6.1/validSimpleBundle.json @@ -0,0 +1,10 @@ +{ + "resourceType": "OperationOutcome", + "issue": [ + { + "severity": "information", + "code": "informational", + "diagnostics": "No issues detected during validation" + } + ] +}